From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 3/4] drm/i915: Fix platform default aux ch for skl
Date: Fri, 17 Feb 2023 14:02:59 +0200 [thread overview]
Message-ID: <Y+9s8+EuHTk5ZI0e@intel.com> (raw)
In-Reply-To: <02f8d9ad-81bf-b176-4565-015dec53442e@intel.com>
On Fri, Feb 17, 2023 at 03:15:59PM +0530, Nautiyal, Ankit K wrote:
>
> On 2/17/2023 4:43 AM, Ville Syrjala wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > SKL/derivatives have DDI E but no AUX E, so we need to pick
> > another aux ch as the platform default. DDI E is more or less
> > the other half of DDI A, so we pick AUX A.
> >
> > In all other cases we should have a corresponding aux ch for
> > each DDI.
> >
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > ---
> > drivers/gpu/drm/i915/display/intel_dp_aux.c | 14 ++++++++++++--
> > 1 file changed, 12 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_dp_aux.c b/drivers/gpu/drm/i915/display/intel_dp_aux.c
> > index 57eb3ff187fa..96967e21c94c 100644
> > --- a/drivers/gpu/drm/i915/display/intel_dp_aux.c
> > +++ b/drivers/gpu/drm/i915/display/intel_dp_aux.c
> > @@ -739,10 +739,20 @@ void intel_dp_aux_init(struct intel_dp *intel_dp)
> > cpu_latency_qos_add_request(&intel_dp->pm_qos, PM_QOS_DEFAULT_VALUE);
> > }
> >
> > +static enum aux_ch default_aux_ch(struct intel_encoder *encoder)
> > +{
> > + struct drm_i915_private *i915 = to_i915(encoder->base.dev);
> > +
> > + /* SKL has DDI E but no AUX E */
> > + if (DISPLAY_VER(i915) == 9 && encoder->port == PORT_E)
> > + return AUX_CH_A;
> > +
>
> I guess we might need to fix intel_dp_aux_init also. Wont we have
> dig_port->aux_ch and intel_dp->aux_ch pointing to different things?
There is no intel_dp->aux_ch.
>
> For example for SKL and DDI E, intel_dp->aux.name will be derived from
> dig_port->aux_ch i.e. AUX_CH_A but intel_dp->aux_ctl/data reg will still
> point to DP_AUX_CH_CTL/DATA_E.
>
> Am I missing something?
Everything is based on dig_port->aux_ch.
>
> Regards,
>
> Ankit
>
>
> > + return (enum aux_ch)encoder->port;
> > +}
> > +
> > enum aux_ch intel_dp_aux_ch(struct intel_encoder *encoder)
> > {
> > struct drm_i915_private *i915 = to_i915(encoder->base.dev);
> > - enum port port = encoder->port;
> > enum aux_ch aux_ch;
> >
> > aux_ch = intel_bios_dp_aux_ch(encoder->devdata);
> > @@ -753,7 +763,7 @@ enum aux_ch intel_dp_aux_ch(struct intel_encoder *encoder)
> > return aux_ch;
> > }
> >
> > - aux_ch = (enum aux_ch)port;
> > + aux_ch = default_aux_ch(encoder);
> >
> > drm_dbg_kms(&i915->drm,
> > "[ENCODER:%d:%s] using AUX %c (platform default)\n",
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2023-02-17 12:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-16 23:13 [Intel-gfx] [PATCH 1/4] drm/i915: Restructure intel_bios_port_aux_ch() Ville Syrjala
2023-02-16 23:13 ` [Intel-gfx] [PATCH 2/4] drm/i915: Pimp encoder ddc_pin/aux_ch debug messages Ville Syrjala
2023-02-17 7:03 ` Nautiyal, Ankit K
2023-02-16 23:13 ` [Intel-gfx] [PATCH 3/4] drm/i915: Fix platform default aux ch for skl Ville Syrjala
2023-02-17 9:45 ` Nautiyal, Ankit K
2023-02-17 12:02 ` Ville Syrjälä [this message]
2023-02-17 13:05 ` Nautiyal, Ankit K
2023-02-17 13:12 ` Ville Syrjälä
2023-02-17 13:53 ` Nautiyal, Ankit K
2023-02-16 23:13 ` [Intel-gfx] [PATCH 4/4] drm/i915: Split map_aux_ch() into per-platform arrays Ville Syrjala
2023-02-17 6:40 ` Ville Syrjälä
2023-02-17 0:01 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/4] drm/i915: Restructure intel_bios_port_aux_ch() Patchwork
2023-02-17 0:25 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-02-17 6:38 ` [Intel-gfx] [PATCH 1/4] " Nautiyal, Ankit K
2023-02-17 12:45 ` Jani Nikula
2023-02-17 13:05 ` Ville Syrjälä
2023-02-17 14:28 ` [Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/4] " Patchwork
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=Y+9s8+EuHTk5ZI0e@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.