Skip to content

Commit 5048fa1

Browse files
superm1alexdeucher
authored andcommitted
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
1 parent bb25849 commit 5048fa1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,13 @@ const struct nbio_hdp_flush_reg nbio_v4_3_hdp_flush_reg = {
337337

338338
static void nbio_v4_3_init_registers(struct amdgpu_device *adev)
339339
{
340-
return;
340+
if (adev->ip_versions[NBIO_HWIP][0] == IP_VERSION(4, 3, 0)) {
341+
uint32_t data;
342+
343+
data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF2_STRAP2);
344+
data &= ~RCC_DEV0_EPF2_STRAP2__STRAP_NO_SOFT_RESET_DEV0_F2_MASK;
345+
WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF2_STRAP2, data);
346+
}
341347
}
342348

343349
static u32 nbio_v4_3_get_rom_offset(struct amdgpu_device *adev)

0 commit comments

Comments
 (0)