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:52:17 +0000 (08:52 +0100)
commit5ffd8c73d1d0f38706951c4ab8710cb6c6cdde45
treedbb6b86478fe40d5629243a34a94941cc4c6bdd8
parentf6f4be2c39dd841f5fb88fb1248283d37237a6c9
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