All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: "Christian Schaubschläger" <christian.schaubschlaeger@gmx.at>
Cc: linux-usb@vger.kernel.org,
	"michael.simon@cpsd.at" <michael.simon@cpsd.at>
Subject: Re: Possible problem with thunderbolt 4
Date: Fri, 30 Dec 2022 14:21:56 +0200	[thread overview]
Message-ID: <Y67X5JrnRxYN/pns@black.fi.intel.com> (raw)
In-Reply-To: <272a5f28-5733-3aa1-ff3e-57febd3b217f@gmx.at>

On Fri, Dec 30, 2022 at 01:08:36PM +0100, Christian Schaubschläger wrote:
> 
> > No but this is not the "final" solution - just an experiment.
> >
> > Okay so we have this:
> >
> > - When both Linux and Windows uses the same firmware connection manager
> >   all work.
> >
> > - If you install Windows 11 (or whatever the fresh one is that actually
> >   supports USB4 and software connection manager) you end up in the
> >   exact same situation.
> I'm running Win10 22H2 on this machine... I could upgrade to Win11 if this helps.

Most likely it will just make the Windows work like Linux (so PXE does
not work) therere I don't suggest doing that.

> > Can you try following:
> >
> > 1. Go back to CONFIG_USB4=m
> > 2. Boot the system up
> > 3. Check that the PCIe tunneling is up and things work as expected
> > 4. Unplug the dock
> > 5. Unload the Thunderbolt driver
> >
> >   # rmmod thunderbolt
> >
> > 6. Plug the dock back
> > 7. Soft reboot the system
> >
> > Does this make the PXE boot see the connected device?
> After these steps the firmware sees the connected device!

OK.

> If I just remove the module without un- and re-plugging the cable, the
> connection is not there in the firmware after the reboot.

Right because the driver leaves all the tunnels up so the boot firmware
then finds the PCIe tunnels established.

One more experiment if you will.

Same steps 1-3 as above but then do this:

4. Disconnect the PCIe tunnel directly:

  # echo 0 > /sys/bus/thunderbolt/devices/DEVICE/authorized

(where DEVICE is typically 0-1 or 0-3 in Intel platforms)

5. Check in lspci that it is not visible anymore
6. Soft boot the system.

In other words this leaves the USB4 link and other tunnels up but not
PCIe.

  reply	other threads:[~2022-12-30 12:21 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-23 11:24 Possible problem with thunderbolt 4 Christian Schaubschläger
2022-12-27 14:28 ` Mika Westerberg
2022-12-30  7:57   ` Christian Schaubschläger
2022-12-30  9:28     ` Mika Westerberg
2022-12-30 11:38       ` Christian Schaubschläger
2022-12-30 11:55         ` Mika Westerberg
2022-12-30 12:08           ` Christian Schaubschläger
2022-12-30 12:21             ` Mika Westerberg [this message]
2023-01-02  8:56               ` Christian Schaubschläger
2023-01-02 11:11                 ` Mika Westerberg
2023-01-02 11:45                   ` Christian Schaubschläger
2023-01-02 16:23                     ` Mika Westerberg
2023-01-03  9:08                       ` Christian Schaubschläger
2023-01-03 11:08                         ` Mika Westerberg
2023-01-03 12:14                           ` Christian Schaubschläger
2023-01-03 16:07                             ` Mika Westerberg
2023-01-03 17:50                               ` Christian Schaubschläger
2023-01-04  8:04                                 ` Mika Westerberg
2023-01-09 12:17                                   ` Christian Schaubschläger
2023-01-09 12:50                                     ` Mika Westerberg
2023-01-09 14:21                                       ` Christian Schaubschläger
2023-01-10 15:12                                         ` Mika Westerberg
2023-01-11 10:38                                           ` Christian Schaubschläger
2023-01-11 10:45                                             ` Mika Westerberg
2023-01-19  9:41                                               ` Christian Schaubschläger
2023-01-19 10:10                                                 ` Mika Westerberg
2023-01-19 14:37                                                   ` Christian Schaubschläger
2023-01-20 10:14                                                     ` Mika Westerberg
2023-01-20 11:19                                                       ` Christian Schaubschläger
2023-01-20 11:36                                                         ` Mika Westerberg
2023-01-27 12:07                                                     ` Christian Schaubschläger
2023-01-27 12:27                                                       ` Mika Westerberg
2023-01-30 10:52                                                         ` Christian Schaubschläger
2023-01-30 14:10                                                           ` Mika Westerberg
2023-03-06 11:52                                                             ` Mika Westerberg
2023-03-06 12:27                                                               ` Christian Schaubschläger
2023-05-23  8:22                                                                 ` Christian Schaubschläger
2023-05-23  8:55                                                                   ` Mika Westerberg

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=Y67X5JrnRxYN/pns@black.fi.intel.com \
    --to=mika.westerberg@linux.intel.com \
    --cc=christian.schaubschlaeger@gmx.at \
    --cc=linux-usb@vger.kernel.org \
    --cc=michael.simon@cpsd.at \
    /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.