NetBSD Problem Report #52259

From www@NetBSD.org  Sun May 28 22:22:02 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A85FD7A26C
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 28 May 2017 22:22:02 +0000 (UTC)
Message-Id: <20170528222201.35CCD7A2B8@mollari.NetBSD.org>
Date: Sun, 28 May 2017 22:22:01 +0000 (UTC)
From: mueller6725@twc.com
Reply-To: mueller6725@twc.com
To: gnats-bugs@NetBSD.org
Subject: NetBSD-current won't boot on i386 or amd64 unless athn is disabled.
X-Send-Pr-Version: www-1.0

>Number:         52259
>Category:       kern
>Synopsis:       NetBSD-current won't boot on i386 or amd64 unless athn is disabled.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 28 22:25:00 +0000 2017
>Last-Modified:  Tue May 30 06:30:01 +0000 2017
>Originator:     Thomas Mueller
>Release:        7.99.71 and 7.99.72
>Organization:
Home user
>Environment:
NetBSD amelia2 7.99.15 NetBSD 7.99.15 (NetBSD-HEAD amd64.nb799-20150504) #1: Tue May  5 00:12:35 UTC 2015  root@amelia2:/BETA1/netbsd-HEAD/usr/obj/BETA1/netbsd-HEAD/usr/src/sys/arch/amd64/compile/SANDY7-DRMKMS amd64

>Description:
This computer has motherboard MSI Z77 MPOWER with onboard quasi-USB wi-fi as well as Realtek 8111E/8168 Ethernet adapter.  Trying to boot generic kernel, amd64 or i386, immediately reboots with no messages.  Booting custom kernel hangs unless I go into userconf and disable athn, or build kernel with athn commented out.  I am in 7.99.15 amd64 now with Firefox as I type this.  I suspect this problem might have begun with the latest update to the if_athn_* files 

-rw-r--r--  1 root  wheel  77227 Feb  4 07:57 /BETA1/netbsd-HEAD/usr/src/sys/dev/usb/if_athn_usb.c
-rw-r--r--  1 root  wheel  12867 Feb  4 07:57 /BETA1/netbsd-HEAD/usr/src/sys/dev/usb/if_athn_usb.h

where the head of the src tree is at /BETA1/netbsd-HEAD/usr/src , /BETA1 being a mount point for a partition where FreeBSD is installed.

Even before this update, most of the time, athn firmware fails to load, though occasionally it succeeds:

athn0: could not load firmware (35)

>How-To-Repeat:
Attempt to boot NetBSD-current 7.99.71 or 7.99.72 with GENERIC (immediate reboot) or custom kernel with athn not disabled, or commented out in kernel config file.
>Fix:
None that I know of.  I can connect to Internet with onboard re0 Ethernet, otherwise the problem would be critical.

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
 athn is disabled.
Date: Mon, 29 May 2017 09:14:02 +0200

 Could you provide pcictl dump output for your device?
 Does -current work if you stop the boot countdown and do

 	boot -1

 ?

 Martin

From: "Thomas Mueller" <mueller6725@twc.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
        athn is disabled.
Date: Mon, 29 May 2017 08:49:28 +0000

 The following reply was made to PR kern/52259; it has been noted by GNATS.

 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 Cc:     
 > Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
 >  athn is disabled.
 > Date: Mon, 29 May 2017 09:14:02 +0200

 >  Could you provide pcictl dump output for your device?
 >  Does -current work if you stop the boot countdown and do

 >         boot -1

  ?

 >  Martin

 Would pcictl be of any use on a USB or quasi-USB device?  What is for USB?

 athn, in contrast to ath, is (quasi-)USB, not PCI.

 I hadn't thought of booting single-processor but will try if you think that has a chance.

 I reply to gnats-bugs@netbsd.org because that's what the Reply-To: header says.

 Tom

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
 athn is disabled.
Date: Mon, 29 May 2017 10:57:52 +0200

 On Mon, May 29, 2017 at 08:55:01AM +0000, Thomas Mueller wrote:
 >  Would pcictl be of any use on a USB or quasi-USB device?  What is for USB?
 >  
 >  athn, in contrast to ath, is (quasi-)USB, not PCI.

 Sorry (there are various variants of athn, I have one that attaches at PCI).

 If yours attaches to usb, a usbdevs -v output for that device would be
 helpfull.

 Martin

From: "Thomas Mueller" <mueller6725@twc.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
        athn is disabled.
Date: Mon, 29 May 2017 17:22:29 +0000

 The following reply was made to PR kern/52259; it has been noted by GNATS.

 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 Cc:
 > Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
 >  athn is disabled.
 > Date: Mon, 29 May 2017 10:57:52 +0200

 >  On Mon, May 29, 2017 at 08:55:01AM +0000, Thomas Mueller wrote:
 >  >  Would pcictl be of any use on a USB or quasi-USB device?  What is for USB?
  >
 >  >  athn, in contrast to ath, is (quasi-)USB, not PCI.

 >  Sorry (there are various variants of athn, I have one that attaches at PCI).

 >  If yours attaches to usb, a usbdevs -v output for that device would be
 >  helpfull.

 If I need to disable athn, or keep it out of kernel config, I suppose 
 usbdevs -v wouldn't find it?

 But I could boot an earlier NetBSD kernel, 7.99.15 or a 7.99.1 installation 
 and try usbdevs -v from there.

 Or I could even try usbconfig or usbdump from FreeBSD, although FreeBSD has no support for athn.

 I reply to gnats-bugs@netbsd.org because that's what the Reply-To: header says.

 Tom

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
 athn is disabled.
Date: Mon, 29 May 2017 20:22:01 +0200

 On Mon, May 29, 2017 at 05:25:01PM +0000, Thomas Mueller wrote:
 >  If I need to disable athn, or keep it out of kernel config, I suppose 
 >  usbdevs -v wouldn't find it?

 It should still find it.

 >  I reply to gnats-bugs@netbsd.org because that's what the Reply-To: header says.

 Yes, that is the correct address for answers to be auto-added to the PR.

 Martin

From: "Thomas Mueller" <mueller6725@twc.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
        athn is disabled.
Date: Mon, 29 May 2017 19:17:05 +0000

 The following reply was made to PR kern/52259; it has been noted by GNATS.

 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 Cc:
 > Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
 >  athn is disabled.
 > Date: Mon, 29 May 2017 20:22:01 +0200

 >  On Mon, May 29, 2017 at 05:25:01PM +0000, Thomas Mueller wrote:
 >  >  If I need to disable athn, or keep it out of kernel config, I suppose
 >  >  usbdevs -v wouldn't find it?

 >  It should still find it.

 >  >  I reply to gnats-bugs@netbsd.org because that's what the Reply-To: header says.

 >  Yes, that is the correct address for answers to be auto-added to the PR.

 Do you still want me to try boot -1 (or knetbsd /netbsd-79972 -1 if I use grub2)?

 I could try both FreeBSD usbconfig and/or usbdump and NetBSD usbdevs -v; it could take me some time to find the relevant parts.

 Tom

From: "Thomas Mueller" <mueller6725@twc.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
        athn is disabled.
Date: Tue, 30 May 2017 06:27:54 +0000

 The following reply was made to PR kern/52259; it has been noted by GNATS.

 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 Cc:
 > Subject: Re: kern/52259: NetBSD-current won't boot on i386 or amd64 unless
 >  athn is disabled.
 > Date: Mon, 29 May 2017 20:22:01 +0200

 >  On Mon, May 29, 2017 at 05:25:01PM +0000, Thomas Mueller wrote:
 >  >  If I need to disable athn, or keep it out of kernel config, I suppose
 >  >  usbdevs -v wouldn't find it?

 >  It should still find it.

 >  >  I reply to gnats-bugs@netbsd.org because that's what the Reply-To: header says.

 >  Yes, that is the correct address for answers to be auto-added to the PR.

 Do you still want me to try boot -1 (or knetbsd /netbsd-79972 -1 if I use grub2)?

 I could try both FreeBSD usbconfig and/or usbdump and NetBSD usbdevs -v; it could take me some time to find the relevant parts.

 Update: I did,  FreeBSD's usbconfig (by itself) gives about the same information as NetBSD's usbdevs -v .

 Here is the result of usbdevs -v:

 Controller /dev/usb0:
 addr 0: super speed, self powered, config 1, xHCI Root Hub(0x0000), Intel(0x8086), rev 1.00(0x0100)
  port 1 disabled
  port 2 disabled
  port 3 disabled
  port 4 disabled
 Controller /dev/usb1:
 addr 0: high speed, self powered, config 1, xHCI Root Hub(0x0000), Intel(0x8086), rev 1.00(0x0100)
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
 Controller /dev/usb2:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00(0x0100)
  port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x0024), Intel(0x8087), rev 0.00(0x0000)
   port 1 powered
   port 2 addr 3: high speed, self powered, config 1, USB2.0 Hub(0x0608), Genesys Logic(0x05e3), rev 77.64(0x7764)
    port 1 powered
    port 2 powered
    port 3 addr 4: high speed, power 500 mA, config 1, 11n Adapter(0x8172), Manufacturer Realtek(0x0bda), rev 2.00(0x0200), serial 00e04c000001
    port 4 addr 5: low speed, power 98 mA, config 1, USB Optical Mouse(0xc064), Logitech(0x046d), rev 34.01(0x3401)
   port 3 powered
   port 4 addr 6: high speed, power 200 mA, config 1, DT 101 G2(0x1642), Kingston(0x0951), rev 1.00(0x0100), serial 001372708ADBBBA1C571003D
   port 5 addr 7: full speed, self powered, config 1, product 3002(0x3002), Atheros Communications(0x0cf3), rev 0.01(0x0001)
   port 6 addr 8: high speed, power 500 mA, config 1, UB91(0x9271), ATHEROS(0x0cf3), rev 1.08(0x0108), serial 12345
  port 2 powered
 Controller /dev/usb3:
 addr 0: super speed, self powered, config 1, xHCI Root Hub(0x0000), Renesas Technologies(0x1912), rev 1.00(0x0100)
  port 1 addr 1: super speed, self powered, config 1, Expansion Desk(0x3312), Seagate(0x0bc2), rev 7.39(0x0739), serial NA4KY9ZJ
  port 2 disabled
  port 3 disabled
  port 4 addr 2: super speed, power 126 mA, config 1, DataTraveler 3.0(0x1666), Kingston(0x0951), rev 1.00(0x0100), serial 60A44C3FAFE1BE60696D61BF
 Controller /dev/usb4:
 addr 0: high speed, self powered, config 1, xHCI Root Hub(0x0000), Renesas Technologies(0x1912), rev 1.00(0x0100)
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
 Controller /dev/usb5:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00(0x0100)
  port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x0024), Intel(0x8087), rev 0.00(0x0000)
   port 1 powered
   port 2 powered
   port 3 powered
   port 4 powered
   port 5 addr 3: high speed, power 200 mA, config 1, USB DISK 2.0(0x4100), Phison Electronics Corp.(0x13fe), rev 1.00(0x0100), serial 070827851520BD62
   port 6 powered
   port 7 addr 4: high speed, power 200 mA, config 1, USB Flash Drive(0xa825), UFD(0x05dc), rev 11.00(0x1100), serial AAUSSWES35WI3KPV
   port 8 powered
  port 2 powered


 I booted NetBSD 7.99.72 i386; base system userland updated but packages still in sync with NetBSD 7.99.15, so vi editor works, but msmtp might possibly fail if shared libraries are out of sync.

 Atheros 9271 is the wireless adapter (athn); 3002 might be the Bluetooth.

 By the way, boot -1 failed, hung after 
 WARNING: 17 errors while detecting system hardware; check system log.
 (as opposed to 9 or 10)
 otherwise the same as plain boot.

 For this session, I booted kernel with athn commented out in kernel config.

 I see I also have some other USB utilitied installed on an old NetBSD 7.99.1 amd64 installation, would those be any use?

 -rwxr-xr-x  1 root  wheel  28576 Sep  1  2014 /media/zip0/usr/pkg/sbin/usbctl
 -rwxr-xr-x  1 root  wheel   7320 Sep  1  2014 /media/zip0/usr/pkg/sbin/usbdebug
 -rwxr-xr-x  1 root  wheel  12232 Sep  1  2014 /media/zip0/usr/pkg/sbin/usbgen
 -rwxr-xr-x  1 root  wheel   7368 Sep  1  2014 /media/zip0/usr/pkg/sbin/usbstats

 USB addr 1 port 3 addr 4 (11n adaptr  (0x8172), Manufacturer Realtek, is Hiro H50191 external USB wireless adapter: not suppoeted in NetBSD but works in FreeBSD with driver rsu.

 Tom

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.