Re: [PATCH V14 17/21] powerpc/powernv: Shift VF resource with an offset

2015-03-23 Thread Daniel Axtens
On Fri, 2015-03-20 at 11:06 +0800, Wei Yang wrote: On PowerNV platform, resource position in M64 BAR implies the PE# the resource belongs to. In some cases, adjustment of a resource is necessary to locate it to a correct position in M64 BAR . This patch adds pnv_pci_vf_resource_shift() to

Re: [PATCH V14 17/21] powerpc/powernv: Shift VF resource with an offset

2015-03-23 Thread Wei Yang
On Tue, Mar 24, 2015 at 10:22:26AM +1100, Daniel Axtens wrote: + +/* Do some magic shift */ +ret = pnv_pci_vf_resource_shift(pdev, pdn-offset); Given that you're already doing a version 15, would it be possible to include a more informative comment than Do some magic

[PATCH V14 17/21] powerpc/powernv: Shift VF resource with an offset

2015-03-19 Thread Wei Yang
On PowerNV platform, resource position in M64 BAR implies the PE# the resource belongs to. In some cases, adjustment of a resource is necessary to locate it to a correct position in M64 BAR . This patch adds pnv_pci_vf_resource_shift() to shift the 'real' PF IOV BAR address according to an