Summary: | Bgx driver fails to match PHY on ThunderX after r336281 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Marcel <marcel> | ||||||
Component: | arm | Assignee: | Mark Johnston <markj> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Some People | CC: | emaste, markj, sbruno | ||||||
Priority: | --- | ||||||||
Version: | CURRENT | ||||||||
Hardware: | arm64 | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Marcel
2019-12-15 20:22:05 UTC
Can you provide the FDT for this system? Output of "ofwdump -ap" or "sysctl -b hw.fdt | dtc -I dtb -I dts". Created attachment 210001 [details]
output from ofwdump on thunderX
Attached output from ofwdump. The other command bails out with "Failed to Parse Tree".
The fun part of the ofwdump is probably:
# cat ofwdump.txt | grep xfi
Node 0x408c: xfi00
Node 0x40f0: xfi01
Node 0x4154: xfi02
Node 0x41b8: xfi03
Node 0x46e4: xfi00
Node 0x4728: xfi01
Node 0x476c: xfi02
Node 0x47b0: xfi03
Created attachment 210009 [details] proposed patch (In reply to Marcel from comment #2) Thanks. Instead of reverting r336281 can you try the attached patch? (In reply to Mark Johnston from comment #3) Appears to do the trick: # dmesg | grep bgx bgx0: <ThunderX BGX Ethernet I/O Interface> mem 0x87e0e0000000-0x87e0e03fffff,0x87e0e0400000-0x87e0e07fffff at device 0.128 on pci1 bgx1: <ThunderX BGX Ethernet I/O Interface> mem 0x87e0e1000000-0x87e0e13fffff,0x87e0e1400000-0x87e0e17fffff at device 0.129 on pci1 (In reply to Marcel from comment #4) Thank you. A commit references this bug: Author: markj Date: Wed Dec 18 21:41:53 UTC 2019 New revision: 355887 URL: https://svnweb.freebsd.org/changeset/base/355887 Log: vnic: Relax PHY node matching after r336281. The phy name may apparently be followed by a number in some systems. Allow that. PR: 242654 Reported and tested by: Marcel <marcel@brickporch.com> MFC after: 3 days Sponsored by: The FreeBSD Foundation Changes: head/sys/dev/vnic/thunder_bgx_fdt.c A commit references this bug: Author: markj Date: Sat Dec 21 16:16:43 UTC 2019 New revision: 355983 URL: https://svnweb.freebsd.org/changeset/base/355983 Log: MFC r355887: vnic: Relax PHY node matching after r336281. PR: 242654 Changes: _U stable/12/ stable/12/sys/dev/vnic/thunder_bgx_fdt.c Thanks for the report. |