From: Hawking Zhang <[email protected]> Not needed in guest environment
Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]> --- drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 4 ++-- 1 file 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 ae65d70c3d10c..ed6c2aae3c486 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c @@ -3873,8 +3873,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) -- 2.52.0
