Daniel Vetter
ccc3b2b348
drm: Move simple_display_pipe prepare_fb helper into gem fb helpers
...
There's nothing tinydrm specific to this, and there's a few more
copies of the same in various other drivers.
Signed-off-by: Daniel Vetter <[email protected] >
Cc: Gustavo Padovan <[email protected] >
Cc: Maarten Lankhorst <[email protected] >
Cc: Sean Paul <[email protected] >
Cc: David Airlie <[email protected] >
Cc: David Lechner <[email protected] >
Cc: "Noralf Trønnes" <[email protected] >
Cc: Daniel Vetter <[email protected] >
Cc: Shawn Guo <[email protected] >
Cc: Neil Armstrong <[email protected] >
Cc: Daniel Stone <[email protected] >
Cc: Haneen Mohammed <[email protected] >
Cc: Ben Widawsky <[email protected] >
Cc: "Ville Syrjälä" <[email protected] >
Reviewed-by: Oleksandr Andrushchenko <[email protected] >
Acked-by: David Lechner <[email protected] >
Reviewed-by: Noralf Trønnes <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-04-24 13:57:22 +02:00
Ville Syrjälä
e85d30060e
drm/tinydrm: Make fb_dirty into a lower level hook
...
mipi_dbi_enable_flush() wants to call the fb->dirty() hook from the
bowels of the .atomic_enable() hook. That prevents us from taking the
plane mutex in fb->dirty() unless we also plumb down the acquire
context.
Instead it seems simpler to split the fb->dirty() into a tinydrm
specific lower level hook that can be called from
mipi_dbi_enable_flush() and from a generic higher level
tinydrm_fb_dirty() helper. As we don't have a tinydrm specific
vfuncs table we'll just stick it into tinydrm_device directly
for now.
v2: Deal with the fb->dirty() in tinydrm_display_pipe_update() as well (Noralf)
Cc: "Noralf Trønnes" <[email protected] >
Cc: David Lechner <[email protected] >
Signed-off-by: Ville Syrjälä <[email protected] >
Reviewed-by: Noralf Trønnes <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Noralf Trønnes <[email protected] >
Tested-by: Noralf Trønnes <[email protected] >
2018-03-28 19:19:32 +03:00
Noralf Trønnes
fe4be3b8f3
drm/tinydrm: Embed the mode in tinydrm_connector
...
Embed the mode in tinydrm_connector instead of doing an devm_ allocation.
Remove unnecessary use of ret variable at the end of
tinydrm_display_pipe_init().
Signed-off-by: Noralf Trønnes <[email protected] >
Reviewed-by: David Lechner <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-01-15 15:16:59 +01:00
Haneen Mohammed
9205281cb3
drm/tinydrm: Remove explicit .best_encoder assignment
...
Since the driver is relying on the atomic helpers, remove the explicit
.best_encoder assignment and let the core call
drm_atomic_helper_best_encoder().
Signed-off-by: Haneen Mohammed <[email protected] >
Signed-off-by: Noralf Trønnes <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/20171010205858.GA4806@Haneen
2017-10-13 17:34:51 +02:00
Noralf Trønnes
cce1a87788
drm/tinydrm: Use drm_gem_framebuffer_helper
...
Use drm_gem_framebuffer_helper directly instead of the cma
library wrappers.
Signed-off-by: Noralf Trønnes <[email protected] >
Reviewed-by: Eric Anholt <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-10-01 16:59:49 +02:00
Daniel Vetter
c07dcd61a0
drm: Document device unplug infrastructure
...
While at it, also ocd and give them a consistent drm_dev_ prefix, like
the other device instance functionality. Plus move the functions into
the right places.
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-08-11 10:48:03 +02:00
Daniel Vetter
7d902c05b4
drm: Nuke drm_atomic_helper_connector_dpms
...
It's dead code, the core handles all this directly now.
The only special case is nouveau and tda988x which used one function
for both legacy modeset code and -nv50 atomic world instead of 2
vtables. But amounts to exactly the same.
v2: Rebase over the panel/brideg refactorings in stm/ltdc.
Signed-off-by: Daniel Vetter <[email protected] >
Cc: Archit Taneja <[email protected] >
Cc: Andrzej Hajda <[email protected] >
Cc: Laurent Pinchart <[email protected] >
Cc: Peter Senna Tschudin <[email protected] >
Cc: Martin Donnelly <[email protected] >
Cc: Martyn Welch <[email protected] >
Cc: Daniel Vetter <[email protected] >
Cc: Jani Nikula <[email protected] >
Cc: Sean Paul <[email protected] >
Cc: David Airlie <[email protected] >
Cc: Inki Dae <[email protected] >
Cc: Joonyoung Shim <[email protected] >
Cc: Seung-Woo Kim <[email protected] >
Cc: Kyungmin Park <[email protected] >
Cc: Kukjin Kim <[email protected] >
Cc: Krzysztof Kozlowski <[email protected] >
Cc: Stefan Agner <[email protected] >
Cc: Alison Wang <[email protected] >
Cc: Russell King <[email protected] >
Cc: Philipp Zabel <[email protected] >
Cc: CK Hu <[email protected] >
Cc: Matthias Brugger <[email protected] >
Cc: Neil Armstrong <[email protected] >
Cc: Carlo Caione <[email protected] >
Cc: Kevin Hilman <[email protected] >
Cc: Marek Vasut <[email protected] >
Cc: Ben Skeggs <[email protected] >
Cc: Tomi Valkeinen <[email protected] >
Cc: Eric Anholt <[email protected] >
Cc: Mark Yao <[email protected] >
Cc: Heiko Stuebner <[email protected] >
Cc: Benjamin Gaignard <[email protected] >
Cc: Vincent Abriou <[email protected] >
Cc: Yannick Fertre <[email protected] >
Cc: Philippe Cornu <[email protected] >
Cc: Maxime Ripard <[email protected] >
Cc: Chen-Yu Tsai <[email protected] >
Cc: Thierry Reding <[email protected] >
Cc: Jonathan Hunter <[email protected] >
Cc: Jyri Sarha <[email protected] >
Cc: Gerd Hoffmann <[email protected] >
Cc: Shawn Guo <[email protected] >
Cc: John Stultz <[email protected] >
Cc: Lars-Peter Clausen <[email protected] >
Cc: Sergei Shtylyov <[email protected] >
Cc: Jeffy Chen <[email protected] >
Cc: Tomeu Vizoso <[email protected] >
Cc: Yakir Yang <[email protected] >
Cc: Marek Szyprowski <[email protected] >
Cc: Jose Abreu <[email protected] >
Cc: Romain Perier <[email protected] >
Cc: Kieran Bingham <[email protected] >
Cc: Xinliang Liu <[email protected] >
Cc: Alexey Brodkin <[email protected] >
Cc: Alex Deucher <[email protected] >
Cc: Rongrong Zou <[email protected] >
Cc: Rob Clark <[email protected] >
Cc: Hai Li <[email protected] >
Cc: "Noralf Trønnes" <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: zain wang <[email protected] >
Cc: Baoyou Xie <[email protected] >
Cc: Boris Brezillon <[email protected] >
Reviewed-by: Maarten Lankhorst <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Acked-by: Neil Armstrong <[email protected] >
Reviewed-by: Neil Armstrong <[email protected] >
Acked-by: Philipp Zabel <[email protected] >
Acked-by: Archit Taneja <[email protected] >
Tested-by: Philippe Cornu <[email protected] > (on stm)
Reviewed-by: Laurent Pinchart <[email protected] >
Acked-by: Shawn Guo <[email protected] >
Acked-by: Shawn Guo <[email protected] >
Acked-by: Noralf Trønnes <[email protected] >
Acked-by: Vincent Abriou <[email protected] >
2017-08-08 14:48:48 +02:00
Ben Widawsky
e6fc3b6855
drm: Plumb modifiers through plane init
...
This is the plumbing for supporting fb modifiers on planes. Modifiers
have already been introduced to some extent, but this series will extend
this to allow querying modifiers per plane. Based on this, the client to
enable optimal modifications for framebuffers.
This patch simply allows the DRM drivers to initialize their list of
supported modifiers upon initializing the plane.
v2: A minor addition from Daniel
v3:
* Updated commit message
* s/INVALID/DRM_FORMAT_MOD_INVALID (Liviu)
* Remove some excess newlines (Liviu)
* Update comment for > 64 modifiers (Liviu)
v4: Minor comment adjustments (Liviu)
v5: Some new platforms added due to rebase
v6: Add some missed plane inits (or maybe they're new - who knows at
this point) (Daniel)
Signed-off-by: Ben Widawsky <[email protected] >
Reviewed-by: Daniel Stone <[email protected] > (v2)
Reviewed-by: Liviu Dudau <[email protected] >
Signed-off-by: Daniel Stone <[email protected] >
2017-08-01 17:50:06 +01:00
Noralf Trønnes
fa201ac2c6
drm: Add DRM support for tiny LCD displays
...
tinydrm provides helpers for very simple displays that can use
CMA backed framebuffers and need flushing on changes.
Signed-off-by: Noralf Trønnes <[email protected] >
Acked-by: Daniel Vetter <[email protected] >
Acked-by: Thierry Reding <[email protected] >
2017-02-18 18:04:58 +01:00