]> www.infradead.org Git - users/hch/block.git/commit
drm/amdgpu/sdma5.2: Update wptr registers as well as doorbell
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Jul 2024 21:54:11 +0000 (17:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:32:58 +0000 (17:32 -0400)
commitf2ac52634963fc38e4935e11077b6f7854e5d700
tree1900071767ad902fc75bc970f62fa7a53465127b
parentca82ee4e9fc1443f9ceec615918b299766432eec
drm/amdgpu/sdma5.2: Update wptr registers as well as doorbell

We seem to have a case where SDMA will sometimes miss a doorbell
if GFX is entering the powergating state when the doorbell comes in.
To workaround this, we can update the wptr via MMIO, however,
this is only safe because we disallow gfxoff in begin_ring() for
SDMA 5.2 and then allow it again in end_ring().

Enable this workaround while we are root causing the issue with
the HW team.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/3440
Tested-by: Friedrich Vock <friedrich.vock@gmx.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c