Skip to content

Commit 41be00f

Browse files
committed
drm/amdgpu/gfx12: 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 f1fd1d0) Cc: [email protected]
1 parent 6ebc5b9 commit 41be00f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4123,7 +4123,7 @@ static int gfx_v12_0_set_clockgating_state(void *handle,
41234123
if (amdgpu_sriov_vf(adev))
41244124
return 0;
41254125

4126-
switch (adev->ip_versions[GC_HWIP][0]) {
4126+
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
41274127
case IP_VERSION(12, 0, 0):
41284128
case IP_VERSION(12, 0, 1):
41294129
gfx_v12_0_update_gfx_clock_gating(adev,

0 commit comments

Comments
 (0)