Needs D19987 to work.
- rS346598: Enable Mellanox drivers (modules) on AArch64
Tested with mlx5en on an Ampere eMAG instance at Packet.com (c2.large.arm):
pcib1@pci0:0:0:0: class=0x060400 card=0x00000000 chip=0xe0051def rev=0x04 hdr=0x01 vendor = 'Ampere Computing, LLC' device = 'eMAG PCI Express Root Port 0' class = bridge subclass = PCI-PCI mlx5_core0@pci0:1:0:0: class=0x020000 card=0x000315b3 chip=0x101515b3 rev=0x00 hdr=0x00 vendor = 'Mellanox Technologies' device = 'MT27710 Family [ConnectX-4 Lx]' class = network subclass = ethernet mlx5_core1@pci0:1:0:1: class=0x020000 card=0x000315b3 chip=0x101515b3 rev=0x00 hdr=0x00 vendor = 'Mellanox Technologies' device = 'MT27710 Family [ConnectX-4 Lx]' class = network subclass = ethernet
(eMAG needs some PCIe fixes, tracked in bug 237055, but this patch is independent of anything eMAG specific, it should work on ThunderX/2 and whatnot)
LINT is actually not set up for aarch64 at all, there was no Makefile in the conf directory. Creating one and running make LINT results in a config that complains about:
WARNING: duplicate option `DEV_MEM' encountered. WARNING: duplicate device `mem' encountered. cpu type must be specified
fixing mem and cpu type results in errors in Allwinner drivers, etc.