Skip to content

Commit

Permalink
drm/amdgpu: fix fw attestation for MP0_14_0_{2/3}
Browse files Browse the repository at this point in the history
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 <Jack.Gui@amd.com>
Reviewed-by: Frank.Min <Frank.Min@amd.com>
Reviewed-by: Christian König <Christian.Koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Gui Chengming authored and Alex Deucher committed Jan 14, 2025
1 parent def5943 commit 62952a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 62952a3

Please sign in to comment.