qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 41d5e8: hw/scsi/megasas: Use uint32_t for rep


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] 41d5e8: hw/scsi/megasas: Use uint32_t for reply queue head...
Date: Thu, 30 Dec 2021 17:03:28 -0800

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 41d5e8da3d5e0a143a9fb397c9f34707ec544997
      
https://github.com/qemu/qemu/commit/41d5e8da3d5e0a143a9fb397c9f34707ec544997
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M hw/scsi/megasas.c
    M hw/scsi/trace-events

  Log Message:
  -----------
  hw/scsi/megasas: Use uint32_t for reply queue head/tail values

While the reply queue values fit in 16-bit, they are accessed
as 32-bit:

  661:    s->reply_queue_head = ldl_le_pci_dma(pcid, s->producer_pa);
  662:    s->reply_queue_head %= MEGASAS_MAX_FRAMES;
  663:    s->reply_queue_tail = ldl_le_pci_dma(pcid, s->consumer_pa);
  664:    s->reply_queue_tail %= MEGASAS_MAX_FRAMES;

Having:

  41:#define MEGASAS_MAX_FRAMES 2048         /* Firmware limit at 65535 */

In order to update the ld/st*_pci_dma() API to pass the address
of the value to access, it is simpler to have the head/tail declared
as 32-bit values. Replace the uint16_t by uint32_t, wasting 4 bytes in
the MegasasState structure.

Acked-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-20-philmd@redhat.com>


  Commit: 7ccb391ccd594b3f33de8deb293ff8d47bb4e219
      
https://github.com/qemu/qemu/commit/7ccb391ccd594b3f33de8deb293ff8d47bb4e219
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M include/hw/ppc/spapr_vio.h
    M include/sysemu/dma.h

  Log Message:
  -----------
  dma: Let dma_memory_valid() take MemTxAttrs argument

Let devices specify transaction attributes when calling
dma_memory_valid().

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20211223115554.3155328-2-philmd@redhat.com>


  Commit: 7a36e42d9114474278ce30ba36945cc62292eb60
      
https://github.com/qemu/qemu/commit/7a36e42d9114474278ce30ba36945cc62292eb60
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M hw/nvram/fw_cfg.c
    M include/hw/ppc/spapr_vio.h
    M include/sysemu/dma.h
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  dma: Let dma_memory_set() take MemTxAttrs argument

Let devices specify transaction attributes when calling
dma_memory_set().

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20211223115554.3155328-3-philmd@redhat.com>


  Commit: 4afd0f2f220ec3dc8518b8de0d66cbf8d2fd1be7
      
https://github.com/qemu/qemu/commit/4afd0f2f220ec3dc8518b8de0d66cbf8d2fd1be7
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M include/sysemu/dma.h

  Log Message:
  -----------
  dma: Let dma_memory_rw_relaxed() take MemTxAttrs argument

We will add the MemTxAttrs argument to dma_memory_rw() in
the next commit. Since dma_memory_rw_relaxed() is only used
by dma_memory_rw(), modify it first in a separate commit to
keep the next commit easier to review.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20211223115554.3155328-4-philmd@redhat.com>


  Commit: 23faf5694ff8054b847e9733297727be4a641132
      
https://github.com/qemu/qemu/commit/23faf5694ff8054b847e9733297727be4a641132
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M hw/intc/spapr_xive.c
    M hw/usb/hcd-ohci.c
    M include/hw/pci/pci.h
    M include/sysemu/dma.h
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  dma: Let dma_memory_rw() take MemTxAttrs argument

Let devices specify transaction attributes when calling
dma_memory_rw().

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20211223115554.3155328-5-philmd@redhat.com>


  Commit: ba06fe8add5b788956a7317246c6280dfc157040
      
https://github.com/qemu/qemu/commit/ba06fe8add5b788956a7317246c6280dfc157040
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M hw/arm/musicpal.c
    M hw/arm/smmu-common.c
    M hw/arm/smmuv3.c
    M hw/core/generic-loader.c
    M hw/dma/pl330.c
    M hw/dma/sparc32_dma.c
    M hw/dma/xlnx-zynq-devcfg.c
    M hw/dma/xlnx_dpdma.c
    M hw/i386/amd_iommu.c
    M hw/i386/intel_iommu.c
    M hw/ide/macio.c
    M hw/intc/xive.c
    M hw/misc/bcm2835_property.c
    M hw/misc/macio/mac_dbdma.c
    M hw/net/allwinner-sun8i-emac.c
    M hw/net/ftgmac100.c
    M hw/net/imx_fec.c
    M hw/net/npcm7xx_emc.c
    M hw/nvram/fw_cfg.c
    M hw/pci-host/pnv_phb3.c
    M hw/pci-host/pnv_phb3_msi.c
    M hw/pci-host/pnv_phb4.c
    M hw/sd/allwinner-sdhost.c
    M hw/sd/sdhci.c
    M hw/usb/hcd-dwc2.c
    M hw/usb/hcd-ehci.c
    M hw/usb/hcd-ohci.c
    M hw/usb/hcd-xhci.c
    M include/hw/ppc/spapr_vio.h
    M include/sysemu/dma.h

  Log Message:
  -----------
  dma: Let dma_memory_read/write() take MemTxAttrs argument

Let devices specify transaction attributes when calling
dma_memory_read() or dma_memory_write().

Patch created mechanically using spatch with this script:

  @@
  expression E1, E2, E3, E4;
  @@
  (
  - dma_memory_read(E1, E2, E3, E4)
  + dma_memory_read(E1, E2, E3, E4, MEMTXATTRS_UNSPECIFIED)
  |
  - dma_memory_write(E1, E2, E3, E4)
  + dma_memory_write(E1, E2, E3, E4, MEMTXATTRS_UNSPECIFIED)
  )

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20211223115554.3155328-6-philmd@redhat.com>


  Commit: a1d4b0a3051b3079c8db607f519bc0fcb30e17ec
      
https://github.com/qemu/qemu/commit/a1d4b0a3051b3079c8db607f519bc0fcb30e17ec
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M hw/display/virtio-gpu.c
    M hw/hyperv/vmbus.c
    M hw/ide/ahci.c
    M hw/usb/libhw.c
    M hw/virtio/virtio.c
    M include/hw/pci/pci.h
    M include/sysemu/dma.h
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  dma: Let dma_memory_map() take MemTxAttrs argument

Let devices specify transaction attributes when calling
dma_memory_map().

Patch created mechanically using spatch with this script:

  @@
  expression E1, E2, E3, E4;
  @@
  - dma_memory_map(E1, E2, E3, E4)
  + dma_memory_map(E1, E2, E3, E4, MEMTXATTRS_UNSPECIFIED)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20211223115554.3155328-7-philmd@redhat.com>


  Commit: c0ee1527358474c75067993d1bb233ad3a4ee081
      
https://github.com/qemu/qemu/commit/c0ee1527358474c75067993d1bb233ad3a4ee081
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  dma: Have dma_buf_rw() take a void pointer

DMA operations are run on any kind of buffer, not arrays of
uint8_t. Convert dma_buf_rw() to take a void pointer argument
to save us pointless casts to uint8_t *.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-8-philmd@redhat.com>


  Commit: 5e468a36dcdd8fd5eb04282842b72967a29875e4
      
https://github.com/qemu/qemu/commit/5e468a36dcdd8fd5eb04282842b72967a29875e4
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M hw/scsi/megasas.c
    M include/sysemu/dma.h
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  dma: Have dma_buf_read() / dma_buf_write() take a void pointer

DMA operations are run on any kind of buffer, not arrays of
uint8_t. Convert dma_buf_read/dma_buf_write functions to take
a void pointer argument and save us pointless casts to uint8_t *.

Remove this pointless casts in the megasas device model.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-9-philmd@redhat.com>


  Commit: e2d784b67dc724a9b0854b49255ba0ee8ca46543
      
https://github.com/qemu/qemu/commit/e2d784b67dc724a9b0854b49255ba0ee8ca46543
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M hw/audio/intel-hda.c
    M hw/scsi/esp-pci.c
    M include/hw/pci/pci.h

  Log Message:
  -----------
  pci: Let pci_dma_rw() take MemTxAttrs argument

Let devices specify transaction attributes when calling pci_dma_rw().

Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-10-philmd@redhat.com>


  Commit: 959384e74e1b508acc3af6e806b3d7b87335fc2a
      
https://github.com/qemu/qemu/commit/959384e74e1b508acc3af6e806b3d7b87335fc2a
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  dma: Let dma_buf_rw() take MemTxAttrs argument

Let devices specify transaction attributes when calling dma_buf_rw().

Keep the default MEMTXATTRS_UNSPECIFIED in the 2 callers.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-11-philmd@redhat.com>


  Commit: 392e48af3468d7f8e49db33fdc9e28b5f99276ce
      
https://github.com/qemu/qemu/commit/392e48af3468d7f8e49db33fdc9e28b5f99276ce
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M hw/ide/ahci.c
    M hw/nvme/ctrl.c
    M hw/scsi/megasas.c
    M hw/scsi/scsi-bus.c
    M include/sysemu/dma.h
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  dma: Let dma_buf_write() take MemTxAttrs argument

Let devices specify transaction attributes when calling
dma_buf_write().

Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-12-philmd@redhat.com>


  Commit: 1e5a3f8b2a976054da96cbbb9de6cbac7c2efb79
      
https://github.com/qemu/qemu/commit/1e5a3f8b2a976054da96cbbb9de6cbac7c2efb79
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M hw/ide/ahci.c
    M hw/nvme/ctrl.c
    M hw/scsi/megasas.c
    M hw/scsi/scsi-bus.c
    M include/sysemu/dma.h
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  dma: Let dma_buf_read() take MemTxAttrs argument

Let devices specify transaction attributes when calling
dma_buf_read().

Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-13-philmd@redhat.com>


  Commit: 292e13142d277c15bdd68331abc607e46628b7e1
      
https://github.com/qemu/qemu/commit/292e13142d277c15bdd68331abc607e46628b7e1
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  dma: Let dma_buf_rw() propagate MemTxResult

dma_memory_rw() returns a MemTxResult type. Do not discard
it, return it to the caller.

Since dma_buf_rw() was previously returning the QEMUSGList
size not consumed, add an extra argument where this size
can be stored.

Update the 2 callers.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-14-philmd@redhat.com>


  Commit: 2280c27afc65bb2af95dd44a88e3b7117bfe240a
      
https://github.com/qemu/qemu/commit/2280c27afc65bb2af95dd44a88e3b7117bfe240a
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M hw/nvram/fw_cfg.c
    M include/hw/pci/pci.h
    M include/hw/ppc/spapr_vio.h
    M include/sysemu/dma.h

  Log Message:
  -----------
  dma: Let st*_dma() take MemTxAttrs argument

Let devices specify transaction attributes when calling st*_dma().

Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-16-philmd@redhat.com>


  Commit: 34cdea1db600540a5261dc474e986f28b637c8e6
      
https://github.com/qemu/qemu/commit/34cdea1db600540a5261dc474e986f28b637c8e6
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M hw/intc/pnv_xive.c
    M hw/usb/hcd-xhci.c
    M include/hw/pci/pci.h
    M include/hw/ppc/spapr_vio.h
    M include/sysemu/dma.h

  Log Message:
  -----------
  dma: Let ld*_dma() take MemTxAttrs argument

Let devices specify transaction attributes when calling ld*_dma().

Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-17-philmd@redhat.com>


  Commit: 24aed6bcb6b6d266149591f955c2460c28759eb4
      
https://github.com/qemu/qemu/commit/24aed6bcb6b6d266149591f955c2460c28759eb4
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M include/sysemu/dma.h

  Log Message:
  -----------
  dma: Let st*_dma() propagate MemTxResult

dma_memory_write() returns a MemTxResult type. Do not discard
it, return it to the caller.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-18-philmd@redhat.com>


  Commit: cd1db8df7431edd2210ed0123e2e09b9b6d1e621
      
https://github.com/qemu/qemu/commit/cd1db8df7431edd2210ed0123e2e09b9b6d1e621
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M hw/intc/pnv_xive.c
    M hw/usb/hcd-xhci.c
    M include/hw/pci/pci.h
    M include/hw/ppc/spapr_vio.h
    M include/sysemu/dma.h

  Log Message:
  -----------
  dma: Let ld*_dma() propagate MemTxResult

dma_memory_read() returns a MemTxResult type. Do not discard
it, return it to the caller.

Update the few callers.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-19-philmd@redhat.com>


  Commit: a423a1b523296f8798a5851aaaba64dd166c0a74
      
https://github.com/qemu/qemu/commit/a423a1b523296f8798a5851aaaba64dd166c0a74
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M hw/audio/intel-hda.c
    M hw/net/eepro100.c
    M hw/net/tulip.c
    M hw/scsi/megasas.c
    M hw/scsi/vmw_pvscsi.c
    M include/hw/pci/pci.h

  Log Message:
  -----------
  pci: Let st*_pci_dma() take MemTxAttrs argument

Let devices specify transaction attributes when calling st*_pci_dma().

Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-21-philmd@redhat.com>


  Commit: 398f9a84ac7132e38caf7b066273734b3bf619ff
      
https://github.com/qemu/qemu/commit/398f9a84ac7132e38caf7b066273734b3bf619ff
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M hw/audio/intel-hda.c
    M hw/net/eepro100.c
    M hw/net/tulip.c
    M hw/scsi/megasas.c
    M hw/scsi/mptsas.c
    M hw/scsi/vmw_pvscsi.c
    M hw/usb/hcd-xhci.c
    M include/hw/pci/pci.h

  Log Message:
  -----------
  pci: Let ld*_pci_dma() take MemTxAttrs argument

Let devices specify transaction attributes when calling ld*_pci_dma().

Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-22-philmd@redhat.com>


  Commit: 6bebb270731758fae3114b7d24c2b12b7c325cc5
      
https://github.com/qemu/qemu/commit/6bebb270731758fae3114b7d24c2b12b7c325cc5
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M include/hw/pci/pci.h

  Log Message:
  -----------
  pci: Let st*_pci_dma() propagate MemTxResult

st*_dma() returns a MemTxResult type. Do not discard
it, return it to the caller.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-23-philmd@redhat.com>


  Commit: 4a63054bce23982b99f4d3c65528e47e614086b2
      
https://github.com/qemu/qemu/commit/4a63054bce23982b99f4d3c65528e47e614086b2
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M hw/audio/intel-hda.c
    M hw/net/eepro100.c
    M hw/net/tulip.c
    M hw/scsi/megasas.c
    M hw/scsi/mptsas.c
    M hw/scsi/vmw_pvscsi.c
    M include/hw/pci/pci.h

  Log Message:
  -----------
  pci: Let ld*_pci_dma() propagate MemTxResult

ld*_dma() returns a MemTxResult type. Do not discard
it, return it to the caller.

Update the few callers.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-24-philmd@redhat.com>


  Commit: 69f153667fce723ee546d2f047d66d0cfa67c3cc
      
https://github.com/qemu/qemu/commit/69f153667fce723ee546d2f047d66d0cfa67c3cc
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

  Changed paths:
    M hw/arm/musicpal.c
    M hw/arm/smmu-common.c
    M hw/arm/smmuv3.c
    M hw/audio/intel-hda.c
    M hw/core/generic-loader.c
    M hw/display/virtio-gpu.c
    M hw/dma/pl330.c
    M hw/dma/sparc32_dma.c
    M hw/dma/xlnx-zynq-devcfg.c
    M hw/dma/xlnx_dpdma.c
    M hw/hyperv/vmbus.c
    M hw/i386/amd_iommu.c
    M hw/i386/intel_iommu.c
    M hw/ide/ahci.c
    M hw/ide/macio.c
    M hw/intc/pnv_xive.c
    M hw/intc/spapr_xive.c
    M hw/intc/xive.c
    M hw/misc/bcm2835_property.c
    M hw/misc/macio/mac_dbdma.c
    M hw/net/allwinner-sun8i-emac.c
    M hw/net/eepro100.c
    M hw/net/ftgmac100.c
    M hw/net/imx_fec.c
    M hw/net/npcm7xx_emc.c
    M hw/net/tulip.c
    M hw/nvme/ctrl.c
    M hw/nvram/fw_cfg.c
    M hw/pci-host/pnv_phb3.c
    M hw/pci-host/pnv_phb3_msi.c
    M hw/pci-host/pnv_phb4.c
    M hw/scsi/esp-pci.c
    M hw/scsi/megasas.c
    M hw/scsi/mptsas.c
    M hw/scsi/scsi-bus.c
    M hw/scsi/trace-events
    M hw/scsi/vmw_pvscsi.c
    M hw/sd/allwinner-sdhost.c
    M hw/sd/sdhci.c
    M hw/usb/hcd-dwc2.c
    M hw/usb/hcd-ehci.c
    M hw/usb/hcd-ohci.c
    M hw/usb/hcd-xhci.c
    M hw/usb/libhw.c
    M hw/virtio/virtio.c
    M include/hw/pci/pci.h
    M include/hw/ppc/spapr_vio.h
    M include/sysemu/dma.h
    M softmmu/dma-helpers.c

  Log Message:
  -----------
  Merge tag 'memory-api-20211231' of https://github.com/philmd/qemu into staging

Memory API patches

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

# gpg: Signature made Thu 30 Dec 2021 04:52:20 PM PST
# gpg:                using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE
# gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" 
[unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: FAAB E75E 1291 7221 DCFD  6BB2 E3E3 2C2C DEAD C0DE

* tag 'memory-api-20211231' of https://github.com/philmd/qemu: (22 commits)
  pci: Let ld*_pci_dma() propagate MemTxResult
  pci: Let st*_pci_dma() propagate MemTxResult
  pci: Let ld*_pci_dma() take MemTxAttrs argument
  pci: Let st*_pci_dma() take MemTxAttrs argument
  dma: Let ld*_dma() propagate MemTxResult
  dma: Let st*_dma() propagate MemTxResult
  dma: Let ld*_dma() take MemTxAttrs argument
  dma: Let st*_dma() take MemTxAttrs argument
  dma: Let dma_buf_rw() propagate MemTxResult
  dma: Let dma_buf_read() take MemTxAttrs argument
  dma: Let dma_buf_write() take MemTxAttrs argument
  dma: Let dma_buf_rw() take MemTxAttrs argument
  pci: Let pci_dma_rw() take MemTxAttrs argument
  dma: Have dma_buf_read() / dma_buf_write() take a void pointer
  dma: Have dma_buf_rw() take a void pointer
  dma: Let dma_memory_map() take MemTxAttrs argument
  dma: Let dma_memory_read/write() take MemTxAttrs argument
  dma: Let dma_memory_rw() take MemTxAttrs argument
  dma: Let dma_memory_rw_relaxed() take MemTxAttrs argument
  dma: Let dma_memory_set() take MemTxAttrs argument
  ...

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Compare: https://github.com/qemu/qemu/compare/d5a9f352896f...69f153667fce



reply via email to

[Prev in Thread] Current Thread [Next in Thread]