From: Wei Yang Date: Wed, 25 Mar 2015 08:23:58 +0000 (+0800) Subject: powerpc/powernv: Reserve additional space for IOV BAR, with m64_per_iov supported X-Git-Tag: omap-for-v4.1/fixes-rc1~126^2~7^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b88ec228498b7d41de6599eca12cc0032056e3f;p=pandora-kernel.git powerpc/powernv: Reserve additional space for IOV BAR, with m64_per_iov supported M64 aperture size is limited on PHB3. When the IOV BAR is too big, this will exceed the limitation and failed to be assigned. Introduce a different mechanism based on the IOV BAR size: - if IOV BAR size is smaller than 64MB, expand to total_pe - if IOV BAR size is bigger than 64MB, roundup power2 [bhelgaas: make dev_printk() output more consistent, use PCI_SRIOV_NUM_BARS] Signed-off-by: Wei Yang Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed