drm/amdgpu: Use legacy TLB flush for gfx943
authorGraham Sider <Graham.Sider@amd.com>
Wed, 8 Feb 2023 16:10:57 +0000 (11:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:58:58 +0000 (09:58 -0400)
commit2e8cc5d317d12f7fb4f66361a3ce5427f0abe2cd
treee266840cff40bf8a015a894a4314f077d14612eb
parentf915f3af9984464c308787102990d85d4e988d2c
drm/amdgpu: Use legacy TLB flush for gfx943

Invalidate TLBs via a legacy flush request (flush_type=0) prior to the
heavyweight flush requests (flush_type=2) in gmc_v9_0.c. This is
temporarily required to mitigate a bug causing CPC UTCL1 to return stale
translations after invalidation requests in address range mode.

v2: squash in long term fix "drm/amdgpu: disable extra gfx943 legacy flush on rev1+"

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c