Re: [dpdk-dev] [PATCH v6 1/2] bus/pci: use PCI standard sysfs entry to get PIO address
From: David Marchand <hidden>
Date: 2021-02-18 09:33:49
From: David Marchand <hidden>
Date: 2021-02-18 09:33:49
On Fri, Jan 29, 2021 at 4:19 AM 谢华伟(此时此刻) [off-list ref] wrote:
From: "huawei.xhw" <redacted>
Currently virtio PMD asssumes legacy device uses PIO bar.
There are three ways to get PIO(PortIO) address for virtio legacy device.
under igb_uio, get pio address from uio/uio# sysfs attribute
under uio_pci_generic:
for X86, get PIO address from /proc/ioport
for other ARCH, get PIO address from standard PCI sysfs attribute
Actually, igb_uio sysfs attribute exports exactly the same thing as standard PCI sysfs, i.e,
pci_dev->resource[]
This patch fixes these messy things, and uses standard PCI sysfs attribute.I can not find what is being fixed. Could you elaborate? -- David Marchand