[PATCH v1 00/10] Add Xue - console over USB 3 Debug Capability

Marek Marczykowski-Górecki posted 10 patches 1 year, 11 months ago
Test gitlab-ci passed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.5d286dc6304969ed7155051e900236947c1b14dc.1654612169.git-series.marmarek@invisiblethingslab.com
There is a newer version of this series
docs/misc/xen-command-line.pandoc        |    5 +-
xen/arch/x86/Kconfig                     |    1 +-
xen/arch/x86/include/asm/fixmap.h        |    4 +-
xen/arch/x86/setup.c                     |    1 +-
xen/drivers/char/Kconfig                 |    7 +-
xen/drivers/char/Makefile                |    1 +-
xen/drivers/char/console.c               |   58 +-
xen/drivers/char/ehci-dbgp.c             |    2 +-
xen/drivers/char/xue.c                   | 1089 +++++++++++++++++++++++-
xen/drivers/passthrough/amd/iommu_acpi.c |   16 +-
xen/drivers/passthrough/iommu.c          |   40 +-
xen/drivers/passthrough/vtd/dmar.c       |  203 ++--
xen/include/xen/iommu.h                  |   11 +-
xen/include/xen/serial.h                 |    1 +-
14 files changed, 1342 insertions(+), 97 deletions(-)
create mode 100644 xen/drivers/char/xue.c
[PATCH v1 00/10] Add Xue - console over USB 3 Debug Capability
Posted by Marek Marczykowski-Górecki 1 year, 11 months ago
This is integration of https://github.com/connojd/xue into mainline Xen.
This patch series includes several patches that I made in the process, some are
very loosely related.

The driver developed by Connor supports output-only console via USB3 debug
capability. The capability is designed to operate mostly independently of
normal XHCI driver, so this patch series allows dom0 to drive standard USB3
controller part, while Xen uses DbC for console output.

Changes since RFC:
 - move the driver to xue.c, remove non-Xen parts, remove now unneeded abstraction
 - adjust for Xen code style
 - build for x86 only
 - drop patch hidding the device from dom0

Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: George Dunlap <george.dunlap@citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Julien Grall <julien@xen.org>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Wei Liu <wl@xen.org>
Cc: "Roger Pau Monné" <roger.pau@citrix.com>
Cc: Paul Durrant <paul@xen.org>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Connor Davis <connojdavis@gmail.com>

Connor Davis (1):
  drivers/char: Add support for Xue USB3 debugger

Marek Marczykowski-Górecki (9):
  xue: reset XHCI ports when initializing dbc
  xue: add support for selecting specific xhci
  ehci-dbgp: fix selecting n-th ehci controller
  console: support multiple serial console simultaneously
  IOMMU: add common API for device reserved memory
  IOMMU/VT-d: wire common device reserved memory API
  IOMMU/AMD: wire common device reserved memory API
  xue: mark DMA buffers as reserved for the device
  xue: allow driving the rest of XHCI by a domain while Xen uses DbC

 docs/misc/xen-command-line.pandoc        |    5 +-
 xen/arch/x86/Kconfig                     |    1 +-
 xen/arch/x86/include/asm/fixmap.h        |    4 +-
 xen/arch/x86/setup.c                     |    1 +-
 xen/drivers/char/Kconfig                 |    7 +-
 xen/drivers/char/Makefile                |    1 +-
 xen/drivers/char/console.c               |   58 +-
 xen/drivers/char/ehci-dbgp.c             |    2 +-
 xen/drivers/char/xue.c                   | 1089 +++++++++++++++++++++++-
 xen/drivers/passthrough/amd/iommu_acpi.c |   16 +-
 xen/drivers/passthrough/iommu.c          |   40 +-
 xen/drivers/passthrough/vtd/dmar.c       |  203 ++--
 xen/include/xen/iommu.h                  |   11 +-
 xen/include/xen/serial.h                 |    1 +-
 14 files changed, 1342 insertions(+), 97 deletions(-)
 create mode 100644 xen/drivers/char/xue.c

base-commit: 49dd52fb1311dadab29f6634d0bc1f4c022c357a
-- 
git-series 0.9.1

RE: [PATCH v1 00/10] Add Xue - console over USB 3 Debug Capability
Posted by Henry Wang 1 year, 10 months ago
Hi,

It seems that this series has been stale for more than a month, with:

Patch #1 #2 #3 needs actions from the author.
Patch #4 reviewed.
Patch #5 to #10 needs feedback from maintainers.

So sending this email as a gentle reminder. Thanks!

Kind regards,
Henry

> -----Original Message-----
> Subject: [PATCH v1 00/10] Add Xue - console over USB 3 Debug Capability
> 
> This is integration of https://github.com/connojd/xue into mainline Xen.
> This patch series includes several patches that I made in the process, some
> are
> very loosely related.
> 
> The driver developed by Connor supports output-only console via USB3
> debug
> capability. The capability is designed to operate mostly independently of
> normal XHCI driver, so this patch series allows dom0 to drive standard USB3
> controller part, while Xen uses DbC for console output.
> 
> Changes since RFC:
>  - move the driver to xue.c, remove non-Xen parts, remove now unneeded
> abstraction
>  - adjust for Xen code style
>  - build for x86 only
>  - drop patch hidding the device from dom0
> 
> Cc: Andrew Cooper <andrew.cooper3@citrix.com>
> Cc: George Dunlap <george.dunlap@citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Julien Grall <julien@xen.org>
> Cc: Stefano Stabellini <sstabellini@kernel.org>
> Cc: Wei Liu <wl@xen.org>
> Cc: "Roger Pau Monné" <roger.pau@citrix.com>
> Cc: Paul Durrant <paul@xen.org>
> Cc: Kevin Tian <kevin.tian@intel.com>
> Cc: Connor Davis <connojdavis@gmail.com>
> 
> Connor Davis (1):
>   drivers/char: Add support for Xue USB3 debugger
> 
> Marek Marczykowski-Górecki (9):
>   xue: reset XHCI ports when initializing dbc
>   xue: add support for selecting specific xhci
>   ehci-dbgp: fix selecting n-th ehci controller
>   console: support multiple serial console simultaneously
>   IOMMU: add common API for device reserved memory
>   IOMMU/VT-d: wire common device reserved memory API
>   IOMMU/AMD: wire common device reserved memory API
>   xue: mark DMA buffers as reserved for the device
>   xue: allow driving the rest of XHCI by a domain while Xen uses DbC
> 
>  docs/misc/xen-command-line.pandoc        |    5 +-
>  xen/arch/x86/Kconfig                     |    1 +-
>  xen/arch/x86/include/asm/fixmap.h        |    4 +-
>  xen/arch/x86/setup.c                     |    1 +-
>  xen/drivers/char/Kconfig                 |    7 +-
>  xen/drivers/char/Makefile                |    1 +-
>  xen/drivers/char/console.c               |   58 +-
>  xen/drivers/char/ehci-dbgp.c             |    2 +-
>  xen/drivers/char/xue.c                   | 1089 +++++++++++++++++++++++-
>  xen/drivers/passthrough/amd/iommu_acpi.c |   16 +-
>  xen/drivers/passthrough/iommu.c          |   40 +-
>  xen/drivers/passthrough/vtd/dmar.c       |  203 ++--
>  xen/include/xen/iommu.h                  |   11 +-
>  xen/include/xen/serial.h                 |    1 +-
>  14 files changed, 1342 insertions(+), 97 deletions(-)
>  create mode 100644 xen/drivers/char/xue.c
> 
> base-commit: 49dd52fb1311dadab29f6634d0bc1f4c022c357a
> --
> git-series 0.9.1

Re: [PATCH v1 00/10] Add Xue - console over USB 3 Debug Capability
Posted by Tamas K Lengyel 1 year, 11 months ago
On Tue, Jun 7, 2022 at 10:31 AM Marek Marczykowski-Górecki
<marmarek@invisiblethingslab.com> wrote:
>
> This is integration of https://github.com/connojd/xue into mainline Xen.
> This patch series includes several patches that I made in the process, some are
> very loosely related.
>
> The driver developed by Connor supports output-only console via USB3 debug
> capability. The capability is designed to operate mostly independently of
> normal XHCI driver, so this patch series allows dom0 to drive standard USB3
> controller part, while Xen uses DbC for console output.
>
> Changes since RFC:
>  - move the driver to xue.c, remove non-Xen parts, remove now unneeded abstraction
>  - adjust for Xen code style
>  - build for x86 only
>  - drop patch hidding the device from dom0

Tested-by: Tamas K Lengyel <tamas@tklengyel.com>