aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c
diff options
context:
space:
mode:
authorGui Chengming <[email protected]>2025-01-07 09:09:08 +0000
committerAlex Deucher <[email protected]>2025-01-14 16:55:54 +0000
commitbd275e6cfc972329d39c6406a3c6d2ba2aba7db6 (patch)
tree169f8b8522d9c4b6d742d208643fc268684c4520 /drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c
parentdrm/amdgpu: always sync the GFX pipe on ctx switch (diff)
downloadkernel-bd275e6cfc972329d39c6406a3c6d2ba2aba7db6.tar.gz
kernel-bd275e6cfc972329d39c6406a3c6d2ba2aba7db6.zip
drm/amdgpu: fix fw attestation for MP0_14_0_{2/3}
FW attestation was disabled on MP0_14_0_{2/3}. V2: Move check into is_fw_attestation_support func. (Frank) Remove DRM_WARN log info. (Alex) Fix format. (Christian) Signed-off-by: Gui Chengming <[email protected]> Reviewed-by: Frank.Min <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 62952a38d9bcf357d5ffc97615c48b12c9cd627c) Cc: [email protected] # 6.12.x
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c
index 2d4b67175b55..328a1b963548 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c
@@ -122,6 +122,10 @@ static int amdgpu_is_fw_attestation_supported(struct amdgpu_device *adev)
if (adev->flags & AMD_IS_APU)
return 0;
+ if (amdgpu_ip_version(adev, MP0_HWIP, 0) == IP_VERSION(14, 0, 2) ||
+ amdgpu_ip_version(adev, MP0_HWIP, 0) == IP_VERSION(14, 0, 3))
+ return 0;
+
if (adev->asic_type >= CHIP_SIENNA_CICHLID)
return 1;