drm/amdgpu: fix and cleanup gmc_v9_0_flush_gpu_tlb
authorChristian König <christian.koenig@amd.com>
Fri, 1 Sep 2023 05:45:52 +0000 (07:45 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 20:54:51 +0000 (16:54 -0400)
commit24a6eb92b7f6ce099e4d25c1d17ce398c299f389
tree0809a13699dbf42c7e3093ba153183e89713336c
parentf1235727ccc9058e082363d5cb1832f7812276a8
drm/amdgpu: fix and cleanup gmc_v9_0_flush_gpu_tlb

The KIQ code path was ignoring the second flush. Also avoid long lines and
re-calculating the register offsets over and over again.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c