linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/6] drm/vc4: hdmi: Fix CEC access while disabled
@ 2021-08-19 13:59 Maxime Ripard
  2021-08-19 13:59 ` [PATCH v3 1/6] drm/vc4: select PM Maxime Ripard
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Maxime Ripard @ 2021-08-19 13:59 UTC (permalink / raw)
  To: dri-devel, Daniel Vetter, David Airlie, Maarten Lankhorst,
	Thomas Zimmermann, Maxime Ripard
  Cc: linux-kernel, Dave Stevenson, Phil Elwell, Tim Gover, Dom Cobley,
	Boris Brezillon, linux-rpi-kernel, Hans Verkuil,
	bcm-kernel-feedback-list, Emma Anholt, Nicolas Saenz Julienne,
	Maxime Ripard

Hi,

This series aims at fixing a complete and silent hang when one tries to use CEC
while the display output is off.

This can be tested with:

echo off > /sys/class/drm/card0-HDMI-A-1/status
cec-ctl --tuner -p 1.0.0.0
cec-compliance

This series addresses it by making sure the HDMI controller is powered up as
soon as the CEC device is opened by the userspace.

Let me know what you think,
Maxime

Changes from v2:
  - Rebased on top of drm-misc-fixes
  - Fixed a build error

Changes from v1:
  - More fixes
  - Added a big warning if we try to access a register while the device is
    disabled.
  - Fixed the pre_crtc_configure error path

Maxime Ripard (6):
  drm/vc4: select PM
  drm/vc4: hdmi: Make sure the controller is powered up during bind
  drm/vc4: hdmi: Rework the pre_crtc_configure error handling
  drm/vc4: hdmi: Split the CEC disable / enable functions in two
  drm/vc4: hdmi: Make sure the device is powered with CEC
  drm/vc4: hdmi: Warn if we access the controller while disabled

 drivers/gpu/drm/vc4/Kconfig         |   1 +
 drivers/gpu/drm/vc4/vc4_hdmi.c      | 125 ++++++++++++++++++----------
 drivers/gpu/drm/vc4/vc4_hdmi_regs.h |   6 ++
 3 files changed, 90 insertions(+), 42 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-09-23 15:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19 13:59 [PATCH v3 0/6] drm/vc4: hdmi: Fix CEC access while disabled Maxime Ripard
2021-08-19 13:59 ` [PATCH v3 1/6] drm/vc4: select PM Maxime Ripard
2021-09-10 13:40   ` Dave Stevenson
2021-09-19 16:40   ` [PATCH v3 1/6] drm/vc4: select PM (openrisc) Randy Dunlap
2021-09-22  8:41     ` Maxime Ripard
2021-09-22 15:49       ` Nathan Chancellor
2021-09-23 14:52         ` Maxime Ripard
2021-09-23 14:55           ` Nathan Chancellor
2021-09-23 15:58             ` Maxime Ripard
2021-08-19 13:59 ` [PATCH v3 2/6] drm/vc4: hdmi: Make sure the controller is powered up during bind Maxime Ripard
2021-08-19 13:59 ` [PATCH v3 3/6] drm/vc4: hdmi: Rework the pre_crtc_configure error handling Maxime Ripard
2021-08-19 13:59 ` [PATCH v3 4/6] drm/vc4: hdmi: Split the CEC disable / enable functions in two Maxime Ripard
2021-08-19 13:59 ` [PATCH v3 5/6] drm/vc4: hdmi: Make sure the device is powered with CEC Maxime Ripard
2021-08-19 13:59 ` [PATCH v3 6/6] drm/vc4: hdmi: Warn if we access the controller while disabled Maxime Ripard
2021-09-14  7:55 ` [PATCH v3 0/6] drm/vc4: hdmi: Fix CEC access " Maxime Ripard

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