intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH 00/10] drm/i915: Prep work for vbt.ports[] nukage
@ 2023-02-08  1:54 Ville Syrjala
  2023-02-08  1:54 ` [Intel-gfx] [PATCH 01/10] drm/i915: Pass the whole encoder to hotplug_enables() Ville Syrjala
                   ` (14 more replies)
  0 siblings, 15 replies; 25+ messages in thread
From: Ville Syrjala @ 2023-02-08  1:54 UTC (permalink / raw)
  To: intel-gfx

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

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

-- 
2.39.1


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

end of thread, other threads:[~2023-02-14  9:27 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08  1:54 [Intel-gfx] [PATCH 00/10] drm/i915: Prep work for vbt.ports[] nukage Ville Syrjala
2023-02-08  1:54 ` [Intel-gfx] [PATCH 01/10] drm/i915: Pass the whole encoder to hotplug_enables() Ville Syrjala
2023-02-08  1:55 ` [Intel-gfx] [PATCH 02/10] drm/i915: Move variables to loop context Ville Syrjala
2023-02-08  1:55 ` [Intel-gfx] [PATCH 03/10] drm/i915: Replace intel_bios_is_lspcon_present() with intel_bios_encoder_is_lspcon() Ville Syrjala
2023-02-08  1:55 ` [Intel-gfx] [PATCH 04/10] drm/i915: Replace intel_bios_is_lane_reversal_needed() with intel_bios_encoder_lane_reversal() Ville Syrjala
2023-02-08  1:55 ` [Intel-gfx] [PATCH 05/10] drm/i915: Replace intel_bios_is_port_hpd_inverted() with intel_bios_encoder_hpd_invert() Ville Syrjala
2023-02-08  1:55 ` [Intel-gfx] [PATCH 06/10] drm/i915: Consult the registested encoders for the ICL combo PHY w/a Ville Syrjala
2023-02-13 16:12   ` Jani Nikula
2023-02-08  1:55 ` [Intel-gfx] [PATCH 07/10] drm/i915: Populate encoder->devdata for g4x+ DP/HDMI ports Ville Syrjala
2023-02-13 16:12   ` Jani Nikula
2023-02-08  1:55 ` [Intel-gfx] [PATCH 08/10] drm/i915: Pass devdata to intel_bios_port_aux_ch() Ville Syrjala
2023-02-08  1:55 ` [Intel-gfx] [PATCH 09/10] drm/i915: Iterate all child devs in intel_bios_is_port_present() Ville Syrjala
2023-02-13 16:08   ` Jani Nikula
2023-02-13 16:17     ` Ville Syrjälä
2023-02-13 16:41       ` Jani Nikula
2023-02-13 16:47         ` Ville Syrjälä
2023-02-14  7:38   ` [Intel-gfx] [PATCH v2 " Ville Syrjala
2023-02-14  8:11     ` Jani Nikula
2023-02-08  1:55 ` [Intel-gfx] [PATCH 10/10] drm/i915: Use encoder->devdata in eDP init Ville Syrjala
2023-02-13 16:13   ` Jani Nikula
2023-02-08  4:39 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Prep work for vbt.ports[] nukage Patchwork
2023-02-08  8:51 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-02-13 16:11 ` [Intel-gfx] [PATCH 00/10] " Jani Nikula
2023-02-14  8:20 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Prep work for vbt.ports[] nukage (rev2) Patchwork
2023-02-14  9:27 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

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