NetBSD Problem Report #57278

From www@netbsd.org  Sat Mar 18 20:07:09 2023
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 5556D1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 18 Mar 2023 20:07:09 +0000 (UTC)
Message-Id: <20230318200707.EDB191A923B@mollari.NetBSD.org>
Date: Sat, 18 Mar 2023 20:07:07 +0000 (UTC)
From: mikoxyzzz@gmail.com
Reply-To: mikoxyzzz@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Fails to open console on APU+GPU AMD Crossfire system
X-Send-Pr-Version: www-1.0

>Number:         57278
>Category:       port-amd64
>Synopsis:       Fails to open console on APU+GPU AMD Crossfire system
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 18 20:10:00 +0000 2023
>Last-Modified:  Sat Apr 01 20:00:01 +0000 2023
>Originator:     Miko Larsson
>Release:        9.3, current
>Organization:
>Environment:
N/A
>Description:
On a system with an APU+GPU Crossfire setup (A8 7600+Radeon R5 330), the kernel panics since it's unable to open a console. Panic is as follows (transcribed from an image, so I apologize in advance for any eventual typos), excluding log timestamps:

[drm] ib test on ring 2 succeeded in 0 usecs
[drm] ib test on ring 3 succeeded in 0 usecs
[drm] ib test on ring 4 succeeded in 0 usecs
[drm] Radeon Display Connectors
[drm] Initialized radeon 2.50.0 20080528 for radeon1 on minor 1
panic: cnopen: no console device
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x183
panic() at netbsd:panic+0x3c
cnopen() at netbsd:cnopen+0x104
cdev_open() at netbsd:cdev_open+0x133
spec_open() at netbsd:spec_open+0x237
VOP_OPEN() at netbsd:VOP_OPEN+0x3e
vn_open() at netbsd:vn_open+0x32e
do_open() at netbsd:do_open+0xc3
do_sys_openat() at netbsd:do_sys_openat+0x74
sys_open() at netbsd:sys_open+0x24
syscall() at netbsd:syscall+0x196
--- syscall (number 5) ---
netbsd:syscall+0x196:
cpu0: End traceback...
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip 0xffffffff80235315 cs 0x8 rflags 0x202 cr2 0x74c55320fab8 ilevel 0 rsp
curlwp 0xffff89f0dbc719c0 pid 171.171 lowest kstack 0xffffa904031f02c0
Stopped in pid 171.171 (init) at        netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
vpanic() at netbsd+vpanic+0x183
panic() at netbsd:panic+0x3c
cnopen() at netbsd:cnopen+0x104
cdev_open() at netbsd:cdev_open+0x133
spec_open() at netbsd:spec_open+0x237
VOP_OPEN() at netbsd:VOP_OPEN+0x3e
vn_open() at netbsd:vn_open+0x32e
do_open() at netbsd:do_open+0xc3
do_sys_openat() at netbsd:do_sys_openat+0x74
sys_open() at netbsd:sys_open+0x24
syscall() at netbsd:syscall+0x196
--- syscall (number 5) ---
netbsd:syscall+0x196:
ds          8
es          0
fs          180
gs          4a70
rdi         0
rsi         ffffa9001ce4c020
rbp         ffffa904031f4ac0
rbx         0
--db_more--

At this point, the console is completely frozen and won't accept any input from e.g. the keyboard.

I've tested both 9.3 and current; on 9.3 the console completely freezes after "[drm] Initialized radeon 2.50.0 20080528 for radeon1 on minor 1", whereas on current I got the aforementioned kernel panic.
>How-To-Repeat:
1. Get ahold of a system with an identical Crossfire setup as detailed earlier
2. Try to boot NetBSD-current from e.g. an install USB
>Fix:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/57278: Fails to open console on APU+GPU AMD Crossfire
 system
Date: Sat, 1 Apr 2023 19:59:46 +0000

 The following reply seems to have persuaded gnats to open a separate
 report for it, which wasn't what anyone's intending. Not sure why.
 I've closed that one.

 To post comments on a PR, send mail to gnats-bugs@ with Subject: in
 the form above (Re: and the category and ticket number, the
 description is not necessary but useful for passersby).

    ------

 From: Miko Larsson <mikoxyzzz@gmail.com>
 To: port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,
 	netbsd-bugs@netbsd.org
 Subject: Re: port-amd64/57278: Fails to open console on APU+GPU AMD Crossfire
 	system
 Date: Sat, 25 Mar 2023 15:39:32 +0100

 On Sat, 2023-03-18 at 20:10 +0000, mikoxyzzz gmail ! com wrote:
  > [snip]
 Booting the installer with 'userconf disable radeon' allows the
 installer to boot just fine, so it's a suitable workaround for now. The
 caveat is of course that drmkms is disabled.

 -- 
 ~~miko

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.