static struct dentry *amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)
 {
        struct amdgpu_ras *con = amdgpu_ras_get_context(adev);
-       struct dentry *dir;
-       struct drm_minor *minor = adev_to_drm(adev)->primary;
+       struct drm_minor  *minor = adev_to_drm(adev)->primary;
+       struct dentry     *dir;
 
        dir = debugfs_create_dir(RAS_FS_NAME, minor->debugfs_root);
        debugfs_create_file("ras_ctrl", S_IWUGO | S_IRUGO, dir, adev,
                            &amdgpu_ras_debugfs_eeprom_ops);
        debugfs_create_u32("bad_page_cnt_threshold", 0444, dir,
                           &con->bad_page_cnt_threshold);
+       debugfs_create_x32("ras_hw_enabled", 0444, dir, &adev->ras_hw_enabled);
+       debugfs_create_x32("ras_enabled", 0444, dir, &adev->ras_enabled);
 
        /*
         * After one uncorrectable error happens, usually GPU recovery will