NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/56711: amdgpu occasionally crashes on boot



>Number:         56711
>Category:       kern
>Synopsis:       amdgpu occasionally crashes on boot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 13 21:00:00 +0000 2022
>Originator:     Andrius V
>Release:        9.99.93
>Organization:
>Environment:
NetBSD 9.99.93 (GENERIC_AMDGPU) #0: Sun Feb 13 13:11:00 EET 2022  andriusv@:/home/andriusv/netbsd-src/sys/arch/amd64/compile/GENERIC_AMDGPU amd64

>Description:
NetBSD occasionally crashes on boot with amdgpu/amdgpufb enabled kernel (firmware is installed). Unfortunately, I can't find the pattern on how to reproduce crash each time, but it just happens after several attempts, usually if Xorg was started before reboot or cold boot.

full dmesg (with crash message):
[   1.0000000] cpu_rng: rdrand/rdseed
[   1.0000000] entropy: ready
[   1.0000000] entropy: entering seed from bootloader with 256 bits of entropy
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019, 2020, 2021, 2022
[   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 9.99.93 (GENERIC_AMDGPU) #0: Sun Feb 13 13:11:00 EET 2022
[   1.0000000]  andriusv@:/home/andriusv/netbsd-src/sys/arch/amd64/compile/GENERIC_AMDGPU
[   1.0000000] total memory = 32719 MB
[   1.0000000] avail memory = 31681 MB
[   1.0000030] efi: systbl at pa dca8b018
[   1.0000030] mainbus0 (root)
[   1.0000030] ACPI: RSDP 0x00000000DBF5C000 000024 (v02 ALASKA)
[   1.0000030] ACPI: XSDT 0x00000000DBF5C0A0 0000C4 (v01 ALASKA A M I    01072009 AMI  00010013)
[   1.0000030] ACPI: FACP 0x00000000DBF61810 000114 (v06 ALASKA A M I    01072009 AMI  00010013)
[   1.0000030] ACPI: DSDT 0x00000000DBF5C200 005610 (v02 ALASKA A M I    01072009 INTL 20120913)
[   1.0000030] ACPI: FACS 0x00000000DBFF8E00 000040
[   1.0000030] ACPI: APIC 0x00000000DBF61928 00015E (v03 ALASKA A M I    01072009 AMI  00010013)
[   1.0000030] ACPI: FPDT 0x00000000DBF61A88 000044 (v01 ALASKA A M I    01072009 AMI  00010013)
[   1.0000030] ACPI: FIDT 0x00000000DBF61AD0 00009C (v01 ALASKA A M I    01072009 AMI  00010013)
[   1.0000030] ACPI: SSDT 0x00000000DBF61B70 0000C8 (v02 ALASKA CPUSSDT  01072009 AMI  01072009)
[   1.0000030] ACPI: SSDT 0x00000000DBF61C38 008C98 (v02 AMD    AMD ALIB 00000002 MSFT 04000000)
[   1.0000030] ACPI: SSDT 0x00000000DBF6A8D0 0036B9 (v01 AMD    AMD AOD  00000001 INTL 20120913)
[   1.0000030] ACPI: MCFG 0x00000000DBF6DF90 00003C (v01 ALASKA A M I    01072009 MSFT 00010013)
[   1.0000030] ACPI: BHMB 0x00000000DBF6DFD0 000474 (v01 ALASKA A M I    00000001 AMI  00000001)
[   1.0000030] ACPI: HPET 0x00000000DBF6E448 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[   1.0000030] ACPI: UEFI 0x00000000DBF6E480 000042 (v01 ALASKA A M I    00000002      01000013)
[   1.0000030] ACPI: TPM2 0x00000000DBF6E4C8 000038 (v04 ALASKA A M I    00000001 AMI  00000000)
[   1.0000030] ACPI: IVRS 0x00000000DBF6E500 0000D0 (v02 AMD    AMD IVRS 00000001 AMD  00000000)
[   1.0000030] ACPI: PCCT 0x00000000DBF6E5D0 00006E (v01 AMD    AMD PCCT 00000001 AMD  00000000)
[   1.0000030] ACPI: SSDT 0x00000000DBF6E640 002F29 (v01 P    AMD CPU  00000001 AMD  00000001)
[   1.0000030] ACPI: CRAT 0x00000000DBF71570 000B58 (v01 AMD    AMD CRAT 00000001 AMD  00000001)
[   1.0000030] ACPI: CDIT 0x00000000DBF720C8 000029 (v01 AMD    AMD CDIT 00000001 AMD  00000001)
[   1.0000030] ACPI: SSDT 0x00000000DBF720F8 001D4A (v01 AMD    AmdTable 00000001 INTL 20120913)
[   1.0000030] ACPI: SSDT 0x00000000DBF73E48 0000BF (v01 AMD    AMD PT   00001000 INTL 20120913)
[   1.0000030] ACPI: WSMT 0x00000000DBF73F08 000028 (v01 ALASKA A M I    01072009 AMI  00010013)
[   1.0000030] ACPI: 7 ACPI AML tables successfully acquired and loaded
[   1.0000030] ioapic0 at mainbus0 apid 13
[   1.0000030] ioapic1 at mainbus0 apid 14
[   1.0000030] cpu0 at mainbus0 apid 0
[   1.0000030] cpu0: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu0: node 0, package 0, core 0, smt 0
[   1.0000030] cpu1 at mainbus0 apid 2
[   1.0000030] cpu1: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu1: node 0, package 0, core 1, smt 0
[   1.0000030] cpu2 at mainbus0 apid 4
[   1.0000030] cpu2: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu2: node 0, package 0, core 2, smt 0
[   1.0000030] cpu3 at mainbus0 apid 8
[   1.0000030] cpu3: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu3: node 0, package 0, core 4, smt 0
[   1.0000030] cpu4 at mainbus0 apid 10
[   1.0000030] cpu4: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu4: node 0, package 0, core 5, smt 0
[   1.0000030] cpu5 at mainbus0 apid 12
[   1.0000030] cpu5: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu5: node 0, package 0, core 6, smt 0
[   1.0000030] cpu6 at mainbus0 apid 1
[   1.0000030] cpu6: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu6: node 0, package 0, core 0, smt 1
[   1.0000030] cpu7 at mainbus0 apid 3
[   1.0000030] cpu7: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu7: node 0, package 0, core 1, smt 1
[   1.0000030] cpu8 at mainbus0 apid 5
[   1.0000030] cpu8: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu8: node 0, package 0, core 2, smt 1
[   1.0000030] cpu9 at mainbus0 apid 9
[   1.0000030] cpu9: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu9: node 0, package 0, core 4, smt 1
[   1.0000030] cpu10 at mainbus0 apid 11
[   1.0000030] cpu10: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu10: node 0, package 0, core 5, smt 1
[   1.0000030] cpu11 at mainbus0 apid 13
[   1.0000030] cpu11: AMD Ryzen 5 3600 6-Core Processor              , id 0x870f10
[   1.0000030] cpu11: node 0, package 0, core 6, smt 1
[   1.0000030] acpi0 at mainbus0: Intel ACPICA 20211217
[   1.0000030] acpi0: invalid PCI address for D020
[   1.0000030] acpi0: invalid PCI address for D025
[   1.0000030] acpi0: fixed power button present
[   1.0248349] hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
[   1.0323079] AMDN (PNP0C01) at acpi0 not configured
[   1.0323079] attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
[   1.0323079] pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
[   1.0323079] spkr0 at pcppi1: PC Speaker
[   1.0323079] wsbell at spkr0 not configured
[   1.0323079] midi0 at pcppi1: PC speaker
[   1.0323079] sysbeep0 at pcppi1
[   1.0323079] pckbc1 at acpi0 (PS2K, PNP0303-0) (kbd port): io 0x60,0x64 irq 1
[   1.0323079] com0 at acpi0 (UAR1, PNP0501-0): io 0x3f8-0x3ff irq 4
[   1.0323079] com: ns16550a, 16-byte FIFO
[   1.0323079] com0: console
[   1.0323079] acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
[   1.0323079] GPIO (AMDI0030) at acpi0 not configured
[   1.0323079] TPM (MSFT0101) at acpi0 not configured
[   1.0323079] PTIO (AMDIF030) at acpi0 not configured
[   1.0323079] acpitz0 at acpi0 (THRM)
[   1.0323079] acpiwmi0 at acpi0 (AOD, PNP0C14-AOD): ACPI WMI Interface
[   1.0323079] acpiwmibus at acpiwmi0 not configured
[   1.0323079] ACPI: Enabled 1 GPEs in block 00 to 1F
[   1.0323079] attimer1: attached to pcppi1
[   1.0323079] pci0 at mainbus0 bus 0: configuration mode 1
[   1.0323079] amdsmn0 at pci0 dev 0 function 0: AMD System Management Network
[   1.0323079] amdzentemp0 at amdsmn0: AMD CPU Temperature Sensors (Family17h)
[   1.0323079] AMD Family17h/7xh IOMMU (IOMMU system) at pci0 dev 0 function 2 not configured
[   1.0323079] pchb0 at pci0 dev 1 function 0: AMD 17h/7xh Host Bridge (rev. 0x00)
[   1.0323079] ppb0 at pci0 dev 1 function 1: AMD 17h/7xh PCIe (rev. 0x00)
[   1.0323079] ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x8 @ 8.0GT/s
[   1.0323079] ppb0: link is x4 @ 8.0GT/s
[   1.0323079] pci1 at ppb0 bus 1
[   1.0323079] xhci0 at pci1 dev 0 function 0: AMD product 43b9 (rev. 0x02)
[   1.0323079] xhci0: interrupting at msi0 vec 0
[   1.0323079] usb0 at xhci0: USB revision 3.1
[   1.0323079] usb1 at xhci0: USB revision 2.0
[   1.0323079] ahcisata0 at pci1 dev 0 function 1: AMD product 43b5 (rev. 0x02)
[   1.0323079] ahcisata0: AHCI revision 1.31, 8 ports, 32 slots, CAP 0xef36ff27<SXS,PSC,SSC,PMD,SPM,SAM,R&#65533;x3=Gen3,SCLO,SAL,SALP,SSS,SSNTF,SN>
[   1.0323079] ahcisata0: interrupting at msi1 vec 0
[   1.0323079] atabus0 at ahcisata0 channel 0
[   1.0323079] atabus1 at ahcisata0 channel 1
[   1.0323079] atabus2 at ahcisata0 channel 2
[   1.0323079] abus3 at ahcisata0 channel 3
[   1.0323079] atabus4 at ahcisata0 channel 4
[   1.032Latabus5 at ahcisata0 channel 5
[   1.0323079] atabus6 at ahcisata0 channel 6
[   1.0323079] atabus7 at ahcisata0 channel 7
[   1.0323079] ppb1 at pci1 dev 0 function 2: AMD product 43b0 (rev. 0x02)
[   1.0323079] ppb1: PCI Express capability version 2 <Upstream Port of PCI-E Switch>
[   1.0323079] pci2 at ppb1 bus 2
[   1.0323079] ppb2 at pci2 dev 0 function 0: AMD 300 Series PCIe (rev. 0x02)
[   1.0323079] ppb2: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
[   1.0323079] pci3 at ppb2 bus 3
[   1.0323079] ppb3 at pci2 dev 1 function 0: AMD 300 Series PCIe (rev. 0x02)
[   1.0323079] ppb3: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
[   1.0323079] ppb3: link is x1 @ 2.5GT/s
[   1.0323079] pci4 at ppb3 bus 4
[   1.0323079] ppb4 at pci4 dev 0 function 0: ASMedia ASM1083/1085 PCIe-PCI Bridge (rev. 0x03)
[   1.0323079] pci5 at ppb4 bus 5
[   1.0323079] ppb5 at pci2 dev 2 function 0: AMD 300 Series PCIe (rev. 0x02)
[   1.0323079] ppb5: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
[   1.0323079] pci6 at ppb5 bus 6
[   1.0323079] ppb6 at pci2 dev 3 function 0: AMD 300 Series PCIe (rev. 0x02)
[   1.0323079] ppb6: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
[   1.0323079] pci7 at ppb6 bus 7
[   1.0323079] ppb7 at pci2 dev 4 function 0: AMD 300 Series PCIe (rev. 0x02)
[   1.0323079] ppb7: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x2 @ 5.0GT/s
[   1.0323079] pci8 at ppb7 bus 8
[   1.0323079] aq0 at pci8 dev 0 function 0: Aquantia AQC100 10 Gigabit Network Adapter (rev. 0x02)
[   1.0323079] aq0: Atlantic revision B1, F/W version 3.1.58
[   1.0323079] aq0: Etheraddr: 
[   1.0323079] ppb8 at pci2 dev 6 function 0: AMD 300 Series PCIe (rev. 0x02)
[   1.0323079] ppb8: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
[   1.0323079] pci9 at ppb8 bus 9
[   1.0323079] ppb9 at pci2 dev 7 function 0: AMD 300 Series PCIe (rev. 0x02)
[   1.0323079] ppb9: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
[   1.0323079] ppb9: link is x1 @ 2.5GT/s
[   1.0323079] pci10 at ppb9 bus 10
[   1.0323079] athn0 at pci10 dev 0 function 0: Atheros AR9287
[   1.0323079] ppb10 at pci0 dev 1 function 2: AMD 17h/7xh PCIe (rev. 0x00)
[   1.0323079] ppb10: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 8.0GT/s
[   1.0323079] pci11 at ppb10 bus 11
[   1.0323079] nvme0 at pci11 dev 0 function 0: Western Digital (SanDZ&#65533;product 5019 (rev. 0x01)
[   1.0323079] nvme0: NVMe 1.4
[   1.0323079] nvme0: for admin queue interrupting at msix3 vec 0
[   1.0323079] nvme0: WDC WDS100T2B0C-00PXH0, firmware 233010WD, serial 21281W452002
[   1.0323079] nvme0: for io queue 1 interrupting at msix3 vec 1 affinity to cpu0
[   1.0323079] nvme0: for io queue 2 interrupting at msix3 vec 2 affinity to cpu1
[   1.0323079] nvme0: for io queue 3 interrupting at msix3 vec 3 affinity to cpu2
[   1.0323079] nvme0: for io queue 4 interrupting at msix3 vec 4 affinity to cpu3
[   1.0323079] nvme0: for io queue 5 interrupting at msix3 vec 5 affinity to cpu4
[   1.0323079] nvme0: for io queue 6 interrupting at msix3 vec 6 affinity to cpu5
[   1.0323079] nvme0: for io queue 7 interrupting at msix3 vec 7 affinity to cpu6
[   1.0323079] nvme0: for io queue 8 interrupting at msix3 vec 8 affinity to cpu7
[   1.0323079] nvme0: for io queue 9 interrupting at msix3 vec 9 affinity to cpu8
[   1.0323079] nvme0: for io queue 10 interrupting at msix3 vec 10 affinity to cpu9
[   1.0323079] nvme0: for io queue 11 interrupting at msix3 vec 11 affinity to cpu10
[   1.0323079] nvme0: for io queue 12 interrupting at msix3 vec 12 affinity to cpu11
[   1.0323079] ld0 at nvme0 nsid 1
[   1.0323079] ld0: 931 GB, 121601 cyl, 255 head, 63 sec, 512 bytes/sect x 1953525168 sectors
[   1.0323079] pchb1 at pci0 dev 2 function 0: AMD 17h/7xh Host Bridge (rev. 0x00)
[   1.0323079] pchb2 at pci0 dev 3 function 0: AMD 17h/7xh Host Bridge (rev. 0x00)
[   1.0323079] ppb11 at pci0 dev 3 function 1: AMD 17h/7xh PCIe (rev. 0x00)
[   1.0323079] ppb11: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 8.0GT/s
[   1.0323079] ppb11: link is x8 @ 8.0GT/s
[   1.0323079] pci12 at ppb11 bus 12
[   1.0323079] amdgpu0 at pci12 dev 0 function 0: ATI Technologies Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X (rev. 0xcf)
[   1.0323079] hdaudio0 at pci12 dev 0 function 1: HD Audio Controller
[   1.0323079] hdaudio0: interrupting at msi4 vec 0
[   1.0323079] hdaudio0: HDA ver. 1.0, OSS 5, ISS 0, BSS 0, SDO 1, 64-bit
[   1.0323079] hdafg0 at hdaudio0: vendor 1002 product aa01
[   1.0323079] hdafg0: HDMI00 2ch: Digital Out [Jack]
[   1.0323079] hdafg0: HDMI01 2ch: Digital Out [Jack]
[   1.0323079] hdafg0: HDMI02 2ch: Digital Out [Jack]
[   1.0323079] hdafg0: HDMI03 2ch: Digital Out [Jack]
[   1.0323079] hdafg0: HDMI04 2ch: Digital Out [Jack]
[   1.0323079] hdafg0: 2ch/0ch 32000Hz 44100Hz 48000Hz PCM16 AC3
[   1.0323079] pchb3 at pci0 dev 4 function 0: AMD 17h/7xh Host Bridge (rev. 0x00)
[   1.0323079] pchb4 at pci0 dev 5 function 0: AMD 17h/7xh Host Bridge (rev. 0x00)
[   1.0323079] pchb5 at pci0 dev 7 function 0: AMD 17h/7xh Host Bridge (rev. 0x00)
[   1.0323079] ppb12 at pci0 dev 7 function 1: AMD 17h/7xh PCIe (rev. 0x00)
[   1.0323079] ppb12: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 16.0GT/s
[   1.0323079] pci13 at ppb12 bus 13
[   1.0323079] AMD product 148a (non-essential instrumentation, subclass 0x00) at pci13 dev 0 function 0 not configured
[   1.0323079] pchb6 at pci0 dev 8 function 0: AMD 17h/7xh Host Bridge (rev. 0x00)
[   1.0323079] ppb13 at pci0 dev 8 function 1: AMD 17h/7xh PCIe (rev. 0x00)
[   1.0323079] ppb13: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 16.0GT/s
[   1.0323079] pci14 at ppb13 bus 14
[   1.0323079] AMD Family17h/7xh Reserved SPP (non-essential instrumentation, subclass 0x00) at pci14 dev 0 function 0 not configured
[   1.0323079] amdccp0 at pci14 dev 0 function 1: AMD Cryptographic Coprocessor
[   1.0323079] xhci1 at pci14 dev 0 function 3: AMD Family17h/7xh USB 3.0 Host Controller (rev. 0x00)
[   1.0323079] xhci1: interrupting at msix5 vec 0
[   1.0323079] usb2 at xhci1: USB revision 3.1
[   1.0323079] usb3 at xhci1: USB revision 2.0
[   1.0323079] hdaudio1 at pci14 dev 0 function 4: HD Audio Controller
[   1.0323079] hdaudio1: interrupting at msi6 vec 0
[   1.0323079] hdaudio1: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
[   1.0323079] hdafg1 at hdaudio1: vendor 10ec product 0892
[   1.0323079] hdafg1: DAC00 8ch: Speaker [Jack]
[   1.0323079] hdafg1: DAC01 2ch: HP Out [Jack]
[   1.0323079] hdafg1: DIG02 2ch: SPDIF Out [Jack]
[   1.0323079] hdafg1: ADC03 2ch: Line In [Jack], Mic In [Jack]
[   1.0323079] hdafg1: ADC04 2ch: Mic In [Jack]
[   1.0323079] hdafg1: 8ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
[   1.0323079] audio0 at hdafg1: playback, capture, full duplex, independent
[   1.0323079] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
[   1.0323079] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
[   1.0323079] spkr1 at audio0: PC Speaker (synthesized)
[   1.0323079] wsbell at spkr1 not configured
[   1.0323079] ppb14 at pci0 dev 8 function 2: AMD 17h/7xh PCIe (rev. 0x00)
[   1.0323079] ppb14: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 16.0GT/s
[   1.0323079] pci15 at ppb14 bus 15
[   1.0323079] ahcisata1 at pci15 dev 0 function 0: AMD FCH AHCI (rev. 0x51)
[   1.0323079] ahcisata1: AHCI revision 1.31, 8 ports, 32 slots, CAP 0xf737ff07<PSC,SSC,PMD,FBSS,SPM,SAM,ISS=0x3=Gen3,SCLO,SAL,SALP,SMPS,SSN>
[   1.0323079] ahcisata1: interrupting at msi7 vec 0
[   1.0323079] atabus8 at ahcisa1 channel 0
[   1.0323079] atabus9 at ahcisata1 channel 1
[   1.0323079] atabus10 at ahcisata1 channel 2
[   1.0323079] atabus11 at ahcisata1 channel 3
[   1.0323079] atabus12 at ahcisata1 channel 4
[   1.0323079] atabus13 at ahcisata1 channel 5
[   1.0323079] atabus14 at ahcisata1 channel 6
[   1.0323079] atabus15 at ahcisata1 channel 7
[   1.0323079] ppb15 at pci0 dev 8 function 3: AMD 17h/7xh PCIe (rev. 0x00)
[   1.0323079] ppb15: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 16.0GT/s
[   1.0323079] pci16 at ppb15 bus 16
[   1.0323079] ahcisata2 at pci16 dev 0 function 0: AMD FCH AHCI (rev. 0x51)
[   1.0323079] ahcisata2: AHCI revision 1.31, 8 ports, 32 slots, CAP 0xf737ff07<PSC,SSC,PMD,FBSS,SPM,SAM,ISS=0x3=Gen3,SCLO,SAL,SALP,SMPS,SSN>
[   1.0323079] ahcisata2: interrupting at msi8 vec 0
[   1.0323079] atabus16 at ahcisata2 channel 0
[   1.0323079] atabus17 at ahcisata2 channel 1
[   1.0323079] atabus18 at ahcisata2 channel 2
[   1.0323079] atabus19 at ahcisata2 channel 3
[   1.0323079] atabus20 at ahcisata2 channel 4
[   1.0323079] atabus21 at ahcisata2 channel 5
[   1.0323079] atabus22 at ahcisata2 channel 6
[   1.0323079] atabus23 at ahcisata2 channel 7
[   1.0323079] piixpm0 at pci0 dev 20 function 0: AMD X370/X399 SMBus Controller (rev. 0x61)
[   1.0323079] piixpm0: interrupting at SMI,
[   1.0323079] iic0 at piixpm0 port 0: I2C bus
[   1.0323079] iic1 at piixpm0 port 1: I2C bus
[   1.0323079] pcib0 at pci0 dev 20 function 3: AMD FCH LPC (rev. 0x51)
[   1.0323079] pchb7 at pci0 dev 24 function 0: AMD 17h/7xh Data Fabric (rev. 0x00)
[   1.0323079] pchb8 at pci0 dev 24 function 1: AMD 17h/7xh Data Fabric (rev. 0x00)
[   1.0323079] pchb9 at pci0 dev 24 function 2: AMD 17h/7xh Data Fabric (rev. 0x00)
[   1.0323079] pchb10 at pci0 dev 24 function 3: AMD 17h/7xh Data Fabric (rev. 0x00)
[   1.0323079] pchb11 at pci0 dev 24 function 4: AMD 17h/7xh Data Fabric (rev. 0x00)
[   1.0323079] pchb12 at pci0 dev 24 function 5: AMD 17h/7xh Data Fabric (rev. 0x00)
[   1.0323079] pchb13 at pci0 dev 24 function 6: AMD 17h/7xh Data Fabric (rev. 0x00)
[   1.0323079] pchb14 at pci0 dev 24 function 7: AMD 17h/7xh Data Fabric (rev. 0x00)
[   1.0323079] isa0 at pcib0
[   1.0323079] acpicpu0 at cpu0: ACPI CPU
[   1.0323079] acpicpu1 at cpu1: ACPI CPU
[   1.0323079] acpicpu2 at cpu2: ACPI CPU
[   1.0323079] acpicpu3 at cpu3: ACPI CPU
[   1.0323079] acpicpu4 at cpu4: ACPI CPU
[   1.0323079] acpicpu5 at cpu5: ACPI CPU
[   1.0323079] acpicpu6 at cpu6: ACPI CPU
[   1.0323079] acpicpu7 at cpu7: ACPI CPU
[   1.0323079] acpicpu8 at cpu8: ACPI CPU
[   1.0323079] acpicpu9 at cpu9: ACPI CPU
[   1.0323079] acpicpu10 at cpu10: ACPI CPU
[   1.0323079] acpicpu11 at cpu11: ACPI CPU
[   1.7147652] uhub0 at usb0: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
[   1.7200329] uhub1 at usb1: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
[   1.7300298] uhub2 at usb2: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
[   1.7400297] uhub3 at usb3: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
[   1.7500297] dk0 at ld0: "17abe03b-7c17-44cc-8dac-d3d56968b6b1", 262144 blocks at 2048, type: msdos
[   1.7500297] dk1 at ld0: "c072c1e3-5d0b-4bd4-8789-7370295360e1", 134897664 blocks at 264192, type: ffs
[   1.7600302] dk2 at ld0: "0291617a-ffbb-457e-b908-af9f61e5790f", 67010560 blocks at 135161856, type: swap
[   1.7700302] dk3 at ld0: "ca370a40-b6d3-4b0a-9270-00acc6df4e2b", 419430400 blocks at 202172416, type: ffs
[   1.7800301] dk4 at ld0: "8ae92095-2b67-450a-b3ac-32c912b78f08", 1331922319 blocks at 621602816, type: ffs
[   1.8400302] ahcisata0 port 0: device present, speed: 6.0Gb/s
[   1.8400302] ahcisata0 port 5: device present, speed: 1.5Gb/s
[   1.8500300] ahcisata0 port 1: device present, speed: 3.0Gb/s
[   1.8600303] wd0 at atabus0 drive 0
[   1.8600303] wd0: <KINGSTON SKC400S37512G>
[   1.8600303] wd0: 476 GB, 992277 cyl, 16 head, 63 sec, 512 bytes/sect x 1000215216 sectors
[   1.9000303] wd1 at atabus1 drive 0
[   1.9000303] wd1: <SAMSUNG HD161HJ>
[   1.9000303] wd1: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
[   2.1700311] uhub4 at uhub0 port 6: VIA Labs, c. (0x2109) USB3.0 Hub (0x0817), class 9/0, rev 3.10/90.23, addr 1
[   2.2200312] ubt0 at uhub3 port 2
[   2.2300308] ubt0: vendor 0a12 (0x0a12) BT DONGLE10 (0x0001), rev 2.00/88.91, addr 1
[   2.2400312] uhub5 at uhub1 port 6: VIA Labs, Inc. (0x2109) USB2.0 Hub (0x2817), class 9/0, rev 2.10/90.23, addr 2
[   2.2500309] uhub5: multiple transaction translators
[   2.8500327] atapibus0 at atabus5: 1 targets
[   2.8600325] cd0 at atapibus0 drive 0: <HL-DT-ST DVDRAM GH22NS40, K5I98JK5513, NL01> cdrom rY[,[Y.[   3.2000336] umass0 at uhub4 port 3 co0
[   3.2000336] umass0: Generic (0x21c4) USB Storage (0xb064), rev 3.20/0.09, addr 3
[   3.2200338] scsibus0 at umass0: 2 targets, 3 luns per target
[   3.2300336] sd0 at scsibus0 target 0 lun 0: <Generic, MassStorageClass, 0009> disk removable
[   3.2400336] sd0: drive offline
[   3.2400336] sd1 at scsibus0 target 0 lun 1: <Generic, MassStorageClass, 0009> disk removable
[   3.2500336] sd1: drive offline
[   3.2600336] sd2 at scsibus0 target 0 lun 2: <Generic, MassStorageClass, 0009> disk removable
[   3.2700338] sd2: drive offline
[   3.4600340] uhub6 at uhub1 port 11: vendor 0424 (0x0424) product 2504 (0x2504), class 9/0, rev 2.00/0.01, addr 4
[   3.4700341] uhub6: multiple transaction translators
[   4.2900361] umass1 at uhub6 port 1 configuration 1 interface 0
[   4.2900361] umass1: vendor 13fe (0x13fe) silicon-power (0x3223), rev 2.00/1.10, addr 5
[   4.3100361] scsibus1 at umass1: 2 targets, 1 lun per target
[   4.3100361] sd3 at scsibus1 target 0 lun 0: <, silicon-power, PMAP> disk removable
[   4.3200359] sd3: 3822 MB, 7644 cyl, 32 head, 32 sec, 512 bytes/sect x 7827456 sectors
[   4.3300359] sd3: 4141056 trailing sectors not covered by disklabel
[   4.7600372] uhub7 at uhub6 port 2: vendor 05e3 (0x05e3) USB2.0 Hub (0x0608), class 9/0, rev 2.00/32.98, addr 6
[   4.7700373] uhub7: single transaction translator
[   5.7000396] uhidev0 at uhub7 port 1 configuration 1 interface 0
[   5.7100396] uhidev0: Logitech (0x046d) USB Receiver (0xc52b), rev 2.00/12.10, addr 7, iclass 3/1
[   5.7400396] ukbd0 at uhidev0
[   5.7400396] wskbd0 at ukbd0 mux 1
[   5.7500395] uhidev1 at uhub7 port 1 configuration 1 interface 1
[   5.7500395] uhidev1: Logitech (0x046d) USB Receiver (0xc52b), rev 2.00/12.10, addr 7, iclass 3/1
[   5.8400400] uhidev1: 8 report ids
[   5.8400400] ums0 at uhidev1 reportid 2: 16 buttons, W and Z dirs
[   5.8500400] wsmouse0 at ums0 mux 0
[   5.8500400] uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
[   5.8600400] uhid1 at uhidev1 reportid 4: input=1, output=0, feature=0
[   5.8600400] uhid2 at uhidev1 reportid 8: input=1, output=0, feature=0
[   5.8700400] uhidev2 at uhub7 port 1 configuration 1 interface 2
[   5.8800401] uhidev2: Logitech (0x046d) USB Receiver (0xc52b), rev 2.00/12.10, addr 7, iclass 3/0
[   5.9400402] uhidev2: 33 report ids
[   5.9500402] uhid3 at uhidev2 reportid 16: input=6, output=6, feature=0
[   5.9500402] uhid4 at uhidev2 reportid 17: input=19, output=19, feature=0
[   5.9600403] uhid5 at uhidev2 reportid 32: input=14, output=14, feature=0
[   5.9700403] uhid6 at uhidev2 reportid 33: input=31, output=31, feature=0
[   6.5000416] uhidev3 at uhub7 port 2 configuration 1 interface 0
[   6.5000416] uhidev3: Fnatic Gear (0x195d) RUSH Mechanical Keyboard (0x2030), rev 2.00/1.09, addr 8, iclass 3/1
[   6.5300416] ukbd1 at uhidev3
[   6.5300416] wskbd1 at ukbd1 mux 1
[   6.5300416] uhidev4 at uhub7 port 2 configuration 1 interface 1
[   6.5400414] uhidev4: Fnatic Gear (0x195d) RUSH Mechanical Keyboard (0x2030), rev 2.00/1.09, addr 8, iclass 3/0
[   6.5600416] uhid7 at uhidev4: input=4, output=0, feature=0
[   6.5700417] uhidev5 at uhub7 port 2 configuration 1 interface 2
[   6.5700417] uhidev5: Fnatic Gear (0x195d) RUSH Mechanical Keyboard (0x2030), rev 2.00/1.09, addr 8, iclass 3/0
[   6.5900418] ukbd2 at uhidev5
[   6.6000417] wskbd2 at ukbd2 mux 1
[   7.0700427] umass2 at uhub7 port 3 configuration 1 interface 0
[   7.0700427] umass2: USB (0x0781) SanDisk 3.2Gen1 (0x55a3), rev 2.10/1.00, addr 9
[   7.0900428] scsibus2 at umass2: 2 targets, 1 lun per target
[   7.1000428] sd4 at scsibus2 target 0 lun 0: <USB, SanDisk 3.2Gen1, 1.00> disk removable
[   7.1100425] sd4: 14664 MB, 29793 cyl, 16 head, 63 sec, 512 bytes/sect x 30031872 sectors
[   7.1200427] dk5 at sd4: "EFI system", 262144 blocks at 2048, type: msdos
[   7.1300427] dk6 at sd4: "3405e82a-8a50-49a9-88bd-98a8b01244fa", 4341760 blocks at 264192, type: ffs
[   7.1800429] sd3: 4141056 trailing sectors not covered by disklabel
[   7.2100429] sd3: 4141056 trailing sectors not covered by disklabel
[   7.2400434] sd3: 4141056 trailing sectors not covered by disklabel
[   7.2500431] sd3: 4141056 trailing sectors not covered by disklabel
[   7.2600432] WARNING: 2 errors while detecting hardware; check system log.
[   7.2700433] boot device: ld0
[   7.2700433] root on dk1 dumps on dk2
[   7.2700433] root file system type: ffs
[   7.2800434] kern.module.path=/stand/amd64/9.99.93/modules
[   7.2883960] kern info: [drm] initializing kernel modesetting (POLARIS11 0x1002:0x67EF 0x1043:0x04B8 0xCF).
[   7.2978461] kern info: [drm] register mmio base: 0xFCD00000
[   7.3033815] kern info: [drm] register mmio size: 262144
[   7.3033815] kern info: [drm] PCI I/O BAR is not found.
[   7.3136741] kern info: [drm] add ip block number 0 <vi_common>
[   7.3136741] kern info: [drm] add ip block number 1 <gmc_v8_0>
[   7.3251770] kern info: [drm] add ip block number 2 <tonga_ih>
[   7.3308858] kern info: [drm] add ip block number 3 <gfx_v8_0>
[   7.3308858] kern info: [drm] add ip block number 4 <sdma_v3_0>
[   7.3423920] kern info: [drm] add ip block number 5 <powerplay>
[   7.3423920] kern info: [drm] add ip block number 6 <dce_v11_0>
[   7.3539780] kern info: [drm] add ip block number 7 <uvd_v6_0>
[   7.3539780] kern info: [drm] add ip block number 8 <vce_v3_0>
[   7.5300660] ATOM BIOS: 115-C994PI00-100
[   7.5300660] kern info: [drm] UVD is enabled in VM mode
[   7.5409312] kern info: [drm] UVD ENC is enabled in VM mode
[   7.5409312] kern info: [drm] VCE enabled in VM mode
[   7.5512228] kern info: [drm] vm size is 128 GB, 2 levels, block size is 10-bit, fragment size is 9-bit
[   7.5604778] amdgpu0: info: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
[   7.5604778] amdgpu0: info: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
[   7.5767025] kern info: [drm] Detected VRAM RAM=2048M, BAR=256M
[   7.5829549] kern info: [drm] RAM width 128bits GDDR5
[   7.5829549] Zone  kernel: Available graphics memory: 11130138 KiB
[   7.5939371] Zone   dma32: Available graphics memory: 2097152 KiB
[   7.6000440] kern info: [drm] amdgpu: 2048M of VRAM memory ready
[   7.6000440] kern info: [drm] amdgpu: 3072M of GTT memory ready.
[   7.6119340] kern info: [drm] GART: num cpu pages 65536, num gpu pages 65536
[   7.6200457] kern info: [drm] PCIE GART of 256M enabled (table at 0x000000F400300000).
[   7.6200457] kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   7.6363572] kern info: [drm] Driver supports precise vblank timestamp query.
[   7.6433634] amdgpu0: interrupting at msi9 vec 0 (amdgpu0)
[   7.6433634] kern info: [drm] Chained IB support enabled!
[   7.6543037] uvm_fault(0xffffffff818e8ec0, 0xffff8d2843a48000, 1) -> e
[   7.6621056] fatal page fault in supervisor mode
[   7.6621056] trap type 6 code 0 rip 0xffffffff80eaa5f0 cs 0x8 rflags 0x10212 cr2 0xffff8d2843a48ce8 ilevel 0 rsp 0xffff8c826e6d9a30
[   7.6782773] curlwp 0xfffffabc85798b00 pid 0.332 lowest kstack 0xffff8c826e6d52c0
kernel: page fault trap, code=0
Stopped in pid 0.332 (system) at        netbsd:ttm_bo_validate+0x11a:   movq
40(%rcx,%rdx,1),%rdx
ttm_bo_validate() at netbsd:ttm_bo_validate+0x11a
ttm_bo_init_reserved() at netbsd:ttm_bo_init_reserved+0x35a
amdgpu_bo_do_create() at netbsd:amdgpu_bo_do_create+0x1cd
amdgpu_bo_create() at netbsd:amdgpu_bo_create+0x2e
amdgpu_bo_create_reserved.part.0() at netbsd:amdgpu_bo_create_reserved.part.0+0x1a4
amdgpu_bo_create_kernel() at netbsd:amdgpu_bo_create_kernel+0x3f
amdgpu_ring_init() at netbsd:amdgpu_ring_init+0x3ed
gfx_v8_0_sw_init() at netbsd:gfx_v8_0_sw_init+0xaf0
amdgpu_device_init() at netbsd:amdgpu_device_init+0x1586
amdgpu_driver_load_kms() at netbsd:amdgpu_driver_load_kms+0x51
drm_dev_register() at netbsd:drm_dev_register+0x166
amdgpu_attach_real() at netbsd:amdgpu_attach_real+0xac
config_mountroot_thread() at netbsd:config_mountroot_thread+0x60
ds          9a10
es          f2f8
fs          9be0
gs          c4f3
rdi         ffff8d2843a48cc0
rsi         4fffffffb
rbp         ffff8c826e6d9ad0
rbx         0
rdx         a7ffffff58
rcx         ffff8c8043a48d50
rax         fffffff4
r8          fffffac362b5f400
r9          2
r10         fffffabc85e6f2f8
r11         fffffabc85e6f4b8
r12         fffffabc85e6f318
r13         fffffabc85e6f2f8
r14         ffff8c826e6d9be0
r15         fffffabc85e6f318
rip         ffffffff80eaa5f0    ttm_bo_validate+0x11a
cs          8
rflags      10212
rsp         ffff8c826e6d9a30
ss          10
netbsd:ttm_bo_validate+0x11a:   movq    40(%rcx,%rdx,1),%rdx

resolved lines:
ttm_bo_validate() at netbsd:ttm_bo_validate+0x11a -> src/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c:926
ttm_bo_init_reserved() at netbsd:ttm_bo_init_reserved+0x35a -> src/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c:1395
amdgpu_bo_do_create() at netbsd:amdgpu_bo_do_create+0x1cd -> src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_object.c:585
amdgpu_bo_create() at netbsd:amdgpu_bo_create+0x2e -> src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_object.c:682
amdgpu_bo_create_reserved.part.0() at netbsd:amdgpu_bo_create_reserved.part.0+0x1a4 -> src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_object.c:263
amdgpu_bo_create_kernel() at netbsd:amdgpu_bo_create_kernel+0x3f -> src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_object.c:343
amdgpu_ring_init() at netbsd:amdgpu_ring_init+0x3ed -> src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ring.c:325
gfx_v8_0_sw_init() at netbsd:gfx_v8_0_sw_init+0xaf0 -> src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gfx_v8_0.c:1914
amdgpu_device_init() at netbsd:amdgpu_device_init+0x1586 -> src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c:1996
amdgpu_driver_load_kms() at netbsd:amdgpu_driver_load_kms+0x51 -> sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_kms.c:172
drm_dev_register() at netbsd:drm_dev_register+0x166 -> src/sys/external/bsd/drm2/dist/drm/drm_drv.c:1047
amdgpu_attach_real() at netbsd:amdgpu_attach_real+0xac -> src/sys/external/bsd/drm2/amdgpu/amdgpu_pci.c:197
config_mountroot_thread() at netbsd:config_mountroot_thread+0x60 -> src/sys/kern/subr_autoconf.c:524
>How-To-Repeat:
Build kernel with amdgpu and amdgpufb enabled, install required firmware.
Boot the system several times until the crash.
>Fix:



Home | Main Index | Thread Index | Old Index