mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 01:52:13 +00:00
b2295c247c
All code paths which populate userptr BOs are fine with the get_pages function taking the mmap_sem lock. This allows to get rid of the pretty involved architecture with a worker being scheduled if the mmap_sem needs to be taken, but instead call GUP directly and allow it to take the lock if necessary. This simplifies the code a lot and removes the possibility of this function returning -EAGAIN, which complicates object population handling at the callers. A notable change in behavior is that we don't allow a process to populate objects with user pages from a foreign MM anymore. This would have been an invalid use before, as it breaks the assumptions made in the etnaviv kernel driver to enfore cache coherence. We now disallow this by rejecting the request to populate those objects. Well behaving userspace is unaffected by this change. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> |
||
---|---|---|
.. | ||
cmdstream.xml.h | ||
common.xml.h | ||
etnaviv_buffer.c | ||
etnaviv_cmd_parser.c | ||
etnaviv_cmdbuf.c | ||
etnaviv_cmdbuf.h | ||
etnaviv_drv.c | ||
etnaviv_drv.h | ||
etnaviv_dump.c | ||
etnaviv_dump.h | ||
etnaviv_gem_prime.c | ||
etnaviv_gem_submit.c | ||
etnaviv_gem.c | ||
etnaviv_gem.h | ||
etnaviv_gpu.c | ||
etnaviv_gpu.h | ||
etnaviv_iommu_v2.c | ||
etnaviv_iommu.c | ||
etnaviv_iommu.h | ||
etnaviv_mmu.c | ||
etnaviv_mmu.h | ||
etnaviv_perfmon.c | ||
etnaviv_perfmon.h | ||
Kconfig | ||
Makefile | ||
state_3d.xml.h | ||
state_hi.xml.h | ||
state.xml.h |