From: Mario Limonciello <mario.limonciello@amd.com>
To: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Mathias Nyman <mathias.nyman@linux.intel.com>,
linux-usb@vger.kernel.org, gregkh@linuxfoundation.org
Subject: Re: [PATCH 0/4] Add device links between tunneled USB3 devices and USB4 Host
Date: Mon, 24 Jun 2024 13:41:09 -0500 [thread overview]
Message-ID: <78a4acf4-4701-4d1c-8547-c8809761a452@amd.com> (raw)
In-Reply-To: <20240624045912.GJ1532424@black.fi.intel.com>
>>
>> So I think the problem is you will have an ordering dependency between the
>> two drivers for when the link gets created.
>>
>> Like if thunderbolt.ko loads you would end up with links to PCIe root port
>> for tunneling as well as XHCI controller.
>
> With this patch we only create links to PCIe Root/Downstream ports from
> Thunderbolt side and the USB core will deal with the USB ones.
>
>> Then xhci loads and you end up also adding links to individual ports.
>> Would you remove the link to the controller?
>
> See above.
>
>> And if the order is the other way around you end up with a larger state
>> machine.
>>
>> How about PCIe core provides a helper to know whether or not a PCIe device
>> will support the proprietary register?
>
> I think the xHCI can be non-PCIe device too (Apple silicon for
> instance). The links here are created dynamically and only if there is
> need (and support from the hardware) so we can let the USB4 controller
> enter D3hot if there is no USB 3.x tunnel needed.
When I replied I was under the presumption that the next version the
link creation code for XHCI controller would stay in thunderbolt.ko and
the XHCI port would be in xhci.ko. But if you move both non-Intel and
Intel cases to xhci.ko this should be totally fine. If you can CC me on
the next version of the series I'll get that tested for AMD case.
Thanks!
next prev parent reply other threads:[~2024-06-24 18:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-19 13:03 [PATCH 0/4] Add device links between tunneled USB3 devices and USB4 Host Mathias Nyman
2024-06-19 13:03 ` [PATCH 1/4] xhci: Add USB4 tunnel detection for USB3 devices on Intel hosts Mathias Nyman
2024-06-19 13:03 ` [PATCH 2/4] usb: Add tunneled parameter to usb device structure Mathias Nyman
2024-06-19 13:03 ` [PATCH 3/4] usb: acpi: add device link between tunneled USB3 device and USB4 Host Interface Mathias Nyman
2024-06-19 13:03 ` [PATCH 4/4] thunderbolt: Don't create device link from USB4 Host Interface to USB3 xHC host Mathias Nyman
2024-06-20 6:41 ` [PATCH 0/4] Add device links between tunneled USB3 devices and USB4 Host Mika Westerberg
2024-06-20 18:36 ` Mario Limonciello
2024-06-21 6:19 ` Mika Westerberg
2024-06-21 16:30 ` Mario Limonciello
2024-06-24 4:59 ` Mika Westerberg
2024-06-24 18:41 ` Mario Limonciello [this message]
2024-06-25 5:02 ` Mika Westerberg
2024-06-25 14:37 ` Mathias Nyman
2024-06-25 14:45 ` Mika Westerberg
2024-06-25 14:55 ` Mario Limonciello
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=78a4acf4-4701-4d1c-8547-c8809761a452@amd.com \
--to=mario.limonciello@amd.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@linux.intel.com \
--cc=mika.westerberg@linux.intel.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