]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:07 +0000 (18:13 +0100)
commit5a6bd9350424fcb14bd2883e978aea47ca63fa91
treebdcdf1cb18b06924f8397abebd667319b47700d6
parentbd882c3ca13e93e89b0e9c6201f2b633cff82e97
drm/amdgpu: fix when the cleaner shader is emitted

commit f4df208177d02f1c90f3644da3a2453080b8c24f upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c