Page MenuHomeFreeBSD

Enable Mellanox drivers on AArch64
ClosedPublic

Authored by val_packett.cool on Apr 20 2019, 1:01 PM.
Referenced Files
Unknown Object (File)
Thu, Mar 14, 11:22 AM
Unknown Object (File)
Feb 9 2024, 8:02 PM
Unknown Object (File)
Jan 12 2024, 1:05 PM
Unknown Object (File)
Dec 22 2023, 11:46 PM
Unknown Object (File)
Dec 20 2023, 8:58 PM
Unknown Object (File)
Dec 12 2023, 3:36 AM
Unknown Object (File)
Dec 4 2023, 9:29 PM
Unknown Object (File)
Nov 24 2023, 2:04 AM
Subscribers

Details

Summary

Needs D19987 to work.

Test Plan

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)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Hi,

Can you split this patch?

One patch for sys/compat and the other for sys/modules .

--HPS

Can you verify that the LINT kernel passes with this change on aarch64?

Can you verify that the LINT kernel passes with this change on aarch64?

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.

mlx5ib depends on ibcore. Can you ensure this module is also built for aarch64 ?

Done. Checked that mlx5ib loads.

This revision is now accepted and ready to land.Apr 23 2019, 8:40 AM

@hselasky will you commit? Otherwise I can take it.

This revision was automatically updated to reflect the committed changes.