]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: add smu pcie dpm cap & width convert helper
authorYang Wang <kevinyang.wang@amd.com>
Wed, 10 Dec 2025 12:27:42 +0000 (20:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 22:00:00 +0000 (17:00 -0500)
commitdeacae541a7210c675f1013ed5a276886b2f48d6
tree723a8524f881fd1f1394994f2f3041fdc583ebf1
parent95b36732fec4a954a107bb07aa4bff8793762938
drm/amd/pm: add smu pcie dpm cap & width convert helper

define following heler to convert pmfw pcie dpm index to smu index.
- SMU_DPM_PCIE_GEN_IDX(gen)
- SMU_DPM_PCIE_WIDTH_IDX(width)

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h