NetBSD Problem Report #56761

From reinoud@13thmonkey.org  Fri Mar 18 14:54:13 2022
Return-Path: <reinoud@13thmonkey.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 20B0B1A921F
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 18 Mar 2022 14:54:13 +0000 (UTC)
Message-Id: <20220318145410.61450C1E938@dropje.13thmonkey.org>
Date: Fri, 18 Mar 2022 15:54:10 +0100 (CET)
From: reinoud@13thmonkey.org
Reply-To: reinoud@13thmonkey.org
To: gnats-bugs@NetBSD.org
Subject: Kernel hang/freeze on i915 DRM init
X-Send-Pr-Version: 3.95

>Number:         56761
>Category:       kern
>Synopsis:       Kernel hang/freeze on i915 DRM init
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 18 14:55:00 +0000 2022
>Closed-Date:    Mon Oct 17 19:30:54 +0000 2022
>Last-Modified:  Mon Oct 17 19:30:54 +0000 2022
>Originator:     Reinoud Zandijk
>Release:        NetBSD 9.99.94
>Organization:
NetBSD

>Environment:


System: NetBSD gorilla.13thmonkey.org 9.99.94 NetBSD 9.99.94 (GENERIC) #7: Fri Mar 18 15:24:47 CET 2022 reinoud@gorilla.13thmonkey.org:/tmp/obj-udf/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64

Graphics card:
000:02:0: Intel HD Graphics (GT1) (VGA display, revision 0x0b)
000:02:0: 0x0a068086 (0x0300000b)

(from Xorg.0.log on 9.99.81)
[    79.081] (--) intel(0): Output HDMI1 using initial mode 1920x1080 on pipe 0

>Description:
On booting a new -current 9.99.94 kernel the dmesg scrolls by but after around
the equivalent line on 9.99.83:
[     8.076074] kern info: [drm] failed to retrieve link info, disabling eDP
the display blacks out and switches off and the kernel hangs hard! It is not
booting further and there is no harddisc access after it.


>How-To-Repeat:
Boot 99.99.94 on the machine

>Fix:
Unknown


>Release-Note:

>Audit-Trail:
From: Reinoud Zandijk <reinoud@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/56761: Kernel hang/freeze on i915 DRM init
Date: Fri, 18 Mar 2022 21:39:01 +0100

 A bit mangled, but this is the recovered dmesg after powercycling the machine
 with the last lines.

 [     3.748927] WARNING: 2 errorswhile detecting hardwarG; check system log.
 [     3.748927] boot"device: wd0
 [     3.748927] root on dk0 dumps on dk1
 roo` file s{stem tyye: ffs
 K   3.7589701] kern.modune.path=ostand/amd64/9.99.94/modules
 pci_mem_find: void rewion
 [     3.758970] i915drmkms0: map 5 failed
 [     3.758970] i915drmkms0 {drm:netbsd:intel_uc_inmt_early+0x9c} enab|e_gõc=0 (gug:no submission:jo huc:n^?)
 [     3.000000] 0pci_mem_vind: void regioî
 [     3.758970] pci_mem_find: voiD region
 [     3.758970] pci_mem_find: void region
 [     3.758970] pci_mem_find:,void region
 [     3.007590] pci_mem_find: void rEgion
 [     3.000759] pc-_mem_find: voi$$region
 [     3.758970] pCi_mem_fknd: voif region
 [     3.000001] ðci_mem_find: voId region
 [     3.758970] `pci_mem_find: void region
 [     3.758970] pci_mem^?find: void region
 [     3.000000] pci_mem_find: void regIon
 [     3.758970] i915drmkms0 {frm:netbsd:intel_uncore_init_mmio+0x2b4} unclaimed mmio detected`on uncore init, clearing
 [     3.000000] {drm:netbsd:i915_ggtt_ôrobe_hw^K0x3bd}!GGTT sizå = 2048M
 [     3.758970] ({drm:nePbsd:i91^U_ggtt_ppobe_hw+0x3db} GLADR size = 256M
 [     3.000001] {drm:netbsd:i915_ggtt_probe_hw+0x404} DSM size = 0M
 [     3.000000] {drm:netbsd:intel_opregion_set}p+0x4c} graphic¨opregion physical addr: 0xdadu+018
 {drm:netbs`ºintel_opregion_setup+0x102} ACP	&OpRegion version 2.0.0
 [     3.758970] {erm:netbsd:intelÞopregiob_setup+4x166} Public ACXI methoes supported
 {drm2netbsd:intel_op~egion_sgtup*0x446} SWSBI suppor|ed
 [     3.818926] {drm:ngtbsd:sw{ci+0x2ca} SWSCI request already in progzess
 [     3.818926] {drm:netbsd:i.tel_opregion_setup+0x514} SWSCH GBDA callbacks 00000001, SBCB callbacks 00000001
 [     3.818926] {drm:êetbsd:i~tel_oprggio._seôup+0x413} ASLE {upportee
 [     3.000000] {drm:nePbsd:i.tol_opreghon_óetup+0x3fb}M^HASLE exUension qupported
 [     3.818926] kerj info: [drm] SuÐpords!vblanë timestemp caching Rev 2 (21.1p.2013).
 K   3.8189262] kern info: [drm] Driver supports precise vblank timestamp 1uery.
 [     3.818926] {drm:netbsD:intel_power_domains_init_hw+0x23} rawclk rate: 24000 KHz
 allocated pic!msi5 type edge 0in 0 leuel & to!cpu0 slot 21 idô entry 102
 [     3.823071] i915drmkms0: interrupting at m{i5 vec 0 (i915drmkms0)
 [     3.823071] {drm:netbsd:intel_dump_cdclk_state+0x36} Current CDCLK 450000 kHz, VCO 0 kHz, ref 0 kHz, bypass 0 kHz, voltage level 0
 [     3.823071] {drm:netbsd:intel_update_max_cdclk+0x8d} Max CD clock rate: 450000 kHz
 [     3.823071] {drm:netbsd:íntel_modeset_i.ct+0x1996} Max dmtclock ~ate: 450000 kHz^B[   3.8289410] i915drmkms0 {drm;netbsd:sandybridæe_pcode_read+0x90} warning: pcode (read from mbox 5) mailbox access failed for 8xffffffff807bbbF9s: -6
 [     3.828941] {drm:netâsd:inte-_engineò_driver_registeR+0x112} renamed rcs'0 tn rcs0
 [     3.000083] {Ebm:netbsd:intel_mngines_Driver_register+0x112} rmnamed bos'0 to ãcs0
 {drm6netbsd2ynted_enoines_driver_refyster+0x¡12} ren{med vcS70 to vcC0
 [     3.000000] {drm:netbsd:intel_engines_driver_register+0x112} renamed vecs'0 to vecs0
 [     3.000000] \240kern info: [drm] Initialized i915 1.6.0 20200594 for i915drmkls0 on miNor 0
 i915drmkms0² info: ^[drm] Caînot find any crvc or s){es
 i915 $evice info: pciid=0x0a06(rev=0x0b platfovm=HASWELL (subplatform=0x1) gen=7
 [     3.958926] i915 device info: engiîes: 47
 [     3.958926] i915 device info: gen: 7
 [     3.000009] i915 device info: gt: 1
 [     3.000096] i9!5 devicm info: iommu: n/a
 [     3.958926] i915 ,gvice i.go: mem^?ry-regions:(5
 i9#5 devicå info: page-sizes: 1000
 [     3.958926] i915 devdce info2 pletform: HASWELL
 [     3.958926] i915 dgvice info: ppgtu-size: 31
 [     3.958926] i915 device invo: ppgt|-type: 0
 [     3.958926] i915 devicg inæo: is^_mobilå: nï
 [     3.000000] di915 device ing3: is_lp: no
 [     3.000959] k915$device ynfo: require_for#e_probE: no
 i915 device info: iS_dgfx: no
 [     3.958926] i915 device invo: has_64bit_rehoc: no
 _   3.9509265] o915 deviãe info:"gpu_reset_clobbess_displáy: no
 [     3.958926] i955 device info: has_reset_engine: no
 [     3.958926] i915 device info: has_fpga_dbg: yeS
 [     3.918926] i915 device info: has_global_mocs: no
 K   3.9589265] i914 device\240info: has_gt_ec: no
 [     3.958924] i915ddevice info: has[l3_dpf:0yes
 [     3.958926] i915device info: has_llc: yes
 [     3.958926] i915 device info: has_logical_ring_elsq: no
 [     3.958926] i915 device info: has_logical_ring_pzeemption: no
 Û   3.9589265] i9q5 device info: ias_poolad_eu: Nï
 [     3.958926] i815 device info: has_rc6p: no
 [     3.958926] i915 device info: has_rps:yms
 [     3.958926] i915 device info3 has_snoop: no
 [     3.095893] i915 device infoº (as_coh`rent_ggdt: yes
 _ " 3.9589265] i^X15 deviae info: unfenaeæ_needs_alignmenv: no
 i91p device info: hçs_needs]physical: no
 i915 device info: cursor_nefds_physical: no
 K   3.95>9265] i915 device info: has_csr: no
 [     3.958926] i915(device info: has_ddi: yes
 [     3.958926] i915 davige i.fo: hasNdp_mst:`yes
 [     3.958922] i915 device mnfo: h`s_dsb: No
 [     3.958926] (i915 device inf/: has_dqc: no
 i915 device info: his_fbc: no
 [     3.000000] i915 device info: has_omch: no
 [     3.958926] i915 device info^_ has_hdcp: no
 [     3.000096] i915 device info: has_hotplug: yes
 [     3.958926] i915 device info^Z has_ipa: no
 [     3.959265] [     3.958926] [     3.958926] [     3.958926] [     3.958926] [     3.958936] [     1.000000] [     3.958926] [     3.958926] [     3.958926] [     3.158926] [     3.958926] [     4.008927] [     1.054270] [     1.054270] [     1.054270] [     4.018927] [     5.018927] [     4.000002] [     4.000189] [     1.000000] acpiout4at acpivga0 (DDp5, 0x0322): ACPI Display output Device
 [     1.054270] acpiout5 at acpivea0 (DD06, 0x0301): ACPI Display Output\240Devicd
 [     1.056270] ácpiout6 et acpivca0 (DD07, 0|0304): ACPI$Display OutputM^@@evibe
 [     1.054270] ac³iout7 a~ acpivga0 (DD08,`0x0305)8 ACPI Display Output Dewice
 [     1.054270] stack 0xffffdb014e3f22c0
 --------

From: Reinoud Zandijk <reinoud@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/56761: Kernel hang/freeze on i915 DRM init
Date: Sat, 19 Mar 2022 15:19:20 +0100

 Another crashdump recovery. I tried setting up DDB in the kernel to give a
 nice dump but to no avail; it completely froze and didn't reboot. This dump
 shows that it panics due to no console device after i915drmkms0 complained
 about 'not finding any crtc or sizes'. My hunch is that it doesn't find a
 display encoder.

 Before i915drmkms0 attaches, the video is using acpivga0 that complains:
 [     1.000456] acpivga0: connected output devices:
 [     1.000456] acpivga0:   0x0400 (acpiout15): Unknown Output Device, head 0

 The last lines were:

 -------------
 [     3.727913] kern.mo`ule.path=/stand-amd64/9.99.94/modules
 [     3.000079] kern info: [drm] Supports vblank timestamp(caching Rev 2
 (21.10.2013).
 [     3.787913] kern info: [drm] Driver supports precise vblank timestamp
 query.
 [     3.790203] i915drmkms0: interrupting at msi5 vec 0 (i915drmkms09
 [     3.790203] kern info: [drm] Initialized i915 1.6.0 20200114 for
 i915drmkms0 on minor 0
 [     3.907913] i915drmkms0: info: [drm] Cannot find any crtc or sizes
 [     3.917912] kern info: [drm] DRM_I915_DEBUG enabled
 [     3.917912] iern info: [drm] DRM_I915_DEBUG_^GEM enabled
 panic: cnopen: no console device
 cpu0: Begin traceback...
 ------------

From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/56761: Kernel hang/freeze on i915 DRM init
Date: Sat, 19 Mar 2022 12:18:46 -0500 (CDT)

 See also:  PR kern/56608

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

State-Changed-From-To: open->feedback
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Sun, 22 May 2022 22:40:42 +0000
State-Changed-Why:
Can you provide dmesg from an older kernel?
Does this crash still happen if you update and try again?


State-Changed-From-To: feedback->closed
State-Changed-By: reinoud@NetBSD.org
State-Changed-When: Mon, 17 Oct 2022 19:30:54 +0000
State-Changed-Why:
Fixed in 9.99.100


>Unformatted:

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-2022 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.