linux/drivers/gpu/drm/vc4
Eric Anholt 4c70ac7639 drm/vc4: Add a pad field to align drm_vc4_submit_cl to 64 bits.
I had originally asked Stefan Schake to drop the pad field from the
syncobj changes that just landed, because I couldn't come up with a
reason to align to 64 bits.

Talking with Dave Airlie about the new v3d driver's submit ioctl, we
came up with a reason: sizeof() on 64-bit platforms may align to 64
bits, in which case the userspace will be submitting the aligned size
and the final 32 bits won't be zero-padded by the kernel.  If
userspace doesn't zero-fill, then a future ABI change adding a 32-bit
field at the end could potentially cause the kernel to read undefined
data from old userspace (our userspace happens to use structure
initialization that zero-fills, but as a general rule we try not to
rely on that in the kernel).

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180430235927.28712-1-eric@anholt.net
Reviewed-by: Stefan Schake <stschake@gmail.com>
2018-05-03 15:20:09 -07:00
..
Kconfig drm/vc4: add HDMI CEC support 2017-07-26 12:15:12 -07:00
Makefile drm/vc4: Expose performance counters to userspace 2018-02-10 22:23:26 +00:00
vc4_bo.c drm/vc4: Fix false positive WARN() backtrace on refcount_inc() usage 2017-12-07 10:09:43 +01:00
vc4_crtc.c drm/vc4: Add CTM support 2018-04-23 11:32:55 -07:00
vc4_debugfs.c drm/vc4: Add DSI driver 2017-02-01 12:51:23 -08:00
vc4_dpi.c drm/vc4: remove bridge from driver internal structure 2017-10-10 11:32:54 +02:00
vc4_drv.c drm/vc4: Enable syncobj support 2018-04-30 16:04:27 -07:00
vc4_drv.h drm/vc4: Syncobj import support 2018-04-30 16:04:14 -07:00
vc4_dsi.c drm/vc4: Skip ULPS latching when we're in that ULPS state already. 2018-04-30 13:57:13 -07:00
vc4_fence.c drm/vc4: Expose dma-buf fences for V3D rendering. 2017-04-13 11:00:28 -07:00
vc4_gem.c drm/vc4: Add a pad field to align drm_vc4_submit_cl to 64 bits. 2018-05-03 15:20:09 -07:00
vc4_hdmi.c drm/vc4: Replace long HDMI udelay with usleep_range 2018-03-05 10:19:21 -08:00
vc4_hvs.c drm/vc4: Add CTM registers to debugfs 2018-04-23 11:50:22 -07:00
vc4_irq.c drm/vc4: Expose performance counters to userspace 2018-02-10 22:23:26 +00:00
vc4_kms.c drm/vc4: Add CTM support 2018-04-23 11:32:55 -07:00
vc4_packet.h
vc4_perfmon.c drm/vc4: Expose performance counters to userspace 2018-02-10 22:23:26 +00:00
vc4_plane.c drm/vc4: Add support for plane alpha 2018-04-23 10:51:53 -07:00
vc4_qpu_defines.h
vc4_regs.h drm/vc4: Add support for plane alpha 2018-04-23 10:51:53 -07:00
vc4_render_cl.c drm/vc4: Add exec flags to allow forcing a specific X/Y tile walk order. 2017-08-08 13:26:44 -07:00
vc4_trace_points.c
vc4_trace.h drm/vc4: Use correct path to trace include 2017-09-05 11:11:20 +02:00
vc4_v3d.c drm/vc4: make function vc4_allocate_bin_bo static 2018-04-30 10:59:00 -07:00
vc4_validate_shaders.c drm/vc4: Demote user-accessible DRM_ERROR paths to DRM_DEBUG. 2017-08-08 13:20:11 -07:00
vc4_validate.c drm/vc4_validate: Remove VLA usage 2018-03-16 15:51:52 -07:00
vc4_vec.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00