Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Christoph Hellwig
On Fri, Aug 14, 2015 at 09:58:16AM -0700, Dan Williams wrote: > > I'll merge with your code for v3. > > Sounds, let me go rebase the __pfn_t patches on -mm so we'all lined up > and collision free. I'm doubt that we'll have PFN mapping ready for 4.3. I'd rather see Ross series goes first, and mov

Re: [PATCH v6 42/42] pci/hotplug: PowerPC PowerNV PCI hotplug driver

2015-08-15 Thread Alexey Kardashevskiy
On 08/15/2015 02:47 PM, Gavin Shan wrote: On Sat, Aug 15, 2015 at 01:13:21PM +1000, Alexey Kardashevskiy wrote: On 08/06/2015 02:11 PM, Gavin Shan wrote: The patch intends to add standalone driver to support PCI hotplug for PowerPC PowerNV platform, which runs on top of skiboot firmware. The fi

Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Christoph Hellwig
On Thu, Aug 13, 2015 at 10:51:11AM -0600, Ross Zwisler wrote: > Update the annotation for the kaddr pointer returned by direct_access() > so that it is a __pmem pointer. This is consistent with the PMEM driver > and with how this direct_access() pointer is used in the DAX code. IFF we stick to th

Re: [PATCH v6 20/42] powerpc/powernv: Create PEs dynamically

2015-08-15 Thread Alexey Kardashevskiy
On 08/15/2015 02:59 PM, Gavin Shan wrote: On Fri, Aug 14, 2015 at 11:52:44PM +1000, Alexey Kardashevskiy wrote: On 08/06/2015 02:11 PM, Gavin Shan wrote: Currently, the PEs and their associated resources are assigned in ppc_md.pcibios_fixup() except those consumed by SRIOV VFs. The function is

Re: [PATCH v3 3/6] powerpc/powernv: use one M64 BAR in Single PE mode for one VF BAR

2015-08-15 Thread Alexey Kardashevskiy
On 08/14/2015 01:54 PM, Wei Yang wrote: On Fri, Aug 14, 2015 at 10:52:21AM +1000, Gavin Shan wrote: On Thu, Aug 13, 2015 at 10:11:08PM +0800, Wei Yang wrote: In current implementation, when VF BAR is bigger than 64MB, it uses 4 M64 BARs in Single PE mode to cover the number of VFs required to b

Re: [PATCH v3 5/6] powerpc/powernv: boundary the total VF BAR size instead of the individual one

2015-08-15 Thread Alexey Kardashevskiy
On 08/14/2015 10:57 AM, Gavin Shan wrote: On Thu, Aug 13, 2015 at 10:11:10PM +0800, Wei Yang wrote: Each VF could have 6 BARs at most. When the total BAR size exceeds the gate, after expanding it will also exhaust the M64 Window. This patch limits the boundary by checking the total VF BAR size

Re: [PATCH v3 4/6] powerpc/powernv: replace the hard coded boundary with gate

2015-08-15 Thread Alexey Kardashevskiy
On 08/14/2015 12:11 AM, Wei Yang wrote: At the moment 64bit-prefetchable window can be maximum 64GB, which is currently got from device tree. This means that in shared mode the maximum supported VF BAR size is 64GB/256=256MB. While this size could exhaust the whole 64bit-prefetchable window. This

Re: [PATCH v3 6/6] powerpc/powernv: allocate sparse PE# when using M64 BAR in Single PE mode

2015-08-15 Thread Alexey Kardashevskiy
On 08/14/2015 11:03 AM, Gavin Shan wrote: On Thu, Aug 13, 2015 at 10:11:11PM +0800, Wei Yang wrote: When M64 BAR is set to Single PE mode, the PE# assigned to VF could be sparse. This patch restructures the patch to allocate sparse PE# for VFs when M64 BAR is set to Single PE mode. Signed-off-

Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Dan Williams
On Sat, Aug 15, 2015 at 2:19 AM, Christoph Hellwig wrote: > On Thu, Aug 13, 2015 at 10:51:11AM -0600, Ross Zwisler wrote: >> Update the annotation for the kaddr pointer returned by direct_access() >> so that it is a __pmem pointer. This is consistent with the PMEM driver >> and with how this dire

Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Dan Williams
On Sat, Aug 15, 2015 at 2:11 AM, Christoph Hellwig wrote: > On Fri, Aug 14, 2015 at 09:58:16AM -0700, Dan Williams wrote: >> > I'll merge with your code for v3. >> >> Sounds, let me go rebase the __pfn_t patches on -mm so we'all lined up >> and collision free. > > I'm doubt that we'll have PFN map

Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Christoph Hellwig
On Sat, Aug 15, 2015 at 08:44:27AM -0700, Dan Williams wrote: > That said, while we don't need special accessors we do need guarantees > that anything that has written to a persistent memory address has done > so in a way that wmb_pmem() is able to flush it. It's more of a "I've > audited this cod

Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Dan Williams
On Sat, Aug 15, 2015 at 9:00 AM, Christoph Hellwig wrote: > On Sat, Aug 15, 2015 at 08:44:27AM -0700, Dan Williams wrote: >> That said, while we don't need special accessors we do need guarantees >> that anything that has written to a persistent memory address has done >> so in a way that wmb_pmem

Re: [PATCH v3 6/6] powerpc/powernv: allocate sparse PE# when using M64 BAR in Single PE mode

2015-08-15 Thread Gavin Shan
On Sat, Aug 15, 2015 at 08:27:54PM +1000, Alexey Kardashevskiy wrote: >On 08/14/2015 11:03 AM, Gavin Shan wrote: >>On Thu, Aug 13, 2015 at 10:11:11PM +0800, Wei Yang wrote: >>>When M64 BAR is set to Single PE mode, the PE# assigned to VF could be >>>sparse. >>> >>>This patch restructures the patch