TX2 (R28.1): BAR 0 [mem 0x00000000-0x0000ffff] not claimed
Mar 04, 2024
Hello,
I connected a PCIe card with 6 BARs to the EVB of TX2. All BARs are memory mapped (not I\O).
According to dmesg:
[ 0.000000] Virtual kernel memory layout:
vmalloc : 0xffffff8000000000 - 0xffffffbdbfff0000 ( 246 GB)
vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000 ( 8 GB maximum)
0xffffffbdc2000000 - 0xffffffbdc8da0000 ( 109 MB actual)
fixed : 0xffffffbffa7fd000 - 0xffffffbffac00000 ( 4108 KB)
PCI I/O : 0xffffffbffae00000 - 0xffffffbffbe00000 ( 16 MB)
modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
memory : 0xffffffc000000000 - 0xffffffc1b6800000 ( 7016 MB)
.init : 0xffffffc001132000 - 0xffffffc001256000 ( 1168 KB)
.text : 0xffffffc000080000 - 0xffffffc001132000 ( 17096 KB)
.data : 0xffffffc001278000 - 0xffffffc001444730 ( 1842 KB)
...
[ 8.674563] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 8.674677] pci 0000:01:00.0: [1172:0004] type 00 class 0x000000
[ 8.674709] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[ 8.674719] pci 0000:01:00.0: reg 0x14: [mem 0x00000000-0x00007fff]
[ 8.674728] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x000fffff]
[ 8.674737] pci 0000:01:00.0: reg 0x1c: [mem 0x00000000-0x003fffff]
[ 8.674746] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x003fffff]
[ 8.674754] pci 0000:01:00.0: reg 0x24: [mem 0x00000000-0x003fffff]
[ 8.674931] iommu: Adding device 0000:01:00.0 to group 56
Upon calling to pci_enable_device I got:
pci 0000:01:00.0: can’t enable device: BAR 0 [mem 0x00000000-0x0000ffff] not claimed
Can you please tell why ?
Should I modify the class ?
Thank you,
Zvika