drm/amdgpu: Fix the ring buffer size for queue VM flush
authorPrike Liang <Prike.Liang@amd.com>
Mon, 25 Mar 2024 07:33:34 +0000 (15:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Apr 2024 03:23:46 +0000 (23:23 -0400)
commitfe93b0927bc58cb1d64230f45744e527d9d8482c
tree52571a4f1bd994b58c7852c7348cdb217859f2c5
parent1e214f7faaf5d842754cd5cfcd76308bfedab3b5
drm/amdgpu: Fix the ring buffer size for queue VM flush

Here are the corrections needed for the queue ring buffer size
calculation for the following cases:
- Remove the KIQ VM flush ring usage.
- Add the invalidate TLBs packet for gfx10 and gfx11 queue.
- There's no VM flush and PFP sync, so remove the gfx9 real
  ring and compute ring buffer usage.

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