2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/amd/pm/inc
Jesse.zhang@amd.com d190e4d0f7 drm/amd/pm: add support for checking SDMA reset capability
This patch introduces a new function to check if the SMU supports resetting the SDMA engine.
This capability check ensures that the driver does not attempt to reset the SDMA engine
on hardware that does not support it.

The following changes are included:
- New function `amdgpu_dpm_reset_sdma_is_supported` to check SDMA reset
  support at the AMDGPU driver level.
- New function `smu_reset_sdma_is_supported` to check SDMA reset support
  at the SMU level.
- Implementation of `smu_v13_0_6_reset_sdma_is_supported` for the specific
  SMU version v13.0.6.
- Updated `smu_v13_0_6_reset_sdma` to use the new capability check before
  attempting to reset the SDMA engine.

v2: change smu_reset_sdma_is_supported type to bool (Tim)

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Reviewed-by: Tim Huang <tim.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-02-25 11:43:59 -05:00
..
amdgpu_dpm_internal.h drm/amd/pm: optimize the amdgpu_pm_compute_clocks() implementations 2022-01-14 17:51:14 -05:00
amdgpu_dpm.h drm/amd/pm: add support for checking SDMA reset capability 2025-02-25 11:43:59 -05:00
amdgpu_pm.h drm/amd/pm: Remove legacy interface for xgmi plpd 2024-05-17 17:40:39 -04:00
smu_v13_0_0_pptable.h drm/amd/pm: open brace '{' following struct go on the same line 2023-07-25 13:43:56 -04:00