All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/19] shadow page table support V2
@ 2016-08-05  9:38 Chunming Zhou
       [not found] ` <1470389926-5719-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 28+ messages in thread
From: Chunming Zhou @ 2016-08-05  9:38 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Chunming Zhou

Since we cannot make sure VRAM is safe after gpu reset, page table backup
is neccessary, shadow page table is sense way to recovery page talbe when
gpu reset happens.
We need to allocate GTT bo as the shadow of VRAM bo when creating page table,
and make them 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.

Chunming Zhou (19):
  drm/amdgpu: add shadow bo support
  drm/amdgpu: validate shadow as well when validating bo
  drm/amdgpu: allocate shadow for pd/pt bo
  drm/amdgpu: add shadow flag
  drm/amdgpu: sync bo and shadow
  drm/amdgpu: implement vm recovery function from shadow
  drm/amdgpu: fix vm init error path
  drm/amdgpu: add shadow_entity for shadow page table updates
  drm/amdgpu: update pd shadow bo
  drm/amdgpu: update pt shadow
  drm/amd: add last fence in sched entity
  drm/amdgpu: link all vm clients
  drm/amdgpu: add vm_list_lock
  drm/amd: add block entity function
  drm/amdgpu: add shadow fence owner
  drm/amd: block entity
  drm/amdgpu: recover page tables after gpu reset
  drm/amdgpu: add need backup function
  drm/amdgpu: add backup condition for vm

 drivers/gpu/drm/amd/amdgpu/amdgpu.h           |  25 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c        |  82 +++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    |  88 ++++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    | 104 +++++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h    |   5 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c      |   3 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c        | 270 +++++++++++++++++++-------
 drivers/gpu/drm/amd/scheduler/gpu_scheduler.c |  38 +++-
 drivers/gpu/drm/amd/scheduler/gpu_scheduler.h |   5 +
 include/uapi/drm/amdgpu_drm.h                 |   2 +
 10 files changed, 519 insertions(+), 103 deletions(-)

-- 
1.9.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2016-08-11  8:42 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-05  9:38 [PATCH 00/19] shadow page table support V2 Chunming Zhou
     [not found] ` <1470389926-5719-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2016-08-05  9:38   ` [PATCH 01/19] drm/amdgpu: add shadow bo support Chunming Zhou
2016-08-05  9:38   ` [PATCH 02/19] drm/amdgpu: validate shadow as well when validating bo Chunming Zhou
2016-08-05  9:38   ` [PATCH 03/19] drm/amdgpu: allocate shadow for pd/pt bo Chunming Zhou
2016-08-05  9:38   ` [PATCH 04/19] drm/amdgpu: add shadow flag Chunming Zhou
2016-08-05  9:38   ` [PATCH 05/19] drm/amdgpu: sync bo and shadow Chunming Zhou
2016-08-05  9:38   ` [PATCH 06/19] drm/amdgpu: implement vm recovery function from shadow Chunming Zhou
     [not found]     ` <1470389926-5719-7-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2016-08-11  8:39       ` Christian König
     [not found]         ` <17dc9ee4-35d0-3e20-8402-15524e667327-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-08-11  8:42           ` zhoucm1
2016-08-05  9:38   ` [PATCH 07/19] drm/amdgpu: fix vm init error path Chunming Zhou
2016-08-05  9:38   ` [PATCH 08/19] drm/amdgpu: add shadow_entity for shadow page table updates Chunming Zhou
2016-08-05  9:38   ` [PATCH 09/19] drm/amdgpu: update pd shadow bo Chunming Zhou
2016-08-05  9:38   ` [PATCH 10/19] drm/amdgpu: update pt shadow Chunming Zhou
2016-08-05  9:38   ` [PATCH 11/19] drm/amd: add last fence in sched entity Chunming Zhou
2016-08-05  9:38   ` [PATCH 12/19] drm/amdgpu: link all vm clients Chunming Zhou
2016-08-05  9:38   ` [PATCH 13/19] drm/amdgpu: add vm_list_lock Chunming Zhou
2016-08-05  9:38   ` [PATCH 14/19] drm/amd: add block entity function Chunming Zhou
2016-08-05  9:38   ` [PATCH 15/19] drm/amdgpu: add shadow fence owner Chunming Zhou
2016-08-05  9:38   ` [PATCH 16/19] drm/amd: block entity Chunming Zhou
2016-08-05  9:38   ` [PATCH 17/19] drm/amdgpu: recover page tables after gpu reset Chunming Zhou
2016-08-05  9:38   ` [PATCH 18/19] drm/amdgpu: add need backup function Chunming Zhou
2016-08-05  9:38   ` [PATCH 19/19] drm/amdgpu: add backup condition for vm Chunming Zhou
2016-08-05 10:12   ` [PATCH 00/19] shadow page table support V2 Edward O'Callaghan
2016-08-08 11:04   ` Christian König
     [not found]     ` <9156b55f-8440-1003-6587-dc2e97a7a4cb-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-08-09  8:37       ` zhoucm1
2016-08-10  6:02       ` zhoucm1
     [not found]         ` <57AAC38B.7070101-5C7GfCeVMHo@public.gmane.org>
2016-08-10 11:14           ` Christian König
     [not found]             ` <ea9315d9-cbeb-c5ad-0589-04d04ce16f1e-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-08-10 21:19               ` Deucher, Alexander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.