diff options
| author | Mario Limonciello <[email protected]> | 2023-01-30 16:16:06 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-02-02 03:45:51 +0000 |
| commit | 5048fa1ebf89d03cf0ceca13fab8f800399e9ee3 (patch) | |
| tree | 9ed6ea99fcdce3bc0679ff05c6e4cc227d1ffe03 /drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c | |
| parent | drm/amdgpu: enable HDP SD for gfx 11.0.3 (diff) | |
| download | kernel-5048fa1ebf89d03cf0ceca13fab8f800399e9ee3.tar.gz kernel-5048fa1ebf89d03cf0ceca13fab8f800399e9ee3.zip | |
drm/amd: Fix initialization for nbio 4.3.0
A mistake has been made on some boards with NBIO 4.3.0 where some
NBIO registers aren't properly set by the hardware.
Ensure that they're set during initialization.
Cc: Natikar Basavaraj <[email protected]>
Tested-by: Satyanarayana ReddyTVN <[email protected]>
Tested-by: Rutvij Gajjar <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected] # 6.1.x
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c b/drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c index 15eb3658d70e..09fdcd20cb91 100644 --- a/drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c +++ b/drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c @@ -337,7 +337,13 @@ const struct nbio_hdp_flush_reg nbio_v4_3_hdp_flush_reg = { static void nbio_v4_3_init_registers(struct amdgpu_device *adev) { - return; + if (adev->ip_versions[NBIO_HWIP][0] == IP_VERSION(4, 3, 0)) { + uint32_t data; + + data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF2_STRAP2); + data &= ~RCC_DEV0_EPF2_STRAP2__STRAP_NO_SOFT_RESET_DEV0_F2_MASK; + WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF2_STRAP2, data); + } } static u32 nbio_v4_3_get_rom_offset(struct amdgpu_device *adev) |
