[PATCH v4 0/7] Make hcd-xhci independent of pci hooks

Sai Pavan Boddu posted 7 patches 3 years, 8 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
hw/arm/xlnx-versal-virt.c               |  59 ++++
hw/arm/xlnx-versal.c                    |  38 ++
hw/misc/Makefile.objs                   |   1 +
hw/misc/xlnx-versal-usb2-regs.c         | 224 ++++++++++++
hw/usb/Kconfig                          |  11 +
hw/usb/Makefile.objs                    |   3 +
hw/usb/hcd-dwc3.c                       | 606 ++++++++++++++++++++++++++++++++
hw/usb/hcd-xhci-nec.c                   |  18 +-
hw/usb/hcd-xhci-pci.c                   | 244 +++++++++++++
hw/usb/hcd-xhci-pci.h                   |  45 +++
hw/usb/hcd-xhci-sysbus.c                |  99 ++++++
hw/usb/hcd-xhci-sysbus.h                |  32 ++
hw/usb/hcd-xhci.c                       | 260 +++-----------
hw/usb/hcd-xhci.h                       |  22 +-
include/hw/arm/xlnx-versal.h            |  14 +
include/hw/misc/xlnx-versal-usb2-regs.h |  43 +++
include/hw/usb/hcd-dwc3.h               |  58 +++
17 files changed, 1552 insertions(+), 225 deletions(-)
create mode 100644 hw/misc/xlnx-versal-usb2-regs.c
create mode 100644 hw/usb/hcd-dwc3.c
create mode 100644 hw/usb/hcd-xhci-pci.c
create mode 100644 hw/usb/hcd-xhci-pci.h
create mode 100644 hw/usb/hcd-xhci-sysbus.c
create mode 100644 hw/usb/hcd-xhci-sysbus.h
create mode 100644 include/hw/misc/xlnx-versal-usb2-regs.h
create mode 100644 include/hw/usb/hcd-dwc3.h
[PATCH v4 0/7] Make hcd-xhci independent of pci hooks
Posted by Sai Pavan Boddu 3 years, 8 months ago
This patch series attempts to make 'hcd-xhci' an independent model so
it can be used by both pci and system-bus interface.

Changes for V2:
    Make XHCIState non-qom
    Use container_of functions for retriving pci device instance
    Initialize the AddressSpace pointer in PATCH 1/3 itself
Changes for V3:
    Convert XHCIState to TYPE_DEVICE and register as a child of XHCIPciState.
Changes for V4:
    Add DWC3 usb controller
    Add versal, usb2-reg module
    Connect sysbus xhci to versal virt board

Sai Pavan Boddu (5):
  usb/hcd-xhci: Make dma read/writes hooks pci free
  usb/hcd-xhci: Move qemu-xhci device to hcd-xhci-pci.c
  usb/hcd-xhci: Split pci wrapper for xhci base model
  usb: hcd-xhci-sysbus: Attach xhci to sysbus device
  misc: Add versal-usb2-regs module

Vikram Garhwal (2):
  usb: Add DWC3 model
  Versal: Connect DWC3 controller with virt-versal

 hw/arm/xlnx-versal-virt.c               |  59 ++++
 hw/arm/xlnx-versal.c                    |  38 ++
 hw/misc/Makefile.objs                   |   1 +
 hw/misc/xlnx-versal-usb2-regs.c         | 224 ++++++++++++
 hw/usb/Kconfig                          |  11 +
 hw/usb/Makefile.objs                    |   3 +
 hw/usb/hcd-dwc3.c                       | 606 ++++++++++++++++++++++++++++++++
 hw/usb/hcd-xhci-nec.c                   |  18 +-
 hw/usb/hcd-xhci-pci.c                   | 244 +++++++++++++
 hw/usb/hcd-xhci-pci.h                   |  45 +++
 hw/usb/hcd-xhci-sysbus.c                |  99 ++++++
 hw/usb/hcd-xhci-sysbus.h                |  32 ++
 hw/usb/hcd-xhci.c                       | 260 +++-----------
 hw/usb/hcd-xhci.h                       |  22 +-
 include/hw/arm/xlnx-versal.h            |  14 +
 include/hw/misc/xlnx-versal-usb2-regs.h |  43 +++
 include/hw/usb/hcd-dwc3.h               |  58 +++
 17 files changed, 1552 insertions(+), 225 deletions(-)
 create mode 100644 hw/misc/xlnx-versal-usb2-regs.c
 create mode 100644 hw/usb/hcd-dwc3.c
 create mode 100644 hw/usb/hcd-xhci-pci.c
 create mode 100644 hw/usb/hcd-xhci-pci.h
 create mode 100644 hw/usb/hcd-xhci-sysbus.c
 create mode 100644 hw/usb/hcd-xhci-sysbus.h
 create mode 100644 include/hw/misc/xlnx-versal-usb2-regs.h
 create mode 100644 include/hw/usb/hcd-dwc3.h

-- 
2.7.4


Re: [PATCH v4 0/7] Make hcd-xhci independent of pci hooks
Posted by Gerd Hoffmann 3 years, 8 months ago
On Sat, Aug 29, 2020 at 12:49:33AM +0530, Sai Pavan Boddu wrote:
> This patch series attempts to make 'hcd-xhci' an independent model so
> it can be used by both pci and system-bus interface.

Doesn't apply to git master.
Seems the series needs a rebase and adaption to the meson build system.

take care,
  Gerd


RE: [PATCH v4 0/7] Make hcd-xhci independent of pci hooks
Posted by Sai Pavan Boddu 3 years, 8 months ago
Hi Gred,

> -----Original Message-----
> From: Gerd Hoffmann <kraxel@redhat.com>
> Sent: Monday, August 31, 2020 5:28 PM
> To: Sai Pavan Boddu <saipava@xilinx.com>
> Cc: Peter Maydell <peter.maydell@linaro.org>; Markus Armbruster
> <armbru@redhat.com>; 'Marc-André Lureau'
> <marcandre.lureau@redhat.com>; Paolo Bonzini <pbonzini@redhat.com>;
> Edgar Iglesias <edgari@xilinx.com>; Francisco Eduardo Iglesias
> <figlesia@xilinx.com>; qemu-devel@nongnu.org; Alistair Francis
> <alistair.francis@wdc.com>; Eduardo Habkost <ehabkost@redhat.com>;
> Ying Fang <fangying1@huawei.com>; 'Philippe Mathieu-Daudé'
> <philmd@redhat.com>; Vikram Garhwal <fnuv@xilinx.com>; Paul
> Zimmerman <pauldzim@gmail.com>
> Subject: Re: [PATCH v4 0/7] Make hcd-xhci independent of pci hooks
> 
> On Sat, Aug 29, 2020 at 12:49:33AM +0530, Sai Pavan Boddu wrote:
> > This patch series attempts to make 'hcd-xhci' an independent model so
> > it can be used by both pci and system-bus interface.
> 
> Doesn't apply to git master.
> Seems the series needs a rebase and adaption to the meson build system.
[Sai Pavan Boddu] Ok, I missed rebasing patches over master branch. I will update this in V5.

Thanks,
Sai Pavan
> 
> take care,
>   Gerd