Skip to content

Commit d2c72d9

Browse files
committed
drm/amdgpu: enable enforce_isolation sysfs node on VFs
It should be enabled on both bare metal and VFs. Fixes: e189be9 ("drm/amdgpu: Add enforce_isolation sysfs attribute") Signed-off-by: Alex Deucher <[email protected]> Cc: Srinivasan Shanmugam <[email protected]> Cc: Amber Lin <[email protected]> Reviewed-by: Srinivasan Shanmugam <[email protected]> (cherry picked from commit dc8847b)
1 parent 8e929cb commit d2c72d9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,11 +1635,9 @@ int amdgpu_gfx_sysfs_isolation_shader_init(struct amdgpu_device *adev)
16351635
{
16361636
int r;
16371637

1638-
if (!amdgpu_sriov_vf(adev)) {
1639-
r = device_create_file(adev->dev, &dev_attr_enforce_isolation);
1640-
if (r)
1641-
return r;
1642-
}
1638+
r = device_create_file(adev->dev, &dev_attr_enforce_isolation);
1639+
if (r)
1640+
return r;
16431641

16441642
r = device_create_file(adev->dev, &dev_attr_run_cleaner_shader);
16451643
if (r)
@@ -1650,8 +1648,7 @@ int amdgpu_gfx_sysfs_isolation_shader_init(struct amdgpu_device *adev)
16501648

16511649
void amdgpu_gfx_sysfs_isolation_shader_fini(struct amdgpu_device *adev)
16521650
{
1653-
if (!amdgpu_sriov_vf(adev))
1654-
device_remove_file(adev->dev, &dev_attr_enforce_isolation);
1651+
device_remove_file(adev->dev, &dev_attr_enforce_isolation);
16551652
device_remove_file(adev->dev, &dev_attr_run_cleaner_shader);
16561653
}
16571654

0 commit comments

Comments
 (0)