freebsd-nq/sys/dev/ena
Michal Krawczyk 1c808fcd85 Allocate BAR for ENA MSIx vector table
In the new ENA-based instances like c6gn, the vector table moved to a
new PCIe bar - BAR1. Previously it was always located on the BAR0, so
the resources were already allocated together with the registers.

As the FreeBSD isn't doing any resource allocation behind the scenes,
the driver is responsible to allocate them explicitly, before other
parts of the OS (like the PCI code allocating MSIx) will be able to
access them.

To determine dynamically BAR on which the MSIx vector table is present
the pci_msix_table_bar() is being used and the new BAR is allocated if
needed.

Submitted by: Michal Krawczyk <mk@semihalf.com>
Obtained from: Semihalf
Sponsored by: Amazon, Inc
MFC after: 3 days
2021-02-18 13:54:36 +01:00
..
ena_datapath.c Add SPDX license tag to the ENA driver files 2020-11-18 15:07:34 +00:00
ena_datapath.h Add SPDX license tag to the ENA driver files 2020-11-18 15:07:34 +00:00
ena_netmap.c Add SPDX license tag to the ENA driver files 2020-11-18 15:07:34 +00:00
ena_netmap.h Add SPDX license tag to the ENA driver files 2020-11-18 15:07:34 +00:00
ena_sysctl.c Add ENI metrics for the ENA driver 2020-11-18 15:17:55 +00:00
ena_sysctl.h Add SPDX license tag to the ENA driver files 2020-11-18 15:07:34 +00:00
ena.c Allocate BAR for ENA MSIx vector table 2021-02-18 13:54:36 +01:00
ena.h Allocate BAR for ENA MSIx vector table 2021-02-18 13:54:36 +01:00