[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 13/13] sdhci: add a "dma" property
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v6 13/13] sdhci: add a "dma" property |
Date: |
Fri, 12 Jan 2018 17:03:13 +0000 |
On 11 January 2018 at 19:30, Philippe Mathieu-Daudé <address@hidden> wrote:
> Add a dma property allowing machine creation to provide the address-space
> sdhci dma operates on.
>
> [based on a patch from Alistair Francis <address@hidden>
> from qemu/xilinx tag xilinx-v2016.1]
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> Reviewed-by: Alistair Francis <address@hidden>
> ---
> include/hw/sd/sdhci.h | 2 ++
> hw/sd/sdhci.c | 36 +++++++++++++++++++++++-------------
> 2 files changed, 25 insertions(+), 13 deletions(-)
This looks OK for the sysbus sdhci controller, but not for the
PCI one:
(1) the link property is meaningless for PCI, and we shouldn't
expose a meaningless thing to the end user
(2) the PCI device should surely be doing its DMA via the AS
returned by pci_get_address_space() ? (compare pci_dma_read &c
in include/hw/pci/pci.h)
2 is a bugfix to the existing code, of course, but if we're
going to tidy this up then the right answer to 2 may affect
how you want to handle 1.
thanks
-- PMM
- Re: [Qemu-devel] [PATCH v6 03/13] sdhci: refactor same sysbus/pci properties into a common one, (continued)
- [Qemu-devel] [PATCH v6 05/13] sdhci: refactor common sysbus/pci realize() into sdhci_common_realize(), Philippe Mathieu-Daudé, 2018/01/11
- [Qemu-devel] [PATCH v6 06/13] sdhci: refactor common sysbus/pci unrealize() into sdhci_common_unrealize(), Philippe Mathieu-Daudé, 2018/01/11
- [Qemu-devel] [PATCH v6 07/13] sdhci: use qemu_log_mask(UNIMP) instead of fprintf(), Philippe Mathieu-Daudé, 2018/01/11
- [Qemu-devel] [PATCH v6 08/13] sdhci: convert the DPRINT() calls into trace events, Philippe Mathieu-Daudé, 2018/01/11
- [Qemu-devel] [PATCH v6 09/13] sdhci: move MASK_TRNMOD with other SDHC_TRN* defines in "sd-internal.h", Philippe Mathieu-Daudé, 2018/01/11
- [Qemu-devel] [PATCH v6 10/13] sdhci: rename the SDHC_CAPAB register, Philippe Mathieu-Daudé, 2018/01/11
- [Qemu-devel] [PATCH v6 11/13] sdhci: fix CAPAB/MAXCURR registers, both are 64bit and read-only, Philippe Mathieu-Daudé, 2018/01/11
- [Qemu-devel] [PATCH v6 12/13] sdhci: Implement write method of ACMD12ERRSTS register, Philippe Mathieu-Daudé, 2018/01/11
- [Qemu-devel] [PATCH v6 13/13] sdhci: add a "dma" property, Philippe Mathieu-Daudé, 2018/01/11
- Re: [Qemu-devel] [PATCH v6 13/13] sdhci: add a "dma" property,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH v6 00/13] SDHCI: housekeeping, Alistair Francis, 2018/01/11