mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 03:30:22 +01:00
In order to use userptr, the kernel tracks the owner's mm with a mmu_notifier. Setting that is very expensive - it involves taking all mm_locks and a stop_machine(). This tracking lives only for as long as the client is using userptr objects - so if the client allocates then frees a userptr in a loop, we will be executing that heavyweight setup everytime. To ammoritize this cost, just leak the test bo and the single backing page we use for detecting userptr. v2: Free the object and memory when bufmgr is destroyed. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> |
||
|---|---|---|
| .. | ||
| tests | ||
| .gitignore | ||
| Android.mk | ||
| intel-symbol-check | ||
| intel_aub.h | ||
| intel_bufmgr.c | ||
| intel_bufmgr.h | ||
| intel_bufmgr_fake.c | ||
| intel_bufmgr_gem.c | ||
| intel_bufmgr_priv.h | ||
| intel_chipset.h | ||
| intel_debug.h | ||
| intel_decode.c | ||
| libdrm_intel.pc.in | ||
| Makefile.am | ||
| Makefile.sources | ||
| mm.c | ||
| mm.h | ||
| test_decode.c | ||