(+86) 15013630202 sales@pcie.com

Increasing size of BAR0 in Endpoint Mode

Mar 04, 2024

Endpoint: Xavier AGX on custom carrier, 5.0.2 / 35.1

Root: generic x86 pc - linux 5.10


I followed the directions here: PCIe Endpoint Mode — Jetson Linux
Developer Guide 34.1 documentation and I was successfully able create the pci_epf_nv_test function and have it detected by the root system.


I’m now trying to write my own EPF module and after examination of the pci_epf_features struct returned by the pci_epc_get_features(), I see I’m limited to 1 single 64bit bar of size 1MB.


reserved_bar = 0x3c      // 0011 1100
bar_fixed_64bit = 0x1 // 0000 0001
bar_fixed_size[0] = 0x100000 // 1MB

Is there anyway to increase the size of this bar? 128MB would be ideal. Increasing the number of available bars would be nice as well.