]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/gfx9: manually control gfxoff for CS on RV
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Jan 2025 16:55:22 +0000 (11:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:30:24 +0000 (04:30 -0800)
commit4ce4d5e1f999e0bf9c22375f68e5cc30e0f3a0f3
treed5806fd7ccdd7c27b3bcb08d54c5543da02139e4
parent7d672fd64a7233d5ebe5e4038a537286e715c7d2
drm/amdgpu/gfx9: manually control gfxoff for CS on RV

commit b35eb9128ebeec534eed1cefd6b9b1b7282cf5ba upstream.

When mesa started using compute queues more often
we started seeing additional hangs with compute queues.
Disabling gfxoff seems to mitigate that.  Manually
control gfxoff and gfx pg with command submissions to avoid
any issues related to gfxoff.  KFD already does the same
thing for these chips.

v2: limit to compute
v3: limit to APUs
v4: limit to Raven/PCO
v5: only update the compute ring_funcs
v6: Disable GFX PG
v7: adjust order

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Suggested-by: Błażej Szczygieł <mumei6102@gmail.com>
Suggested-by: Sergey Kovalenko <seryoga.engineering@gmail.com>
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3861
Link: https://lists.freedesktop.org/archives/amd-gfx/2025-January/119116.html
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.12.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c