summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHawking Zhang <Hawking.Zhang@amd.com>2025-08-07 17:49:51 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-01-06 00:27:28 +0300
commit09a75a234b21e6564e2c0bac517cf5bd2c6e1905 (patch)
tree6bc0ac88cf84f066d41291dedfeed1371aecaa7b
parentfcc4fc758e132a4512ba8176222fca61b0b7f1cf (diff)
downloadlinux-09a75a234b21e6564e2c0bac517cf5bd2c6e1905.tar.xz
drm/amdgpu: Do not initialize imu callback for vf
Not needed in guest environment Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Le Ma <le.ma@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c4
1 files changed, 2 insertions, 2 deletions
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)