From: Alex Deucher <alexander.deucher@xxxxxxx> commit 41be00f839e9ee7753892a73a36ce4c14c6f5cbf upstream. Use the helper function rather than reading it directly. Reviewed-by: Yang Wang <kevinyang.wang@xxxxxxx> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> (cherry picked from commit f1fd1d0f40272948aa6ab82a3a82ecbbc76dff53) Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c @@ -4105,7 +4105,7 @@ static int gfx_v12_0_set_clockgating_sta 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, Patches currently in stable-queue which might be from alexander.deucher@xxxxxxx are queue-6.12/drm-amd-update-strapping-for-nbio-2.5.0.patch queue-6.12/drm-amdgpu-don-t-access-invalid-sched.patch queue-6.12/drm-amdgpu-nbio7.7-fix-ip-version-check.patch queue-6.12/drm-amdgpu-smu14.0.2-fix-ip-version-check.patch queue-6.12/drm-amdgpu-mmhub4.1-fix-ip-version-check.patch queue-6.12/drm-amdgpu-gfx12-fix-ip-version-check.patch queue-6.12/drm-amdgpu-nbio7.0-fix-ip-version-check.patch queue-6.12/drm-amdgpu-fix-amdgpu_coredump.patch queue-6.12/drm-amdgpu-handle-null-bo-tbo.resource-again-in-amdgpu_vm_bo_update.patch queue-6.12/drm-amdgpu-nbio7.11-fix-ip-version-check.patch