Re: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-09 Thread Benjamin Herrenschmidt
On Fri, 2015-10-09 at 10:46 +0800, Wei Yang wrote: > On PHB_IODA2, we enable SRIOV devices by mapping IOV BAR with M64 BARs. If > a SRIOV device's IOV BAR is not 64bit-prefetchable, this is not assigned > from 64bit prefetchable window, which means M64 BAR can't work on it. Won't this cause a lot

RE: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-09 Thread David Laight
From: Benjamin Herrenschmidt > Sent: 09 October 2015 09:15 > On Fri, 2015-10-09 at 10:46 +0800, Wei Yang wrote: > > On PHB_IODA2, we enable SRIOV devices by mapping IOV BAR with M64 BARs. If > > a SRIOV device's IOV BAR is not 64bit-prefetchable, this is not assigned > > from 64bit prefetchable win

Re: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-11 Thread Wei Yang
On Fri, Oct 09, 2015 at 07:15:19PM +1100, Benjamin Herrenschmidt wrote: >On Fri, 2015-10-09 at 10:46 +0800, Wei Yang wrote: >> On PHB_IODA2, we enable SRIOV devices by mapping IOV BAR with M64 BARs. If >> a SRIOV device's IOV BAR is not 64bit-prefetchable, this is not assigned >> from 64bit prefetc

Re: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-11 Thread Wei Yang
On Fri, Oct 09, 2015 at 09:02:16AM +, David Laight wrote: >From: Benjamin Herrenschmidt >> Sent: 09 October 2015 09:15 >> On Fri, 2015-10-09 at 10:46 +0800, Wei Yang wrote: >> > On PHB_IODA2, we enable SRIOV devices by mapping IOV BAR with M64 BARs. If >> > a SRIOV device's IOV BAR is not 64bit

Re: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-11 Thread Benjamin Herrenschmidt
On Mon, 2015-10-12 at 10:58 +0800, Wei Yang wrote: > On Fri, Oct 09, 2015 at 07:15:19PM +1100, Benjamin Herrenschmidt wrote: > > On Fri, 2015-10-09 at 10:46 +0800, Wei Yang wrote: > > > On PHB_IODA2, we enable SRIOV devices by mapping IOV BAR with M64 BARs. If > > > a SRIOV device's IOV BAR is not

Re: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-12 Thread Gavin Shan
On Fri, Oct 09, 2015 at 10:46:51AM +0800, Wei Yang wrote: >On PHB_IODA2, we enable SRIOV devices by mapping IOV BAR with M64 BARs. If >a SRIOV device's IOV BAR is not 64bit-prefetchable, this is not assigned >from 64bit prefetchable window, which means M64 BAR can't work on it. > >The reason is PCI

Re: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-12 Thread Wei Yang
On Tue, Oct 13, 2015 at 11:01:24AM +1100, Gavin Shan wrote: >On Fri, Oct 09, 2015 at 10:46:51AM +0800, Wei Yang wrote: >>On PHB_IODA2, we enable SRIOV devices by mapping IOV BAR with M64 BARs. If >>a SRIOV device's IOV BAR is not 64bit-prefetchable, this is not assigned >>from 64bit prefetchable wi

Re: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-12 Thread Wei Yang
On Mon, Oct 12, 2015 at 12:25:24PM +0530, Benjamin Herrenschmidt wrote: >On Mon, 2015-10-12 at 10:58 +0800, Wei Yang wrote: >> On Fri, Oct 09, 2015 at 07:15:19PM +1100, Benjamin Herrenschmidt wrote: >> > On Fri, 2015-10-09 at 10:46 +0800, Wei Yang wrote: >> > > On PHB_IODA2, we enable SRIOV devices

Re: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-12 Thread Gavin Shan
On Tue, Oct 13, 2015 at 09:49:30AM +0800, Wei Yang wrote: >On Tue, Oct 13, 2015 at 11:01:24AM +1100, Gavin Shan wrote: >>On Fri, Oct 09, 2015 at 10:46:51AM +0800, Wei Yang wrote: >>>On PHB_IODA2, we enable SRIOV devices by mapping IOV BAR with M64 BARs. If >>>a SRIOV device's IOV BAR is not 64bit-p

Re: [PATCH V5 1/6] powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BAR

2015-10-12 Thread Wei Yang
On Tue, Oct 13, 2015 at 02:20:30PM +1100, Gavin Shan wrote: >On Tue, Oct 13, 2015 at 09:49:30AM +0800, Wei Yang wrote: >>On Tue, Oct 13, 2015 at 11:01:24AM +1100, Gavin Shan wrote: >>>On Fri, Oct 09, 2015 at 10:46:51AM +0800, Wei Yang wrote: On PHB_IODA2, we enable SRIOV devices by mapping IOV