aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h
diff options
context:
space:
mode:
authorHuang Rui <[email protected]>2022-05-20 03:04:04 +0000
committerAlex Deucher <[email protected]>2022-06-03 20:43:38 +0000
commit542a0f2ef9ea2ccfadf2b8a3b53368c61fc97a0f (patch)
tree2a71405fe13a593e2509694a620ab013a64010e5 /drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h
parentdrm/amd/display: Use DTBCLK for valid pixel clock (diff)
downloadkernel-542a0f2ef9ea2ccfadf2b8a3b53368c61fc97a0f.tar.gz
kernel-542a0f2ef9ea2ccfadf2b8a3b53368c61fc97a0f.zip
drm/amdgpu: introduce two work mode for imu
IMU has two work mode such as debug mode and mission mode. Current GC v11_0_0 is using the debug mode. Acked-by: Alex Deucher <[email protected]> Signed-off-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h
index 56cf127cdf93..cfc4a92837f0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_imu.h
@@ -24,6 +24,11 @@
#ifndef __AMDGPU_IMU_H__
#define __AMDGPU_IMU_H__
+enum imu_work_mode {
+ DEBUG_MODE,
+ MISSION_MODE
+};
+
struct amdgpu_imu_funcs {
int (*init_microcode)(struct amdgpu_device *adev);
int (*load_microcode)(struct amdgpu_device *adev);
@@ -46,6 +51,7 @@ struct imu_rlc_ram_golden {
struct amdgpu_imu {
const struct amdgpu_imu_funcs *funcs;
+ enum imu_work_mode mode;
};
#endif