shadow page table support V6 ---> shadow bo support
Get series with b4
b4 am [email protected]Versions newest first
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | drm/amdgpu: add need backup function V2drivers/ drivers/ drivers/ | +10 | 0 replies | |
| 2/7 | drm/amdgpu: add direct submision option for copy_bufferdrivers/ drivers/ drivers/ +1 more | +21 | 0 replies | |
| 3/7 | drm/amdgpu: sync bo and shadow V3drivers/ drivers/ drivers/ | +76 | 0 replies | |
| 4/7 | drm/amdgpu: update pd shadow while updating pd V2drivers/ drivers/ | +42 | 0 replies | |
| 5/7 | drm/amdgpu: update pt shadow while updating pt V2drivers/ | +15 | 0 replies | |
| 6/7 | drm/amdgpu: link all shadow bo V2drivers/ drivers/ drivers/ | +19 | 0 replies | |
| 7/7 | drm/amdgpu: recover vram bo from shadow after gpu resetdrivers/ | +59 | 1 reply |
Reviews trailers per patch
4 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Christian König |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | R-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.
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