Thread (55 messages) flat view 55 messages, 4 authors, 2020-07-24

Re: [PATCH 05/15] powerpc/powernv/sriov: Move SR-IOV into a seperate file

From: "Oliver O'Halloran" <oohall@gmail.com>
Date: 2020-07-22 05:10:33

On Tue, Jul 14, 2020 at 7:16 PM Alexey Kardashevskiy [off-list ref] wrote:
On 10/07/2020 15:23, Oliver O'Halloran wrote:
quoted
+     align = pci_iov_resource_size(pdev, resno);
+
+     /*
+      * iov can be null if we have an SR-IOV device with IOV BAR that can't
+      * be placed in the m64 space (i.e. The BAR is 32bit or non-prefetch).
+      * In that case we don't allow VFs to be enabled so just return the
+      * default alignment.
+      */
+     if (!iov)
+             return align;

This is the new chunk. What would happen before? Non-prefetch BAR would
still go to m64 space?
I don't think there's any real change. Currently if the setup in
pnv_pci_ioda_fixup_iov_resources() fails then pdn->vfs_expanded will
be zero. The !iov check here fills the same role, but it's more
explicit. vfs_expanded has some other behaviour too so we can't get
rid of it entirely (yet).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help