[PATCH v7 0/9] drm/vc4: hdmi: Support the 10/12 bit output

Maxime Ripard maxime at cerno.tech
Tue Dec 15 10:42:34 EST 2020


Here's some patches to enable the HDR output in the RPi4/BCM2711 HDMI

Let me know what you think,

Changes from v6:
  - Addressed the issues pointed out by Dave
  - Rebased on current drm-misc-next

Changes from v5:
  - Fixed the connector->state access in the connector state reset
  - Added the tags from Thomas and Dave

Changes from v4:
  - Added the tags from Thomas
  - Fixed an issue with the clock doubling
  - Changed a comment to match the code being introduced

Changes from v3:
  - Don't dereference the connector->state pointer if kzalloc failed

Changes from v2:
  - Rebased on current drm-misc-next
  - Fixed a bug that was dropping the refresh rate when the bpc count
    was increased

Changes from v1:
  - Added the coccinelle script to the first patch
  - Fixed the pixel_rate ramp up

Maxime Ripard (9):
  drm/vc4: hvs: Align the HVS atomic hooks to the new API
  drm/vc4: Pass the atomic state to encoder hooks
  drm/vc4: hdmi: Take into account the clock doubling flag in
  drm/vc4: hdmi: Don't access the connector state in reset if kmalloc
  drm/vc4: hdmi: Create a custom connector state
  drm/vc4: hdmi: Store pixel frequency in the connector state
  drm/vc4: hdmi: Use the connector state pixel rate for the PHY
  drm/vc4: hdmi: Limit the BCM2711 to the max without scrambling
  drm/vc4: hdmi: Enable 10/12 bpc output

 drivers/gpu/drm/vc4/vc4_crtc.c      |  24 ++---
 drivers/gpu/drm/vc4/vc4_drv.h       |  19 ++--
 drivers/gpu/drm/vc4/vc4_hdmi.c      | 155 +++++++++++++++++++++++++---
 drivers/gpu/drm/vc4/vc4_hdmi.h      |  23 +++--
 drivers/gpu/drm/vc4/vc4_hdmi_phy.c  |   8 +-
 drivers/gpu/drm/vc4/vc4_hdmi_regs.h |   9 ++
 drivers/gpu/drm/vc4/vc4_hvs.c       |  18 ++--
 drivers/gpu/drm/vc4/vc4_txp.c       |  10 +-
 8 files changed, 208 insertions(+), 58 deletions(-)


More information about the linux-arm-kernel mailing list