patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH 0/2] support both PIO and MMIO BAR for legacy virito device
@ 2021-06-10  8:46 谢华伟(此时此刻)
  2021-06-10  8:46 ` [dpdk-stable] [PATCH 1/2] bus/pci: use PCI standard sysfs entry to get PIO address 谢华伟(此时此刻)
  2021-06-10  8:46 ` [dpdk-stable] [PATCH 2/2] bus/pci: support MMIO in PCI ioport accessors 谢华伟(此时此刻)
  0 siblings, 2 replies; 3+ messages in thread
From: 谢华伟(此时此刻) @ 2021-06-10  8:46 UTC (permalink / raw)
  To: david.marchand
  Cc: stable, maxime.coquelin, ferruh.yigit, heqing.zhu, grive,
	谢华伟(此时此刻)

virtio PMD assumes legacy device only supports PIO(port-mapped) BAR 
resource. This is wrong. As we need to create lots of devices, adn PIO 
resource on x86 is very limited, we expose MMIO(memory-mapped I/O) BAR.

Kernel supports both PIO and MMIO BAR for legacy virtio-pci device, and 
for all other pci devices. This patchset handles different type of BAR in
the similar way.

In previous implementation, under igb_uio driver we get PIO address from
igb_uio sysfs entry; with uio_pci_generic, we get PIO address from
/proc/ioports for x86, and for other ARCHs, we get PIO address from
standard PCI sysfs entry. For PIO/MMIO RW, there is different path for 
different drivers and arch.

All of the above is too much twisted. This patchset unifies the way to get 
both PIO and MMIO address for different driver and ARCHs, all from standard
resource attr under pci sysfs. This is most generic.

We distinguish PIO and MMIO by their address range like how kernel does.
It is ugly but works.

huawei xie (2):
  bus/pci: use PCI standard sysfs entry to get PIO address
  bus/pci: support MMIO in PCI ioport accessors

 drivers/bus/pci/linux/pci.c     |  81 ---------------
 drivers/bus/pci/linux/pci_uio.c | 214 ++++++++++++++++++++++++++++------------
 2 files changed, 150 insertions(+), 145 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-10  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10  8:46 [dpdk-stable] [PATCH 0/2] support both PIO and MMIO BAR for legacy virito device 谢华伟(此时此刻)
2021-06-10  8:46 ` [dpdk-stable] [PATCH 1/2] bus/pci: use PCI standard sysfs entry to get PIO address 谢华伟(此时此刻)
2021-06-10  8:46 ` [dpdk-stable] [PATCH 2/2] bus/pci: support MMIO in PCI ioport accessors 谢华伟(此时此刻)

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/stable/0 stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ https://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git