]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: update psp_get_fw_type() function
authorFeifei Xu <Feifei.Xu@amd.com>
Mon, 28 Jul 2025 10:05:11 +0000 (18:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:31 +0000 (13:56 -0500)
commit0b8c6bcd206ecd275ac6267b4feee2bcaa8f1a5f
treeda9ed967072b71c48d6136c38098c0f2e72f5b72
parent708b8589f2605a170b572478a2fb3755bb9f272f
drm/amdgpu: update psp_get_fw_type() function

In psp 15.0.8, mes and sdma GFX_FW_TYPE have been changed.

Define a psp common function: psp_get_fw_type().
Hide the GFX_FW_TYPE Changes in each ip's psp->funcs_get_fw_type callback.
(like psp_v15_0_8_get_fw_type()).
If no GFX_FW_TYPE change, reuse the amdgpu_psp_get_fw_type().

Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h