[EXT] [PATCH v3 3/4] bus/pci: introduce helper for MMIO read and write

Sunil Kumar Kori skori at marvell.com
Mon May 29 08:16:10 CEST 2023


> -----Original Message-----
> From: Miao Li <miao.li at intel.com>
> Sent: Thursday, May 25, 2023 10:01 PM
> To: dev at dpdk.org
> Cc: Sunil Kumar Kori <skori at marvell.com>; thomas at monjalon.net;
> david.marchand at redhat.com; ferruh.yigit at amd.com;
> chenbo.xia at intel.com; yahui.cao at intel.com; Anatoly Burakov
> <anatoly.burakov at intel.com>
> Subject: [EXT] [PATCH v3 3/4] bus/pci: introduce helper for MMIO read and
> write
> 
> External Email
> 
> ----------------------------------------------------------------------
> From: Chenbo Xia <chenbo.xia at intel.com>
> 
> The MMIO regions may not be mmap-able for VFIO-PCI devices.
> In this case, the driver should explicitly do read and write to access these
> regions.
> 
> Signed-off-by: Chenbo Xia <chenbo.xia at intel.com>
> ---
>  drivers/bus/pci/bsd/pci.c        | 22 +++++++++++++++
>  drivers/bus/pci/linux/pci.c      | 46 ++++++++++++++++++++++++++++++
>  drivers/bus/pci/linux/pci_init.h | 10 +++++++
> drivers/bus/pci/linux/pci_uio.c  | 22 +++++++++++++++
> drivers/bus/pci/linux/pci_vfio.c | 36 ++++++++++++++++++++++++
>  drivers/bus/pci/rte_bus_pci.h    | 48 ++++++++++++++++++++++++++++++++
>  drivers/bus/pci/version.map      |  3 ++
>  7 files changed, 187 insertions(+)
> 
Acked-by: Sunil Kumar Kori <skori at marvell.com>

...
[snipped]
...

> 2.25.1



More information about the dev mailing list