From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, imre.deak@intel.com
Subject: Re: [RFC 0/7] drm/i915: pass encoder around more for port/phy checks
Date: Wed, 20 Mar 2024 17:16:48 +0200 [thread overview]
Message-ID: <Zfr94E30khxsVf3G@intel.com> (raw)
In-Reply-To: <cover.1710253533.git.jani.nikula@intel.com>
On Tue, Mar 12, 2024 at 04:28:55PM +0200, Jani Nikula wrote:
> Based on my ideas at [1], pass the encoder around more instead of i915,
> port pair. Look up phy and TC port based on encoder.
>
> This could be later extended to e.g. cache the info to encoder and/or
> look up data from encoder->devdata.
>
> I know relying solely on encoder has its drawbacks, namely not being
> able to do stuff unless you have that encoder for that specific
> port/phy. And have a reference to it.
>
> Thoughts?
Yes.
>
> BR,
> Jani.
>
>
> [1] https://lore.kernel.org/r/87y1dnswgo.fsf@intel.com
>
> Jani Nikula (7):
> drm/hdmi: convert *_port_to_ddc_pin() to *_encoder_to_ddc_pin()
> drm/i915/ddi: pass encoder to intel_wait_ddi_buf_active()
> drm/i915/snps: pass encoder to intel_snps_phy_update_psr_power_state()
> drm/i915/display: add intel_encoder_is_*() and _to_*() functions
> drm/i915/display: use intel_encoder_is/to_* functions
> drm/i915/cx0: remove intel_is_c10phy()
> drm/i915/cx0: pass encoder instead of i915 and port around
I have basically that same patch sitting in some branch.
With commit messages polished the series is
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> drivers/gpu/drm/i915/display/intel_cx0_phy.c | 299 +++++++++---------
> drivers/gpu/drm/i915/display/intel_cx0_phy.h | 3 +-
> drivers/gpu/drm/i915/display/intel_ddi.c | 127 ++++----
> .../drm/i915/display/intel_ddi_buf_trans.c | 14 +-
> drivers/gpu/drm/i915/display/intel_display.c | 40 +++
> drivers/gpu/drm/i915/display/intel_display.h | 7 +
> .../i915/display/intel_display_power_well.c | 2 +-
> drivers/gpu/drm/i915/display/intel_dp.c | 15 +-
> drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 22 +-
> drivers/gpu/drm/i915/display/intel_hdmi.c | 80 ++---
> drivers/gpu/drm/i915/display/intel_pmdemand.c | 14 +-
> drivers/gpu/drm/i915/display/intel_psr.c | 7 +-
> drivers/gpu/drm/i915/display/intel_snps_phy.c | 16 +-
> drivers/gpu/drm/i915/display/intel_snps_phy.h | 4 +-
> drivers/gpu/drm/i915/display/intel_tc.c | 33 +-
> 15 files changed, 339 insertions(+), 344 deletions(-)
>
> --
> 2.39.2
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2024-03-20 15:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 14:28 [RFC 0/7] drm/i915: pass encoder around more for port/phy checks Jani Nikula
2024-03-12 14:28 ` [RFC 1/7] drm/hdmi: convert *_port_to_ddc_pin() to *_encoder_to_ddc_pin() Jani Nikula
2024-03-12 14:28 ` [RFC 2/7] drm/i915/ddi: pass encoder to intel_wait_ddi_buf_active() Jani Nikula
2024-03-12 14:28 ` [RFC 3/7] drm/i915/snps: pass encoder to intel_snps_phy_update_psr_power_state() Jani Nikula
2024-03-12 14:28 ` [RFC 4/7] drm/i915/display: add intel_encoder_is_*() and _to_*() functions Jani Nikula
2024-03-12 14:29 ` [RFC 5/7] drm/i915/display: use intel_encoder_is/to_* functions Jani Nikula
2024-03-12 14:29 ` [RFC 6/7] drm/i915/cx0: remove intel_is_c10phy() Jani Nikula
2024-03-12 14:29 ` [RFC 7/7] drm/i915/cx0: pass encoder instead of i915 and port around Jani Nikula
2024-03-12 17:35 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: pass encoder around more for port/phy checks Patchwork
2024-03-12 17:35 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-03-12 17:54 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-03-20 15:16 ` Ville Syrjälä [this message]
2024-03-20 15:49 ` [RFC 0/7] " Jani Nikula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zfr94E30khxsVf3G@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox