All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] shadow page table support
@ 2016-08-02  7:48 Chunming Zhou
       [not found] ` <1470124147-22840-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Chunming Zhou @ 2016-08-02  7:48 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. 

Chunming Zhou (13):
  drm/amdgpu: irq resume should be immediately after gpu resume
  drm/amdgpu: add shadow bo support
  drm/amdgpu: set shadow flag for pd/pt bo
  drm/amdgpu: update shadow pt bo while update pt
  drm/amdgpu: update pd shadow while updating pd
  drm/amdgpu: implement amdgpu_vm_recover_page_table_from_shadow
  drm/amdgpu: link all vm clients
  drm/amdgpu: add vm_list_lock
  drm/amd: add block entity function
  drm/amdgpu: recover page tables after gpu reset
  drm/amd: wait neccessary dependency before running job
  drm/amdgpu: add vm recover pt fence
  drm/amdgpu: add backup condition for shadow page table

 drivers/gpu/drm/amd/amdgpu/amdgpu.h           |  15 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c        |   6 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    |  33 +++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c       |   5 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    |  36 ++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c        | 219 ++++++++++++++++++++++----
 drivers/gpu/drm/amd/scheduler/gpu_scheduler.c |  30 +++-
 drivers/gpu/drm/amd/scheduler/gpu_scheduler.h |   3 +
 include/uapi/drm/amdgpu_drm.h                 |   2 +
 9 files changed, 316 insertions(+), 33 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] 23+ messages in thread
* [PATCH 00/13] shadow page table support
@ 2016-07-28 10:11 Chunming Zhou
       [not found] ` <1469700700-25013-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Chunming Zhou @ 2016-07-28 10:11 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.

TODO: gart table should be saved as well, will generate a sperate patch set.

Chunming Zhou (13):
  drm/amdgpu: irq resume should be immediately after gpu resume
  drm/amdgpu: add shadow bo support
  drm/amdgpu: set shadow flag for pd/pt bo
  drm/amdgpu: update shadow pt bo while update pt
  drm/amdgpu: update pd shadow while updating pd
  drm/amdgpu: implement amdgpu_vm_recover_page_table_from_shadow
  drm/amdgpu: link all vm clients
  drm/amdgpu: add vm_list_lock
  drm/amd: add block entity function
  drm/amdgpu: recover page tables after gpu reset
  drm/amd: wait neccessary dependency before running job
  drm/amdgpu: add vm recover pt fence
  drm/amdgpu: add backup condition for shadow page table

 drivers/gpu/drm/amd/amdgpu/amdgpu.h           |  15 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c        |   6 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    |  33 +++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c       |   5 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    |  36 ++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c        | 219 ++++++++++++++++++++++----
 drivers/gpu/drm/amd/scheduler/gpu_scheduler.c |  30 +++-
 drivers/gpu/drm/amd/scheduler/gpu_scheduler.h |   3 +
 include/uapi/drm/amdgpu_drm.h                 |   2 +
 9 files changed, 316 insertions(+), 33 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] 23+ messages in thread

end of thread, other threads:[~2016-08-05  9:21 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02  7:48 [PATCH 00/13] shadow page table support Chunming Zhou
     [not found] ` <1470124147-22840-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2016-08-02  7:48   ` [PATCH 01/13] drm/amdgpu: irq resume should be immediately after gpu resume Chunming Zhou
2016-08-02  7:48   ` [PATCH 02/13] drm/amdgpu: add shadow bo support Chunming Zhou
2016-08-02  7:48   ` [PATCH 03/13] drm/amdgpu: set shadow flag for pd/pt bo Chunming Zhou
2016-08-02  7:48   ` [PATCH 04/13] drm/amdgpu: update shadow pt bo while update pt Chunming Zhou
2016-08-02  7:48   ` [PATCH 05/13] drm/amdgpu: update pd shadow while updating pd Chunming Zhou
2016-08-02  7:49   ` [PATCH 06/13] drm/amdgpu: implement amdgpu_vm_recover_page_table_from_shadow Chunming Zhou
2016-08-02  7:49   ` [PATCH 07/13] drm/amdgpu: link all vm clients Chunming Zhou
2016-08-02  7:49   ` [PATCH 08/13] drm/amdgpu: add vm_list_lock Chunming Zhou
2016-08-02  7:49   ` [PATCH 09/13] drm/amd: add block entity function Chunming Zhou
2016-08-02  7:49   ` [PATCH 10/13] drm/amdgpu: recover page tables after gpu reset Chunming Zhou
2016-08-02  7:49   ` [PATCH 11/13] drm/amd: wait neccessary dependency before running job Chunming Zhou
2016-08-02  7:49   ` [PATCH 12/13] drm/amdgpu: add vm recover pt fence Chunming Zhou
2016-08-02  7:49   ` [PATCH 13/13] drm/amdgpu: add backup condition for shadow page table Chunming Zhou
2016-08-03 13:39   ` [PATCH 00/13] shadow page table support Christian König
     [not found]     ` <28f9e53b-5616-89e1-202b-6dba62b7f004-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-08-04  6:05       ` zhoucm1
     [not found]         ` <57A2DB2C.7050705-5C7GfCeVMHo@public.gmane.org>
2016-08-04  9:52           ` Christian König
     [not found]             ` <88f96afd-c2c2-b4e5-8b79-e09f1bf7e742-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-08-05  2:43               ` zhoucm1
     [not found]                 ` <57A3FD55.60602-5C7GfCeVMHo@public.gmane.org>
2016-08-05  8:56                   ` Christian König
     [not found]                     ` <99f20f60-11a2-9e79-728e-d7fe754d8b47-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-08-05  9:12                       ` zhoucm1
     [not found]                         ` <57A45883.6040901-5C7GfCeVMHo@public.gmane.org>
2016-08-05  9:21                           ` Christian König
2016-08-05  9:12                       ` zhoucm1
  -- strict thread matches above, loose matches on Subject: below --
2016-07-28 10:11 Chunming Zhou
     [not found] ` <1469700700-25013-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2016-07-28 10:11   ` [PATCH 01/13] drm/amdgpu: irq resume should be immediately after gpu resume Chunming Zhou

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.