]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: fix when the cleaner shader is emitted
authorChristian König <christian.koenig@amd.com>
Fri, 6 Dec 2024 13:46:06 +0000 (14:46 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:26:18 +0000 (10:26 -0500)
commitf4df208177d02f1c90f3644da3a2453080b8c24f
tree6fe80c31091f71072a3aaf6735a21dd5c3a80ed9
parentee2003d5fd139f5c881b87615c216c0053b69093
drm/amdgpu: fix when the cleaner shader is emitted

Emitting the cleaner shader must come after the check if a VM switch is
necessary or not.

Otherwise we will emit the cleaner shader every time and not just when it is
necessary because we switched between applications.

This can otherwise crash on gang submit and probably decreases performance
quite a bit.

v2: squash in fix from Srini (Alex)

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: ee7a846ea27b ("drm/amdgpu: Emit cleaner shader at end of IB submission")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c