From owner-freebsd-arm@freebsd.org Sat Jul 13 20:46:18 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDEBC15CAD6D for ; Sat, 13 Jul 2019 20:46:18 +0000 (UTC) (envelope-from marcel@brickporch.com) Received: from mail.brickporch.com (mail.brickporch.com [52.33.181.202]) by mx1.freebsd.org (Postfix) with ESMTP id A3B476D55F for ; Sat, 13 Jul 2019 20:46:17 +0000 (UTC) (envelope-from marcel@brickporch.com) Received: from twill.home.brickporch.com (206-72-78-65.dsl.dock.net [206.72.78.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.brickporch.com (Postfix) with ESMTPSA id 58661F0A5E for ; Sat, 13 Jul 2019 20:46:23 +0000 (UTC) From: Marcel Flores Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: ThunderX Networking Message-Id: <340B43A0-8E12-4F8C-A7F0-844BF8A55DB8@brickporch.com> Date: Sat, 13 Jul 2019 13:46:08 -0700 To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: A3B476D55F X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of marcel@brickporch.com designates 52.33.181.202 as permitted sender) smtp.mailfrom=marcel@brickporch.com X-Spamd-Result: default: False [-2.48 / 15.00]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[brickporch.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MX_GOOD(-0.01)[mail.brickporch.com]; NEURAL_HAM_SHORT(-0.77)[-0.767,0]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; IP_SCORE(-0.50)[ipnet: 52.32.0.0/14(-1.12), asn: 16509(-1.34), country: US(-0.06)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16509, ipnet:52.32.0.0/14, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jul 2019 20:46:18 -0000 Hi All, I had some time to poke around at the issue regarding: https://lists.freebsd.org/pipermail/freebsd-arm/2019-April/019798.html On boot, with 13-CURRENT (r349796) dmesg dumps the following message: bgx0: Could not find Matching PHY Which seems to come from here: = https://github.com/freebsd/freebsd/blob/master/sys/dev/vnic/thunder_bgx_fd= t.c#L456 Playing around with some debugging output, it seems like the check is = falling through when it checks for matching device names: = https://github.com/freebsd/freebsd/blob/master/sys/dev/vnic/thunder_bgx_fd= t.c#L196 But when I dump the string that it=E2=80=99s comparing to, by adding the = following above line 196: device_printf(bgx->dev, "Matching Names: %s to %s\n", phys_name, type); It seems like the match is very "close", but maybe something minute is = getting in the way: bgx0: Checking for length and name bgx0: Matching names: xfi00 to xfi bgx0: Matching names: xfi01 to xfi bgx0: Matching names: xfi02 to xfi bgx0: Matching names: xfi03 to xfi bgx0: Could not find matching PHY device_attach: bgx0 attach returned 6 bgx0: mem = 0x87e0e1000000-0x87e0e13fffff,0x87e0e1400000-0x87e0e17fffff at device = 0.129 on pci1 bgx0: Matching names: xlaui10 to xlaui device_attach: bgx0 attach returned 6 In particular, it seems to be failing the second part of the check, that ensure's a "\0" or a "@" after the name. Could this be an issue with the FDT setup for the thunderx? Maybe = something simple or an indicator of bigger issues? Am I barking up the wrong = tree? Happy to do any further digging if anyone has any ideas! Thanks, -Marcel=