linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] drm/rockchip: Fix crtc duplicate state and crtc reset funcs
@ 2023-06-21 22:33 Jonas Karlman
  2023-06-21 22:33 ` [PATCH v2 1/5] drm/rockchip: vop: Fix reset of state in duplicate state crtc funcs Jonas Karlman
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Jonas Karlman @ 2023-06-21 22:33 UTC (permalink / raw)
  To: Sandy Huang, Heiko Stuebner, David Airlie, Daniel Vetter
  Cc: Mark Yao, Maarten Lankhorst, Andy Yan, Sascha Hauer, dri-devel,
	linux-arm-kernel, linux-rockchip, linux-kernel, Jonas Karlman

This series fixes a reset of state in duplicate state crtc funcs for VOP
driver, a possible crash and ensure crtc reset helper is called in VOP2
driver.

Patch 1 use kmemdup instead of kzalloc to duplicate the crtc state.
Patch 2 change to use crtc and plane cleanup helpers directly.
Patch 3 adds a null guard for allocation failure.
Patch 4 adds a crash guard for empty crtc state.
Patch 5 adds a missing call to crtc reset helper.

This is the next part of an ongoing effort to upstream HDMI 2.0 support
used in LibreELEC for the past 3+ years.

Changes in v2:
- Handle possible allocation failure in crtc reset funcs
- Collect r-b tags

This series is also available at [1].

[1] https://github.com/Kwiboo/linux-rockchip/commits/next-20230621-duplicate-state

Jonas Karlman (5):
  drm/rockchip: vop: Fix reset of state in duplicate state crtc funcs
  drm/rockchip: vop: Use cleanup helper directly as destroy funcs
  drm/rockchip: vop: Fix call to crtc reset helper
  drm/rockchip: vop2: Don't crash for invalid duplicate_state
  drm/rockchip: vop2: Add missing call to crtc reset helper

 drivers/gpu/drm/rockchip/rockchip_drm_vop.c  | 24 +++++-------
 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 39 ++++++++++----------
 2 files changed, 28 insertions(+), 35 deletions(-)

-- 
2.41.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2023-08-12 22:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-21 22:33 [PATCH v2 0/5] drm/rockchip: Fix crtc duplicate state and crtc reset funcs Jonas Karlman
2023-06-21 22:33 ` [PATCH v2 1/5] drm/rockchip: vop: Fix reset of state in duplicate state crtc funcs Jonas Karlman
2023-06-21 22:33 ` [PATCH v2 2/5] drm/rockchip: vop: Use cleanup helper directly as destroy funcs Jonas Karlman
2023-06-21 22:33 ` [PATCH v2 3/5] drm/rockchip: vop: Fix call to crtc reset helper Jonas Karlman
2023-06-22 11:35   ` Sascha Hauer
2023-06-21 22:33 ` [PATCH v2 4/5] drm/rockchip: vop2: Don't crash for invalid duplicate_state Jonas Karlman
2023-06-21 22:33 ` [PATCH v2 5/5] drm/rockchip: vop2: Add missing call to crtc reset helper Jonas Karlman
2023-06-22 11:34   ` Sascha Hauer
2023-08-12 14:18 ` [PATCH v2 0/5] drm/rockchip: Fix crtc duplicate state and crtc reset funcs Jonas Karlman
2023-08-12 22:33   ` Heiko Stübner
2023-08-12 22:28 ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).