Skip to content

Getting rid of GUP and use HMM for user ptr features.

[email protected] amd-gfx dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpu/radeon: use HMM mirror instead of mmu_notifierdrivers/gpu/drm/radeon/radeon_mn.c+63 -630 replies
2/2gpu/radeon: use HMM mirror for userptr buffer object.drivers/gpu/drm/radeon/radeon.h drivers/gpu/drm/radeon/radeon_gem.c drivers/gpu/drm/radeon/radeon_mn.c +1 more+196 -1200 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] [radeon] Getting rid of GUP and use HMM for user ptr features.

From: Jérôme Glisse <[email protected]>

[This depends on some HMM patchset queued upstream see branch [1]]

This is simple change to switch to use HMM for user ptr buffer object which conveniently avoid to pin pages. I have more things in the pipe to make HMM more usefull for such cases (like sharing more resources accross multiple mirror of a same process).

Beside avoiding pining, this is also an attempt to isolate core mm from device drivers by having clearly define API and boundary where we can set expection of everyone and thus having mm folks to have to read and understand driver code and conversly having driver folks understand mm maze.

This is also part of what i want to discuss during XDC2018.

Consider this as an RFC to start the discussion.

[1] https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-radeon-v00

Cc Alex Deucher <[email protected]>
Cc Christian König <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc David (ChunMing) Zhou <[email protected]>
Cc Nicolai Hähnle <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>

Jérôme Glisse (2):
gpu/radeon: use HMM mirror instead of mmu_notifier gpu/radeon: use HMM mirror for userptr buffer object.

 drivers/gpu/drm/radeon/radeon.h     |  14 +-
 drivers/gpu/drm/radeon/radeon_gem.c |  16 +-
 drivers/gpu/drm/radeon/radeon_mn.c  | 283 +++++++++++++++++++++-------
 drivers/gpu/drm/radeon/radeon_ttm.c | 129 ++-----------
 4 files changed, 259 insertions(+), 183 deletions(-)
Signature · 6 lines
2.17.1

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