]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Do not initialize imu callback for vf
authorHawking Zhang <Hawking.Zhang@amd.com>
Thu, 7 Aug 2025 14:49:51 +0000 (22:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 21:27:28 +0000 (16:27 -0500)
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>
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c

index 277db5ef9ca746fe9475deccf7105dcdc0f0e4e5..321ca7ac269348465fde53e672ed5bf9d0905899 100644 (file)
@@ -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)