aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorIra Weiny <[email protected]>2021-05-27 17:49:19 -0700
committerDan Williams <[email protected]>2021-06-05 17:37:05 -0700
commitf8a7e8c29be873b90fcc426e93bdb6184df5970e (patch)
tree7c430f48c3d8cd2fe319ad6f219baca3f3084943 /lib/mpi/mpi-sub-ui.c
parent07d62eac422c5c8aec6ec1dacdc27423334b2d17 (diff)
cxl/pci: Reserve all device regions at once
In order to remap individual register sets each bar region must be reserved prior to mapping. Because the details of individual register sets are contained within the BARs themselves, the bar must be mapped 2 times, once to extract this information and a second time for each register set. Rather than attempt to reserve each BAR individually and track if that bar has been reserved. Open code pcim_iomap_regions() by first reserving all memory regions on the device and then mapping the bars individually as needed. NOTE pci_request_mem_regions() does not need a corresponding pci_release_mem_regions() because the pci device is managed via pcim_enable_device(). Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Ira Weiny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions