Skip to content

Commit 9e752ee

Browse files
committed
drm/amdgpu/smu14.0.2: fix IP version check
Use the helper function rather than reading it directly. Reviewed-by: Yang Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 8f2cd10) Cc: [email protected]
1 parent 41be00f commit 9e752ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,7 @@ static int smu_v14_0_2_enable_gfx_features(struct smu_context *smu)
20962096
{
20972097
struct amdgpu_device *adev = smu->adev;
20982098

2099-
if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(14, 0, 2))
2099+
if (amdgpu_ip_version(adev, MP1_HWIP, 0) == IP_VERSION(14, 0, 2))
21002100
return smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_EnableAllSmuFeatures,
21012101
FEATURE_PWR_GFX, NULL);
21022102
else

0 commit comments

Comments
 (0)