NetBSD Problem Report #56885

From www@netbsd.org  Tue Jun 14 21:24:56 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 9E2FF1A921F
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 14 Jun 2022 21:24:56 +0000 (UTC)
Message-Id: <20220614212454.CFFBD1A923C@mollari.NetBSD.org>
Date: Tue, 14 Jun 2022 21:24:54 +0000 (UTC)
From: roland.illig@gmx.de
Reply-To: roland.illig@gmx.de
To: gnats-bugs@NetBSD.org
Subject: Starting NetBSD-9.99 in a VirtualBox with 3 CPUs hangs at startup
X-Send-Pr-Version: www-1.0

>Number:         56885
>Category:       kern
>Synopsis:       Starting NetBSD-9.99 in a VirtualBox with 3 CPUs hangs at startup
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 14 21:25:00 +0000 2022
>Last-Modified:  Tue Jun 14 21:56:55 +0000 2022
>Originator:     Roland Illig
>Release:        9.99.97
>Organization:
>Environment:
NetBSD nbinst.fritz.box 9.99.97 NetBSD 9.99.97 (GENERIC) #0: Mon Jun 13 20:16:53 UTC 2022  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Install NetBSD in a VirtualBox VM, using the default settings.
I am using VirtualBox 6.1.34r150636 on Windows.
Shut down the VM.
In VirtualBox, change the CPUs from 1 to 3.
Start the VM.

The VM hangs after the following green line:
[   4.0805657] : NetBSD (0x0000) OHCI root hub(0x0000), class 9/0, rev 1.00/1.00, addr 1

After that, there is no further progress, all 3 CPUs are busy.
Typing some keys doesn't show anything on the screen.
Pressing Num Lock, Caps Lock or Scroll Lock toggles the keyboard LEDs.
The VirtualBox statistics show high VM exits between 10k and 20k per second.

Killing the VM and then starting it with a single CPU works flawlessly.

I tried it a few more times:

 2. works fine
 3. hang after 'acpicpu2 at cpu2: ACPI CPU'
 4. hang after 'acpicpu2 at cpu2: ACPI CPU'
 5. hang after 'acpicpu2 at cpu2: ACPI CPU'
 6. hang after 'acpicpu2 at cpu2: ACPI CPU'
 7. hang after 'acpicpu2 at cpu2: ACPI CPU'
 8. hang after 'acpicpu2 at cpu2: ACPI CPU'
 9. (with 1 CPU) works fine
10. (with 3 CPUs) boots successfully, fast keyboard (see PR 56883)
11. hang after 'acpicpu2 at cpu2: ACPI CPU'
12. hang after 'acpibat0: normal capacity on 'charge state'' (3 CPUs busy)
13. hang after 'acpicpu2 at cpu2: ACPI CPU'
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: install-manager->kern-bug-people
Responsible-Changed-By: rillig@NetBSD.org
Responsible-Changed-When: Tue, 14 Jun 2022 21:56:55 +0000
Responsible-Changed-Why:
is not specific to installing NetBSD


>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.