linux/drivers/gpu/drm/panfrost
Rob Herring 203270c025 drm/panfrost: Add a no execute flag for BO allocations
Executable buffers have an alignment restriction that they can't cross
16MB boundary as the GPU program counter is 24-bits. This restriction is
currently not handled and we just get lucky. As current userspace
assumes all BOs are executable, that has to remain the default. So add a
new PANFROST_BO_NOEXEC flag to allow userspace to indicate which BOs are
not executable.

There is also a restriction that executable buffers cannot start or end
on a 4GB boundary. This is mostly avoided as there is only 4GB of space
currently and the beginning is already blocked out for NULL ptr
detection. Add support to handle this restriction fully regardless of
the current constraints.

For existing userspace, all created BOs remain executable, but the GPU
VA alignment will be increased to the size of the BO. This shouldn't
matter as there is plenty of GPU VA space.

Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190808222200.13176-6-robh@kernel.org
2019-08-12 14:20:06 -06:00
..
Kconfig drm/panfrost: Require the simple_ondemand governor 2019-06-10 09:30:34 -06:00
Makefile drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_devfreq.c drm: Switch to use DEVFREQ_GOV_SIMPLE_ONDEMAND constant 2019-07-25 16:14:43 -06:00
panfrost_devfreq.h
panfrost_device.c drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_device.h drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_drv.c drm/panfrost: Add a no execute flag for BO allocations 2019-08-12 14:20:06 -06:00
panfrost_features.h
panfrost_gem_shrinker.c drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_gem.c drm/panfrost: Add a no execute flag for BO allocations 2019-08-12 14:20:06 -06:00
panfrost_gem.h drm/panfrost: Add a no execute flag for BO allocations 2019-08-12 14:20:06 -06:00
panfrost_gpu.c drm/panfrost: Export all GPU feature registers 2019-07-25 16:10:52 -06:00
panfrost_gpu.h
panfrost_issues.h
panfrost_job.c drm/scheduler: rework job destruction 2019-05-02 15:45:48 -05:00
panfrost_job.h
panfrost_mmu.c drm/panfrost: Add a no execute flag for BO allocations 2019-08-12 14:20:06 -06:00
panfrost_mmu.h
panfrost_perfcnt.c drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_perfcnt.h drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_regs.h drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
TODO drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00