NetBSD Problem Report #57451

From chuq@chuq.com  Sun Jun  4 01:30:05 2023
Return-Path: <chuq@chuq.com>
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 0C28A1A923F
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  4 Jun 2023 01:30:05 +0000 (UTC)
Message-Id: <20230604001425.9741A3CFFA26@spathi.chuq.com>
Date: Sat,  3 Jun 2023 17:14:25 -0700 (PDT)
From: chuq@chuq.com
Reply-To: chuq@chuq.com
To: gnats-bugs@NetBSD.org
Subject: drm doesn't attach an fb device if no monitor is connected
X-Send-Pr-Version: 3.95

>Number:         57451
>Category:       kern
>Synopsis:       drm doesn't attach an fb device if no monitor is connected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 04 01:35:00 +0000 2023
>Last-Modified:  Sun Jun 04 07:05:01 +0000 2023
>Originator:     Chuck Silvers
>Release:        NetBSD 10.0_BETA or NetBSD 10.99.*
>Organization:
NetBSD
>Environment:
Architecture: x86_64
Machine: amd64
>Description:

If a system boots with no monitor connected, the current drm code
will not attach an fb device, for radeon, nouveau or intel.
This means that if the system has no serial port or other device
eligible to be the system console, the system will panic during boot
due to not finding a console device.  at least, I think it panics...
I can't really be sure what it does because there's no console.

If the system does have some other device to be the console, the
system survives the boot process but there are still problems.
/etc/rc.d/wsconscfg runs at boot time to apply various configuration
settings from /etc/wscons.conf, but if the driver did not attach
because of no monitor then some of those ws* commands will fail, and
then if you later plug in a monitor while the system is up, the
settings that were supposed to be applied at boot time are missing,
and you need to run /etc/rc.d/wscons manually to get the correct
configuration.

>How-To-Repeat:

Boot a system with the drmkms video drivers configured and
no monitor connected.

>Fix:

TBD

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/57451: drm doesn't attach an fb device if no monitor is
 connected
Date: Sun, 4 Jun 2023 07:01:23 +0200

 On Sun, Jun 04, 2023 at 01:35:00AM +0000, Chuck Silvers wrote:
 > >Number:         57451
 > >Category:       kern
 > >Synopsis:       drm doesn't attach an fb device if no monitor is connected

 This looks like PR 56858
  Thomas

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/57451: drm doesn't attach an fb device if no monitor is
 connected
Date: Sun, 4 Jun 2023 09:04:42 +0200

 On Sun, Jun 04, 2023 at 05:05:01AM +0000, Thomas Klausner wrote:
 >  This looks like PR 56858

 Also maybe slightly related to PR 56997 where it turned out to make a
 big difference if the monitor is powered on or off.

 Martin

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.