All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] drm/rockchip: No more post-atomic_check fixups
@ 2025-10-15 11:00 Daniel Stone
  2025-10-15 11:00 ` [PATCH 01/13] drm/rockchip: Demote normal drm_err to debug Daniel Stone
                   ` (13 more replies)
  0 siblings, 14 replies; 24+ messages in thread
From: Daniel Stone @ 2025-10-15 11:00 UTC (permalink / raw)
  To: dri-devel; +Cc: andy.yan, hjc, heiko, cristian.ciocaltea, kernel

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(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2025-11-12  9:43 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-15 11:00 [PATCH 00/13] drm/rockchip: No more post-atomic_check fixups Daniel Stone
2025-10-15 11:00 ` [PATCH 01/13] drm/rockchip: Demote normal drm_err to debug Daniel Stone
2025-10-15 11:00 ` [PATCH 02/13] drm/rockchip: Declare framebuffer width/height bounds Daniel Stone
2025-10-15 11:00 ` [PATCH 03/13] drm/rockchip: Return error code for errors Daniel Stone
2025-10-15 11:00 ` [PATCH 04/13] drm/rockchip: Rename variables for clarity Daniel Stone
2025-10-15 11:00 ` [PATCH 05/13] drm/rockchip: Use temporary variables Daniel Stone
2025-10-15 11:00 ` [PATCH 06/13] drm/rockchip: Switch impossible format conditional to WARN_ON Daniel Stone
2025-10-20 13:10   ` Heiko Stuebner
2025-10-20 13:25     ` Heiko Stuebner
2025-10-20 13:47       ` Daniel Stone
2025-10-20 14:00         ` Heiko Stuebner
2025-10-15 11:00 ` [PATCH 07/13] drm/rockchip: Switch impossible pos " Daniel Stone
2025-10-15 11:00 ` [PATCH 08/13] drm/rockchip: Fix eSmart test condition Daniel Stone
2025-11-12  8:16   ` Andy Yan
2025-10-15 11:00 ` [PATCH 09/13] drm/rockchip: Enforce scaling workaround in plane_check Daniel Stone
2025-11-12  8:13   ` Andy Yan
2025-10-15 11:00 ` [PATCH 10/13] drm/rockchip: Enforce AFBC source alignment " Daniel Stone
2025-11-12  8:21   ` Andy Yan
2025-11-12  8:34     ` Andy Yan
2025-11-12  9:42       ` Andy Yan
2025-10-15 11:00 ` [PATCH 11/13] drm/rockchip: Enforce AFBC transform stride align " Daniel Stone
2025-10-15 11:00 ` [PATCH 12/13] drm/rockchip: Use drm_is_afbc helper function Daniel Stone
2025-10-15 11:00 ` [PATCH 13/13] drm/rockchip: Simplify format_mod_supported Daniel Stone
2025-10-20 14:00 ` (subset) [PATCH 00/13] drm/rockchip: No more post-atomic_check fixups Heiko Stuebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.