From: "Lisovskiy, Stanislav" <stanislav.lisovskiy@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org, jani.saarinen@intel.com,
vidya.srinivas@intel.com
Subject: Re: [PATCH 1/3] drm/i915/bigjoiner: Refactor bigjoiner state readout
Date: Fri, 1 Mar 2024 12:22:44 +0200 [thread overview]
Message-ID: <ZeGsdHvpqfvB3oLF@intel.com> (raw)
In-Reply-To: <ZeGpi9tGZ1a2CAqw@intel.com>
On Fri, Mar 01, 2024 at 12:10:19PM +0200, Ville Syrjälä wrote:
> On Wed, Feb 21, 2024 at 09:20:08PM +0200, Stanislav Lisovskiy wrote:
> > Don't call enabled_bigjoiner_pipes twice, lets just move
> > intel_get_bigjoiner_config earlier, because it is anyway
> > calling same function.
> > Also cleanup hsw_enabled_transcoders from irrelevant bigjoiner code.
>
> I still don't like this.
As of current state of things, I didn't touch this since our last discussion.
This is not critical improvement, so lets drop this until the main issues are
solved.
>
> >
> > Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
> > ---
> > drivers/gpu/drm/i915/display/intel_display.c | 22 ++++++++++----------
> > 1 file changed, 11 insertions(+), 11 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> > index 00ac65a140298..916c13a149fd5 100644
> > --- a/drivers/gpu/drm/i915/display/intel_display.c
> > +++ b/drivers/gpu/drm/i915/display/intel_display.c
> > @@ -3535,7 +3535,6 @@ static u8 hsw_enabled_transcoders(struct intel_crtc *crtc)
> > struct drm_i915_private *dev_priv = to_i915(dev);
> > u8 panel_transcoder_mask = hsw_panel_transcoders(dev_priv);
> > enum transcoder cpu_transcoder;
> > - u8 master_pipes, slave_pipes;
> > u8 enabled_transcoders = 0;
> >
> > /*
> > @@ -3586,15 +3585,6 @@ static u8 hsw_enabled_transcoders(struct intel_crtc *crtc)
> > if (transcoder_ddi_func_is_enabled(dev_priv, cpu_transcoder))
> > enabled_transcoders |= BIT(cpu_transcoder);
> >
> > - /* bigjoiner slave -> consider the master pipe's transcoder as well */
> > - enabled_bigjoiner_pipes(dev_priv, &master_pipes, &slave_pipes);
> > - if (slave_pipes & BIT(crtc->pipe)) {
> > - cpu_transcoder = (enum transcoder)
> > - get_bigjoiner_master_pipe(crtc->pipe, master_pipes, slave_pipes);
> > - if (transcoder_ddi_func_is_enabled(dev_priv, cpu_transcoder))
> > - enabled_transcoders |= BIT(cpu_transcoder);
> > - }
> > -
> > return enabled_transcoders;
> > }
> >
> > @@ -3641,6 +3631,15 @@ static bool hsw_get_transcoder_state(struct intel_crtc *crtc,
> > u32 tmp;
> >
> > enabled_transcoders = hsw_enabled_transcoders(crtc);
> > +
> > + /* bigjoiner slave -> consider the master pipe's transcoder as well */
> > + if (intel_crtc_is_bigjoiner_slave(pipe_config)) {
> > + unsigned long cpu_transcoder = (enum transcoder)
> > + bigjoiner_master_pipe(pipe_config);
> > + if (transcoder_ddi_func_is_enabled(dev_priv, cpu_transcoder))
> > + enabled_transcoders |= BIT(cpu_transcoder);
> > + }
> > +
> > if (!enabled_transcoders)
> > return false;
> >
> > @@ -3745,6 +3744,8 @@ static bool hsw_get_pipe_config(struct intel_crtc *crtc,
> >
> > pipe_config->shared_dpll = NULL;
> >
> > + intel_bigjoiner_get_config(pipe_config);
> > +
> > active = hsw_get_transcoder_state(crtc, pipe_config, &crtc->hw_readout_power_domains);
> >
> > if ((IS_GEMINILAKE(dev_priv) || IS_BROXTON(dev_priv)) &&
> > @@ -3756,7 +3757,6 @@ static bool hsw_get_pipe_config(struct intel_crtc *crtc,
> > if (!active)
> > goto out;
> >
> > - intel_bigjoiner_get_config(pipe_config);
> > intel_dsc_get_config(pipe_config);
> >
> > if (!transcoder_is_dsi(pipe_config->cpu_transcoder) ||
> > --
> > 2.37.3
>
> --
> Ville Syrjälä
> Intel
next prev parent reply other threads:[~2024-03-01 10:22 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 19:20 [PATCH 0/3] Bigjoiner refactoring Stanislav Lisovskiy
2024-02-21 19:20 ` [PATCH 1/3] drm/i915/bigjoiner: Refactor bigjoiner state readout Stanislav Lisovskiy
2024-03-01 10:10 ` Ville Syrjälä
2024-03-01 10:22 ` Lisovskiy, Stanislav [this message]
2024-02-21 19:20 ` [PATCH 2/3] Start separating pipe vs transcoder set logic for bigjoiner during modeset Stanislav Lisovskiy
2024-02-27 4:40 ` Srinivas, Vidya
2024-02-27 4:52 ` Srinivas, Vidya
2024-02-27 9:11 ` Lisovskiy, Stanislav
2024-02-27 16:16 ` Srinivas, Vidya
2024-03-01 10:10 ` Ville Syrjälä
2024-03-01 10:27 ` Lisovskiy, Stanislav
2024-03-01 10:43 ` Ville Syrjälä
2024-03-01 12:29 ` Lisovskiy, Stanislav
2024-03-01 14:40 ` Ville Syrjälä
2024-03-01 15:17 ` Lisovskiy, Stanislav
2024-03-01 15:26 ` Ville Syrjälä
2024-03-01 15:42 ` Lisovskiy, Stanislav
2024-03-01 15:58 ` Ville Syrjälä
2024-02-21 19:20 ` [PATCH 3/3] drm/i915: Fix bigjoiner case for DP2.0 Stanislav Lisovskiy
2024-02-21 22:35 ` Manasi Navare
2024-02-26 19:56 ` Jani Nikula
2024-02-27 9:04 ` Lisovskiy, Stanislav
2024-02-27 9:06 ` Srinivas, Vidya
2024-02-27 9:14 ` Lisovskiy, Stanislav
2024-02-27 18:51 ` Srinivas, Vidya
2024-02-27 9:15 ` Jani Nikula
2024-02-27 18:07 ` Manasi Navare
2024-02-27 18:48 ` Srinivas, Vidya
2024-02-21 23:18 ` ✗ Fi.CI.CHECKPATCH: warning for Bigjoiner refactoring (rev8) Patchwork
2024-02-21 23:18 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-02-21 23:32 ` ✓ Fi.CI.BAT: success " Patchwork
2024-02-22 6:32 ` ✗ Fi.CI.IGT: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-02-20 22:09 [PATCH 0/3] Bigjoiner refactoring Stanislav Lisovskiy
2024-02-20 22:09 ` [PATCH 1/3] drm/i915/bigjoiner: Refactor bigjoiner state readout Stanislav Lisovskiy
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=ZeGsdHvpqfvB3oLF@intel.com \
--to=stanislav.lisovskiy@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.saarinen@intel.com \
--cc=vidya.srinivas@intel.com \
--cc=ville.syrjala@linux.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