diff options
| author | Oliver O'Halloran <oohall@gmail.com> | 2020-07-22 16:57:09 +1000 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-07-26 23:34:22 +1000 |
| commit | a4bc676ed5c3f53781cc342b73097eb7e8d43fa5 (patch) | |
| tree | 42513cb1e9eb5ce503e267d3345cb16bf2d5afb9 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | powerpc/powernv/sriov: Factor out M64 BAR setup (diff) | |
| download | linux-a4bc676ed5c3f53781cc342b73097eb7e8d43fa5.tar.gz linux-a4bc676ed5c3f53781cc342b73097eb7e8d43fa5.zip | |
powerpc/powernv/pci: Refactor pnv_ioda_alloc_pe()
Rework the PE allocation logic to allow allocating blocks of PEs rather
than individually. We'll use this to allocate contigious blocks of PEs for
the SR-IOVs.
This patch also adds code to pnv_ioda_alloc_pe() and pnv_ioda_reserve_pe() to
use the existing, but unused, phb->pe_alloc_mutex. Currently these functions
use atomic bit ops to release a currently allocated PE number. However,
the pnv_ioda_alloc_pe() wants to have exclusive access to the bit map while
scanning for hole large enough to accomodate the allocation size.
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-10-oohall@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
