Skip to content

GART table recovery

Chunming Zhou amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/amdgpu: make need_backup genericdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c+2 -10 replies
2/10drm/amdgpu: implement gart late_init/finidrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c+21 -00 replies
3/10drm/amdgpu: add gart_late_init/fini to gmc V7/8drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c+40 -80 replies
4/10drm/amdgpu: abstract amdgpu_bo_create_shadowdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c drivers/gpu/drm/amd/amdgpu/amdgpu_object.h+30 -130 replies
5/10drm/amdgpu: shadow gart table supportdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +1 more+80 -10 replies
6/10drm/amdgpu: make recover_bo_from_shadow be genericdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c drivers/gpu/drm/amd/amdgpu/amdgpu_object.h drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c+51 -430 replies
7/10drm/amdgpu: implement gart recoverydrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c+32 -00 replies
8/10drm/amdgpu: recover gart table first when full resetdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c+2 -00 replies
9/10drm/amdgpu: sync gart table before initialization completeddrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c+47 -10 replies
10/10drm/amdgpu: fix memory leak of sched fencedrivers/gpu/drm/amd/amdgpu/amdgpu_job.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] GART table recovery

gart table is stored in one bo which must be ready before gart init, but the shadow bo must be created after gart is ready, so they cannot be created at a same time. shado bo itself aslo is included in gart table, So shadow bo needs a synchronization after device init. After sync, the contents of bo and shadwo bo will be same, and be updated at a same time. Then we will be able to recover gart table from shadow bo when gpu full reset.

patch10 is a fix for memory leak.

Chunming Zhou (10):
drm/amdgpu: make need_backup generic
drm/amdgpu: implement gart late_init/fini drm/amdgpu: add gart_late_init/fini to gmc V7/8 drm/amdgpu: abstract amdgpu_bo_create_shadow drm/amdgpu: shadow gart table support
drm/amdgpu: make recover_bo_from_shadow be generic drm/amdgpu: implement gart recovery
drm/amdgpu: recover gart table first when full reset drm/amdgpu: sync gart table before initialization completed drm/amdgpu: fix memory leak of sched fence

 drivers/gpu/drm/amd/amdgpu/amdgpu.h        |   9 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |   2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c   | 139 +++++++++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c    |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c |  80 ++++++++++++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h |   9 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c     |  50 ++---------
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c      |  39 +++++++-
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c      |  40 ++++++++-
 9 files changed, 304 insertions(+), 66 deletions(-)
Signature · 6 lines
1.9.1

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