Skip to content

shadow page table support V6 ---> shadow bo support

Chunming Zhou amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

V2 from the cover letter

Shadow bo uses a shadow entity running on normal run queue, after gpu reset, we need to wait for all shadow jobs finished first, then recovery page table from shadow.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/amdgpu: add need backup function V2drivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_object.c+10 -10 replies
2/7drm/amdgpu: add direct submision option for copy_bufferdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c drivers/gpu/drm/amd/amdgpu/amdgpu_test.c +1 more+21 -110 replies
3/7drm/amdgpu: sync bo and shadow V3drivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_object.c drivers/gpu/drm/amd/amdgpu/amdgpu_object.h+76 -80 replies
4/7drm/amdgpu: update pd shadow while updating pd V2drivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c+42 -190 replies
5/7drm/amdgpu: update pt shadow while updating pt V2drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c+15 -10 replies
6/7drm/amdgpu: link all shadow bo V2drivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_object.c+19 -10 replies
7/7drm/amdgpu: recover vram bo from shadow after gpu resetdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c+59 -11 reply

Reviews trailers per patch

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

PatchChristian König
1/7R-b
2/7R-b
3/7R-b
4/7R-b
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] shadow page table support V6 ---> shadow bo support

Since we cannot ensure VRAM is consistent after a GPU reset, page table shadowing is necessary. Shadowed page tables are, in a sense, a method to recover the consistent state of the page tables before the reset occurred.

We need to allocate GTT bo as the shadow of VRAM bo when creating page table, and make them the same. After gpu reset, we will need to use SDMA to copy GTT bo content to VRAM bo, then page table will be recoveried.

V2:
Shadow bo uses a shadow entity running on normal run queue, after gpu reset, we need to wait for all shadow jobs finished first, then recovery page table from shadow.

V3:
Addressed Christian comments for shadow bo part.

V4:
Switch back to update page table twice (one of two is for shadow)

V5:
make it be gerneic shadow bo support. Address Christian comments.

V6:
some improvements addressed comments from Christian.

Chunming Zhou (7):
drm/amdgpu: add need backup function V2 drm/amdgpu: add direct submision option for copy_buffer drm/amdgpu: sync bo and shadow V3
drm/amdgpu: update pd shadow while updating pd V2 drm/amdgpu: update pt shadow while updating pt V2 drm/amdgpu: link all shadow bo V2
drm/amdgpu: recover vram bo from shadow after gpu reset

 drivers/gpu/drm/amd/amdgpu/amdgpu.h           | 17 +++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c |  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    | 71 +++++++++++++++++++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    | 78 ++++++++++++++++++++++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h    | 12 +++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c      |  4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c       | 23 +++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c        | 76 +++++++++++++++++++-------
 8 files changed, 242 insertions(+), 42 deletions(-)
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx