Commit 41be00f8 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/gfx12: fix IP version check



Use the helper function rather than reading it directly.

Reviewed-by: default avatarYang Wang <kevinyang.wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit f1fd1d0f)
Cc: stable@vger.kernel.org
parent 6ebc5b92
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4123,7 +4123,7 @@ static int gfx_v12_0_set_clockgating_state(void *handle,
	if (amdgpu_sriov_vf(adev))
		return 0;

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