diff options
| author | Lijo Lazar <[email protected]> | 2024-09-20 07:44:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-10-15 15:16:20 +0000 |
| commit | ee52489d1210dbb894fda71957e1e9832126efda (patch) | |
| tree | 77e8e505aee9057e776f6ccc4d660782c1a4984e /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/radeon: always set GEM function pointer (diff) | |
| download | kernel-ee52489d1210dbb894fda71957e1e9832126efda.tar.gz kernel-ee52489d1210dbb894fda71957e1e9832126efda.zip | |
drm/amdgpu: Place NPS mode request on unload
If a user has requested NPS mode switch, place the request through PSP
during unload of the driver. For devices which are part of a hive, all
requests are placed together. If one of them fails, revert back to the
current NPS mode.
Signed-off-by: Lijo Lazar <[email protected]>
Signed-off-by: Rajneesh Bhardwaj <[email protected]>
Reviewed-by: Feifei Xu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 68f9c17a17eb..46f756513948 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -2429,6 +2429,7 @@ amdgpu_pci_remove(struct pci_dev *pdev) struct amdgpu_device *adev = drm_to_adev(dev); amdgpu_xcp_dev_unplug(adev); + amdgpu_gmc_prepare_nps_mode_change(adev); drm_dev_unplug(dev); if (adev->pm.rpm_mode != AMDGPU_RUNPM_NONE) { |
