Skip to content

drm/rockchip: No more post-atomic_check fixups

Daniel Stone dri-devel 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/13drm/rockchip: Demote normal drm_err to debugdrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+9 -90 replies
2/13drm/rockchip: Declare framebuffer width/height boundsdrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+6 -00 replies
3/13drm/rockchip: Return error code for errorsdrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+1 -20 replies
4/13drm/rockchip: Rename variables for claritydrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+19 -190 replies
5/13drm/rockchip: Use temporary variablesdrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+15 -90 replies
6/13drm/rockchip: Switch impossible format conditional to WARN_ONdrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+2 -24 replies
7/13drm/rockchip: Switch impossible pos conditional to WARN_ONdrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+8 -200 replies
8/13drm/rockchip: Fix eSmart test conditiondrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+4 -61 reply
9/13drm/rockchip: Enforce scaling workaround in plane_checkdrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+11 -101 reply
10/13drm/rockchip: Enforce AFBC source alignment in plane_checkdrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+10 -63 replies
11/13drm/rockchip: Enforce AFBC transform stride align in plane_checkdrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+9 -30 replies
12/13drm/rockchip: Use drm_is_afbc helper functiondrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+1 -10 replies
13/13drm/rockchip: Simplify format_mod_supporteddrivers/gpu/drm/rockchip/rockchip_drm_vop2.c+22 -340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] drm/rockchip: No more post-atomic_check fixups

Hi,
This series is a pretty small and consistent one for VOP2. The atomic uAPI very clearly specifies that drivers should either do what userspace requested (on a successful commit), or fail atomic_check if it is not for any reason possible to do what userspace requested.

VOP2 is unfortunately littered with a bunch of cases where it will apply fixups after atomic_check - doing something different to what userspace requested, e.g. clipping or aligning regions - or throw error messages into the log when userspace does request a condition which can't be met.

Doing something different to what was requested is bad because it results in unexpected visual output which can look like artifacts. Throwing errors into the log is bad because generic userspace will reasonably attempt to try any configuration it can. For example, throwing an error message on a plane not being aligned to a 16 pixel boundary can result in 15 frames' worth of error output in the log when a window is being animated across a screen.

This series removes all post-check fixups - failing the check if the configuration cannot be applied - and also demotes all messages about unsupported configurations to DEBUG_KMS.

Cheers,
Daniel

Daniel Stone (13):
drm/rockchip: Demote normal drm_err to debug drm/rockchip: Declare framebuffer width/height bounds drm/rockchip: Return error code for errors drm/rockchip: Rename variables for clarity drm/rockchip: Use temporary variables
drm/rockchip: Switch impossible format conditional to WARN_ON drm/rockchip: Switch impossible pos conditional to WARN_ON drm/rockchip: Fix eSmart test condition
drm/rockchip: Enforce scaling workaround in plane_check drm/rockchip: Enforce AFBC source alignment in plane_check drm/rockchip: Enforce AFBC transform stride align in plane_check drm/rockchip: Use drm_is_afbc helper function drm/rockchip: Simplify format_mod_supported

 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 202 +++++++++----------
 1 file changed, 99 insertions(+), 103 deletions(-)
Signature · 1 line
2.51.0