Skip to content

drm/i915: Prep work for vbt.ports[] nukage

Ville Syrjala intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/i915: Pass the whole encoder to hotplug_enables()drivers/gpu/drm/i915/i915_irq.c+24 -300 replies
2/10drm/i915: Move variables to loop contextdrivers/gpu/drm/i915/display/intel_bios.c+12 -200 replies
3/10drm/i915: Replace intel_bios_is_lspcon_present() with intel_bios_encoder_is_lspcon()drivers/gpu/drm/i915/display/intel_bios.c drivers/gpu/drm/i915/display/intel_bios.h drivers/gpu/drm/i915/display/intel_ddi.c +3 more+19 -270 replies
4/10drm/i915: Replace intel_bios_is_lane_reversal_needed() with intel_bios_encoder_lane_reversal()drivers/gpu/drm/i915/display/intel_bios.c drivers/gpu/drm/i915/display/intel_bios.h drivers/gpu/drm/i915/display/intel_ddi.c+7 -190 replies
5/10drm/i915: Replace intel_bios_is_port_hpd_inverted() with intel_bios_encoder_hpd_invert()drivers/gpu/drm/i915/display/intel_bios.c drivers/gpu/drm/i915/display/intel_bios.h drivers/gpu/drm/i915/i915_irq.c+9 -260 replies
6/10drm/i915: Consult the registested encoders for the ICL combo PHY w/adrivers/gpu/drm/i915/display/intel_display_power_well.c+14 -11 reply
7/10drm/i915: Populate encoder->devdata for g4x+ DP/HDMI portsdrivers/gpu/drm/i915/display/g4x_dp.c drivers/gpu/drm/i915/display/g4x_hdmi.c+20 -01 reply
8/10drm/i915: Pass devdata to intel_bios_port_aux_ch()drivers/gpu/drm/i915/display/g4x_dp.c drivers/gpu/drm/i915/display/g4x_hdmi.c drivers/gpu/drm/i915/display/intel_bios.c +2 more+7 -50 replies
9/10drm/i915: Iterate all child devs in intel_bios_is_port_present()drivers/gpu/drm/i915/display/intel_bios.c+10 -16 replies
10/10drm/i915: Use encoder->devdata in eDP initdrivers/gpu/drm/i915/display/intel_bios.c drivers/gpu/drm/i915/display/intel_bios.h drivers/gpu/drm/i915/display/intel_dp.c+15 -201 reply

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJani Nikula
SeriesR-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10R-b
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Intel-gfx] [PATCH 00/10] drm/i915: Prep work for vbt.ports[] nukage

From: Ville Syrjälä <[email protected]>

We need to get rid of the vbt.ports[] array. The main reason being the bogus VBTs found on many ADL laptops that declare both eDP+HDMI child devices for the same port. The goal is to probe each of those in order and stick to the first one that works. But the vbt.ports[] array gets populated before we do any output probing and, being indexed with the port, can't handle any aliasing child devices.

Here's a bit of prep work to reduce our reliance on vbt.ports[], mainly by expanding the encoder->devdata (a direct pointer to the correct vbt child device from the encoder) usage.

Ville Syrjälä (10):
drm/i915: Pass the whole encoder to hotplug_enables() drm/i915: Move variables to loop context
drm/i915: Replace intel_bios_is_lspcon_present() with
intel_bios_encoder_is_lspcon()
drm/i915: Replace intel_bios_is_lane_reversal_needed() with
intel_bios_encoder_lane_reversal()
drm/i915: Replace intel_bios_is_port_hpd_inverted() with
intel_bios_encoder_hpd_invert()
drm/i915: Consult the registested encoders for the ICL combo PHY w/a drm/i915: Populate encoder->devdata for g4x+ DP/HDMI ports drm/i915: Pass devdata to intel_bios_port_aux_ch() drm/i915: Iterate all child devs in intel_bios_is_port_present() drm/i915: Use encoder->devdata in eDP init

 drivers/gpu/drm/i915/display/g4x_dp.c         |  12 +-
 drivers/gpu/drm/i915/display/g4x_hdmi.c       |  12 +-
 drivers/gpu/drm/i915/display/intel_bios.c     | 128 ++++++------------
 drivers/gpu/drm/i915/display/intel_bios.h     |  14 +-
 drivers/gpu/drm/i915/display/intel_ddi.c      |   6 +-
 .../i915/display/intel_display_power_well.c   |  15 +-
 drivers/gpu/drm/i915/display/intel_dp.c       |  30 ++--
 drivers/gpu/drm/i915/display/intel_hdmi.c     |   2 +-
 drivers/gpu/drm/i915/display/intel_lspcon.c   |   2 +-
 drivers/gpu/drm/i915/i915_irq.c               |  59 ++++----
 10 files changed, 134 insertions(+), 146 deletions(-)
Signature · 1 line
2.39.1