#
7bb1168d |
| 14-Sep-2023 |
David Marchand <david.marchand@redhat.com> |
pci: define some MSIX constants
Define some PCI MSIX constants and use them in existing drivers.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richards
pci: define some MSIX constants
Define some PCI MSIX constants and use them in existing drivers.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Chenbo Xia <chenbo.xia@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
#
095cf6e6 |
| 31-May-2023 |
Chenbo Xia <chenbo.xia@intel.com> |
bus/pci: introduce MMIO read/write
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: C
bus/pci: introduce MMIO read/write
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@intel.com> Acked-by: Sunil Kumar Kori <skori@marvell.com> Acked-by: Yahui Cao <yahui.cao@intel.com>
show more ...
|
#
4b741542 |
| 31-May-2023 |
Chenbo Xia <chenbo.xia@intel.com> |
bus/pci: avoid depending on private kernel value
The value 40 used in VFIO_GET_REGION_ADDR() is a private value (VFIO_PCI_OFFSET_SHIFT) defined in Linux kernel source [1]. It is not part of VFIO API
bus/pci: avoid depending on private kernel value
The value 40 used in VFIO_GET_REGION_ADDR() is a private value (VFIO_PCI_OFFSET_SHIFT) defined in Linux kernel source [1]. It is not part of VFIO API, and we should not depend on it.
[1] https://github.com/torvalds/linux/blob/v6.2/include/linux/vfio_pci_core.h
Signed-off-by: Chenbo Xia <chenbo.xia@intel.com> Acked-by: Sunil Kumar Kori <skori@marvell.com> Acked-by: Yahui Cao <yahui.cao@intel.com>
show more ...
|
#
e1ece609 |
| 17-Sep-2020 |
David Marchand <david.marchand@redhat.com> |
pci: move resource mapping to the PCI bus
As reported during 20.08 work for Windows, the pci_map_resource API was built with the assumption that its flags would be passed to mmap().
This introduced
pci: move resource mapping to the PCI bus
As reported during 20.08 work for Windows, the pci_map_resource API was built with the assumption that its flags would be passed to mmap().
This introduced a regression when adding the rte_mem_map API as reported in the workaround commit 9d2b24593724 ("pci: keep API compatibility with mmap values").
This API was only used in the PCI bus code, so move it there.
There is no code change happening during the move. The only change is in the pci_map_resource description where the additional flags are now documented as rte_mem_map API flags: - * The additional flags for the mapping range. + * The additional rte_mem_map() flags for the mapping range.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com> Acked-by: Ray Kinsella <mdr@ashroe.eu>
show more ...
|
#
a12f2267 |
| 27-Dec-2017 |
Stephen Hemminger <stephen@networkplumber.org> |
bus/pci: do not use kernel version to determine MSIX defines
In real life, kernel version is only weakly corolated with presence or absence of defines in header files. Instead, check directly if the
bus/pci: do not use kernel version to determine MSIX defines
In real life, kernel version is only weakly corolated with presence or absence of defines in header files. Instead, check directly if the needed value is defined.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
#
5566a3e3 |
| 19-Dec-2017 |
Bruce Richardson <bruce.richardson@intel.com> |
drivers: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <bruce.richardson@in
drivers: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
bc104bb8 |
| 30-Oct-2017 |
Ferruh Yigit <ferruh.yigit@intel.com> |
bus/pci: fix VFIO mode
Revert back to using VFIO_PRESENT as a marker to enable compilation of VFIO-related segments.
VFIO_PRESENT is the combination of user configuration RTE_EAL_VFIO and kernel ve
bus/pci: fix VFIO mode
Revert back to using VFIO_PRESENT as a marker to enable compilation of VFIO-related segments.
VFIO_PRESENT is the combination of user configuration RTE_EAL_VFIO and kernel version support check.
eal_vfio.h VFIO_PRESENT related check ordered to be compatible with rte_vfio.h one, no functional modification.
Fixes: 279b581c897d ("vfio: expose functions")
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Tested-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
c752998b |
| 26-Oct-2017 |
Gaetan Rivet <gaetan.rivet@6wind.com> |
pci: introduce library and driver
The PCI lib defines the types and methods allowing to use PCI elements.
The PCI bus implements a bus driver for PCI devices by constructing rte_bus elements using
pci: introduce library and driver
The PCI lib defines the types and methods allowing to use PCI elements.
The PCI bus implements a bus driver for PCI devices by constructing rte_bus elements using the PCI lib.
Move the relevant code out of the EAL to its expected place.
Libraries, drivers, unit tests and applications are updated to use the new rte_bus_pci.h header when necessary.
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
show more ...
|