From: Hawking Zhang Date: Thu, 7 Aug 2025 14:49:51 +0000 (+0800) Subject: drm/amdgpu: Do not initialize imu callback for vf X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09a75a234b21e6564e2c0bac517cf5bd2c6e1905;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: Do not initialize imu callback for vf Not needed in guest environment Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c index 277db5ef9ca7..321ca7ac2693 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c @@ -3866,8 +3866,8 @@ static void gfx_v12_1_set_imu_funcs(struct amdgpu_device *adev) adev->gfx.imu.mode = MISSION_MODE; else adev->gfx.imu.mode = DEBUG_MODE; - - adev->gfx.imu.funcs = &gfx_v12_1_imu_funcs; + if (!amdgpu_sriov_vf(adev)) + adev->gfx.imu.funcs = &gfx_v12_1_imu_funcs; } static void gfx_v12_1_set_rlc_funcs(struct amdgpu_device *adev)