NetBSD Problem Report #55478

From www@netbsd.org  Fri Jul 10 13:32:57 2020
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6DF661A9213
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Jul 2020 13:32:57 +0000 (UTC)
Message-Id: <20200710133256.86A501A921A@mollari.NetBSD.org>
Date: Fri, 10 Jul 2020 13:32:56 +0000 (UTC)
From: marko.bauhardt@mailbox.org
Reply-To: marko.bauhardt@mailbox.org
To: gnats-bugs@NetBSD.org
Subject: netbsd 9.0 - Installer freezes on macbook pro late 2013
X-Send-Pr-Version: www-1.0

>Number:         55478
>Category:       kern
>Synopsis:       netbsd 9.0 - Installer freezes on macbook pro late 2013
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 10 13:35:01 +0000 2020
>Last-Modified:  Sun Aug 23 16:19:14 +0000 2020
>Originator:     Marko Bauhardt
>Release:        9.0
>Organization:
>Environment:
MacBook Pro late 2013 Retina
>Description:
I try to install NetBsd on my Macbook Pro late 2013.
I'm using a USB stick.
The installer starts correctly, so I'm able to choose between 2 options
1) Install NetBSD
2) Drop to Boot prompt

I chosed 1)
After a few seconds the display is getting more light/brighter. (I don't know how to explain). And then the display switched to black color, and I can do nothing. No sysinst blue screen is visible.

Btw
at the moment there is a FreeBSD installed on that machine.

Any hint how to get more verbosity about what exactly happens.

Thx 
Marko
>How-To-Repeat:
Boot release 9.0  from USB stick.
>Fix:

>Release-Note:

>Audit-Trail:
From: Andrius V <vezhlys@gmail.com>
To: gnats-bugs@netbsd.org
Cc: install-manager@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro late 2013
Date: Sat, 11 Jul 2020 16:09:17 +0300

 Hi,

 I would recommend trying UEFI image, since I had better results
 booting from it on Mac Mini 2014 system, in case you haven't tried
 yet. I had a black screen issue as well in previous releases, though
 using UEFI image, not a BIOS boot. Don't remember anymore if it was
 fixed in NetBSD 9 release or current branch.

 On Fri, Jul 10, 2020 at 4:37 PM <marko.bauhardt@mailbox.org> wrote:
 >
 > >Number:         55478
 > >Category:       install
 > >Synopsis:       netbsd 9.0 - Installer freezes on macbook pro late 2013
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    install-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Fri Jul 10 13:35:01 +0000 2020
 > >Originator:     Marko Bauhardt
 > >Release:        9.0
 > >Organization:
 > >Environment:
 > MacBook Pro late 2013 Retina
 > >Description:
 > I try to install NetBsd on my Macbook Pro late 2013.
 > I'm using a USB stick.
 > The installer starts correctly, so I'm able to choose between 2 options
 > 1) Install NetBSD
 > 2) Drop to Boot prompt
 >
 > I chosed 1)
 > After a few seconds the display is getting more light/brighter. (I don't know how to explain). And then the display switched to black color, and I can do nothing. No sysinst blue screen is visible.
 >
 > Btw
 > at the moment there is a FreeBSD installed on that machine.
 >
 > Any hint how to get more verbosity about what exactly happens.
 >
 > Thx
 > Marko
 > >How-To-Repeat:
 > Boot release 9.0  from USB stick.
 > >Fix:
 >

From: Marko Bauhardt <marko.bauhardt@mailbox.org>
To: gnats-bugs@netbsd.org, Andrius V <vezhlys@gmail.com>,
	install-manager@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Cc: 
Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro
 late 2013
Date: Thu, 16 Jul 2020 19:07:34 +0200 (CEST)

 > Andrius V <vezhlys@gmail.com> hat am 11.07.2020 15:10 geschrieben:

 Hi, 

 >   
 >  I would recommend trying UEFI image, since I had better results
 >  booting from it on Mac Mini 2014 system, in case you haven't tried
 >  yet. I had a black screen issue as well in previous releases, though
 >  using UEFI image, not a BIOS boot. Don't remember anymore if it was
 >  fixed in NetBSD 9 release or current branch.

 I tried several 9.0 images. The usb-uefi version, the usb-bios version and the cdrom version. Same issue.
 But, on the bios one, I got log messages. It turns out the issue is the same as http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=51716
 I'm pretty sure the installer wants to know where the root device is

 boot device: <unknown>
 root device:

 and expect that the user type the name of the device. But as far as I know the built in keyboard on this macbook pro is a usb 3 keyboard. And this is disabled while booting.... maybe...
 I had the same thing when I tried to install OpenBsd.
 Btw, FreeBsd doesn't have this issue.

 So I can't obvisely don't plugin an external USB keyboard because USB is disabled??

 Any Idea how I can workaround this issue, maybe providing a disk layout where the installer does not run into the interactive session. I could use the FreebSD live installer to prepare the disk.

 Any idea/comment?

 Thanks
 Marko

From: Andrius V <vezhlys@gmail.com>
To: gnats-bugs@netbsd.org
Cc: install-manager@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, 
	marko.bauhardt@mailbox.org
Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro late 2013
Date: Sun, 19 Jul 2020 13:05:41 +0300

 Unfortunately, I can't comment much. In case NetBSD asks for a boot
 device, it usually means that it couldn't recognize it. Thus, it is
 very likely that the USB3 controller wasn't recognized/attached for
 some reason (keyboard seems to work on USB2 internally). 51716 was
 submitted during NetBSD7 times, USB3 driver greatly improved since
 then and was enabled by default (wasn't the case in NetBSD 7). I had
 very similar issues with Mac Mini and they were resolved by now. And
 according to messages from that bug, the system was hanging on pre
 NetBSD 8 system (which probably already had USB3 enabled), which is
 not the case for you. Since, there's no easy way to save log messages
 in this situation, maybe making a video probably is also one of the
 solutions to analyze if xhci appeared somewhere in the logs (booting
 with -vx may give more info). If you have some spare thunderbolt 2
 device, you may have more success booting from it as well.

 Finally, you can try netbsd-current images to see if the problem still
 persists and how it behaves with the latest code.


 On Thu, Jul 16, 2020 at 8:32 PM Marko Bauhardt
 <marko.bauhardt@mailbox.org> wrote:
 >
 > The following reply was made to PR install/55478; it has been noted by GNATS.
 >
 > From: Marko Bauhardt <marko.bauhardt@mailbox.org>
 > To: gnats-bugs@netbsd.org, Andrius V <vezhlys@gmail.com>,
 >         install-manager@netbsd.org, gnats-admin@netbsd.org,
 >         netbsd-bugs@netbsd.org
 > Cc:
 > Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro
 >  late 2013
 > Date: Thu, 16 Jul 2020 19:07:34 +0200 (CEST)
 >
 >  > Andrius V <vezhlys@gmail.com> hat am 11.07.2020 15:10 geschrieben:
 >
 >  Hi,
 >
 >  >
 >  >  I would recommend trying UEFI image, since I had better results
 >  >  booting from it on Mac Mini 2014 system, in case you haven't tried
 >  >  yet. I had a black screen issue as well in previous releases, though
 >  >  using UEFI image, not a BIOS boot. Don't remember anymore if it was
 >  >  fixed in NetBSD 9 release or current branch.
 >
 >  I tried several 9.0 images. The usb-uefi version, the usb-bios version and the cdrom version. Same issue.
 >  But, on the bios one, I got log messages. It turns out the issue is the same as http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=51716
 >  I'm pretty sure the installer wants to know where the root device is
 >
 >  boot device: <unknown>
 >  root device:
 >
 >  and expect that the user type the name of the device. But as far as I know the built in keyboard on this macbook pro is a usb 3 keyboard. And this is disabled while booting.... maybe...
 >  I had the same thing when I tried to install OpenBsd.
 >  Btw, FreeBsd doesn't have this issue.
 >
 >  So I can't obvisely don't plugin an external USB keyboard because USB is disabled??
 >
 >  Any Idea how I can workaround this issue, maybe providing a disk layout where the installer does not run into the interactive session. I could use the FreebSD live installer to prepare the disk.
 >
 >  Any idea/comment?
 >
 >  Thanks
 >  Marko
 >
 >

From: Marko Bauhardt <marko.bauhardt@mailbox.org>
To: Andrius V <vezhlys@gmail.com>, gnats-bugs@netbsd.org
Cc: install-manager@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro
 late 2013
Date: Sun, 9 Aug 2020 16:40:22 +0200 (CEST)

 > Andrius V <vezhlys@gmail.com> hat am 19.07.2020 12:05 geschrieben:

 Hi Andrius.

 > ... maybe making a video probably is also one of the...
 > 
 > Finally, you can try netbsd-current images to see if the problem still...

 So I tried to install a version of the current branch and made a video. The behaviour is the same. :(
 Here is the video https://mbauhardt.keybase.pub/netbsd-boot-failure.mov
 (My laptop display is really dirty, shame on me...)

 Marko

Responsible-Changed-From-To: install-manager->kern-bug-peolpe
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Sun, 09 Aug 2020 14:48:27 +0000
Responsible-Changed-Why:
generic kernel issue, not install specific


From: Martin Husemann <martin@duskware.de>
To: Marko Bauhardt <marko.bauhardt@mailbox.org>
Cc: Andrius V <vezhlys@gmail.com>, gnats-bugs@netbsd.org
Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro
 late 2013
Date: Sun, 9 Aug 2020 16:47:29 +0200

 So there are two issues:

  - ahcisata says there is a 6GB/s device but apparently no disk(s) attach
  - keyboard does not work at the boot device prompt

 This is a generic kernel issue, not really install-specific.

 Martin

From: Andrius V <vezhlys@gmail.com>
To: gnats-bugs@netbsd.org
Cc: kern-bug-peolpe@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, 
	marko.bauhardt@mailbox.org
Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro late 2013
Date: Mon, 10 Aug 2020 13:36:39 +0300

 Yes, it is not an installation specific issue. For USB it is visible
 for very short time that xhci is identified but fails to attach
 properly:
 xhci0 at pci0 dev20 function 0: vendor 8086 product 8c... (can't see,
 screen glare)
 pci_intr_map: no mapping for pin A (line=00) (probably A, can't see clearly)
 xhci0: can't allocate handler
 xhci0: WARNING: power management not supported

 This is probably the reason why the keyboard doesn't work.

 Also I noticed that CPU is "unknown":
 cpu0: unknown i686 model 46, can't get bus clock (0x0)

 Maybe CPU needs some special handling (not sure if 46 is hex or
 decimal, I guess hex - Haswell, since 0x2e was nehalem, earlier
 model)?


 On Sun, Aug 9, 2020 at 5:50 PM Martin Husemann <martin@duskware.de> wrote:
 >
 > The following reply was made to PR kern/55478; it has been noted by GNATS.
 >
 > From: Martin Husemann <martin@duskware.de>
 > To: Marko Bauhardt <marko.bauhardt@mailbox.org>
 > Cc: Andrius V <vezhlys@gmail.com>, gnats-bugs@netbsd.org
 > Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro
 >  late 2013
 > Date: Sun, 9 Aug 2020 16:47:29 +0200
 >
 >  So there are two issues:
 >
 >   - ahcisata says there is a 6GB/s device but apparently no disk(s) attach
 >   - keyboard does not work at the boot device prompt
 >
 >  This is a generic kernel issue, not really install-specific.
 >
 >  Martin
 >

From: Andrius V <vezhlys@gmail.com>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, 
	marko.bauhardt@mailbox.org
Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro late 2013
Date: Tue, 11 Aug 2020 00:24:52 +0300

 Yes, it is haswell, since the i7-4850HQ CPU is visible in dmesg. Maybe
 the output of the model should be changed to 0x46 to avoid confusion?
 And perhaps CPU error is irrelevant, since the boot was performed
 without ACPI.

 Back to topic, my mac mini is also Haswell based but on a bit
 different chipset Lynx Point-LP instead of Lynx Point, thus my xhci
 device is 0x9c31 while this macbook pro seemingly has 0x8c31. In my
 case, I don't seem to have any issues with USB3 devices. I found only
 one bug related to this device which sounds similar a bit -
 kern/49076, but it apparently was fixed. Nevertheless, I don't think
 that it needs any special treatment compared to LP version. I can't
 find anything in FreeBSD code for example. Probably something specific
 to the particular laptop model...





 On Mon, Aug 10, 2020 at 1:36 PM Andrius V <vezhlys@gmail.com> wrote:
 >
 > Yes, it is not an installation specific issue. For USB it is visible
 > for very short time that xhci is identified but fails to attach
 > properly:
 > xhci0 at pci0 dev20 function 0: vendor 8086 product 8c... (can't see,
 > screen glare)
 > pci_intr_map: no mapping for pin A (line=00) (probably A, can't see clearly)
 > xhci0: can't allocate handler
 > xhci0: WARNING: power management not supported
 >
 > This is probably the reason why the keyboard doesn't work.
 >
 > Also I noticed that CPU is "unknown":
 > cpu0: unknown i686 model 46, can't get bus clock (0x0)
 >
 > Maybe CPU needs some special handling (not sure if 46 is hex or
 > decimal, I guess hex - Haswell, since 0x2e was nehalem, earlier
 > model)?
 >
 >
 > On Sun, Aug 9, 2020 at 5:50 PM Martin Husemann <martin@duskware.de> wrote:
 > >
 > > The following reply was made to PR kern/55478; it has been noted by GNATS.
 > >
 > > From: Martin Husemann <martin@duskware.de>
 > > To: Marko Bauhardt <marko.bauhardt@mailbox.org>
 > > Cc: Andrius V <vezhlys@gmail.com>, gnats-bugs@netbsd.org
 > > Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro
 > >  late 2013
 > > Date: Sun, 9 Aug 2020 16:47:29 +0200
 > >
 > >  So there are two issues:
 > >
 > >   - ahcisata says there is a 6GB/s device but apparently no disk(s) attach
 > >   - keyboard does not work at the boot device prompt
 > >
 > >  This is a generic kernel issue, not really install-specific.
 > >
 > >  Martin
 > >

From: Andrius V <vezhlys@gmail.com>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, 
	marko.bauhardt@mailbox.org
Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro late 2013
Date: Wed, 12 Aug 2020 23:37:44 +0300

 I retested my mac and I can confirm that the problem can be reproduced
 if booted without ACPI support (-2 option) on any NetBSD version.
 However, normal boot (with ACPI support) from official 9.0 amd64 UEFI
 image works fine, same applies to the latest i386/amd64 9.0 images
 from https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/
 (latest versions combined UEFI/BIOS boot into one image) or latest
 current (HEAD) images. So, it seems there is no point to boot with the
 -2 option since it causes some hardware initialization to fail.
 Nevertheless,  I believe the initial issue on a blank screen is
 unrelated and probably caused by the framebuffer driver(?). Likely the
 system boots properly though under the hood. It can be verified by
 adding dmesg=YES to rc.conf and checking /var/run/dmesg.boot messages
 after (by mounting partition in different system). Still, I would
 recommend trying the latest builds from nycdn first, since I had a
 similar issue in previous releases too. Also, I don't have NVIDIA
 graphics, only Intel graphics.  Maybe disabling nouveau (or even
 i915drmkms) can help here, but I am not sure if that can be done
 without recompiling the kernel manually.

 On Tue, Aug 11, 2020 at 12:24 AM Andrius V <vezhlys@gmail.com> wrote:
 >
 > Yes, it is haswell, since the i7-4850HQ CPU is visible in dmesg. Maybe
 > the output of the model should be changed to 0x46 to avoid confusion?
 > And perhaps CPU error is irrelevant, since the boot was performed
 > without ACPI.
 >
 > Back to topic, my mac mini is also Haswell based but on a bit
 > different chipset Lynx Point-LP instead of Lynx Point, thus my xhci
 > device is 0x9c31 while this macbook pro seemingly has 0x8c31. In my
 > case, I don't seem to have any issues with USB3 devices. I found only
 > one bug related to this device which sounds similar a bit -
 > kern/49076, but it apparently was fixed. Nevertheless, I don't think
 > that it needs any special treatment compared to LP version. I can't
 > find anything in FreeBSD code for example. Probably something specific
 > to the particular laptop model...
 >
 >
 >
 >
 >
 > On Mon, Aug 10, 2020 at 1:36 PM Andrius V <vezhlys@gmail.com> wrote:
 > >
 > > Yes, it is not an installation specific issue. For USB it is visible
 > > for very short time that xhci is identified but fails to attach
 > > properly:
 > > xhci0 at pci0 dev20 function 0: vendor 8086 product 8c... (can't see,
 > > screen glare)
 > > pci_intr_map: no mapping for pin A (line=00) (probably A, can't see clearly)
 > > xhci0: can't allocate handler
 > > xhci0: WARNING: power management not supported
 > >
 > > This is probably the reason why the keyboard doesn't work.
 > >
 > > Also I noticed that CPU is "unknown":
 > > cpu0: unknown i686 model 46, can't get bus clock (0x0)
 > >
 > > Maybe CPU needs some special handling (not sure if 46 is hex or
 > > decimal, I guess hex - Haswell, since 0x2e was nehalem, earlier
 > > model)?
 > >
 > >
 > > On Sun, Aug 9, 2020 at 5:50 PM Martin Husemann <martin@duskware.de> wrote:
 > > >
 > > > The following reply was made to PR kern/55478; it has been noted by GNATS.
 > > >
 > > > From: Martin Husemann <martin@duskware.de>
 > > > To: Marko Bauhardt <marko.bauhardt@mailbox.org>
 > > > Cc: Andrius V <vezhlys@gmail.com>, gnats-bugs@netbsd.org
 > > > Subject: Re: install/55478: netbsd 9.0 - Installer freezes on macbook pro
 > > >  late 2013
 > > > Date: Sun, 9 Aug 2020 16:47:29 +0200
 > > >
 > > >  So there are two issues:
 > > >
 > > >   - ahcisata says there is a 6GB/s device but apparently no disk(s) attach
 > > >   - keyboard does not work at the boot device prompt
 > > >
 > > >  This is a generic kernel issue, not really install-specific.
 > > >
 > > >  Martin
 > > >

Responsible-Changed-From-To: kern-bug-peolpe->kern-bug-people
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Sun, 23 Aug 2020 16:19:14 +0000
Responsible-Changed-Why:
typo in mail address


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.