From nobody Wed Feb 16 17:36:52 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5099819C4117 for ; Wed, 16 Feb 2022 17:36:55 +0000 (UTC) (envelope-from diizzy@FreeBSD.org) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JzQBG1qhrz4dW2; Wed, 16 Feb 2022 17:36:54 +0000 (UTC) (envelope-from diizzy@FreeBSD.org) Received: (Authenticated sender: daniel.engberg@pyret.net) by mail.gandi.net (Postfix) with ESMTPA id 4B6522000D; Wed, 16 Feb 2022 17:36:52 +0000 (UTC) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Date: Wed, 16 Feb 2022 18:36:52 +0100 From: Daniel Engberg To: Steve Wills Cc: freebsd-arm@freebsd.org Subject: Re: RockPro64 PCI In-Reply-To: References: Message-ID: X-Sender: diizzy@FreeBSD.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4JzQBG1qhrz4dW2 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 2001:4b98:dc4:8::227 is neither permitted nor denied by domain of diizzy@FreeBSD.org) smtp.mailfrom=diizzy@FreeBSD.org X-Spamd-Result: default: False [2.37 / 15.00]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[diizzy]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[FreeBSD.org]; R_SPF_SOFTFAIL(0.00)[~all:c]; NEURAL_SPAM_MEDIUM(0.97)[0.968]; VIOLATED_DIRECT_SPF(3.50)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:203476, ipnet:2001:4b98:dc4::/48, country:FR]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 2022-02-16 17:02, Steve Wills wrote: > Hi, > > On 2/14/22 21:22, Daniel Engberg wrote: >> Hi, >> >> I've seen some reports on Linux that especially older NICs can be a >> bit troublesome so can you have a look at what you exactly have? Even >> if it doesn't work I'd like to add it to the wiki. Cards based on i340 >> and i350 usually works fine though. I also have a snapshot of >> 13-STABLE from November if you want to give it a try. > > The card I'm trying to use shows up on my intel box as: > > pcib7: irq 18 at device 28.6 numa-domain 0 on > pci1 > pci7: numa-domain 0 on pcib7 > em1: port 0xd000-0xd01f mem > 0xfbcc0000-0xfbcdffff,0xfbc00000-0xfbc7ffff,0xfbce0000-0xfbce3fff irq > 18 at device 0.0 numa-domain 0 on pci7 > em1: EEPROM V1.8-0 > em1: Using 1024 TX descriptors and 1024 RX descriptors > em1: Using 2 RX queues 2 TX queues > em1: Using MSI-X interrupts with 3 vectors > em1: Ethernet address: 00:1b:21:a8:5b:86 > em1: netmap queues/slots: TX 2/1024, RX 2/1024 > > (I include the first two lines because they don't show up without the > card.) > > I guess I shouldn't expect this card to work given what I see here: > > https://wiki.pine64.org/wiki/ROCKPro64_Hardware_Accessory_Compatibility#PCIe_devices > > There's no mention of 82575 here: > > https://wiki.freebsd.org/arm/RockChip#Tested_PCIe_devices_on_RockPro64 > > but maybe I'll try one of those just to see. If I have to track down > an I350 base card, so be it... > > Cheers, > Steve Hi, Going by the information you provided it seems to be this card? https://www.intel.com/content/www/us/en/products/details/ethernet/gigabit-network-adapters/gigabit-ct-desktop-adapters.html That's a rather old controller (PCIe 1.1) which should be backwards compatible however given the pricing of the SoC I wouldn't bet on it being fully PCIe tested/compliant but that's just a speculation on my behalf. Unfortunately I don't have that old Intel NICs to test on my end either to verify. https://forums.servethehome.com/index.php?threads/list-of-nics-and-their-equivalent-oem-parts.20974/ first page might be helpful in finding older I340-based cards at least. Unfortunately I didn't find any listings of OEM models for i350-based cards although these are still (in general it seems) available as new so they may be scarce pulled/used. I did also find these cheap (if you live in US) which seems to be based on the I340 chipset (not tested by me) which may also work: https://www.ebay.com/itm/122501625474?epid=27017868551&hash=item1c85aa7682%3Ag%3AXXwAAOSwYvFZHK9e&LH_BIN=1 https://forum.netgate.com/topic/135149/riverbed-4-port-nic-how-to-convert-it-into-a-regular-nic If you have anything else PCIe-based to test feel free to report back and I'll add it to the wiki Best regards, Daniel