NetBSD Problem Report #53126

From www@NetBSD.org  Sat Mar 24 12:12:51 2018
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 9FE9E7A1BA
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 24 Mar 2018 12:12:51 +0000 (UTC)
Message-Id: <20180324121250.2BA167A202@mollari.NetBSD.org>
Date: Sat, 24 Mar 2018 12:12:50 +0000 (UTC)
From: prlw1@cam.ac.uk
Reply-To: prlw1@cam.ac.uk
To: gnats-bugs@NetBSD.org
Subject: uefi boot breaks graphics
X-Send-Pr-Version: www-1.0

>Number:         53126
>Category:       port-amd64
>Synopsis:       uefi boot breaks graphics
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 24 12:15:00 +0000 2018
>Closed-Date:    
>Last-Modified:  Sat Aug 18 17:50:01 +0000 2018
>Originator:     Patrick Welche
>Release:        NetBSD-8.99.14/amd64
>Organization:
>Environment:
NetBSD-8.99.14/amd64
>Description:
Booting via MBR gives me a working box. Trying UEFI, I see a different
font displaying boot.cfg and initial kernel messages (probably expected),
but then, at the point at which the kernel switches to a higher
resolution mode, I briefly see the kernel messages in the new mode at
the top part of the screen (possibly what was already painted at that
stage, but in the new resolution), and in the bottom part, random green
pixels, and then the screen goes blank. This is all before X, as I have
a cgdconfig prompt on boot. I can ssh in, and all is working, but the
display is broken. (I didn't test audio.) The "BIOS" is from January
2018.

The graphics card is:

nouveau0 at pci9 dev 0 function 0: NVIDIA product 1180 (rev. 0xa1)
drm kern info: nouveau  [  DEVICE][nouveau0] BOOT0  : 0x0e4000a2
drm kern info: nouveau  [  DEVICE][nouveau0] Chipset: GK104 (NVE4)
drm kern info: nouveau  [  DEVICE][nouveau0] Family : NVE0

Hightlights of a diff of working vs broken dmesg:

 total memory = 32699 MB
-avail memory = 31733 MB
+avail memory = 31731 MB

+efi: systbl at pa db80f018

@@ -251,7 +253,7 @@
 drm kern info: nouveau  [     CLK][nouveau0] 0d: core 540-1202 MHz memory 6008 MHz 
 drm kern info: nouveau  [     CLK][nouveau0] 0f: core 540-1202 MHz memory 6008 MHz 
 drm kern info: nouveau  [     CLK][nouveau0] --: core 324 MHz memory 648 MHz 
-Zone  kernel: Available graphics memory: 11304594 kiB
+Zone  kernel: Available graphics memory: 11303736 kiB
 Zone   dma32: Available graphics memory: 2097152 kiB
 drm kern info: nouveau  [     DRM] VRAM: 2048 MiB
 drm kern info: nouveau  [     DRM] GART: 1048576 MiB
@@ -272,7 +274,7 @@
 drm kern info: nouveau  [     DRM] MM: using COPY for buffer copies
 nouveaufb0 at nouveau0
 nouveau0: info: registered panic notifier
-nouveaufb0: framebuffer at 0xffff80025c7c9000, size 1680x1050, depth 32, stride 6912
+nouveaufb0: framebuffer at 0xffff80025c9a0000, size 1680x1050, depth 32, stride 6912
 wsdisplay0 at nouveaufb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 hdaudio0 at pci9 dev 0 function 1: HD Audio Controller


I haven't tested audio (one thing at a time), but also see:

@@ -309,18 +311,9 @@
 atabus8 at ahcisata1 channel 3
 hdaudio1 at pci11 dev 0 function 3: HD Audio Controller
 hdaudio1: interrupting at msi5 vec 0
-hdafg1 at hdaudio1: vendor 10ec product 1168
-hdafg1: DAC00 6ch: Speaker [Jack]
-hdafg1: DAC01 2ch: HP Out [Jack]
-hdafg1: DIG02 2ch: SPDIF Out [Jack]
-hdafg1: ADC03 2ch: Line In [Jack], Mic In [Jack]
-hdafg1: ADC04 2ch: Mic In [Jack]
-hdafg1: 6ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
-audio0 at hdafg1: full duplex, playback, capture, mmap, independent
-hdafg1: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000
-hdafg1: Latency: 128 milliseconds
-spkr1 at audio0: PC Speaker (synthesized)
-wsbell at spkr1 not configured
+hdaudio1: timeout stopping RIRB
+hdaudio1: couldn't reset because RIRB is busy
+hdaudio1: device driver failed to attach
 AMD X370/X399 SMBus Controller (SMBus serial bus, revision 0x59) at pci0 dev 20 function 0 not configured
 pcib0 at pci0 dev 20 function 3: AMD product 790e (rev. 0x51)
 pchb6 at pci0 dev 24 function 0: AMD product 1460 (rev. 0x00)

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 19 Jun 2018 11:48:38 +0000
State-Changed-Why:
I'm guessing this is a duplicate of 53286 which is mostly resolved. are you having issues still?


From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-amd64/53126 (uefi boot breaks graphics)
Date: Sat, 23 Jun 2018 22:27:58 +0100

 I just checked again with today's HEAD, and see the same symptoms.

State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 23 Jun 2018 21:58:32 +0000
State-Changed-Why:
Not fixed.


From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-amd64/53126: uefi boot breaks graphics
Date: Tue, 14 Aug 2018 09:46:49 +0100

  I just checked again with today's HEAD, and see the same symptoms.

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-amd64/53126: uefi boot breaks graphics
Date: Sat, 18 Aug 2018 18:48:00 +0100

 ... and just checked again after today's the acpi update - no change.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.