NetBSD Problem Report #56996
From martin@aprisoft.de Mon Sep 5 12:34:16 2022
Return-Path: <martin@aprisoft.de>
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 C43191A921F
for <gnats-bugs@gnats.NetBSD.org>; Mon, 5 Sep 2022 12:34:16 +0000 (UTC)
Message-Id: <20220905123407.B6DD65CC795@emmas.aprisoft.de>
Date: Mon, 5 Sep 2022 14:34:07 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: i915 takes over console eroneously
X-Send-Pr-Version: 3.95
>Number: 56996
>Category: kern
>Synopsis: i915 takes over console eroneously
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 05 12:35:01 +0000 2022
>Closed-Date: Wed Jan 04 14:16:38 +0000 2023
>Last-Modified: Wed Jan 04 14:16:38 +0000 2023
>Originator: Martin Husemann
>Release: NetBSD 9.99.99
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD seven-days-to-the-wolves.aprisoft.de 9.99.99 NetBSD 9.99.99 (GENERIC) #577: Mon Sep 5 14:12:13 CEST 2022 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
I have a machine that boots with serial console and normally does not have
kbd/display connected or used.
But a -current GENERIC kernel still tries to use framebuffer console:
[..]
acpivga0: 0x0400 (acpiout15): Unknown Output Device, head 0
lpt0 at acpi0 (LPTE, PNP0400-0): io 0x378-0x37f irq 5
allocated pic ioapic0 type edge pin 5 level 6 to cpu0 slot 1 idt entry 97
com0 at acpi0 (UAR1, PNP0501-0): io 0x3f8-0x3ff irq 4
com0: ns16550a, 16-byte FIFO
com0: console
[..]
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
wskbd0: connecting to wsdisplay0
>How-To-Repeat:
Boot a i915 machine with serial console?
>Fix:
n/a
>Release-Note:
>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/56996 CVS commit: src/sys/arch/x86
Date: Mon, 5 Sep 2022 14:18:51 +0000
Module Name: src
Committed By: riastradh
Date: Mon Sep 5 14:18:51 UTC 2022
Modified Files:
src/sys/arch/x86/pci: pci_machdep.c
src/sys/arch/x86/x86: consinit.c
Log Message:
x86: Fix interaction between consinit, device_pci_register, and drm.
Leave an essay on what's going on here in both places with
cross-references.
PR kern/56996
To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/arch/x86/pci/pci_machdep.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/x86/x86/consinit.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Wed, 04 Jan 2023 14:16:38 +0000
State-Changed-Why:
Fixed, thanks!
>Unformatted:
(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.