From: Paulo Zanoni <paulo.r.zanoni@intel.com>
To: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Subject: Re: [PATCH v2 1/2] drm/i915/glk: Apply cdclk workaround for DP audio
Date: Tue, 14 Mar 2017 17:24:48 -0300 [thread overview]
Message-ID: <1489523088.2442.54.camel@intel.com> (raw)
In-Reply-To: <1488931972-2865-1-git-send-email-dhinakaran.pandiyan@intel.com>
Em Ter, 2017-03-07 às 16:12 -0800, Dhinakaran Pandiyan escreveu:
> Implement the DP-Audio cdclk restriction for GLK, similar to what is
> implemented for BDW and other GEN9 platforms. The max. pixel clock
> adjustment for GLK, however factors in the 2 pixels per clock output
> that
> GLK generates.
>
> Separating min. cdclk and max. pixel_rate would be nicer, but let's
> defer that to future and fix the GLK bug for now.
Looks correct to me.
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
No cc:stable seems to be required due to GLK still being alpha_support.
>
> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
> ---
> drivers/gpu/drm/i915/intel_cdclk.c | 17 +++++++++++------
> 1 file changed, 11 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_cdclk.c
> b/drivers/gpu/drm/i915/intel_cdclk.c
> index de5ce6b..e8c1181 100644
> --- a/drivers/gpu/drm/i915/intel_cdclk.c
> +++ b/drivers/gpu/drm/i915/intel_cdclk.c
> @@ -1442,16 +1442,21 @@ static int
> bdw_adjust_min_pipe_pixel_rate(struct intel_crtc_state *crtc_state,
> if (IS_BROADWELL(dev_priv) && crtc_state->ips_enabled)
> pixel_rate = DIV_ROUND_UP(pixel_rate * 100, 95);
>
> - /* BSpec says "Do not use DisplayPort with CDCLK less than
> - * 432 MHz, audio enabled, port width x4, and link rate
> - * HBR2 (5.4 GHz), or else there may be audio corruption or
> - * screen corruption."
> + /* BSpec says "Do not use DisplayPort with CDCLK less than
> 432 MHz,
> + * audio enabled, port width x4, and link rate HBR2 (5.4
> GHz), or else
> + * there may be audio corruption or screen corruption." This
> cdclk
> + * restriction for GLK is 316.8 MHz and since GLK can output
> two
> + * pixels per clock, the pixel rate becomes 2 * 316.8 MHz.
> */
> if (intel_crtc_has_dp_encoder(crtc_state) &&
> crtc_state->has_audio &&
> crtc_state->port_clock >= 540000 &&
> - crtc_state->lane_count == 4)
> - pixel_rate = max(432000, pixel_rate);
> + crtc_state->lane_count == 4) {
> + if (IS_GEMINILAKE(dev_priv))
> + pixel_rate = max(2 * 316800, pixel_rate);
> + else
> + pixel_rate = max(432000, pixel_rate);
> + }
>
> return pixel_rate;
> }
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-03-14 20:24 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 0:12 [PATCH v2 1/2] drm/i915/glk: Apply cdclk workaround for DP audio Dhinakaran Pandiyan
2017-03-08 0:12 ` [PATCH v2 2/2] drm/i915: Implement cdclk restrictions based on Azalia BCLK Dhinakaran Pandiyan
2017-03-14 20:47 ` Paulo Zanoni
2017-03-14 21:01 ` Pandiyan, Dhinakaran
2017-03-15 9:32 ` Jani Nikula
2017-03-15 18:03 ` Pandiyan, Dhinakaran
2017-03-15 18:16 ` Ville Syrjälä
2017-03-15 18:39 ` Paulo Zanoni
2017-03-15 19:30 ` Ville Syrjälä
2017-03-14 22:45 ` [PATCH v3 " Dhinakaran Pandiyan
2017-03-21 20:27 ` Paulo Zanoni
2017-03-29 8:50 ` [PATCH v2 " Ville Syrjälä
2017-03-29 21:16 ` Pandiyan, Dhinakaran
2017-03-30 11:42 ` Ville Syrjälä
2017-03-30 12:17 ` [Intel-gfx] " Takashi Iwai
2017-03-30 12:44 ` Ville Syrjälä
2017-03-30 18:14 ` Pandiyan, Dhinakaran
2017-03-08 0:48 ` ✓ Fi.CI.BAT: success for series starting with [v2,1/2] drm/i915/glk: Apply cdclk workaround for DP audio Patchwork
2017-03-14 20:24 ` Paulo Zanoni [this message]
2017-03-15 8:33 ` ✗ Fi.CI.BAT: failure for series starting with [v2,1/2] drm/i915/glk: Apply cdclk workaround for DP audio (rev2) Patchwork
2017-03-15 8:47 ` ✓ Fi.CI.BAT: success " 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=1489523088.2442.54.camel@intel.com \
--to=paulo.r.zanoni@intel.com \
--cc=ander.conselvan.de.oliveira@intel.com \
--cc=dhinakaran.pandiyan@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 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).