AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] fix gmc page fault on navi1X
@ 2020-03-13 16:09 xinhui pan
  2020-03-13 16:09 ` [PATCH v4 1/2] drm_amdgpu: Add job fence to resv conditionally xinhui pan
  2020-03-13 16:09 ` [PATCH v4 2/2] drm/amdgpu: unref pt bo after job submit xinhui pan
  0 siblings, 2 replies; 10+ messages in thread
From: xinhui pan @ 2020-03-13 16:09 UTC (permalink / raw)
  To: amd-gfx; +Cc: xinhui pan

We hit gmc page fault on navi1X.
UMR tells that the physical address of pte is bad.

Two issues:
1) we did not sync job schedule fence while update mapping.
fix it by adding bo fence to resv after every job submit.

2) we might unref page table bo during update ptes, at the same time, there
is job pending on bo. and submit a job in commit after free bo.
We need free the bo after adding all fence to bo.

change from v3:
use vm to get root bo resv.
add vm zombies list head.

change from v2:
use the correct page table bo resv

change from v1:
fix rebase issue.

xinhui pan (2):
  drm_amdgpu: Add job fence to resv conditionally
  drm/amdgpu: unref pt bo after job submit

 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c      | 24 ++++++++++++++++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h      |  3 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c |  4 +++-
 3 files changed, 27 insertions(+), 4 deletions(-)

-- 
2.17.1

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

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

end of thread, other threads:[~2020-03-16 12:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-13 16:09 [PATCH v4 0/2] fix gmc page fault on navi1X xinhui pan
2020-03-13 16:09 ` [PATCH v4 1/2] drm_amdgpu: Add job fence to resv conditionally xinhui pan
2020-03-13 16:09 ` [PATCH v4 2/2] drm/amdgpu: unref pt bo after job submit xinhui pan
2020-03-13 17:36   ` Felix Kuehling
2020-03-13 18:05     ` Christian König
2020-03-14 13:06       ` Pan, Xinhui
2020-03-16  8:15         ` Tao, Yintian
2020-03-16  9:51           ` Pan, Xinhui
2020-03-16  9:54             ` Tao, Yintian
2020-03-16 12:15           ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox