[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-05-12 Thread Bruce Richardson
On Mon, May 11, 2015 at 10:31:04AM -0700, Stephen Hemminger wrote: > On Mon, 11 May 2015 12:54:54 + > Neil Horman wrote: > > > On Thu, May 07, 2015 at 04:25:32PM -0700, Stephen Hemminger wrote: > > > From: Stephen Hemminger > > > > > > Some drivers need ability to access PCI config (for

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-05-11 Thread Neil Horman
On Mon, May 11, 2015 at 08:23:59AM -0700, Stephen Hemminger wrote: > Ok will stub out the pci_config stuff for BSD. > But I don't have time or resources to do real BSD support. > > Also, the whole bnx2x driver loads firmware and that probably has dependencies > that are different on BSD > Thats

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-05-11 Thread Stephen Hemminger
On Mon, 11 May 2015 12:54:54 + Neil Horman wrote: > On Thu, May 07, 2015 at 04:25:32PM -0700, Stephen Hemminger wrote: > > From: Stephen Hemminger > > > > Some drivers need ability to access PCI config (for example for power > > management). This adds an abstraction to do this; only

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-05-11 Thread Stephen Hemminger
On Mon, 11 May 2015 11:37:08 -0400 Neil Horman wrote: > On Mon, May 11, 2015 at 08:23:59AM -0700, Stephen Hemminger wrote: > > Ok will stub out the pci_config stuff for BSD. > > But I don't have time or resources to do real BSD support. > > > > Also, the whole bnx2x driver loads firmware and

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-05-11 Thread Neil Horman
On Thu, May 07, 2015 at 04:25:32PM -0700, Stephen Hemminger wrote: > From: Stephen Hemminger > > Some drivers need ability to access PCI config (for example for power > management). This adds an abstraction to do this; only implemented > on Linux, but should be possible on BSD. > >

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-05-11 Thread Stephen Hemminger
Ok will stub out the pci_config stuff for BSD. But I don't have time or resources to do real BSD support. Also, the whole bnx2x driver loads firmware and that probably has dependencies that are different on BSD

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-05-07 Thread Stephen Hemminger
From: Stephen Hemminger Some drivers need ability to access PCI config (for example for power management). This adds an abstraction to do this; only implemented on Linux, but should be possible on BSD. Signed-off-by: Stephen Hemminger ---

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-02-10 Thread Stephen Hemminger
Here is a revised version that works for both UIO and VFIO. The config access is property of device not the I/O model. From: Stephen Hemminger Subject: [PATCH 1/4] pci: allow access to PCI config space Some drivers need ability to access PCI config (for example for

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-02-10 Thread Stephen Hemminger
On Mon, 9 Feb 2015 10:45:01 +0100 David Marchand wrote: > Hello Stephen,? > > - It looks a bit odd to me, we end up with something asymetric between uio / > vfio wrt pci config space. > Can we an api consistent between the two ? > Does this mean that your pmd cannot work / has not been used

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-02-09 Thread David Marchand
Hello Stephen, - It looks a bit odd to me, we end up with something asymetric between uio / vfio wrt pci config space. Can we an api consistent between the two ? Does this mean that your pmd cannot work / has not been used with vfio ? - Anyway, I suppose we could reuse this api to remove the

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-02-06 Thread Stephen Hemminger
From: Stephen Hemminger Some drivers need ability to access PCI config (for example for power management). This adds an abstraction to do this; only implemented on Linux, but should be possible on BSD. Signed-off-by: Stephen Hemminger ---