From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Lisovskiy, Stanislav" <stanislav.lisovskiy@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915: Implement UHBR bandwidth check
Date: Tue, 31 Jan 2023 17:41:45 +0200 [thread overview]
Message-ID: <Y9k2uWyLPWqCgbc3@intel.com> (raw)
In-Reply-To: <Y9kxzNW7wPlnOz5b@intel.com>
On Tue, Jan 31, 2023 at 05:20:44PM +0200, Lisovskiy, Stanislav wrote:
> On Tue, Jan 31, 2023 at 05:00:30PM +0200, Ville Syrjälä wrote:
> > On Mon, Jan 16, 2023 at 01:19:37PM +0200, Stanislav Lisovskiy wrote:
> > > According to spec, we should check if output_bpp * pixel_rate is less
> > > than DDI clock * 72, if UHBR is used.
> > >
> > > HSDES: 1406899791
> > > BSPEC: 49259
> > >
> > > v2: - Removed wrong comment(Rodrigo Vivi)
> > > - Added HSDES to the commit msg(Rodrigo Vivi)
> > > - Moved UHBR check to the MST specific code
> > >
> > > v3: - Changed commit subject(Rodrigo Vivi)
> > > - Fixed the error message if check fails(Rodrigo Vivi)
> > >
> > > v4: - Move UHBR check to new helper function
> > > - Now both for non-DSC/DSC we use that new check as
> > > one of the constraints, when figuring out output bpp
> > > to be used(Ville Syrjälä)
> > >
> > > Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
> > > ---
> > > drivers/gpu/drm/i915/display/intel_dp_mst.c | 13 ++++++++++++-
> > > 1 file changed, 12 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> > > index e3e7c305fece..b95051fed23d 100644
> > > --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
> > > +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> > > @@ -47,8 +47,19 @@
> > >
> > > static int intel_dp_mst_check_constraints(struct drm_i915_private *i915, int bpp,
> > > const struct drm_display_mode *adjusted_mode,
> > > - struct intel_crtc_state *crtc_state)
> > > + struct intel_crtc_state *pipe_config)
> > > {
> > > + if (intel_dp_is_uhbr(pipe_config)) {
> > > + int output_bpp = bpp;
> > > +
> > > + if (output_bpp * adjusted_mode->crtc_clock >=
> > > + pipe_config->port_clock * 72) {
> >
> > This seems to be some DSC specific constraint, but this code appears to
> > apply it also to uncompresed output.
>
> Was thinking about that. Looking at the initial HSD, also to the DSC page
> in the BSpec, I have a strong feeling that this applies to any output bpp,
> regardless if its compressed or not.
> So decided to make this check more generic. I think this is a just general
> Link BW limitation which just happened to be mentioned on DSC page.
> I will clarify that.
>
> >
> > Also DDICLK != port_clock, so this looks to be off by quite a lot.
>
> Any hints, what should I use instead?..
DDICLK looks to be the symbol clock more or less (for 32bit symbols),
so presumably you want a /32, with maybe an extra factor of 10^n in
there, or not.
That magic 72 is also strange. Maybe a 2*36, but dunno what that would
really be either. The spec could really use some better explanations.
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2023-01-31 15:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-16 11:19 [Intel-gfx] [PATCH 0/2] We need to have additional checks for DP MST UHBR Stanislav Lisovskiy
2023-01-16 11:19 ` [Intel-gfx] [PATCH 1/2] drm/i915: Add generic constraint checker when determining DP MST DSC bpp Stanislav Lisovskiy
2023-01-16 11:19 ` [Intel-gfx] [PATCH 2/2] drm/i915: Implement UHBR bandwidth check Stanislav Lisovskiy
2023-01-24 18:43 ` Rodrigo Vivi
2023-01-31 15:00 ` Ville Syrjälä
2023-01-31 15:20 ` Lisovskiy, Stanislav
2023-01-31 15:41 ` Ville Syrjälä [this message]
2023-02-01 11:00 ` Lisovskiy, Stanislav
2023-02-01 12:47 ` Ville Syrjälä
2023-01-16 12:11 ` [Intel-gfx] ✓ Fi.CI.BAT: success for We need to have additional checks for DP MST UHBR Patchwork
2023-01-16 13:56 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2023-02-02 9:47 [Intel-gfx] [PATCH 0/2] " Stanislav Lisovskiy
2023-02-02 9:47 ` [Intel-gfx] [PATCH 2/2] drm/i915: Implement UHBR bandwidth check Stanislav Lisovskiy
2023-02-02 10:05 ` 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=Y9k2uWyLPWqCgbc3@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=stanislav.lisovskiy@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