Re: Driver support for Intel I225/I226 Ethernet adapters

Pierre Pronchery <[email protected]>
Newsgroups gmane.os.netbsd.current,gmane.os.netbsd.devel.network
Message-ID <[email protected]>
			Hi everyone,

> On 4. Oct 2023, at 10:01, Rin Okuyama <[email protected]> wrote:
> 
> I've committed igc(4) driver for Intel I225 and I226 series NICs with
> one-week delay ;)
> 
> As noted in the commit log, it is still experimental; it lacks some
> logic for minor error
> handling paths, but it works almost fine for both LP64/ILP32 and
> big-/little-endian.

This is awesome, thank you!

With the netbsd-10 branch:

> [     1.044048] ppb1 at pci0 dev 28 function 1: Intel Elkhart Lake PCIe Root Port 1 (PCIe 0, Single VC) (rev. 0x11)
> [     1.044048] ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 8.0GT/s
> [     1.044048] ppb1: link is x1 @ 5.0GT/s
> [     1.044048] pci2 at ppb1 bus 2
> [     1.044048] pci2: i/o space, memory space enabled
> [     1.044048] igc0 at pci2 dev 0 function 0: Intel(R) Ethernet Controller I226-V (rev. 0x04)
> [     1.044048] igc0: txrx interrupting at msix3 vec 0
> [     1.044048] igc0: txrx interrupting at msix3 vec 1
> [     1.044048] igc0: txrx interrupting at msix3 vec 2
> [     1.044048] igc0: txrx interrupting at msix3 vec 3
> [     1.044048] igc0: link interrupting at msix3 vec 4
> [     1.044048] igc0: PHY: OUI 0x984fee model 0x0005, rev. 8
> [     1.044048] igc0: ROM image version 2.14, PHY FW version 0x8877
> [     1.044048] igc0: Ethernet address 00:12:34:56:78:9g
> [     1.044048] ppb2 at pci0 dev 28 function 2: Intel Elkhart Lake PCIe Root Port 2 (PCIe 0, Single VC) (rev. 0x11)
> [     1.044048] ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 8.0GT/s
> [     1.044048] ppb2: link is x1 @ 5.0GT/s
> [     1.044048] pci3 at ppb2 bus 3
> [     1.044048] pci3: i/o space, memory space enabled
> [     1.044048] igc1 at pci3 dev 0 function 0: Intel(R) Ethernet Controller I226-V (rev. 0x04)
> [     1.044048] igc1: txrx interrupting at msix4 vec 0
> [     1.044048] igc1: txrx interrupting at msix4 vec 1
> [     1.044048] igc1: txrx interrupting at msix4 vec 2
> [     1.044048] igc1: txrx interrupting at msix4 vec 3
> [     1.044048] igc1: link interrupting at msix4 vec 4
> [     1.044048] igc1: PHY: OUI 0x984fee model 0x0005, rev. 8
> [     1.044048] igc1: ROM image version 2.14, PHY FW version 0x8877
> [     1.044048] igc1: Ethernet address 00:12:34:56:78:9h


(MAC addresses amended manually)

I cannot test if the cards are functional yet - these interfaces are not connected to anything at the moment - but I will let you know if I run into any issues.

Both cards do report 2.5GBASE-T capacity in “ifconfig -m” as expected.

Cheers!
— khorben

> On Fri, Sep 22, 2023 at 9:00 PM Pierre Pronchery <[email protected]> wrote:
>> 
>>                        Hi :)
>> 
>>> On 22. Sep 2023, at 11:36, Rin Okuyama <[email protected]> wrote:
>>> 
>>> Sorry for the late response.
>> 
>> No worries!
>> 
>>> On Mon, Sep 18, 2023 at 6:01 AM Pierre Pronchery <[email protected]> wrote:
>>>> I am wondering if anyone has any plans to work on supporting Intel’s I225 and/or I226 series of Ethernet adapters in NetBSD?
>>>> 
>>>> I have a board with a couple I226-V chips here (CW-J6-NAS, as per https://cwwk.net/products/j6412-j6413-nas-board-six-sata3-0-dual-m-2-i226-v-nics). It works great with NetBSD so far, but only the Realtek-based Ethernet chip is recognised.
>>>> 
>>>> I’ll be happy to test tentative drivers on request.
>>> 
>>> knakahara@,  msaitoh@, and I are working on importing igc(4) driver
>>> from OpenBSD.
>>> It already works almost fine. We will commit it next week if no
>>> serious problem appears :)
>> 
>> This is awesome to hear, thank you!
>> 
>> Looking forward to testing it,

--
khorben
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEjPEp1wC4bxBrX8svMDjL25iGlwMFAmUl3mMACgkQMDjL25iG
lwO9FA//VGgxNeFh1FpCV0cHchwyrwHVh0ejaNHRYFpSLBNiRzoFZ0nGX4Un3ZSt
lFIywpPJ50gxjbobddQKN6Bc9FRN5HufWEhTx0OBueRt9wYw9KeM7xPngqcb/080
Vv26q5ebHvQzePtdNRTYO+WNNjBamWsAkx5jiY2XnImxOc9TAQ/3u8wiPpLyexvw
K/hPHI7dub3xCn8toqVnc/iQ4XvZi9MoIOQRqcfJI4Q4FZbdg7C5ICT8ZR9aoVlK
M9B6J5/5P5ZUQDV3gPD2hySc+uQbNQimH7zOpBiYSdTT5GkNY3AAkOkKZFb3UCsF
lolhCypddFJ22Zsz09WBofz62PaGmcItDn5VqqBzPon4ZV3HHHwoCgzXCRrYxin2
bxkW4Vc8+jnnuD6w1b16PwEsL5v96G1Qyez5I/cW5eQ4RNUI37Ex9eIzA69Kfnjl
efDSsydiXBLTuSCMwQvQmuifapXZkgLsIL8klWchvdcxdURZBspw4ath5yARLegU
1RX/NlFZy2e7URWwkhR0oIg9IoBbdgqRIqeI21loeHYFDunv8vKqYXFgwfJRJSKl
E/6hVW8LjkMp216EwGmTpdhco+y10qu8fYjInCAgdTJhZvCLdqyU+8cAu/OpAbu/
mHSmSrn9qlDUw9o/9sE5vnlRbN0dD9DsM1EjpOc0s3xJca04SRw=
=hskY
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.