From: "Conselvan De Oliveira, Ander" <ander.conselvan.de.oliveira@intel.com>
To: "intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"R, Durgadoss" <durgadoss.r@intel.com>
Subject: Re: [PATCHv3 2/4] drm/i915: Store the dpll config in crtc_state->shared_dpll
Date: Mon, 11 Apr 2016 12:36:51 +0000 [thread overview]
Message-ID: <1460378210.2782.6.camel@intel.com> (raw)
In-Reply-To: <1459943641-12179-3-git-send-email-durgadoss.r@intel.com>
On Wed, 2016-04-06 at 17:23 +0530, Durgadoss R wrote:
> Currently, the required shared dpll is saved in the crtc_state.
> Similarly, this patch saves the dpll config values also, so that
> these values (through crtc_state->shared_dpll->config.hw_state)
> can be used for upfront link training.
>
> Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
> ---
> drivers/gpu/drm/i915/intel_dpll_mgr.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.c
> b/drivers/gpu/drm/i915/intel_dpll_mgr.c
> index 1175eeb..cad10f2 100644
> --- a/drivers/gpu/drm/i915/intel_dpll_mgr.c
> +++ b/drivers/gpu/drm/i915/intel_dpll_mgr.c
> @@ -248,6 +248,7 @@ intel_reference_shared_dpll(struct intel_shared_dpll *pll,
> pipe_name(crtc->pipe));
>
> intel_shared_dpll_config_get(shared_dpll, pll, crtc);
> + crtc_state->shared_dpll->config = shared_dpll[i];
This overwrites the state stored in dev_priv->shared_dpll[i].config, so it means
we loose the current state set in the hardware. If the atomic check fails after
this, the software tracking of the hw state gets messed up.
Ander
> }
>
> void intel_shared_dpll_commit(struct drm_atomic_state *state)
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-04-11 12:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 11:53 [PATCHv3 0/4] Add USB typeC based DP support for BXT platform Durgadoss R
2016-04-06 11:53 ` [PATCHv3 1/4] drm/i915: Make finding unused crtc as a generic function Durgadoss R
2016-04-11 12:36 ` Ander Conselvan De Oliveira
2016-04-11 13:21 ` R, Durgadoss
2016-04-06 11:53 ` [PATCHv3 2/4] drm/i915: Store the dpll config in crtc_state->shared_dpll Durgadoss R
2016-04-11 12:36 ` Conselvan De Oliveira, Ander [this message]
2016-04-12 14:33 ` R, Durgadoss
2016-04-06 11:54 ` [PATCHv3 3/4] drm/i915: Update dpll_hw_state if mask is same Durgadoss R
2016-04-06 11:54 ` [PATCHv3 4/4] drm/i915/dp: Enable Upfront link training for typeC DP support on BXT Durgadoss R
2016-04-06 12:27 ` ✗ Fi.CI.BAT: failure for Add USB typeC based DP support for BXT platform (rev4) 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=1460378210.2782.6.camel@intel.com \
--to=ander.conselvan.de.oliveira@intel.com \
--cc=durgadoss.r@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