op = 1;
        else if (sscanf(str, "inject %32s %8s", block_name, err) == 2)
                op = 2;
-       else if (sscanf(str, "reboot %32s", block_name) == 1)
-               op = 3;
        else if (str[0] && str[1] && str[2] && str[3])
                /* ascii string, but commands are not matched. */
                return -EINVAL;
  * value to the address.
  *
  * Second member: struct ras_debug_if::op.
- * It has four kinds of operations.
+ * It has three kinds of operations.
  *
  * - 0: disable RAS on the block. Take ::head as its data.
  * - 1: enable RAS on the block. Take ::head as its data.
  * - 2: inject errors on the block. Take ::inject as its data.
- * - 3: reboot on unrecoverable error
  *
  * How to use the interface?
  * programs:
                /* data.inject.address is offset instead of absolute gpu address */
                ret = amdgpu_ras_error_inject(adev, &data.inject);
                break;
-       case 3:
-               amdgpu_ras_get_context(adev)->reboot = true;
-               break;
        default:
                ret = -EINVAL;
                break;
                                adev, &amdgpu_ras_debugfs_ctrl_ops);
        debugfs_create_file("ras_eeprom_reset", S_IWUGO | S_IRUGO, con->dir,
                                adev, &amdgpu_ras_debugfs_eeprom_ops);
+
+       /*
+        * After one uncorrectable error happens, usually GPU recovery will
+        * be scheduled. But due to the known problem in GPU recovery failing
+        * to bring GPU back, below interface provides one direct way to
+        * user to reboot system automatically in such case within
+        * ERREVENT_ATHUB_INTERRUPT generated. Normal GPU recovery routine
+        * will never be called.
+        */
+       debugfs_create_bool("auto_reboot", S_IWUGO | S_IRUGO, con->dir,
+                               &con->reboot);
 }
 
 void amdgpu_ras_debugfs_create(struct amdgpu_device *adev,