From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: Tamas K Lengyel <tamas.k.lengyel@gmail.com>
Cc: xen-devel@lists.xenproject.org, "Jan Beulich" <jbeulich@suse.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
"George Dunlap" <george.dunlap@citrix.com>,
"Julien Grall" <julien@xen.org>,
"Stefano Stabellini" <sstabellini@kernel.org>
Subject: Re: [RFC PATCH 01/12] drivers/char: Add support for Xue USB3 debugger
Date: Mon, 6 Jun 2022 19:04:34 +0200 [thread overview]
Message-ID: <Yp4zo1UQV19euwRb@mail-itl> (raw)
In-Reply-To: <CABfawhkkGr6Lp4SBEw7nsqfUs28QEqoCuVgTRBg9ZUCirLW5_g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2742 bytes --]
On Mon, Jun 06, 2022 at 12:57:26PM -0400, Tamas K Lengyel wrote:
> On Mon, Jun 6, 2022 at 10:10 AM Tamas K Lengyel
> <tamas.k.lengyel@gmail.com> wrote:
> >
> > On Mon, Jun 6, 2022 at 10:03 AM Marek Marczykowski-Górecki
> > <marmarek@invisiblethingslab.com> wrote:
> > >
> > > On Mon, Jun 06, 2022 at 09:32:52AM -0400, Tamas K Lengyel wrote:
> > > > > +/* Supported xHC PCI configurations */
> > > > > +#define XUE_XHC_CLASSC 0xC0330ULL
> > > > > +#define XUE_XHC_VEN_INTEL 0x8086ULL
> > > > > +#define XUE_XHC_DEV_Z370 0xA2AFULL
> > > > > +#define XUE_XHC_DEV_Z390 0xA36DULL
> > > > > +#define XUE_XHC_DEV_WILDCAT_POINT 0x9CB1ULL
> > > > > +#define XUE_XHC_DEV_SUNRISE_POINT 0x9D2FULL
> > > > > +#define XUE_XHC_DEV_CANNON_POINT 0x9DEDULL
> > > >
> > > > I had to add an extra device ID here to get it working on my NUC,
> > > > would be nice if we could add that to the list of supported configs so
> > > > I don't need to custom patch:
> > > >
> > > > #define XUE_XHC_DEV_COMET_LAKE 0x02EDULL
> > > >
> > > > The patch is here:
> > > > https://github.com/tklengyel/xen/commit/dd0423aba6caa4ef41dff65470598a1c0c1105ae
> > >
> > > Interesting, I think known_xhc() is used only in the EFI variant of Xue.
> > > Xen one just looks for any XHC based on the device class. And indeed, I
> > > works for me on Tiger Lake that is not included here.
> > >
> > > I did need to select specific controller, since I have 3 of them:
> > > 00:0d.0 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 USB Controller (rev 01)
> > > 00:0d.2 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 NHI #0 (rev 01)
> > > 00:14.0 USB controller: Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller (rev 20)
> > >
> > > So, I need dbgp=xue2 or dbgp=xue@pci00:14.0.
> >
> > Interesting! OK, I'll give that a shot and see if it works that way
> > for me too, it's certainly been a while since I last tested :)
>
> Yeap, with console=dbgp dbgp=xue@pci00:14.0 it works as expected.
> Xen's boot does hang if you don't have a debug cable connected or if
> the other end is not plugged into the right USB3 port. Not sure if
> that behavior is documented anywhere. Once I found the right USB3 port
> on the machine that receives the debug output it started booting and
> everything works expected (ie. one-way communication only).
Indeed, the indefinite wait for the connection is not the most
convenient. For debugging, I added some timeout, but it was based on
the loop iterations not an actual time (not sure if there is any time
source available at this early stage...). I'll see if this can be
improved.
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2022-06-06 17:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-06 3:40 [RFC PATCH 00/12] Add Xue - console over USB 3 Debug Capability Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 01/12] drivers/char: Add support for Xue USB3 debugger Marek Marczykowski-Górecki
2022-06-06 13:32 ` Tamas K Lengyel
2022-06-06 14:03 ` Marek Marczykowski-Górecki
2022-06-06 14:10 ` Tamas K Lengyel
2022-06-06 16:57 ` Tamas K Lengyel
2022-06-06 17:04 ` Marek Marczykowski-Górecki [this message]
2022-06-06 3:40 ` [RFC PATCH 02/12] xue: annotate functions with cf_check Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 03/12] xue: reset XHCI ports when initializing dbc Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 04/12] xue: add support for selecting specific xhci Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 05/12] ehci-dbgp: fix selecting n-th ehci controller Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 06/12] console: support multiple serial console simultaneously Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 07/12] IOMMU: add common API for device reserved memory Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 08/12] IOMMU/VT-d: wire common device reserved memory API Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 09/12] IOMMU/AMD: " Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 10/12] xue: mark DMA buffers as reserved for the device Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 11/12] xue: prevent dom0 (or other domain) from using " Marek Marczykowski-Górecki
2022-06-06 3:40 ` [RFC PATCH 12/12] xue: allow driving the reset of XHCI by a domain while Xen uses DbC Marek Marczykowski-Górecki
2022-06-06 13:18 ` [RFC PATCH 00/12] Add Xue - console over USB 3 Debug Capability Lengyel, Tamas
2022-06-06 13:37 ` Marczykowski, Marek
2022-06-06 13:18 ` Andrew Cooper
2022-06-06 13:56 ` Marek Marczykowski-Górecki
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=Yp4zo1UQV19euwRb@mail-itl \
--to=marmarek@invisiblethingslab.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=tamas.k.lengyel@gmail.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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.