aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
diff options
context:
space:
mode:
authorHuang Rui <[email protected]>2022-05-18 14:05:03 +0000
committerAlex Deucher <[email protected]>2022-06-03 20:44:15 +0000
commit80d46fff373775fdea9917a7d13f6fb6fa5147ad (patch)
treea7cf45e3c5640d1752fa636c5b3ba39efa43f13a /drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
parentdrm/amdgpu/pm: implement the SMU_MSG_EnableGfxImu function (diff)
downloadkernel-80d46fff373775fdea9917a7d13f6fb6fa5147ad.tar.gz
kernel-80d46fff373775fdea9917a7d13f6fb6fa5147ad.zip
drm/amdgpu: add apu sequence in the imu v11
APU required to issue the enable GFX IMU message after IMU reset. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Tim Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index abe22749cccc..5f20b41bcb93 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -6292,7 +6292,11 @@ static void gfx_v11_0_set_irq_funcs(struct amdgpu_device *adev)
static void gfx_v11_0_set_imu_funcs(struct amdgpu_device *adev)
{
- adev->gfx.imu.mode = DEBUG_MODE;
+ if (adev->flags & AMD_IS_APU)
+ adev->gfx.imu.mode = MISSION_MODE;
+ else
+ adev->gfx.imu.mode = DEBUG_MODE;
+
adev->gfx.imu.funcs = &gfx_v11_0_imu_funcs;
}