* [PATCH] thunderbolt: Fix connection issue with Pluggable UD-4VPD dock
@ 2024-11-05 8:53 Mika Westerberg
2024-11-05 9:17 ` Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Mika Westerberg @ 2024-11-05 8:53 UTC (permalink / raw)
To: linux-usb
Cc: Yehezkel Bernat, Michael Jamet, Lukas Wunner, Andreas Noever,
Rick Lahaye, Mario Limonciello, Sanath.S, christian, fabian,
gregkh, regressions, Mika Westerberg
Rick reported that his Pluggable USB4 dock does not work anymore after
6.6.28 kernel.
It looks like commit c6ca1ac9f472 ("thunderbolt: Increase sideband
access polling delay") makes the device router enumeration happen later
than what might be expected by the dock (although there is no such limit
in the USB4 spec) which probably makes it assume there is something
wrong with the high-speed link and reset it. After the link is reset the
same issue happens again and again.
For this reason lower the sideband access delay from 5ms to 1ms. This
seems to work fine according to Rick's testing.
Reported-by: Rick Lahaye <rick@581238.xyz>
Closes: https://lore.kernel.org/linux-usb/000f01db247b$d10e1520$732a3f60$@581238.xyz/
Tested-by: Rick Lahaye <rick@581238.xyz>
Fixes: c6ca1ac9f472 ("thunderbolt: Increase sideband access polling delay")
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
drivers/thunderbolt/usb4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thunderbolt/usb4.c b/drivers/thunderbolt/usb4.c
index 0a9b4aeb3fa1..402fdf8b1cde 100644
--- a/drivers/thunderbolt/usb4.c
+++ b/drivers/thunderbolt/usb4.c
@@ -48,7 +48,7 @@ enum usb4_ba_index {
/* Delays in us used with usb4_port_wait_for_bit() */
#define USB4_PORT_DELAY 50
-#define USB4_PORT_SB_DELAY 5000
+#define USB4_PORT_SB_DELAY 1000
static int usb4_native_switch_op(struct tb_switch *sw, u16 opcode,
u32 *metadata, u8 *status,
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] thunderbolt: Fix connection issue with Pluggable UD-4VPD dock
2024-11-05 8:53 [PATCH] thunderbolt: Fix connection issue with Pluggable UD-4VPD dock Mika Westerberg
@ 2024-11-05 9:17 ` Greg KH
2024-11-05 9:24 ` Mika Westerberg
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2024-11-05 9:17 UTC (permalink / raw)
To: Mika Westerberg
Cc: linux-usb, Yehezkel Bernat, Michael Jamet, Lukas Wunner,
Andreas Noever, Rick Lahaye, Mario Limonciello, Sanath.S,
christian, fabian, regressions
On Tue, Nov 05, 2024 at 10:53:01AM +0200, Mika Westerberg wrote:
> Rick reported that his Pluggable USB4 dock does not work anymore after
> 6.6.28 kernel.
>
> It looks like commit c6ca1ac9f472 ("thunderbolt: Increase sideband
> access polling delay") makes the device router enumeration happen later
> than what might be expected by the dock (although there is no such limit
> in the USB4 spec) which probably makes it assume there is something
> wrong with the high-speed link and reset it. After the link is reset the
> same issue happens again and again.
>
> For this reason lower the sideband access delay from 5ms to 1ms. This
> seems to work fine according to Rick's testing.
>
> Reported-by: Rick Lahaye <rick@581238.xyz>
> Closes: https://lore.kernel.org/linux-usb/000f01db247b$d10e1520$732a3f60$@581238.xyz/
> Tested-by: Rick Lahaye <rick@581238.xyz>
> Fixes: c6ca1ac9f472 ("thunderbolt: Increase sideband access polling delay")
This commit is not in the 6.6.y tree, it only showed up in 6.10.y, so
how does this resolve an issue in the 6.6.y tree?
confused,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] thunderbolt: Fix connection issue with Pluggable UD-4VPD dock
2024-11-05 9:17 ` Greg KH
@ 2024-11-05 9:24 ` Mika Westerberg
2024-11-05 9:50 ` Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Mika Westerberg @ 2024-11-05 9:24 UTC (permalink / raw)
To: Greg KH
Cc: linux-usb, Yehezkel Bernat, Michael Jamet, Lukas Wunner,
Andreas Noever, Rick Lahaye, Mario Limonciello, Sanath.S,
christian, fabian, regressions
Hi Greg,
On Tue, Nov 05, 2024 at 10:17:43AM +0100, Greg KH wrote:
> On Tue, Nov 05, 2024 at 10:53:01AM +0200, Mika Westerberg wrote:
> > Rick reported that his Pluggable USB4 dock does not work anymore after
> > 6.6.28 kernel.
> >
> > It looks like commit c6ca1ac9f472 ("thunderbolt: Increase sideband
> > access polling delay") makes the device router enumeration happen later
> > than what might be expected by the dock (although there is no such limit
> > in the USB4 spec) which probably makes it assume there is something
> > wrong with the high-speed link and reset it. After the link is reset the
> > same issue happens again and again.
> >
> > For this reason lower the sideband access delay from 5ms to 1ms. This
> > seems to work fine according to Rick's testing.
> >
> > Reported-by: Rick Lahaye <rick@581238.xyz>
> > Closes: https://lore.kernel.org/linux-usb/000f01db247b$d10e1520$732a3f60$@581238.xyz/
> > Tested-by: Rick Lahaye <rick@581238.xyz>
> > Fixes: c6ca1ac9f472 ("thunderbolt: Increase sideband access polling delay")
>
> This commit is not in the 6.6.y tree, it only showed up in 6.10.y, so
> how does this resolve an issue in the 6.6.y tree?
This refers to a mainline commit that caused the issue. The 6.6.28 is
the kernel version Rick used where it still worked. In other words, this
is not a backport of a fix but a fix intented to the mainline ;-) I hope
this clarifies. I can adjust the commit message if needed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] thunderbolt: Fix connection issue with Pluggable UD-4VPD dock
2024-11-05 9:24 ` Mika Westerberg
@ 2024-11-05 9:50 ` Greg KH
2024-11-05 9:56 ` Mika Westerberg
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2024-11-05 9:50 UTC (permalink / raw)
To: Mika Westerberg
Cc: linux-usb, Yehezkel Bernat, Michael Jamet, Lukas Wunner,
Andreas Noever, Rick Lahaye, Mario Limonciello, Sanath.S,
christian, fabian, regressions
On Tue, Nov 05, 2024 at 11:24:12AM +0200, Mika Westerberg wrote:
> Hi Greg,
>
> On Tue, Nov 05, 2024 at 10:17:43AM +0100, Greg KH wrote:
> > On Tue, Nov 05, 2024 at 10:53:01AM +0200, Mika Westerberg wrote:
> > > Rick reported that his Pluggable USB4 dock does not work anymore after
> > > 6.6.28 kernel.
> > >
> > > It looks like commit c6ca1ac9f472 ("thunderbolt: Increase sideband
> > > access polling delay") makes the device router enumeration happen later
> > > than what might be expected by the dock (although there is no such limit
> > > in the USB4 spec) which probably makes it assume there is something
> > > wrong with the high-speed link and reset it. After the link is reset the
> > > same issue happens again and again.
> > >
> > > For this reason lower the sideband access delay from 5ms to 1ms. This
> > > seems to work fine according to Rick's testing.
> > >
> > > Reported-by: Rick Lahaye <rick@581238.xyz>
> > > Closes: https://lore.kernel.org/linux-usb/000f01db247b$d10e1520$732a3f60$@581238.xyz/
> > > Tested-by: Rick Lahaye <rick@581238.xyz>
> > > Fixes: c6ca1ac9f472 ("thunderbolt: Increase sideband access polling delay")
> >
> > This commit is not in the 6.6.y tree, it only showed up in 6.10.y, so
> > how does this resolve an issue in the 6.6.y tree?
>
> This refers to a mainline commit that caused the issue. The 6.6.28 is
> the kernel version Rick used where it still worked. In other words, this
> is not a backport of a fix but a fix intented to the mainline ;-) I hope
> this clarifies. I can adjust the commit message if needed.
Ah, yeah, that is confusing so rewording it might be good as the
offending kernel is really 6.10, not 6.6.
Also, do you want me to take this in my tree now when you resend it, or
do you want to send it with other changes later?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] thunderbolt: Fix connection issue with Pluggable UD-4VPD dock
2024-11-05 9:50 ` Greg KH
@ 2024-11-05 9:56 ` Mika Westerberg
2024-11-05 10:05 ` Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Mika Westerberg @ 2024-11-05 9:56 UTC (permalink / raw)
To: Greg KH
Cc: linux-usb, Yehezkel Bernat, Michael Jamet, Lukas Wunner,
Andreas Noever, Rick Lahaye, Mario Limonciello, Sanath.S,
christian, fabian, regressions
On Tue, Nov 05, 2024 at 10:50:17AM +0100, Greg KH wrote:
> On Tue, Nov 05, 2024 at 11:24:12AM +0200, Mika Westerberg wrote:
> > Hi Greg,
> >
> > On Tue, Nov 05, 2024 at 10:17:43AM +0100, Greg KH wrote:
> > > On Tue, Nov 05, 2024 at 10:53:01AM +0200, Mika Westerberg wrote:
> > > > Rick reported that his Pluggable USB4 dock does not work anymore after
> > > > 6.6.28 kernel.
> > > >
> > > > It looks like commit c6ca1ac9f472 ("thunderbolt: Increase sideband
> > > > access polling delay") makes the device router enumeration happen later
> > > > than what might be expected by the dock (although there is no such limit
> > > > in the USB4 spec) which probably makes it assume there is something
> > > > wrong with the high-speed link and reset it. After the link is reset the
> > > > same issue happens again and again.
> > > >
> > > > For this reason lower the sideband access delay from 5ms to 1ms. This
> > > > seems to work fine according to Rick's testing.
> > > >
> > > > Reported-by: Rick Lahaye <rick@581238.xyz>
> > > > Closes: https://lore.kernel.org/linux-usb/000f01db247b$d10e1520$732a3f60$@581238.xyz/
> > > > Tested-by: Rick Lahaye <rick@581238.xyz>
> > > > Fixes: c6ca1ac9f472 ("thunderbolt: Increase sideband access polling delay")
> > >
> > > This commit is not in the 6.6.y tree, it only showed up in 6.10.y, so
> > > how does this resolve an issue in the 6.6.y tree?
> >
> > This refers to a mainline commit that caused the issue. The 6.6.28 is
> > the kernel version Rick used where it still worked. In other words, this
> > is not a backport of a fix but a fix intented to the mainline ;-) I hope
> > this clarifies. I can adjust the commit message if needed.
>
> Ah, yeah, that is confusing so rewording it might be good as the
> offending kernel is really 6.10, not 6.6.
Okay will do!
> Also, do you want me to take this in my tree now when you resend it, or
> do you want to send it with other changes later?
I'll send it along with one more fix later this week if that's fine.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] thunderbolt: Fix connection issue with Pluggable UD-4VPD dock
2024-11-05 9:56 ` Mika Westerberg
@ 2024-11-05 10:05 ` Greg KH
0 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2024-11-05 10:05 UTC (permalink / raw)
To: Mika Westerberg
Cc: linux-usb, Yehezkel Bernat, Michael Jamet, Lukas Wunner,
Andreas Noever, Rick Lahaye, Mario Limonciello, Sanath.S,
christian, fabian, regressions
On Tue, Nov 05, 2024 at 11:56:38AM +0200, Mika Westerberg wrote:
> On Tue, Nov 05, 2024 at 10:50:17AM +0100, Greg KH wrote:
> > On Tue, Nov 05, 2024 at 11:24:12AM +0200, Mika Westerberg wrote:
> > > Hi Greg,
> > >
> > > On Tue, Nov 05, 2024 at 10:17:43AM +0100, Greg KH wrote:
> > > > On Tue, Nov 05, 2024 at 10:53:01AM +0200, Mika Westerberg wrote:
> > > > > Rick reported that his Pluggable USB4 dock does not work anymore after
> > > > > 6.6.28 kernel.
> > > > >
> > > > > It looks like commit c6ca1ac9f472 ("thunderbolt: Increase sideband
> > > > > access polling delay") makes the device router enumeration happen later
> > > > > than what might be expected by the dock (although there is no such limit
> > > > > in the USB4 spec) which probably makes it assume there is something
> > > > > wrong with the high-speed link and reset it. After the link is reset the
> > > > > same issue happens again and again.
> > > > >
> > > > > For this reason lower the sideband access delay from 5ms to 1ms. This
> > > > > seems to work fine according to Rick's testing.
> > > > >
> > > > > Reported-by: Rick Lahaye <rick@581238.xyz>
> > > > > Closes: https://lore.kernel.org/linux-usb/000f01db247b$d10e1520$732a3f60$@581238.xyz/
> > > > > Tested-by: Rick Lahaye <rick@581238.xyz>
> > > > > Fixes: c6ca1ac9f472 ("thunderbolt: Increase sideband access polling delay")
> > > >
> > > > This commit is not in the 6.6.y tree, it only showed up in 6.10.y, so
> > > > how does this resolve an issue in the 6.6.y tree?
> > >
> > > This refers to a mainline commit that caused the issue. The 6.6.28 is
> > > the kernel version Rick used where it still worked. In other words, this
> > > is not a backport of a fix but a fix intented to the mainline ;-) I hope
> > > this clarifies. I can adjust the commit message if needed.
> >
> > Ah, yeah, that is confusing so rewording it might be good as the
> > offending kernel is really 6.10, not 6.6.
>
> Okay will do!
>
> > Also, do you want me to take this in my tree now when you resend it, or
> > do you want to send it with other changes later?
>
> I'll send it along with one more fix later this week if that's fine.
Sure!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-11-05 10:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-05 8:53 [PATCH] thunderbolt: Fix connection issue with Pluggable UD-4VPD dock Mika Westerberg
2024-11-05 9:17 ` Greg KH
2024-11-05 9:24 ` Mika Westerberg
2024-11-05 9:50 ` Greg KH
2024-11-05 9:56 ` Mika Westerberg
2024-11-05 10:05 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox