drm/amdgpu: Force order between a read and write to the same address
authorAlex Sierra <alex.sierra@amd.com>
Mon, 20 Nov 2023 17:31:32 +0000 (11:31 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:51:14 +0000 (08:51 +0100)
commitc5cf436c8969516c92aaceb87582ff19bd187756
treef19f77112cfd2f224ea71f0f9289deb847b00a00
parentc6088429630048661e480ed28590e69a48c102d6
drm/amdgpu: Force order between a read and write to the same address

commit 4b27a33c3b173bef1d19ba89e0b9b812b4fddd25 upstream.

Setting register to force ordering to prevent read/write or write/read
hazards for un-cached modes.

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
drivers/gpu/drm/amd/include/asic_reg/gc/gc_11_0_0_offset.h