Date: Thu, 3 Apr 2014 13:18:19 -0700 (PDT) From: "Chris H" <bsd-lists@bsdforge.com> To: pyunyh@gmail.com Cc: freebsd-net <freebsd-net@freebsd.org>, freebsd-stable <freebsd-stable@freebsd.org>, Ian Lepore <ian@freebsd.org> Subject: Re: miibus0: mii_mediachg: can't handle non-zero PHY instance 31 Message-ID: <70cd5de109845e30fcb6516af7a6f9de.authenticated@ultimatedns.net> In-Reply-To: <20140402020803.GB2938@michelle.cdnetworks.com> References: <2598eeb4c68e23df0789e5e3e8f46d76.authenticated@ultimatedns.net> <20140331050002.GC1359@michelle.cdnetworks.com> <c0a800d2a15f205788ed9ce606c00637.authenticated@ultimatedns.net> <20140401065842.GA1364@michelle.cdnetworks.com> <c73ef96319846b3da07db5785f48fb6a.authenticated@ultimatedns.net> <1396384167.81853.210.camel@revolution.hippie.lan> <41917a9e67d0f4519df4b55f3aa6ebe3.authenticated@ultimatedns.net> <20140402003912.GA2938@michelle.cdnetworks.com> <3f97f5646629043fed5e34a77c9c2f3d.authenticated@ultimatedns.net> <20140402020803.GB2938@michelle.cdnetworks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
> On Tue, Apr 01, 2014 at 05:53:51PM -0700, Chris H wrote:
>> > On Tue, Apr 01, 2014 at 01:40:58PM -0700, Chris H wrote:
>> >> > On Tue, 2014-04-01 at 13:19 -0700, Chris H wrote:
>> >> >> [...]
>> >> >> miibus0: <MII bus> on nfe0
>> >> >> rlphy0: <RTL8201L 10/100 media interface> PHY 0 on miibus0
>> >> >> rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
>> >> >> rlphy1: <RTL8201L 10/100 media interface> PHY 1 on miibus0
>> >> > [...]---big-snip--8<---
>> >> >> miibus0: mii_mediachg: can't handle non-zero PHY instance 1
>> >> >>
>> >> >> As you can see, it looks much the same. I have no idea what
>> >> >> I should do to better inform the driver/kernel how to better
>> >> >> handle it. Or is it the driver, itself?
>> >> >>
>> >> >> Thank you again, for your thoughtful response.
>> >> >>
>> >> >> --Chris
>> >> >>
>> >> >
>> >> > I think the way to fix a phy that responds at all addresses is to set a
>> >> > hint in loader.conf masking out the ones that aren't real, like so:
>> >> >
>> >> > hint.miibus.0.phymask="1"
>> >> >
>> >> > You might be able to set ="0x00000001" to make it more clear it's a
>> >> > bitmask, but I'm not sure of that.
>> >>
>> >> Thank you very much for the hint. I'll give it a shot.
>> >> Any idea why this is happening? I have 4 other MB's using the Nvidia
>> >> chipset, and the nfe(4) driver. But they don't respond this way.
>> >>
>> >
>> > If some nfe(4) variants badly behave in probing stage, this should
>> > be handled by driver. We already have too many hints and tunables
>> > and I don't think most users know that. In addition, adding
>> > additional NIC may change miibus instance number.
>> >
>> > Could you show me the output of 'kenv | grep smbios'?
>> Yes, of course.
>>
>> Here it is:
>>
>> smbios.bios.reldate="11/22/2010"
>> smbios.bios.vendor="American Megatrends Inc."
>> smbios.bios.version="V2.7"
>> smbios.chassis.maker="MSI"
>> smbios.chassis.serial="To Be Filled By O.E.M."
>> smbios.chassis.tag="To Be Filled By O.E.M."
>> smbios.chassis.version="2.0"
>> smbios.memory.enabled="2097152"
>> smbios.planar.maker="MSI"
>> smbios.planar.product="K9N6PGM2-V2 (MS-7309)"
>> smbios.planar.serial="To be filled by O.E.M."
>> smbios.planar.version="2.0"
>> smbios.socket.enabled="1"
>> smbios.socket.populated="1"
>> smbios.system.maker="MSI"
>> smbios.system.product="MS-7309"
>> smbios.system.serial="To Be Filled By O.E.M."
>> smbios.system.uuid="00000000-0000-0000-0000-406186cd4497"
>> smbios.system.version="2.0"
>> smbios.version="2.6"
>>
>> Hope this helps, and thank you for all your time, and trouble.
>>
>
> Thanks for the info. Try attached patch and let me know how it
> works. Make sure to remove the hint(hint.miibus.0.phymask="1")
> set in loader.conf before testing it.
Hello, and thanks for all the attention.
Sorry for the delay. I chose to perform a dump(8) before attempting
the KERn rebuild with the patch. But the kernel threw a read error
message on one of the drives. So I had to sort out the problem on
the drive before I could complete the dump. Then, of course I had
to reslice, and format another drive to replace the ailing one,
before I could perform a restore(8), and start the nfe patch; build
&& install kernel. Weird; the drive had only a few hours on it.
Well, anyway. The patch applied cleanly. So I built, and installed
a new kernel with it. X's out the hint.miibus.0.phymask="0x00000001"
in loader.conf(5), and bounced the box. Bad news:
miibus0: mii_mediachg: can't handle non-zero PHY instance 31
miibus0: mii_mediachg: can't handle non-zero PHY instance 30
miibus0: mii_mediachg: can't handle non-zero PHY instance 29
miibus0: mii_mediachg: can't handle non-zero PHY instance 28
miibus0: mii_mediachg: can't handle non-zero PHY instance 27
miibus0: mii_mediachg: can't handle non-zero PHY instance 26
miibus0: mii_mediachg: can't handle non-zero PHY instance 25
miibus0: mii_mediachg: can't handle non-zero PHY instance 24
miibus0: mii_mediachg: can't handle non-zero PHY instance 23
miibus0: mii_mediachg: can't handle non-zero PHY instance 22
miibus0: mii_mediachg: can't handle non-zero PHY instance 21
miibus0: mii_mediachg: can't handle non-zero PHY instance 20
miibus0: mii_mediachg: can't handle non-zero PHY instance 19
miibus0: mii_mediachg: can't handle non-zero PHY instance 18
miibus0: mii_mediachg: can't handle non-zero PHY instance 17
miibus0: mii_mediachg: can't handle non-zero PHY instance 16
miibus0: mii_mediachg: can't handle non-zero PHY instance 15
miibus0: mii_mediachg: can't handle non-zero PHY instance 14
miibus0: mii_mediachg: can't handle non-zero PHY instance 13
miibus0: mii_mediachg: can't handle non-zero PHY instance 12
miibus0: mii_mediachg: can't handle non-zero PHY instance 11
miibus0: mii_mediachg: can't handle non-zero PHY instance 10
miibus0: mii_mediachg: can't handle non-zero PHY instance 9
miibus0: mii_mediachg: can't handle non-zero PHY instance 8
miibus0: mii_mediachg: can't handle non-zero PHY instance 7
miibus0: mii_mediachg: can't handle non-zero PHY instance 6
miibus0: mii_mediachg: can't handle non-zero PHY instance 5
miibus0: mii_mediachg: can't handle non-zero PHY instance 4
miibus0: mii_mediachg: can't handle non-zero PHY instance 3
miibus0: mii_mediachg: can't handle non-zero PHY instance 2
miibus0: mii_mediachg: can't handle non-zero PHY instance 1
Just as before. In case it should make any difference; I'm
going to attach my copy of src/sys/dev/nfe/if_nfe.c in case
there are any differences in mine, that do not coincide with
your version/copy (I'm on releng_9 - 9.2-STABLE)
FreeBSD demon0 9.2-STABLE FreeBSD 9.2-STABLE #0 r263756M:
Thu Apr 3 12:42:03 PDT 2014
root@demon0:/usr/obj/usr/src/sys/DEMON0 amd64
Best wishes, and thanks again.
--Chris
>
>> --Chris
>>
>> >
>>
>
[-- Attachment #2 --]
7zXZ ִF ! t/g@] ɧF-ϕXli\nKVan!QٳRzPA
{bΐý2`Y.b^aS4/kE` %3:enNEpS;7E2=m1|JS MlKv{ OӲ,W8[˺c]A(lˠ-ū¶[(ݣB-n((%^ڈp;tϥ>aW@_XhHNڳ/-|ҽbbJ/Xg!SBX?I|v#`!.k0DAU?\Fi2YWOzAۘbgj2n_qVuu0^1xK4 }-tZJezVHf8H
IzCE2~%1q|ou8{^z9is)¾qqu9CphB}?`ol, ]{4b3/~>?rFf^Bb.hpr [IC+MzbO9>M)lG ijڬj]⺷VLokFvB}>!].͢5#\f0i6ӿ-*Ӯ}xRU%Ӗ*X Bm>'"\zv3N)}$c!чn=f,]29 ՉLL暌T]m%#gecI(Z;ϕa;,@rtFq]4{GnZ`sxJ~_t+( 7D*ZʹCn&4G_+5Q&눽n ~n}WWL`z{ɺ*BUoe$Ȭ\8 i7S'~_sp 1G&߹["] 0)Y%hK
'vun S7`&I{MEWeW)4?Rm\*uد*MldUQcnCu %zOե 7|/ܫOb
X5$CQ"F\VXPHň84g$m9Z>d-"ZJ,+iE<({6S}Ў凬`5?1
&T'n
ގMsᲛ,BAO,c4bFo_jZK4+e,uzdBjz>TE,5 髾8g|n+DYEi6'qU[#Ŭ.UʧL|Hm)ūJl;0Nb}( GiX/fB4 {QqϔFY5F60,&i|K5a5&qS25ąb᎖3l4WGp:{Җx>9QT# {$)bЊOwd+ |Z`UQk%9`RT[OA/, jG5WEIG9M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