diff options
author | Rob Herring <robh@kernel.org> | 2019-07-26 16:09:43 -0600 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-08-12 14:21:37 -0600 |
commit | 187d2929206e6b098312c174ea873e4cedf5420d (patch) | |
tree | c0679df7d1c566543b748fadaf5e00a67bcf46c1 /drivers/gpu/drm/panfrost/TODO | |
parent | b31bdd1389fc765c07ab3d5b341092cb16807d29 (diff) | |
download | lwn-187d2929206e6b098312c174ea873e4cedf5420d.tar.gz lwn-187d2929206e6b098312c174ea873e4cedf5420d.zip |
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
Diffstat (limited to 'drivers/gpu/drm/panfrost/TODO')
-rw-r--r-- | drivers/gpu/drm/panfrost/TODO | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panfrost/TODO b/drivers/gpu/drm/panfrost/TODO index d4c7fb7e7d13..e7727b292355 100644 --- a/drivers/gpu/drm/panfrost/TODO +++ b/drivers/gpu/drm/panfrost/TODO @@ -10,8 +10,6 @@ The hard part is handling when more address spaces are needed than what the h/w provides. -- Support pinning pages on demand (GPU page faults). - - Support userspace controlled GPU virtual addresses. Needed for Vulkan. (Tomeu) - Compute job support. So called 'compute only' jobs need to be plumbed up to |