mbox

[PULL,00/22] Memory API patches for 2021-12-31

Message ID 20211231005546.723396-1-philmd@redhat.com (mailing list archive)
State New, archived
Headers show

Pull-request

https://github.com/philmd/qemu.git tags/memory-api-20211231

Message

Philippe Mathieu-Daudé Dec. 31, 2021, 12:55 a.m. UTC
The following changes since commit d5a9f352896fe43183ef01072b374e89a3488315:

  Merge tag 'pull-jobs-2021-12-29' of https://src.openvz.org/scm/~vsementsov/qemu into staging (2021-12-29 14:33:23 -0800)

are available in the Git repository at:

  https://github.com/philmd/qemu.git tags/memory-api-20211231

for you to fetch changes up to 4a63054bce23982b99f4d3c65528e47e614086b2:

  pci: Let ld*_pci_dma() propagate MemTxResult (2021-12-31 01:05:27 +0100)

----------------------------------------------------------------
Memory API patches

Have various functions from the Memory API:
- take a MemTxAttrs argument,
- propagate a MemTxResult.

Some patches trigger "WARNING: line over 80 characters",
and a pair "ERROR: spaces required around that '*' (ctx:WxV)",
both false positives.
----------------------------------------------------------------

Philippe Mathieu-Daudé (22):
  hw/scsi/megasas: Use uint32_t for reply queue head/tail values
  dma: Let dma_memory_valid() take MemTxAttrs argument
  dma: Let dma_memory_set() take MemTxAttrs argument
  dma: Let dma_memory_rw_relaxed() take MemTxAttrs argument
  dma: Let dma_memory_rw() take MemTxAttrs argument
  dma: Let dma_memory_read/write() take MemTxAttrs argument
  dma: Let dma_memory_map() take MemTxAttrs argument
  dma: Have dma_buf_rw() take a void pointer
  dma: Have dma_buf_read() / dma_buf_write() take a void pointer
  pci: Let pci_dma_rw() take MemTxAttrs argument
  dma: Let dma_buf_rw() take MemTxAttrs argument
  dma: Let dma_buf_write() take MemTxAttrs argument
  dma: Let dma_buf_read() take MemTxAttrs argument
  dma: Let dma_buf_rw() propagate MemTxResult
  dma: Let st*_dma() take MemTxAttrs argument
  dma: Let ld*_dma() take MemTxAttrs argument
  dma: Let st*_dma() propagate MemTxResult
  dma: Let ld*_dma() propagate MemTxResult
  pci: Let st*_pci_dma() take MemTxAttrs argument
  pci: Let ld*_pci_dma() take MemTxAttrs argument
  pci: Let st*_pci_dma() propagate MemTxResult
  pci: Let ld*_pci_dma() propagate MemTxResult

 include/hw/pci/pci.h          | 38 +++++++++------
 include/hw/ppc/spapr_vio.h    | 30 ++++++++----
 include/sysemu/dma.h          | 88 ++++++++++++++++++++---------------
 hw/arm/musicpal.c             | 13 +++---
 hw/arm/smmu-common.c          |  3 +-
 hw/arm/smmuv3.c               | 14 ++++--
 hw/audio/intel-hda.c          | 13 ++++--
 hw/core/generic-loader.c      |  3 +-
 hw/display/virtio-gpu.c       | 10 ++--
 hw/dma/pl330.c                | 12 +++--
 hw/dma/sparc32_dma.c          | 16 ++++---
 hw/dma/xlnx-zynq-devcfg.c     |  6 ++-
 hw/dma/xlnx_dpdma.c           | 10 ++--
 hw/hyperv/vmbus.c             |  8 ++--
 hw/i386/amd_iommu.c           | 16 ++++---
 hw/i386/intel_iommu.c         | 28 ++++++-----
 hw/ide/ahci.c                 | 18 ++++---
 hw/ide/macio.c                |  2 +-
 hw/intc/pnv_xive.c            |  7 +--
 hw/intc/spapr_xive.c          |  3 +-
 hw/intc/xive.c                |  7 +--
 hw/misc/bcm2835_property.c    |  3 +-
 hw/misc/macio/mac_dbdma.c     | 10 ++--
 hw/net/allwinner-sun8i-emac.c | 18 ++++---
 hw/net/eepro100.c             | 49 +++++++++++--------
 hw/net/ftgmac100.c            | 25 ++++++----
 hw/net/imx_fec.c              | 32 ++++++++-----
 hw/net/npcm7xx_emc.c          | 20 ++++----
 hw/net/tulip.c                | 36 +++++++-------
 hw/nvme/ctrl.c                |  5 +-
 hw/nvram/fw_cfg.c             | 16 ++++---
 hw/pci-host/pnv_phb3.c        |  5 +-
 hw/pci-host/pnv_phb3_msi.c    |  9 ++--
 hw/pci-host/pnv_phb4.c        |  5 +-
 hw/scsi/esp-pci.c             |  2 +-
 hw/scsi/megasas.c             | 64 ++++++++++++++-----------
 hw/scsi/mptsas.c              | 16 +++++--
 hw/scsi/scsi-bus.c            |  4 +-
 hw/scsi/vmw_pvscsi.c          | 20 +++++---
 hw/sd/allwinner-sdhost.c      | 14 +++---
 hw/sd/sdhci.c                 | 35 ++++++++------
 hw/usb/hcd-dwc2.c             |  8 ++--
 hw/usb/hcd-ehci.c             |  6 ++-
 hw/usb/hcd-ohci.c             | 28 ++++++-----
 hw/usb/hcd-xhci.c             | 26 +++++++----
 hw/usb/libhw.c                |  3 +-
 hw/virtio/virtio.c            |  6 ++-
 softmmu/dma-helpers.c         | 40 ++++++++++------
 hw/scsi/trace-events          |  8 ++--
 49 files changed, 526 insertions(+), 332 deletions(-)

Comments

Richard Henderson Dec. 31, 2021, 5:22 a.m. UTC | #1
On 12/30/21 4:55 PM, Philippe Mathieu-Daudé wrote:
> The following changes since commit d5a9f352896fe43183ef01072b374e89a3488315:
> 
>    Merge tag 'pull-jobs-2021-12-29' of https://src.openvz.org/scm/~vsementsov/qemu into staging (2021-12-29 14:33:23 -0800)
> 
> are available in the Git repository at:
> 
>    https://github.com/philmd/qemu.git tags/memory-api-20211231
> 
> for you to fetch changes up to 4a63054bce23982b99f4d3c65528e47e614086b2:
> 
>    pci: Let ld*_pci_dma() propagate MemTxResult (2021-12-31 01:05:27 +0100)
> 
> ----------------------------------------------------------------
> Memory API patches
> 
> Have various functions from the Memory API:
> - take a MemTxAttrs argument,
> - propagate a MemTxResult.
> 
> Some patches trigger "WARNING: line over 80 characters",
> and a pair "ERROR: spaces required around that '*' (ctx:WxV)",
> both false positives.
> ----------------------------------------------------------------
> 
> Philippe Mathieu-Daudé (22):
>    hw/scsi/megasas: Use uint32_t for reply queue head/tail values
>    dma: Let dma_memory_valid() take MemTxAttrs argument
>    dma: Let dma_memory_set() take MemTxAttrs argument
>    dma: Let dma_memory_rw_relaxed() take MemTxAttrs argument
>    dma: Let dma_memory_rw() take MemTxAttrs argument
>    dma: Let dma_memory_read/write() take MemTxAttrs argument
>    dma: Let dma_memory_map() take MemTxAttrs argument
>    dma: Have dma_buf_rw() take a void pointer
>    dma: Have dma_buf_read() / dma_buf_write() take a void pointer
>    pci: Let pci_dma_rw() take MemTxAttrs argument
>    dma: Let dma_buf_rw() take MemTxAttrs argument
>    dma: Let dma_buf_write() take MemTxAttrs argument
>    dma: Let dma_buf_read() take MemTxAttrs argument
>    dma: Let dma_buf_rw() propagate MemTxResult
>    dma: Let st*_dma() take MemTxAttrs argument
>    dma: Let ld*_dma() take MemTxAttrs argument
>    dma: Let st*_dma() propagate MemTxResult
>    dma: Let ld*_dma() propagate MemTxResult
>    pci: Let st*_pci_dma() take MemTxAttrs argument
>    pci: Let ld*_pci_dma() take MemTxAttrs argument
>    pci: Let st*_pci_dma() propagate MemTxResult
>    pci: Let ld*_pci_dma() propagate MemTxResult
> 
>   include/hw/pci/pci.h          | 38 +++++++++------
>   include/hw/ppc/spapr_vio.h    | 30 ++++++++----
>   include/sysemu/dma.h          | 88 ++++++++++++++++++++---------------
>   hw/arm/musicpal.c             | 13 +++---
>   hw/arm/smmu-common.c          |  3 +-
>   hw/arm/smmuv3.c               | 14 ++++--
>   hw/audio/intel-hda.c          | 13 ++++--
>   hw/core/generic-loader.c      |  3 +-
>   hw/display/virtio-gpu.c       | 10 ++--
>   hw/dma/pl330.c                | 12 +++--
>   hw/dma/sparc32_dma.c          | 16 ++++---
>   hw/dma/xlnx-zynq-devcfg.c     |  6 ++-
>   hw/dma/xlnx_dpdma.c           | 10 ++--
>   hw/hyperv/vmbus.c             |  8 ++--
>   hw/i386/amd_iommu.c           | 16 ++++---
>   hw/i386/intel_iommu.c         | 28 ++++++-----
>   hw/ide/ahci.c                 | 18 ++++---
>   hw/ide/macio.c                |  2 +-
>   hw/intc/pnv_xive.c            |  7 +--
>   hw/intc/spapr_xive.c          |  3 +-
>   hw/intc/xive.c                |  7 +--
>   hw/misc/bcm2835_property.c    |  3 +-
>   hw/misc/macio/mac_dbdma.c     | 10 ++--
>   hw/net/allwinner-sun8i-emac.c | 18 ++++---
>   hw/net/eepro100.c             | 49 +++++++++++--------
>   hw/net/ftgmac100.c            | 25 ++++++----
>   hw/net/imx_fec.c              | 32 ++++++++-----
>   hw/net/npcm7xx_emc.c          | 20 ++++----
>   hw/net/tulip.c                | 36 +++++++-------
>   hw/nvme/ctrl.c                |  5 +-
>   hw/nvram/fw_cfg.c             | 16 ++++---
>   hw/pci-host/pnv_phb3.c        |  5 +-
>   hw/pci-host/pnv_phb3_msi.c    |  9 ++--
>   hw/pci-host/pnv_phb4.c        |  5 +-
>   hw/scsi/esp-pci.c             |  2 +-
>   hw/scsi/megasas.c             | 64 ++++++++++++++-----------
>   hw/scsi/mptsas.c              | 16 +++++--
>   hw/scsi/scsi-bus.c            |  4 +-
>   hw/scsi/vmw_pvscsi.c          | 20 +++++---
>   hw/sd/allwinner-sdhost.c      | 14 +++---
>   hw/sd/sdhci.c                 | 35 ++++++++------
>   hw/usb/hcd-dwc2.c             |  8 ++--
>   hw/usb/hcd-ehci.c             |  6 ++-
>   hw/usb/hcd-ohci.c             | 28 ++++++-----
>   hw/usb/hcd-xhci.c             | 26 +++++++----
>   hw/usb/libhw.c                |  3 +-
>   hw/virtio/virtio.c            |  6 ++-
>   softmmu/dma-helpers.c         | 40 ++++++++++------
>   hw/scsi/trace-events          |  8 ++--
>   49 files changed, 526 insertions(+), 332 deletions(-)

Applied, thanks.

r~