]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/sriov: Make single PE mode a per-BAR setting
authorOliver O'Halloran <oohall@gmail.com>
Wed, 22 Jul 2020 06:57:14 +0000 (16:57 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 26 Jul 2020 13:34:23 +0000 (23:34 +1000)
commitff963359d0a427553628989fa83d23601a75b7b2
treea145cb717ab069ae3f78fb0c3decebd3b5c1abc7
parent4fdc96a3253755a36dab5f29ecb016a9e16d1a3e
powerpc/powernv/sriov: Make single PE mode a per-BAR setting

Using single PE BARs to map an SR-IOV BAR is really a choice about what
strategy to use when mapping a BAR. It doesn't make much sense for this to
be a global setting since a device might have one large BAR which needs to
be mapped with single PE windows and another smaller BAR that can be mapped
with a regular segmented window. Make the segmented vs single decision a
per-BAR setting and clean up the logic that decides which mode to use.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200722065715.1432738-15-oohall@gmail.com
arch/powerpc/platforms/powernv/pci-sriov.c
arch/powerpc/platforms/powernv/pci.h