diff options
| author | Kenneth Feng <[email protected]> | 2023-09-06 06:07:58 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-02 20:18:11 +0000 |
| commit | 1e740df77f5d4dfa75e1ca21b7ca3ebc1a907421 (patch) | |
| tree | cd15c04ae740f99a89face0205adbe2b3bdbe586 /drivers/gpu/drm/amd/amdgpu/imu_v12_0.c | |
| parent | drm/amd: Move fw init from sw_init to early_init for imu v12 (diff) | |
| download | kernel-1e740df77f5d4dfa75e1ca21b7ca3ebc1a907421.tar.gz kernel-1e740df77f5d4dfa75e1ca21b7ca3ebc1a907421.zip | |
drm/amd/amdgpu: workaround for the imu fw loading
workaournd for the imu fw loading on gfx 12.0 without psp
Signed-off-by: Kenneth Feng <[email protected]>
Reviewed-by: Likun Gao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/imu_v12_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/imu_v12_0.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c b/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c index be140ee4d917..7112e4b2d648 100644 --- a/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c @@ -143,6 +143,11 @@ static void imu_v12_0_setup(struct amdgpu_device *adev) imu_reg_val = RREG32_SOC15(GC, 0, regGFX_IMU_C2PMSG_16); imu_reg_val |= 0x1; WREG32_SOC15(GC, 0, regGFX_IMU_C2PMSG_16, imu_reg_val); + + imu_reg_val = RREG32_SOC15(GC, 0, regGFX_IMU_SCRATCH_10); + imu_reg_val |= 0x20010007; + WREG32_SOC15(GC, 0, regGFX_IMU_SCRATCH_10, imu_reg_val); + } } |
