* [PATCH] drm/i915: tune down the fast link training vs boot fail
@ 2016-12-13 19:54 Daniel Vetter
2016-12-13 19:56 ` Linus Torvalds
2016-12-13 20:23 ` Ville Syrjälä
0 siblings, 2 replies; 7+ messages in thread
From: Daniel Vetter @ 2016-12-13 19:54 UTC (permalink / raw)
To: Intel Graphics Development
Cc: Daniel Vetter, Linus Torvalds, stable, Ville Syrjälä,
Daniel Vetter
It's been unfixed since a while and no one is immediately working on
this. And we have the FIXME already. And now also a task in the DP
team's backlog.
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: stable@vger.kernel.org
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
References: https://lists.freedesktop.org/archives/intel-gfx/2016-July/101951.html
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
---
Hi Linus,
Feel free to apply directly in case it annoys too much and you don't
want to wait for your presents ;-)
Cheers, Daniel
---
drivers/gpu/drm/i915/intel_dp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index db75bb924e48..6e875d42642a 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -4014,8 +4014,8 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
return;
/* FIXME: we need to synchronize this sort of stuff with hardware
- * readout */
- if (WARN_ON_ONCE(!intel_dp->lane_count))
+ * readout. Currently fast link training doesn't work on boot-up. */
+ if (!intel_dp->lane_count)
return;
/* if link training is requested we should perform it always */
--
2.11.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] drm/i915: tune down the fast link training vs boot fail
2016-12-13 19:54 [PATCH] drm/i915: tune down the fast link training vs boot fail Daniel Vetter
@ 2016-12-13 19:56 ` Linus Torvalds
2016-12-13 20:23 ` Ville Syrjälä
1 sibling, 0 replies; 7+ messages in thread
From: Linus Torvalds @ 2016-12-13 19:56 UTC (permalink / raw)
To: Daniel Vetter
Cc: Intel Graphics Development, stable, Ville Syrjälä,
Daniel Vetter
On Tue, Dec 13, 2016 at 11:54 AM, Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
>
> Feel free to apply directly in case it annoys too much and you don't
> want to wait for your presents ;-)
I'll wait for the proper unboxing of presents. Once I've rattled them
and know what to expect, I can be very patient.
Linus
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] drm/i915: tune down the fast link training vs boot fail
2016-12-13 19:54 [PATCH] drm/i915: tune down the fast link training vs boot fail Daniel Vetter
2016-12-13 19:56 ` Linus Torvalds
@ 2016-12-13 20:23 ` Ville Syrjälä
2016-12-13 22:37 ` Daniel Vetter
1 sibling, 1 reply; 7+ messages in thread
From: Ville Syrjälä @ 2016-12-13 20:23 UTC (permalink / raw)
To: Daniel Vetter
Cc: Intel Graphics Development, Linus Torvalds, stable, Daniel Vetter
On Tue, Dec 13, 2016 at 08:54:14PM +0100, Daniel Vetter wrote:
> It's been unfixed since a while and no one is immediately working on
> this. And we have the FIXME already. And now also a task in the DP
> team's backlog.
>
> Cc: Linus Torvalds <torvalds@linux-foundation.org>
> Cc: stable@vger.kernel.org
> Cc: Ville Syrj�l� <ville.syrjala@linux.intel.com>
> References: https://lists.freedesktop.org/archives/intel-gfx/2016-July/101951.html
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> ---
> Hi Linus,
>
> Feel free to apply directly in case it annoys too much and you don't
> want to wait for your presents ;-)
>
> Cheers, Daniel
> ---
> drivers/gpu/drm/i915/intel_dp.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index db75bb924e48..6e875d42642a 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -4014,8 +4014,8 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
> return;
>
> /* FIXME: we need to synchronize this sort of stuff with hardware
> - * readout */
> - if (WARN_ON_ONCE(!intel_dp->lane_count))
> + * readout. Currently fast link training doesn't work on boot-up. */
s/fast link training/link retraining/ is what I'd put there.
I'm a bit sad to hide it but doesn't look like the proper solution is
going to happen any time soon.
Acked-by: Ville Syrj�l� <ville.syrjala@linux.intel.com>
> + if (!intel_dp->lane_count)
> return;
>
> /* if link training is requested we should perform it always */
> --
> 2.11.0
--
Ville Syrj�l�
Intel OTC
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] drm/i915: tune down the fast link training vs boot fail
2016-12-13 20:23 ` Ville Syrjälä
@ 2016-12-13 22:37 ` Daniel Vetter
2016-12-14 14:56 ` [Intel-gfx] " Jani Nikula
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Vetter @ 2016-12-13 22:37 UTC (permalink / raw)
To: Ville Syrjälä
Cc: Daniel Vetter, Intel Graphics Development, Linus Torvalds, stable,
Daniel Vetter
On Tue, Dec 13, 2016 at 10:23:05PM +0200, Ville Syrj�l� wrote:
> On Tue, Dec 13, 2016 at 08:54:14PM +0100, Daniel Vetter wrote:
> > It's been unfixed since a while and no one is immediately working on
> > this. And we have the FIXME already. And now also a task in the DP
> > team's backlog.
> >
> > Cc: Linus Torvalds <torvalds@linux-foundation.org>
> > Cc: stable@vger.kernel.org
> > Cc: Ville Syrj�l� <ville.syrjala@linux.intel.com>
> > References: https://lists.freedesktop.org/archives/intel-gfx/2016-July/101951.html
> > Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> > ---
> > Hi Linus,
> >
> > Feel free to apply directly in case it annoys too much and you don't
> > want to wait for your presents ;-)
> >
> > Cheers, Daniel
> > ---
> > drivers/gpu/drm/i915/intel_dp.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> > index db75bb924e48..6e875d42642a 100644
> > --- a/drivers/gpu/drm/i915/intel_dp.c
> > +++ b/drivers/gpu/drm/i915/intel_dp.c
> > @@ -4014,8 +4014,8 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
> > return;
> >
> > /* FIXME: we need to synchronize this sort of stuff with hardware
> > - * readout */
> > - if (WARN_ON_ONCE(!intel_dp->lane_count))
> > + * readout. Currently fast link training doesn't work on boot-up. */
>
> s/fast link training/link retraining/ is what I'd put there.
Adjusted ...
>
> I'm a bit sad to hide it but doesn't look like the proper solution is
> going to happen any time soon.
>
> Acked-by: Ville Syrj�l� <ville.syrjala@linux.intel.com>
... and merged since CI seems to approve too ;-)
-Daniel
>
> > + if (!intel_dp->lane_count)
> > return;
> >
> > /* if link training is requested we should perform it always */
> > --
> > 2.11.0
>
> --
> Ville Syrj�l�
> Intel OTC
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915: tune down the fast link training vs boot fail
2016-12-13 22:37 ` Daniel Vetter
@ 2016-12-14 14:56 ` Jani Nikula
2016-12-15 7:48 ` Daniel Vetter
0 siblings, 1 reply; 7+ messages in thread
From: Jani Nikula @ 2016-12-14 14:56 UTC (permalink / raw)
To: Daniel Vetter, Ville Syrjälä
Cc: Daniel Vetter, Intel Graphics Development, Linus Torvalds, stable,
Daniel Vetter
On Wed, 14 Dec 2016, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Tue, Dec 13, 2016 at 10:23:05PM +0200, Ville Syrjälä wrote:
>> On Tue, Dec 13, 2016 at 08:54:14PM +0100, Daniel Vetter wrote:
>> > It's been unfixed since a while and no one is immediately working on
>> > this. And we have the FIXME already. And now also a task in the DP
>> > team's backlog.
>> >
>> > Cc: Linus Torvalds <torvalds@linux-foundation.org>
>> > Cc: stable@vger.kernel.org
>> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> > References: https://lists.freedesktop.org/archives/intel-gfx/2016-July/101951.html
>> > Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
>> > ---
>> > Hi Linus,
>> >
>> > Feel free to apply directly in case it annoys too much and you don't
>> > want to wait for your presents ;-)
>> >
>> > Cheers, Daniel
>> > ---
>> > drivers/gpu/drm/i915/intel_dp.c | 4 ++--
>> > 1 file changed, 2 insertions(+), 2 deletions(-)
>> >
>> > diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
>> > index db75bb924e48..6e875d42642a 100644
>> > --- a/drivers/gpu/drm/i915/intel_dp.c
>> > +++ b/drivers/gpu/drm/i915/intel_dp.c
>> > @@ -4014,8 +4014,8 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
>> > return;
>> >
>> > /* FIXME: we need to synchronize this sort of stuff with hardware
>> > - * readout */
>> > - if (WARN_ON_ONCE(!intel_dp->lane_count))
>> > + * readout. Currently fast link training doesn't work on boot-up. */
>>
>> s/fast link training/link retraining/ is what I'd put there.
>
> Adjusted ...
>>
>> I'm a bit sad to hide it but doesn't look like the proper solution is
>> going to happen any time soon.
>>
>> Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> ... and merged since CI seems to approve too ;-)
*sigh* you could've added debug logging at least. Now it's pretty much
guaranteed nobody will look at this. It's not right to end up here
without link params. :(
BR,
Jani.
> -Daniel
>
>>
>
>> > + if (!intel_dp->lane_count)
>> > return;
>> >
>> > /* if link training is requested we should perform it always */
>> > --
>> > 2.11.0
>>
>> --
>> Ville Syrjälä
>> Intel OTC
--
Jani Nikula, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915: tune down the fast link training vs boot fail
2016-12-14 14:56 ` [Intel-gfx] " Jani Nikula
@ 2016-12-15 7:48 ` Daniel Vetter
2016-12-15 9:10 ` Jani Nikula
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Vetter @ 2016-12-15 7:48 UTC (permalink / raw)
To: Jani Nikula
Cc: Daniel Vetter, Ville Syrjälä, Daniel Vetter,
Intel Graphics Development, Linus Torvalds, stable, Daniel Vetter
On Wed, Dec 14, 2016 at 04:56:33PM +0200, Jani Nikula wrote:
> On Wed, 14 Dec 2016, Daniel Vetter <daniel@ffwll.ch> wrote:
> > On Tue, Dec 13, 2016 at 10:23:05PM +0200, Ville Syrj�l� wrote:
> >> On Tue, Dec 13, 2016 at 08:54:14PM +0100, Daniel Vetter wrote:
> >> > It's been unfixed since a while and no one is immediately working on
> >> > this. And we have the FIXME already. And now also a task in the DP
> >> > team's backlog.
> >> >
> >> > Cc: Linus Torvalds <torvalds@linux-foundation.org>
> >> > Cc: stable@vger.kernel.org
> >> > Cc: Ville Syrj�l� <ville.syrjala@linux.intel.com>
> >> > References: https://lists.freedesktop.org/archives/intel-gfx/2016-July/101951.html
> >> > Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> >> > ---
> >> > Hi Linus,
> >> >
> >> > Feel free to apply directly in case it annoys too much and you don't
> >> > want to wait for your presents ;-)
> >> >
> >> > Cheers, Daniel
> >> > ---
> >> > drivers/gpu/drm/i915/intel_dp.c | 4 ++--
> >> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >> >
> >> > diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> >> > index db75bb924e48..6e875d42642a 100644
> >> > --- a/drivers/gpu/drm/i915/intel_dp.c
> >> > +++ b/drivers/gpu/drm/i915/intel_dp.c
> >> > @@ -4014,8 +4014,8 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
> >> > return;
> >> >
> >> > /* FIXME: we need to synchronize this sort of stuff with hardware
> >> > - * readout */
> >> > - if (WARN_ON_ONCE(!intel_dp->lane_count))
> >> > + * readout. Currently fast link training doesn't work on boot-up. */
> >>
> >> s/fast link training/link retraining/ is what I'd put there.
> >
> > Adjusted ...
> >>
> >> I'm a bit sad to hide it but doesn't look like the proper solution is
> >> going to happen any time soon.
> >>
> >> Acked-by: Ville Syrj�l� <ville.syrjala@linux.intel.com>
> >
> > ... and merged since CI seems to approve too ;-)
>
> *sigh* you could've added debug logging at least. Now it's pretty much
> guaranteed nobody will look at this. It's not right to end up here
> without link params. :(
I've made a JIRA internally to fix this and assigned it to Paul Parenteau
for handling with his DP folks. But I'm happy to also r-b stamp a patch
that adds some debug output here if you want that too. At least I thought
the problem is fairly well-understood, so didn't think this was needed.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915: tune down the fast link training vs boot fail
2016-12-15 7:48 ` Daniel Vetter
@ 2016-12-15 9:10 ` Jani Nikula
0 siblings, 0 replies; 7+ messages in thread
From: Jani Nikula @ 2016-12-15 9:10 UTC (permalink / raw)
To: Daniel Vetter
Cc: Daniel Vetter, Ville Syrjälä, Daniel Vetter,
Intel Graphics Development, Linus Torvalds, stable, Daniel Vetter
On Thu, 15 Dec 2016, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Wed, Dec 14, 2016 at 04:56:33PM +0200, Jani Nikula wrote:
>> On Wed, 14 Dec 2016, Daniel Vetter <daniel@ffwll.ch> wrote:
>> > On Tue, Dec 13, 2016 at 10:23:05PM +0200, Ville Syrjälä wrote:
>> >> On Tue, Dec 13, 2016 at 08:54:14PM +0100, Daniel Vetter wrote:
>> >> > It's been unfixed since a while and no one is immediately working on
>> >> > this. And we have the FIXME already. And now also a task in the DP
>> >> > team's backlog.
>> >> >
>> >> > Cc: Linus Torvalds <torvalds@linux-foundation.org>
>> >> > Cc: stable@vger.kernel.org
>> >> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> >> > References: https://lists.freedesktop.org/archives/intel-gfx/2016-July/101951.html
>> >> > Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
>> >> > ---
>> >> > Hi Linus,
>> >> >
>> >> > Feel free to apply directly in case it annoys too much and you don't
>> >> > want to wait for your presents ;-)
>> >> >
>> >> > Cheers, Daniel
>> >> > ---
>> >> > drivers/gpu/drm/i915/intel_dp.c | 4 ++--
>> >> > 1 file changed, 2 insertions(+), 2 deletions(-)
>> >> >
>> >> > diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
>> >> > index db75bb924e48..6e875d42642a 100644
>> >> > --- a/drivers/gpu/drm/i915/intel_dp.c
>> >> > +++ b/drivers/gpu/drm/i915/intel_dp.c
>> >> > @@ -4014,8 +4014,8 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
>> >> > return;
>> >> >
>> >> > /* FIXME: we need to synchronize this sort of stuff with hardware
>> >> > - * readout */
>> >> > - if (WARN_ON_ONCE(!intel_dp->lane_count))
>> >> > + * readout. Currently fast link training doesn't work on boot-up. */
>> >>
>> >> s/fast link training/link retraining/ is what I'd put there.
>> >
>> > Adjusted ...
>> >>
>> >> I'm a bit sad to hide it but doesn't look like the proper solution is
>> >> going to happen any time soon.
>> >>
>> >> Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> >
>> > ... and merged since CI seems to approve too ;-)
>>
>> *sigh* you could've added debug logging at least. Now it's pretty much
>> guaranteed nobody will look at this. It's not right to end up here
>> without link params. :(
>
> I've made a JIRA internally to fix this and assigned it to Paul Parenteau
> for handling with his DP folks. But I'm happy to also r-b stamp a patch
> that adds some debug output here if you want that too. At least I thought
> the problem is fairly well-understood, so didn't think this was needed.
Oh, okay. Then it's just that *I* didn't understand the problem well. :(
BR,
Jani.
--
Jani Nikula, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-12-15 9:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-13 19:54 [PATCH] drm/i915: tune down the fast link training vs boot fail Daniel Vetter
2016-12-13 19:56 ` Linus Torvalds
2016-12-13 20:23 ` Ville Syrjälä
2016-12-13 22:37 ` Daniel Vetter
2016-12-14 14:56 ` [Intel-gfx] " Jani Nikula
2016-12-15 7:48 ` Daniel Vetter
2016-12-15 9:10 ` Jani Nikula
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).