public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Gabriel Feceoru <gabriel.feceoru@intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>,
	Ander Conselvan De Oliveira <conselvan2@gmail.com>,
	Daniel Vetter <daniel@ffwll.ch>,
	"Lankhorst, Maarten" <maarten.lankhorst@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Reset dpll_hw_state when selecting a new pll on hsw
Date: Wed, 11 Nov 2015 20:27:05 +0200	[thread overview]
Message-ID: <56438879.8040007@intel.com> (raw)
In-Reply-To: <87y4e4hb1q.fsf@intel.com>



On 11.11.2015 16:21, Jani Nikula wrote:
> On Wed, 11 Nov 2015, Ander Conselvan De Oliveira <conselvan2@gmail.com> wrote:
>> On Tue, 2015-11-10 at 14:53 +0200, Jani Nikula wrote:
>>> Ander, Maarten, where are we with this? Is it horribly wrong to merge
>>> the original patch in this ever-growing and diverging thread?
>>
>> I think the patch as is will cause problems with DP, since we might clear the
>> pll selection made in hsw_dp_set_ddi_pll_sel(). I think the easy fix
>> disregarding the discussion in this thread is to drop another memset in
>>   intel_crt_compute_config(). Like this
>
>
> Ander, please post this as a proper patch for review.
>
> BR,
> Jani.

Hi,
I tested this patch on my system and I can confirm it fixes the original 
issue.
However there are a few memset in *_ddi_pll_select functions which might 
not be needed anymore. For instance I tried to remove the hsw one and 
didn't see any regression.

Regards,
Gabriel

>
>>
>> diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c
>> index b84aaa0..ad099f3 100644
>> --- a/drivers/gpu/drm/i915/intel_crt.c
>> +++ b/drivers/gpu/drm/i915/intel_crt.c
>> @@ -278,6 +278,9 @@ static bool intel_crt_compute_config(struct intel_encoder
>> *encoder,
>>
>>          /* FDI must always be 2.7 GHz */
>>          if (HAS_DDI(dev)) {
>> +               memset(&pipe_config->dpll_hw_state, 0,
>> +                      sizeof(pipe_config->dpll_hw_state));
>> +
>>                  pipe_config->ddi_pll_sel = PORT_CLK_SEL_SPLL;
>>                  pipe_config->port_clock = 135000 * 2;
>>          }
>>
>> Ander
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2015-11-11 18:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23 15:34 [PATCH] drm/i915: Reset dpll_hw_state when selecting a new pll on hsw Gabriel Feceoru
2015-10-13 13:18 ` Maarten Lankhorst
2015-10-13 13:35   ` Daniel Vetter
2015-10-13 13:43     ` Daniel Vetter
2015-10-13 13:43     ` Maarten Lankhorst
2015-10-13 13:58       ` Daniel Vetter
2015-10-13 14:00         ` Maarten Lankhorst
2015-10-13 14:08           ` Daniel Vetter
2015-10-14  8:21             ` Ander Conselvan De Oliveira
2015-10-14 12:44               ` Daniel Vetter
2015-10-14 13:58                 ` Ander Conselvan De Oliveira
2015-10-14 15:03                   ` Daniel Vetter
2015-11-10 12:53                     ` Jani Nikula
2015-11-11  9:25                       ` Ander Conselvan De Oliveira
2015-11-11 14:21                         ` Jani Nikula
2015-11-11 16:41                           ` [PATCH] drm/i915: Clear DDI pll selection in intel_crtc_compute_config() Ander Conselvan de Oliveira
2015-11-11 18:27                           ` Gabriel Feceoru [this message]
2015-11-12  8:28                             ` [PATCH] drm/i915: Reset dpll_hw_state when selecting a new pll on hsw Lankhorst, Maarten
2015-11-12 18:35                               ` Gabriel Feceoru

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=56438879.8040007@intel.com \
    --to=gabriel.feceoru@intel.com \
    --cc=conselvan2@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=maarten.lankhorst@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