linux_dsm_epyc7002/include/uapi
Rob Herring 187d292920 drm/panfrost: Add support for GPU heap allocations
The midgard/bifrost GPUs need to allocate GPU heap memory which is
allocated on GPU page faults and not pinned in memory. The vendor driver
calls this functionality GROW_ON_GPF.

This implementation assumes that BOs allocated with the
PANFROST_BO_NOEXEC flag are never mmapped or exported. Both of those may
actually work, but I'm unsure if there's some interaction there. It
would cause the whole object to be pinned in memory which would defeat
the point of this.

On faults, we map in 2MB at a time in order to utilize huge pages (if
enabled). Currently, once we've mapped pages in, they are only unmapped
if the BO is freed. Once we add shrinker support, we can unmap pages
with the shrinker.

Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190808222200.13176-9-robh@kernel.org
2019-08-12 14:21:37 -06:00
..
asm-generic Merge branch 'akpm' (patches from Andrew) 2019-07-17 08:58:04 -07:00
drm drm/panfrost: Add support for GPU heap allocations 2019-08-12 14:21:37 -06:00
linux Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
misc powerpc updates for 5.3 2019-07-13 16:08:36 -07:00
mtd mtd: abi: do not use C++ style comments in uapi header 2019-07-07 20:31:29 +02:00
rdma docs conversion for v5.3-rc1 2019-07-16 12:21:41 -07:00
scsi scsi: libfc: remove duplicate GPL boilerplate text 2019-05-21 06:16:22 -04:00
sound ASoC: SOF: Add DMIC token for unmute gain ramp time 2019-06-13 19:55:44 +01:00
video
xen
Kbuild kbuild: re-implement Makefile.headersinst without recursion 2019-06-15 19:57:02 +09:00