All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915/dp: force eDP lane count to max available lanes on BDW
Date: Thu, 15 May 2014 11:58:27 +0300	[thread overview]
Message-ID: <878uq3pgek.fsf@intel.com> (raw)
In-Reply-To: <CABVU7+tbhr5PO60tT0R-LEn2thpVPBSCvPhCDbUw1Fkntz9_rg@mail.gmail.com>

On Wed, 14 May 2014, Rodrigo Vivi <rodrigo.vivi@gmail.com> wrote:
> We do have to continue the investigation on the link training side, but
> since 76711 is a critical I'm completely in favor of this workaround for
> now.
>
> I just tested and it worked very well here, so:
>
> Tested-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>

Pushed to -fixes, thanks for the review and testing.

BR,
Jani.

>
>
> On Wed, May 14, 2014 at 6:02 AM, Jani Nikula <jani.nikula@intel.com> wrote:
>
>> There are certain BDW high res eDP machines that regressed due to
>>
>> commit 38aecea0ccbb909d635619cba22f1891e589b434
>> Author: Daniel Vetter <daniel.vetter@ffwll.ch>
>> Date:   Mon Mar 3 11:18:10 2014 +0100
>>
>>     drm/i915: reverse dp link param selection, prefer fast over wide again
>>
>> The commit lead to 2 lanes at 5.4 Gbps being used instead of 4 lanes at
>> 2.7 Gbps on the affected machines. Link training succeeded for both, but
>> the screen remained blank with the former config. Further investigation
>> showed that 4 lanes at 5.4 Gbps worked also.
>>
>> The root cause for the blank screen using 2 lanes remains unknown, but
>> apparently the driver for a certain other operating system by default
>> uses the max available lanes. Follow suit on Broadwell eDP, for at least
>> until we figure out what is going on.
>>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76711
>> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>>  drivers/gpu/drm/i915/intel_dp.c | 7 ++++++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_dp.c
>> b/drivers/gpu/drm/i915/intel_dp.c
>> index 9f67b724dc28..6eaefca0048d 100644
>> --- a/drivers/gpu/drm/i915/intel_dp.c
>> +++ b/drivers/gpu/drm/i915/intel_dp.c
>> @@ -849,7 +849,12 @@ intel_dp_compute_config(struct intel_encoder *encoder,
>>                         bpp = dev_priv->vbt.edp_bpp;
>>                 }
>>
>> -               if (dev_priv->vbt.edp_lanes) {
>> +               if (IS_BROADWELL(dev)) {
>> +                       /* Yes, it's an ugly hack. */
>> +                       min_lane_count = max_lane_count;
>> +                       DRM_DEBUG_KMS("forcing lane count to max (%u) on
>> BDW\n",
>> +                                     min_lane_count);
>> +               } else if (dev_priv->vbt.edp_lanes) {
>>                         min_lane_count = min(dev_priv->vbt.edp_lanes,
>>                                              max_lane_count);
>>                         DRM_DEBUG_KMS("using min %u lanes per VBT\n",
>> --
>> 1.9.1
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>>
>
>
>
> -- 
> Rodrigo Vivi
> Blog: http://blog.vivi.eng.br

-- 
Jani Nikula, Intel Open Source Technology Center

  reply	other threads:[~2014-05-15  8:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14 10:02 [PATCH] drm/i915/dp: force eDP lane count to max available lanes on BDW Jani Nikula
2014-05-14 17:33 ` Rodrigo Vivi
2014-05-15  8:58   ` Jani Nikula [this message]
2014-07-14  0:46     ` Dave Airlie
2014-07-14  0:51       ` Dave Airlie

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=878uq3pgek.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=rodrigo.vivi@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.