Skip to content

Commit f1fd1d0

Browse files
committed
drm/amdgpu/gfx12: fix IP version check
Use the helper function rather than reading it directly. Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 63bfd24 commit f1fd1d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4126,7 +4126,7 @@ static int gfx_v12_0_set_clockgating_state(struct amdgpu_ip_block *ip_block,
41264126
if (amdgpu_sriov_vf(adev))
41274127
return 0;
41284128

4129-
switch (adev->ip_versions[GC_HWIP][0]) {
4129+
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
41304130
case IP_VERSION(12, 0, 0):
41314131
case IP_VERSION(12, 0, 1):
41324132
gfx_v12_0_update_gfx_clock_gating(adev,

0 commit comments

Comments
 (0)