Skip to content

drm/amdgpu: Improve retry fault handling (v2)

Timur Kristóf amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 18 repliesIn review

Changes in v2 from the cover letter

* Reordered patches in the series to put bug fixes first
* Enable retry fault interrupt in init_system_aperture_regs() instead of in set_fault_enable_default()
* Added a patch to respect the noretry flag on GFX12.1 too

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/amdgpu: Use gmc->noretry instead of amdgpu_noretry directlydrivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c drivers/gpu/drm/amd/amdgpu/gfxhub_v12_0.c drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c +7 more+10 -100 replies
2/7drm/amdgpu/gfxhub: Program CRASH_ON_*_FAULT bits to 0 as neededdrivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c drivers/gpu/drm/amd/amdgpu/gfxhub_v12_0.c drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c +6 more+38 -561 reply
3/7drm/amdgpu/gmc: Don't compare page fault timestamps with other interruptsdrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h+5 -18 replies
4/7drm/amdgpu/ih: Add retry_cam_ack IH function pointerdrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h drivers/gpu/drm/amd/amdgpu/ih_v7_0.c +1 more+15 -23 replies
5/7drm/amdgpu/gfxhub: Enable retry fault interrupts when neededdrivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c drivers/gpu/drm/amd/amdgpu/gfxhub_v12_0.c drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c +5 more+51 -142 replies
6/7drm/amdgpu/gfxhub: Respect noretry flag for retry faults on GFX12.1drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c+1 -14 replies
7/7drm/amdgpu: Enable retry CAM on Navi 3 dGPUsdrivers/gpu/drm/amd/amdgpu/gmc_v11_0.c drivers/gpu/drm/amd/amdgpu/ih_v6_0.c+21 -20 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchChristian KönigFelix Kuehling
1/7R-b
2/7R-b
3/7A-b R-b
4/7
5/7
6/7
7/7

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 0/7] drm/amdgpu: Improve retry fault handling (v2)

Fix some issues regarding retry fault handling, such as enabling the retry fault interrupt (necessary for retry faults to work) and similar.

Improve retry faults on Navi 3 dGPUs by enabling the filter CAM, which can filter the repeated page fault interrupts that happen when retry faults are enabled, making the handling more efficient.

With this series, the kernel is able to mitigate most page faults on Navi 3 without causing a hang and without a need to reset the GPU, when the amdgpu.noretry=0 module parameter is set.

Changes in v2:

* Reordered patches in the series to put bug fixes first
* Enable retry fault interrupt in init_system_aperture_regs() instead of in set_fault_enable_default()
* Added a patch to respect the noretry flag on GFX12.1 too

Timur Kristóf (7):
drm/amdgpu: Use gmc->noretry instead of amdgpu_noretry directly drm/amdgpu/gfxhub: Program CRASH_ON_*_FAULT bits to 0 as needed drm/amdgpu/gmc: Don't compare page fault timestamps with other
interrupts
drm/amdgpu/ih: Add retry_cam_ack IH function pointer drm/amdgpu/gfxhub: Enable retry fault interrupts when needed drm/amdgpu/gfxhub: Respect noretry flag for retry faults on GFX12.1 drm/amdgpu: Enable retry CAM on Navi 3 dGPUs

 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c     |  7 +++++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h     |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h      |  1 +
 drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c | 21 ++++++++++++---------
 drivers/gpu/drm/amd/amdgpu/gfxhub_v12_0.c   | 21 ++++++++++++---------
 drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c   | 16 +++++++---------
 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c    | 19 +++++++++++--------
 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c    | 12 ++++++------
 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c    | 19 +++++++++++--------
 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c    | 19 +++++++++++--------
 drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c    | 21 ++++++++++++---------
 drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c  | 21 ++++++++++++---------
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c      |  5 ++++-
 drivers/gpu/drm/amd/amdgpu/ih_v6_0.c        | 18 +++++++++++++++++-
 drivers/gpu/drm/amd/amdgpu/ih_v7_0.c        |  6 ++++++
 drivers/gpu/drm/amd/amdgpu/mmhub_v3_0.c     |  2 +-
 drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_1.c   |  2 +-
 drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.c   |  2 +-
 drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c     |  2 +-
 drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c   |  2 +-
 drivers/gpu/drm/amd/amdgpu/mmhub_v4_2_0.c   |  2 +-
 drivers/gpu/drm/amd/amdgpu/vega20_ih.c      |  8 +++++++-
 22 files changed, 141 insertions(+), 86 deletions(-)
Signature · 1 line
2.54.0