Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd: Update strapping for NBIO 2.5.0

This helps to avoid a spurious PME event on hotplug to Azalia.

Cc: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reported-and-tested-by: ionut_n2001@yahoo.com
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=215884
Tested-by: Gabriel Marcano <gabemarcano@yahoo.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20241211024414.7840-1-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mario Limonciello and committed by
Alex Deucher
3f6f237b bcc263de

+11
+11
drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c
··· 271 271 .ref_and_mask_sdma1 = GPU_HDP_FLUSH_DONE__SDMA1_MASK, 272 272 }; 273 273 274 + #define regRCC_DEV0_EPF6_STRAP4 0xd304 275 + #define regRCC_DEV0_EPF6_STRAP4_BASE_IDX 5 276 + 274 277 static void nbio_v7_0_init_registers(struct amdgpu_device *adev) 275 278 { 279 + uint32_t data; 280 + 281 + switch (adev->ip_versions[NBIO_HWIP][0]) { 282 + case IP_VERSION(2, 5, 0): 283 + data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4) & ~BIT(23); 284 + WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4, data); 285 + break; 286 + } 276 287 } 277 288 278 289 #define MMIO_REG_HOLE_OFFSET (0x80000 - PAGE_SIZE)