drm/amdgpu: fix issue when switch NPS1 to NPSX
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix issue when switch NPS1 to NPSX
fix the function execution sequence after removing kgd2kfd_init_zone_device out of gpu full access region.
Signed-off-by chong li <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -3
@@ -4931,15 +4931,15 @@ int amdgpu_device_init(struct amdgpu_device *adev,flush_delayed_work (&adev->delayed_init_work); } -if (adev->init_lvl->level ==AMDGPU_INIT_LEVEL_MINIMAL_XGMI ) -amdgpu_xgmi_reset_on_init (adev); -/* Don't init kfd if whole hive need to be reset during init */ if (adev->init_lvl->level !=AMDGPU_INIT_LEVEL_MINIMAL_XGMI ) {kgd2kfd_init_zone_device (adev);kfd_update_svm_support_properties (adev); } +if (adev->init_lvl->level ==AMDGPU_INIT_LEVEL_MINIMAL_XGMI ) +amdgpu_xgmi_reset_on_init (adev); +/* * Place those sysfs registering after `late_init`. As some of those * operations performed in `late_init` might affect the sysfs
Signature · 1 line
2.48.1
Quoted 4 lines · chong li
fix the function execution sequence after removing
kgd2kfd_init_zone_deviceout of gpu full access region.Signed-off-by chong li <[email protected]>
Please also add the Fixes: tag with the breaking commit id before submitting.
Reviewed-by Lijo Lazar <[email protected]>
Thanks,
Lijo
Quoted 27 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-3@@ -4931,15 +4931,15 @@ int amdgpu_device_init(struct amdgpu_device *adev,flush_delayed_work (&adev->delayed_init_work); } -if (adev->init_lvl->level ==AMDGPU_INIT_LEVEL_MINIMAL_XGMI ) -amdgpu_xgmi_reset_on_init (adev); -/* Don't init kfd if whole hive need to be reset during init */ if (adev->init_lvl->level !=AMDGPU_INIT_LEVEL_MINIMAL_XGMI ) {kgd2kfd_init_zone_device (adev);kfd_update_svm_support_properties (adev); } +if (adev->init_lvl->level ==AMDGPU_INIT_LEVEL_MINIMAL_XGMI ) +amdgpu_xgmi_reset_on_init (adev); +/* * Place those sysfs registering after `late_init`. As some of those * operations performed in `late_init` might affect the sysfs