kernel_optimize_test/include/uapi/drm
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
..
amdgpu_drm.h drm/amdgpu: extend AMDGPU_CTX_PRIORITY_NORMAL comment 2019-07-16 13:08:30 -05:00
armada_drm.h
drm_fourcc.h drm/fourcc: Fix conflicting Y41x definitions 2019-03-21 09:49:04 +01:00
drm_mode.h drm: Add SPI connector type 2019-07-23 15:44:49 +02:00
drm_sarea.h
drm.h drm: Fix drm.h uapi header for GNU/kFreeBSD 2019-05-16 09:25:15 -07:00
etnaviv_drm.h
exynos_drm.h
i810_drm.h
i915_drm.h drm/i915: Engine discovery query 2019-05-22 14:17:55 +01:00
lima_drm.h drm/lima: driver for ARM Mali4xx GPUs 2019-04-01 10:45:20 -07:00
mga_drm.h
msm_drm.h drm/msm/gpu: Add submit queue queries 2019-04-19 11:50:06 -07:00
nouveau_drm.h
omap_drm.h
panfrost_drm.h drm/panfrost: Add a no execute flag for BO allocations 2019-08-12 14:20:06 -06:00
qxl_drm.h
r128_drm.h
radeon_drm.h
savage_drm.h
sis_drm.h
tegra_drm.h
v3d_drm.h drm/v3d: Add support for compute shader dispatch. 2019-04-18 09:54:10 -07:00
vc4_drm.h
vgem_drm.h
via_drm.h
virtgpu_drm.h
vmwgfx_drm.h Revert "Merge branch 'vmwgfx-next' of git://people.freedesktop.org/~thomash/linux into drm-next" 2019-07-16 04:07:13 +10:00