NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/54373: wm(4) MDIC read/write error on Panasonic CF-NX3



On 2019/07/14 0:20, Izumi Tsutsui wrote:
>> Number:         54373
>> Category:       kern
>> Synopsis:       wm(4) MDIC read/write error on Panasonic CF-NX3
>> Confidential:   no
>> Severity:       non-critical
>> Priority:       medium
>> Responsible:    kern-bug-people
>> State:          open
>> Class:          sw-bug
>> Submitter-Id:   net
>> Arrival-Date:   Sat Jul 13 15:20:00 +0000 2019
>> Originator:     Izumi Tsutsui
>> Release:        NetBSD 8.1
>> Organization:
>> Environment:
> System: NetBSD mirage 8.1 NetBSD 8.1 (GENERIC) #0: Fri May 31 08:43:59 UTC 2019 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386
> Architecture: i386
> Machine: i386
>> Description:
> After reboot from Windows 10 Pro 64bit 1903,
> wm(4) driver on NetBSD/amd64 8.1 complains on attach:
> 
> ---
> NetBSD 8.1 (GENERIC) #0: Fri May 31 08:43:59 UTC 2019
>         mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
> total memory = 3265 MB
> avail memory = 3146 MB
> cpu_rng: RDRAND
> timecounter: Timecounters tick every 10.000 msec
> Kernelized RAIDframe activated
> running cgd selftest aes-xts-256 aes-xts-512 done
> timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
> efi: systbl at pa dbf52f18
> Panasonic Corporation CF-NX3RDJCS (002)
> mainbus0 (root)
> 
>  :
> 
> wm0 at pci0 dev 25 function 0: I218 LM Ethernet Connection (rev. 0x04)
> wm0: interrupting at msi1 vec 0
> wm0: PCI-Express bus
> wm0: 2048 words FLASH
> wm0: Ethernet address xx:xx:xx:xx:xx:xx
> wm0: 0xa4480<FLASH,IOH_VALID,PCIE,ASF_FIRM,AMT>
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC read timed out: phy 1 reg 23
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 23
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC read timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC read timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC read timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC read timed out: phy 1 reg 26
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 26
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 30
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 18
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 16
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 17
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC read timed out: phy 1 reg 25
> wm0: MDIC write timed out: phy 1 reg 31
> wm0: MDIC write timed out: phy 1 reg 25
> wm0: MDIC read timed out: phy 2 reg 2
> wm0: MDIC read timed out: phy 2 reg 2
> XXX return with false
> wm0: MDIC write error: phy 1 reg 23
> ihphy0 at wm0 phy 2: i217 10/100/1000 media interface, rev. 5
> ihphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
> ---
> 
> On the first power-on startup it's attached without errors.
> 
>> How-To-Repeat:
> Boot NetBSD/amd64 8.1 after reboot from Windows 10 Pro 64 bit.
> 
>> Fix:
> No idea. Some initialization missing?
> 

Could you show me the output of "pcictl pci0 dump -b 0 -d 25 -f 0"
on both NetBSD cold boot and warm boot from Windows 10?

The problem seems like a problem I fixed in if_wm.c rev. 1.592.

-- 
-----------------------------------------------
                SAITOH Masanobu (msaitoh%execsw.org@localhost
                                 msaitoh%netbsd.org@localhost)


Home | Main Index | Thread Index | Old Index