From: Jani Nikula <jani.nikula@linux.intel.com>
To: imre.deak@intel.com, Rodrigo Vivi <rodrigo.vivi@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
intel-gfx@lists.freedesktop.org, Dave Airlie <airlied@redhat.com>
Subject: Re: [PATCH v2] drm/i915/edp: Do not do link training fallback or prune modes on EDP
Date: Tue, 30 Jan 2018 09:38:27 +0200 [thread overview]
Message-ID: <87a7wvaj9o.fsf@intel.com> (raw)
In-Reply-To: <20180123125704.t7ypukfw67wlz5xp@ideak-desk.fi.intel.com>
On Tue, 23 Jan 2018, Imre Deak <imre.deak@intel.com> wrote:
> On Tue, Jan 23, 2018 at 11:48:22AM +0200, Jani Nikula wrote:
>> On Mon, 22 Jan 2018, Imre Deak <imre.deak@intel.com> wrote:
>> > On Fri, Jan 19, 2018 at 05:45:16PM +0200, Imre Deak wrote:
>> >> On Thu, Oct 12, 2017 at 12:13:38PM -0700, Manasi Navare wrote:
>> >> > In case of eDP because the panel has a fixed mode, the link rate
>> >> > and lane count at which it is trained corresponds to the link BW
>> >> > required to support the native resolution of the panel. In case of
>> >> > panles with lower resolutions where fewer lanes are hooked up internally,
>> >> > that number is reflected in the MAX_LANE_COUNT DPCD register of the panel.
>> >> > So it is pointless to fallback to lower link rate/lane count in case
>> >> > of link training failure on eDP connector since the lower link BW
>> >> > will not support the native resolution of the panel and we cannot
>> >> > prune the preferred mode on the eDP connector.
>> >> >
>> >> > In case of Link training failure on the eDP panel, something is wrong
>> >> > in the HW internally and hence driver errors out with a loud
>> >> > and clear DRM_ERROR message.
>> >> >
>> >> > v2:
>> >> > * Fix the DEBUG_ERROR and add {} in else (Ville Syrjala)
>> >> >
>> >> > Cc: Clinton Taylor <clinton.a.taylor@intel.com>
>> >> > Cc: Jim Bride <jim.bride@linux.intel.com>
>> >> > Cc: Jani Nikula <jani.nikula@linux.intel.com>
>> >> > Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
>> >> > Cc: Dave Airlie <airlied@redhat.com>
>> >> > Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
>> >> > Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
>> >> > Reviewed-by: Ville Syrjala <ville.syrjala@linux.intel.com>
>> >>
>> >> This fell through the cracks, looks like it partially fixes
>> >> https://bugs.freedesktop.org/show_bug.cgi?id=103369
>> >>
>> >> Why link training fails there is not clear.
>> >
>> > Ok, the link training fail turned out to be a race between a modeset
>> > link training and a link retraining called from
>> > runtime_resume->intel_hpd_init->dp_detect. As Ville pointed out that
>> > one was fixed meanwhile by
>> >
>> > commit 42e5e65765265485ecf2a480c244d76c2c624449
>> > Author: Daniel Vetter <daniel.vetter@ffwll.ch>
>> > AuthorDate: Mon Nov 13 17:01:40 2017 +0100
>> > Commit: Daniel Vetter <daniel.vetter@ffwll.ch>
>> > CommitDate: Thu Nov 23 14:59:07 2017 +0100
>> >
>> > drm/i915: sync dp link status checks against atomic commmits
>> >
>> > I merged now this fix to address the other issue, adding the above bug
>> > as reference. Thanks for the patch and the review.
>>
>> Thanks for the follow-up... but should we have added a Fixes: or cc:
>> stable tag here?
>
> Fixes: 9301397a63b3 ("drm/i915: Implement Link Rate fallback on Link
> training failure")
>
> I wasn't sure about stable, since for me the link training failure
> happened only due to the bug fixed by 42e5e65765265. In any case I can't
> see how it could cause problems, so yes let's Cc: stable too.
Rodrigo, here's another one to cherry-pick to drm-intel-next-fixes.
BR,
Jani.
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-01-30 7:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-11 23:19 [PATCH] drm/i915/edp: Do not do link training fallback or prune modes on EDP Manasi Navare
2017-10-11 23:51 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-10-12 6:15 ` ✗ Fi.CI.IGT: failure " Patchwork
2017-10-12 17:37 ` [PATCH] " Ville Syrjälä
2017-10-12 19:05 ` Manasi Navare
2017-10-12 19:13 ` [PATCH v2] " Manasi Navare
2018-01-19 15:45 ` Imre Deak
2018-01-22 16:07 ` Imre Deak
2018-01-23 9:48 ` Jani Nikula
2018-01-23 12:57 ` Imre Deak
2018-01-23 22:34 ` Manasi Navare
2018-01-30 7:38 ` Jani Nikula [this message]
2018-04-12 8:11 ` Timo Aaltonen
2018-04-12 9:10 ` Jani Nikula
2017-10-12 19:37 ` ✓ Fi.CI.BAT: success for drm/i915/edp: Do not do link training fallback or prune modes on EDP (rev2) Patchwork
2017-10-13 2:38 ` ✗ Fi.CI.IGT: failure " 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=87a7wvaj9o.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=airlied@redhat.com \
--cc=daniel.vetter@ffwll.ch \
--cc=imre.deak@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 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).