Skip to content

drm/amdgpu: Improve page fault handling on GMC v6-8

Timur Kristóf amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/amdgpu/si_ih: Enable soft IRQ handler ringdrivers/gpu/drm/amd/amdgpu/si_ih.c+12 -00 replies
2/10drm/amdgpu/cik_ih: Enable soft IRQ handler ringdrivers/gpu/drm/amd/amdgpu/cik_ih.c+12 -00 replies
3/10drm/amdgpu/iceland_ih: Enable soft IRQ handler ringdrivers/gpu/drm/amd/amdgpu/iceland_ih.c+10 -00 replies
4/10drm/amdgpu/tonga_ih: Enable soft IRQ handler ringdrivers/gpu/drm/amd/amdgpu/tonga_ih.c+10 -00 replies
5/10drm/amdgpu/cz_ih: Enable soft IRQ handler ringdrivers/gpu/drm/amd/amdgpu/cz_ih.c+10 -00 replies
6/10drm/amdgpu/gmc6: Don't print MC client as it's unknowndrivers/gpu/drm/amd/amdgpu/gmc_v6_0.c+4 -60 replies
7/10drm/amdgpu/gmc6: Cache VM fault infodrivers/gpu/drm/amd/amdgpu/gmc_v6_0.c+4 -00 replies
8/10drm/amdgpu/gmc6: Delegate VM faults to soft IRQ handler ringdrivers/gpu/drm/amd/amdgpu/gmc_v6_0.c+6 -00 replies
9/10drm/amdgpu/gmc7: Delegate VM faults to soft IRQ handler ringdrivers/gpu/drm/amd/amdgpu/gmc_v7_0.c+6 -00 replies
10/10drm/amdgpu/gmc8: Delegate VM faults to soft IRQ handler ringdrivers/gpu/drm/amd/amdgpu/gmc_v8_0.c+6 -00 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristian König
SeriesR-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] drm/amdgpu: Improve page fault handling on GMC v6-8

Enable the soft IRQ handler ring on SI, CIK, VI and delegate the processing of all VM faults to the soft IRQ handler ring.

Why?

On old GPUs, it may be an issue that handling the interrupts from VM faults is too slow and the interrupt handler (IH) ring may overflow, which can cause an eventual hang. This is a concern especially on SI and CIK where there are some HW limitations regarding robustness features with some shader instructions, which in practice means that users can see thousands of VM faults during normal gaming use even when the game or the UMD don't do anything wrong.

With this series, we spend much less time in the IRQ handler that interacts with the HW IH ring, which significantly reduces the chance of hangs.

There are also a few misc improvements to the GMC v6 code.

Timur Kristóf (10):
drm/amdgpu/si_ih: Enable soft IRQ handler ring drm/amdgpu/cik_ih: Enable soft IRQ handler ring drm/amdgpu/iceland_ih: Enable soft IRQ handler ring drm/amdgpu/tonga_ih: Enable soft IRQ handler ring drm/amdgpu/cz_ih: Enable soft IRQ handler ring drm/amdgpu/gmc6: Don't print MC client as it's unknown drm/amdgpu/gmc6: Cache VM fault info drm/amdgpu/gmc6: Delegate VM faults to soft IRQ handler ring drm/amdgpu/gmc7: Delegate VM faults to soft IRQ handler ring drm/amdgpu/gmc8: Delegate VM faults to soft IRQ handler ring

 drivers/gpu/drm/amd/amdgpu/cik_ih.c     | 12 ++++++++++++
 drivers/gpu/drm/amd/amdgpu/cz_ih.c      | 10 ++++++++++
 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c   | 20 ++++++++++++++------
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c   |  6 ++++++
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c   |  6 ++++++
 drivers/gpu/drm/amd/amdgpu/iceland_ih.c | 10 ++++++++++
 drivers/gpu/drm/amd/amdgpu/si_ih.c      | 12 ++++++++++++
 drivers/gpu/drm/amd/amdgpu/tonga_ih.c   | 10 ++++++++++
 8 files changed, 80 insertions(+), 6 deletions(-)
Signature · 1 line
2.51.1