]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[ena] Map the on-device memory, if present
authorMichael Brown <mcb30@ipxe.org>
Wed, 15 Oct 2025 14:27:03 +0000 (15:27 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 15 Oct 2025 14:55:57 +0000 (15:55 +0100)
commitdcc5d36ce59e9aaf662f6d827d1966a3e1fb87d5
treeee06ba12451f76916f853479598651353642db92
parent510f3e5e17c1961e5487ba59937f4abef33f24a8
[ena] Map the on-device memory, if present

Newer generations of the ENA hardware require the use of low latency
transmit queues, where the submission queues and the initial portion
of the transmitted packet are written to on-device memory via BAR2
instead of being read from host memory.

Prepare for this by mapping the on-device memory BAR.  As with the
register BAR, we may need to steal a base address from the upstream
PCI bridge since the BIOS on some instance types (observed with an
m8i.metal-48xl instance in eu-south-2) will fail to assign an address
to the device.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/ena.c
src/drivers/net/ena.h