NetBSD Problem Report #52438

From hf@spg.tu-darmstadt.de  Fri Jul 28 14:27:42 2017
Return-Path: <hf@spg.tu-darmstadt.de>
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" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7A32B7A1BE
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 28 Jul 2017 14:27:42 +0000 (UTC)
Message-Id: <201707281425.v6SEPPSI020240@Gstoder.nt.e-technik.tu-darmstadt.de>
Date: Fri, 28 Jul 2017 16:25:25 +0200 (CEST)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: radeon related panic
X-Send-Pr-Version: 3.95

>Number:         52438
>Category:       kern
>Synopsis:       radeon related panic
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    riastradh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 28 14:30:00 +0000 2017
>Closed-Date:    Sun Aug 20 12:09:43 +0000 2023
>Last-Modified:  Sun Aug 20 12:09:43 +0000 2023
>Originator:     Hauke Fath
>Release:        NetBSD 8.0_BETA
>Organization:
Technische Universitaet Darmstadt
>Environment:


System: NetBSD Gstoder 8.0_BETA NetBSD 8.0_BETA (MONOLITHIC) #0: Fri Jul 7 14:26:13 CEST 2017 hf@Hochstuhl:/var/obj/netbsd-builds/8/i386/sys/arch/i386/compile/MONOLITHIC i386
Architecture: i386
Machine: i386
>Description:

	For a while, I have returned in the morning to the office,
	just to find my machine either hung or having rebooted. This
	continues to happen every other day with netbsd-8 kernels.

	A sample stack trace:

Jul 28 00:10:20 Gstoder /netbsd: vpanic(c0ecfe8f,ee065a5c,ee065ad8,c01204ef,c0ecfe8f,ee065ae4,ee065ae4,1,ee0642c0,10286) at netbsd:vpanic+0x121
Jul 28 00:10:20 Gstoder /netbsd: snprintf(c0ecfe8f,ee065ae4,ee065ae4,1,ee0642c0,10286,1c,0,c08a8034,0) at netbsd:snprintf
Jul 28 00:10:20 Gstoder /netbsd: trap() at netbsd:trap+0xc80
Jul 28 00:10:20 Gstoder /netbsd: --- trap (number 6) ---
Jul 28 00:10:20 Gstoder /netbsd: _bus_dmamap_destroy.isra.10(c1114200,0,d3578074,ee065b54,c0ae2475,d3578074,d3578074,ee065b84,c0c022e5,d3578074) at netbsd:_bus_dmamap_destroy.isra.10+0xa
Jul 28 00:10:20 Gstoder /netbsd: ttm_dma_tt_fini(d3578074,d3578074,ee065b84,c0c022e5,d3578074,a8c0,e10,1000,0,0) at netbsd:ttm_dma_tt_fini+0x49
Jul 28 00:10:20 Gstoder /netbsd: radeon_ttm_backend_destroy(d3578074,a8c0,e10,1000,0,0,d35780ac,d3578074,ca1ca604,ca81f934) at netbsd:radeon_ttm_backend_destroy+0x12
Jul 28 00:10:20 Gstoder /netbsd: ttm_dma_tt_init(d3578074,ca1ca604,e10000,0,0,d2f783b4,0,ee065bcc,c0c02796,ca1ca604) at netbsd:ttm_dma_tt_init+0x157
Jul 28 00:10:20 Gstoder /netbsd: radeon_ttm_tt_create(ca1ca604,e10000,0,0,d2f783b4,ee065c7c,ca1ca604,ee065c34,c0c034ea,ca1ca694) at netbsd:radeon_ttm_tt_create+0x63
Jul 28 00:10:20 Gstoder /netbsd: ttm_bo_add_ttm(ca1ca694,1,400000,1,1,ee065c34,c0c0452e,ca1ca654,d2f783b4,ee065c64) at netbsd:ttm_bo_add_ttm+0xcb
Jul 28 00:10:20 Gstoder /netbsd: ttm_bo_handle_move_mem(0,0,ee065c7c,0,0,0,0,ee065c64,0,d2f783fc) at netbsd:ttm_bo_handle_move_mem+0x545
Jul 28 00:10:20 Gstoder /netbsd: ttm_mem_evict_first(0,d1d0d0f4,d1d0d0dc,ee065d38,65d10,640004,90,0,0,ca1ca604) at netbsd:ttm_mem_evict_first+0x492
Jul 28 00:10:20 Gstoder /netbsd: ttm_bo_mem_space(d1d0d0f4,d1d0d0dc,ee065d38,0,0,ca1ca604,0,0,0,c11bbb40) at netbsd:ttm_bo_mem_space+0x25e
Jul 28 00:10:20 Gstoder /netbsd: ttm_bo_validate(d1d0d0f4,d1d0d0dc,0,0,8000,0,d28efd9c,d2e36c44,d1d0d250,ee065e0c) at netbsd:ttm_bo_validate+0x1b8
Jul 28 00:10:20 Gstoder /netbsd: radeon_bo_pin_restricted(d1d0d0c4,4,8000000,0,ee065df8,ca9794e8,0,d1d0d0f4,d1d0d0c4,ca1ca000) at netbsd:radeon_bo_pin_restricted+0x150
Jul 28 00:10:20 Gstoder /netbsd: radeon_crtc_page_flip(cabf0004,d4461514,d49a4744,1,d4461514,d49a4744,d4461514,cabf0004,cabf0014,d28e96c4) at netbsd:radeon_crtc_page_flip+0x261
Jul 28 00:10:20 Gstoder /netbsd: drm_mode_page_flip_ioctl(ca979404,ee065eac,cacf2290,ee065f68,cb4a5e40,0,ee065f38,c08e8d54,cb4a5e40,c01864b0) at netbsd:drm_mode_page_flip_ioctl+0x18a
Jul 28 00:10:20 Gstoder /netbsd: drm_ioctl(cb4a5e40,c01864b0,ee065eac,ca9794ea,ca9794ea,ca9794e8,cacf2290,ca9794e8,18,ee065eac) at netbsd:drm_ioctl+0xff
Jul 28 00:10:20 Gstoder /netbsd: sys_ioctl(d1b342c0,ee065f68,ee065f60,d1738d4c,d1738d4c,ee065f60,ee065f68,36,0,0) at netbsd:sys_ioctl+0xfc
Jul 28 00:10:20 Gstoder /netbsd: syscall() at netbsd:syscall+0x1d1
Jul 28 00:10:20 Gstoder /netbsd: --- syscall (number 54) ---
Jul 28 00:10:20 Gstoder /netbsd: b8cef0a7:
Jul 28 00:10:20 Gstoder /netbsd: cpu0: End traceback...
Jul 28 00:10:20 Gstoder /netbsd: 
Jul 28 00:10:20 Gstoder /netbsd: dumping to dev 0,1 offset 3770079
Jul 28 00:10:20 Gstoder /netbsd: dump WARNING: negative runtime; monotonic clock has gone backwards


	The machine's dmesg output (containing another stack trace):

arch/i386/compile/MONOLITHIC
total memory = 8159 MB
avail memory = 7998 MB
cpu_rng: RDRAND
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
ASUSTeK Computer INC. V-P8H67E (System Version)
mainbus0 (root)
ACPI: RSDP 0x00000000000F0450 000024 (v02 ALASKA)
ACPI: XSDT 0x00000000DF388070 00005C (v01 ALASKA A M I    01072009 AMI  00010013)
ACPI: FACP 0x00000000DF392CD0 0000F4 (v04 ALASKA A M I    01072009 AMI  00010013)
ACPI: DSDT 0x00000000DF388158 00AB77 (v02 ALASKA A M I    00000015 INTL 20051117)
ACPI: FACS 0x00000000DF3BEF80 000040
ACPI: APIC 0x00000000DF392DC8 000072 (v03 ALASKA A M I    01072009 AMI  00010013)
ACPI: MCFG 0x00000000DF392E40 00003C (v01 ALASKA A M I    01072009 MSFT 00000097)
ACPI: HPET 0x00000000DF392E80 000038 (v01 ALASKA A M I    01072009 AMI. 00000005)
ACPI: SSDT 0x00000000DF392EB8 00036D (v01 SataRe SataTabl 00001000 INTL 20091112)
ACPI: SSDT 0x00000000DF393228 0009AA (v01 PmRef  Cpu0Ist  00003000 INTL 20051117)
ACPI: SSDT 0x00000000DF393BD8 000A92 (v01 PmRef  CpuPm    00003000 INTL 20051117)
ACPI: Executed 1 blocks of module-level executable AML code
ACPI: 4 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x20, 24 pins
cpu0 at mainbus0 apid 0
cpu0: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz, id 0x306a9
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 2
cpu1: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz, id 0x306a9
cpu1: package 0, core 1, smt 0
cpu2 at mainbus0 apid 4
cpu2: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz, id 0x306a9
cpu2: package 0, core 2, smt 0
cpu3 at mainbus0 apid 6
cpu3: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz, id 0x306a9
cpu3: package 0, core 3, smt 0
acpi0 at mainbus0: Intel ACPICA 20170303
acpi0: X/RSDT: OemId <ALASKA,   A M I,01072009>, AslId <AMI ,00010013>
mpacpi: PCI bus 5 int routing already done!
acpi0: MCFG: segment 0, bus 0-63, address 0x00000000f8000000
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0x00000000CA68D004 00083B (v01 PmRef  Cpu0Cst  00003001 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0x00000000CA68C804 000303 (v01 PmRef  ApIst    00003000 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0x00000000CA182504 000119 (v01 PmRef  ApCst    00003000 INTL 20051117)
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (H_EC, PNP0C09-1)acpiec0: unable to evaluate _GPE: AE_NOT_FOUND
TPMX (PNP0C01) at acpi0 not configured
FWHD (INT0800) at acpi0 not configured
LDRC (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53 irq 0
CWDT (INT3F0D) at acpi0 not configured
SIO1 (PNP0C02) at acpi0 not configured
RMSC (PNP0C02) at acpi0 not configured
COPR (PNP0C04) at acpi0 not configured
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
PDRC (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
acpifan0 at acpi0 (FAN0, PNP0C0B-0): ACPI Fan
acpifan1 at acpi0 (FAN1, PNP0C0B-1): ACPI Fan
acpifan2 at acpi0 (FAN2, PNP0C0B-2): ACPI Fan
acpifan3 at acpi0 (FAN3, PNP0C0B-3): ACPI Fan
acpifan4 at acpi0 (FAN4, PNP0C0B-4): ACPI Fan
acpitz0 at acpi0 (TZ00)
acpitz0: active cooling level 0: 85.0C
acpitz0: active cooling level 1: 55.0C
acpitz0: active cooling level 2: 0.0C
acpitz0: active cooling level 3: 0.0C
acpitz0: active cooling level 4: 0.0C
acpitz0: levels: critical 106.0 C
acpitz1 at acpi0 (TZ01): cpu0 cpu1 cpu2 cpu3
acpitz1: levels: critical 106.0 C, passive 106.0 C, passive cooling
acpiwmi0 at acpi0 (AMW0, PNP0C14-ASUSWMI): ACPI WMI Interface
wmieeepc0 at acpiwmi0: Asus Eee PC WMI mappings
apm0 at acpi0: Power Management spec V1.2
ACPI: Enabled 5 GPEs in block 00 to 3F
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 8086 product 0150 (rev. 0x09)
ppb0 at pci0 dev 1 function 0: vendor 8086 product 0151 (rev. 0x09)
ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 8.0GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
radeon0 at pci1 dev 0 function 0: vendor 1002 product 5b63 (rev. 0x00)
radeon0: unable to reserve VGA registers for i386 radeondrmkms hack
vendor 1002 product 5b73 (miscellaneous display) at pci1 dev 0 function 1 not configured
vendor 8086 product 1c3a (miscellaneous communications, revision 0x04) at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0: vendor 8086 product 1c2d (rev. 0x05)
ehci0: interrupting at ioapic0 pin 23
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
usb0 at ehci0: USB revision 2.0
hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
hdaudio0: interrupting at msi0 vec 0
hdafg0 at hdaudio0: vendor 10ec product 0892
hdafg0: DAC00 8ch: Speaker [Jack]
hdafg0: DAC01 2ch: HP Out [Jack]
hdafg0: DIG02 2ch: SPDIF Out [Jack]
hdafg0: DIG03 2ch: SPDIF Out [Built-In]
hdafg0: ADC04 2ch: Line In [Jack], Mic In [Jack]
hdafg0: ADC05 2ch: Mic In [Jack]
hdafg0: 8ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
hdafg0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000
ppb1 at pci0 dev 28 function 0: vendor 8086 product 1c10 (rev. 0xb5)
ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 5.0GT/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 28 function 6: vendor 8086 product 1c1c (rev. 0xb5)
ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb2: link is x1 @ 2.5GT/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci3 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x06)
re0: interrupting at msi1 vec 0
re0: Ethernet address 54:04:a6:b9:3f:8e
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 4
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb3 at pci0 dev 28 function 7: vendor 8086 product 244e (rev. 0xb5)
ppb3: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb3: link is x1 @ 2.5GT/s
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
ppb4 at pci4 dev 0 function 0: vendor 1b21 product 1080 (rev. 0x01)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
puc0 at pci5 dev 1 function 0: SUNIX 405X 4S (com, com, com, com)
com3 at puc0 port 0 (16550-compatible): ioaddr 0xc000, interrupting at ioapic0 pin 16
com3: ns16550a, working fifo
com4 at puc0 port 1 (16550-compatible): ioaddr 0xc008, interrupting at ioapic0 pin 16
com4: ns16550a, working fifo
com5 at puc0 port 2 (16550-compatible): ioaddr 0xc020, interrupting at ioapic0 pin 16
com5: ns16550a, working fifo
com6 at puc0 port 3 (16550-compatible): ioaddr 0xc028, interrupting at ioapic0 pin 16
com6: ns16550a, working fifo
ehci1 at pci0 dev 29 function 0: vendor 8086 product 1c26 (rev. 0x05)
ehci1: interrupting at ioapic0 pin 23
ehci1: BIOS has given up ownership
ehci1: EHCI version 1.0
usb1 at ehci1: USB revision 2.0
ichlpcib0 at pci0 dev 31 function 0: vendor 8086 product 1c4a (rev. 0x05)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
tco0 at ichlpcib0: TCO (watchdog) timer configured.
tco0: Min/Max interval 1/367 seconds
ahcisata0 at pci0 dev 31 function 2: vendor 8086 product 1c02 (rev. 0x05)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: AHCI revision 1.30, 6 ports, 32 slots, CAP 0xc730ff45<EMS,PSC,SSC,PMD,ISS=0x3=Gen3,SCLO,SAL,SALP,SNCQ,S64A>
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
ichsmb0 at pci0 dev 31 function 3: vendor 8086 product 1c22 (rev. 0x05)
ichsmb0: interrupting at ioapic0 pin 18
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat  59 us, pow   500 mW
acpicpu0: C3: FFH, lat  80 us, pow   350 mW
acpicpu0: P0: FFH, lat  10 us, pow 77000 mW, 3101 MHz, turbo boost
acpicpu0: P1: FFH, lat  10 us, pow 77000 mW, 3100 MHz
acpicpu0: P2: FFH, lat  10 us, pow 73079 mW, 3000 MHz
acpicpu0: P3: FFH, lat  10 us, pow 69986 mW, 2900 MHz
acpicpu0: P4: FFH, lat  10 us, pow 66950 mW, 2800 MHz
acpicpu0: P5: FFH, lat  10 us, pow 63970 mW, 2700 MHz
acpicpu0: P6: FFH, lat  10 us, pow 60319 mW, 2600 MHz
acpicpu0: P7: FFH, lat  10 us, pow 57470 mW, 2500 MHz
acpicpu0: P8: FFH, lat  10 us, pow 51912 mW, 2300 MHz
acpicpu0: P9: FFH, lat  10 us, pow 48521 mW, 2200 MHz
acpicpu0: P10: FFH, lat  10 us, pow 45886 mW, 2100 MHz
acpicpu0: P11: FFH, lat  10 us, pow 43312 mW, 2000 MHz
acpicpu0: P12: FFH, lat  10 us, pow 40781 mW, 1900 MHz
acpicpu0: P13: FFH, lat  10 us, pow 38303 mW, 1800 MHz
acpicpu0: P14: FFH, lat  10 us, pow 35223 mW, 1700 MHz
acpicpu0: P15: FFH, lat  10 us, pow 32856 mW, 1600 MHz
coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=105
acpicpu1 at cpu1: ACPI CPU
coretemp1 at cpu1: thermal sensor, 1 C resolution, Tjmax=105
acpicpu2 at cpu2: ACPI CPU
coretemp2 at cpu2: thermal sensor, 1 C resolution, Tjmax=105
acpicpu3 at cpu3: ACPI CPU
coretemp3 at cpu3: thermal sensor, 1 C resolution, Tjmax=105
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 3110685360 Hz quality 3000
IPsec: Initialized Security Association Processing.
uhub0 at usb0: vendor 8086 (0x8086) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: vendor 8086 (0x8086) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ahcisata0 port 0: device present, speed: 3.0Gb/s
ahcisata0 port 1: device present, speed: 1.5Gb/s
ahcisata0 port 3: device present, speed: 1.5Gb/s
wd0 at atabus0 drive 0
wd0: <SAMSUNG HD161HJ>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149 GB, 310098 cyl, 16 head, 63 sec, 512 bytes/sect x 312579695 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 7
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus1 drive 0
wd1: <WDC WD5000AADS-98S9B1>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 465 GB, 969021 cyl, 16 head, 63 sec, 512 bytes/sect x 976773168 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
atapibus0 at atabus3: 1 targets
cd0 at atapibus0 drive 0: <HL-DT-ST DVDRAM GH24NS90, KD841122950, IN01> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
cd0(ahcisata0:3:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA)
uhub2 at uhub1 port 1: vendor 8087 (0x8087) product 0024 (0x24), class 9/0, rev 2.00/0.00, addr 2
uhub2: single transaction translator
uhub3 at uhub0 port 1: vendor 8087 (0x8087) product 0024 (0x24), class 9/0, rev 2.00/0.00, addr 2
uhub3: single transaction translator
uhub3: 6 ports with 6 removable, self powered
uhub2: 8 ports with 8 removable, self powered
uhidev0 at uhub2 port 6 configuration 1 interface 0
uhidev0: vendor 0d3d (0xd3d) Generic USBPS2 (0x01), rev 1.10/0.01, addr 3, iclass 3/1
ukbd0 at uhidev0
wskbd1 at ukbd0 mux 1
uhidev1 at uhub2 port 6 configuration 1 interface 1
uhidev1: vendor 0d3d (0xd3d) Generic USBPS2 (0x01), rev 1.10/0.01, addr 3, iclass 3/1
uhidev1: 3 report ids
ums0 at uhidev1 reportid 1: 3 buttons and Z dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev1 reportid 2: input=2, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=1, output=0, feature=0
WARNING: 2 errors while detecting hardware; check system log.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
kern.module.path=/stand/i386/8.0/modules
drm: initializing kernel modesetting (RV380 0x1002:0x5B63 0x174B:0x3000).
drm: register mmio base: 0xf7e30000
drm: register mmio size: 65536
drm: Generation 2 PCI interface, using max accessible memory
radeon0: info: VRAM: 256M 0x00000000E0000000 - 0x00000000EFFFFFFF (256M used)
radeon0: info: GTT: 512M 0x00000000C0000000 - 0x00000000DFFFFFFF
drm: Detected VRAM RAM=100M, BAR=256M
drm: RAM width 128bits DDR
Zone  kernel: Available graphics memory: 3807306 kiB
Zone   dma32: Available graphics memory: 2097152 kiB
drm: radeon: 256M of VRAM memory ready
drm: radeon: 512M of GTT memory ready.
drm: GART: num cpu pages 131072, num gpu pages 131072
drm: radeon: 1 quad pipes, 1 Z pipes initialized.
drm: PCIE GART of 512M enabled (table at 0x00000000E0040000).
radeon0: info: WB enabled
radeon0: info: fence driver on ring 0 use gpu addr 0x00000000c0000000 and cpu addr 0x0xe3340000
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
radeon0: info: radeon: using MSI.
radeon0: interrupting at msi2 vec 0 (radeon)
drm: radeon: irq initialized.
drm: Loading R300 Microcode
drm: radeon: ring at 0x00000000C0001000
drm: ring test succeeded in 1 usecs
drm: ib test succeeded in 0 usecs
drm: Radeon Display Connectors
drm: Connector 0:
drm:   VGA-1
drm:   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
drm:   Encoders:
drm:     CRT1: INTERNAL_DAC1
drm: Connector 1:
drm:   DVI-I-1
drm:   HPD1
drm:   DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
drm:   Encoders:
drm:     CRT2: INTERNAL_DAC2
drm:     DFP1: INTERNAL_TMDS1
drm: Connector 2:
drm:   SVIDEO-1
drm:   Encoders:
drm:     TV1: INTERNAL_DAC2
radeondrmkmsfb0 at radeon0
radeon0: info: registered panic notifier
radeondrmkmsfb0: framebuffer at 0xe3760000, size 1920x1080, depth 32, stride 7680
wsdisplay0 at radeondrmkmsfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wskbd1: connecting to wsdisplay0
/var: replaying log to disk
tap0: Ethernet address f2:0b:a4:6a:f2:ff
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)
/usr/pkg: replaying log to disk
/local: replaying log to disk
/local/home: replaying log to disk
/var/obj: replaying log to disk
/void: replaying log to disk
uvm_fault(0xd1738d4c, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip 0xc0145a4e cs 0x8 eflags 0x10286 cr2 0x1c ilevel 0 esp 0xc08a8034
curlwp 0xd1b342c0 pid 3414 lid 1 lowest kstack 0xee0642c0
panic: trap
cpu0: Begin traceback...
vpanic(c0ecfe8f,ee065a5c,ee065ad8,c01204ef,c0ecfe8f,ee065ae4,ee065ae4,1,ee0642c0,10286) at netbsd:vpanic+0x121
snprintf(c0ecfe8f,ee065ae4,ee065ae4,1,ee0642c0,10286,1c,0,c08a8034,0) at netbsd:snprintf
trap() at netbsd:trap+0xc80
--- trap (number 6) ---
_bus_dmamap_destroy.isra.10(c1114200,0,d3578074,ee065b54,c0ae2475,d3578074,d3578074,ee065b84,c0c022e5,d3578074) at netbsd:_bus_dmamap_destroy.isra.10+0xa
ttm_dma_tt_fini(d3578074,d3578074,ee065b84,c0c022e5,d3578074,a8c0,e10,1000,0,0) at netbsd:ttm_dma_tt_fini+0x49
radeon_ttm_backend_destroy(d3578074,a8c0,e10,1000,0,0,d35780ac,d3578074,ca1ca604,ca81f934) at netbsd:radeon_ttm_backend_destroy+0x12
ttm_dma_tt_init(d3578074,ca1ca604,e10000,0,0,d2f783b4,0,ee065bcc,c0c02796,ca1ca604) at netbsd:ttm_dma_tt_init+0x157
radeon_ttm_tt_create(ca1ca604,e10000,0,0,d2f783b4,ee065c7c,ca1ca604,ee065c34,c0c034ea,ca1ca694) at netbsd:radeon_ttm_tt_create+0x63
ttm_bo_add_ttm(ca1ca694,1,400000,1,1,ee065c34,c0c0452e,ca1ca654,d2f783b4,ee065c64) at netbsd:ttm_bo_add_ttm+0xcb
ttm_bo_handle_move_mem(0,0,ee065c7c,0,0,0,0,ee065c64,0,d2f783fc) at netbsd:ttm_bo_handle_move_mem+0x545
ttm_mem_evict_first(0,d1d0d0f4,d1d0d0dc,ee065d38,65d10,640004,90,0,0,ca1ca604) at netbsd:ttm_mem_evict_first+0x492
ttm_bo_mem_space(d1d0d0f4,d1d0d0dc,ee065d38,0,0,ca1ca604,0,0,0,c11bbb40) at netbsd:ttm_bo_mem_space+0x25e
ttm_bo_validate(d1d0d0f4,d1d0d0dc,0,0,8000,0,d28efd9c,d2e36c44,d1d0d250,ee065e0c) at netbsd:ttm_bo_validate+0x1b8
radeon_bo_pin_restricted(d1d0d0c4,4,8000000,0,ee065df8,ca9794e8,0,d1d0d0f4,d1d0d0c4,ca1ca000) at netbsd:radeon_bo_pin_restricted+0x150
radeon_crtc_page_flip(cabf0004,d4461514,d49a4744,1,d4461514,d49a4744,d4461514,cabf0004,cabf0014,d28e96c4) at netbsd:radeon_crtc_page_flip+0x261
drm_mode_page_flip_ioctl(ca979404,ee065eac,cacf2290,ee065f68,cb4a5e40,0,ee065f38,c08e8d54,cb4a5e40,c01864b0) at netbsd:drm_mode_page_flip_ioctl+0x18a
drm_ioctl(cb4a5e40,c01864b0,ee065eac,ca9794ea,ca9794ea,ca9794e8,cacf2290,ca9794e8,18,ee065eac) at netbsd:drm_ioctl+0xff
sys_ioctl(d1b342c0,ee065f68,ee065f60,d1738d4c,d1738d4c,ee065f60,ee065f68,36,0,0) at netbsd:sys_ioctl+0xfc
syscall() at netbsd:syscall+0x1d1
--- syscall (number 54) ---
b8cef0a7:
cpu0: End traceback...

dumping to dev 0,1 offset 3770079
dump WARNING: negative runtime; monotonic clock has gone backwards
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 8.0_BETA (MONOLITHIC) #0: Fri Jul  7 14:26:13 CEST 2017
	hf@Hochstuhl:/var/obj/netbsd-builds/8/i386/sys/arch/i386/compile/MONOLITHIC
total memory = 8159 MB
avail memory = 7998 MB
cpu_rng: RDRAND
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
ASUSTeK Computer INC. V-P8H67E (System Version)
mainbus0 (root)
ACPI: RSDP 0x00000000000F0450 000024 (v02 ALASKA)
ACPI: XSDT 0x00000000DF388070 00005C (v01 ALASKA A M I    01072009 AMI  00010013)
ACPI: FACP 0x00000000DF392CD0 0000F4 (v04 ALASKA A M I    01072009 AMI  00010013)
ACPI: DSDT 0x00000000DF388158 00AB77 (v02 ALASKA A M I    00000015 INTL 20051117)
ACPI: FACS 0x00000000DF3BEF80 000040
ACPI: APIC 0x00000000DF392DC8 000072 (v03 ALASKA A M I    01072009 AMI  00010013)
ACPI: MCFG 0x00000000DF392E40 00003C (v01 ALASKA A M I    01072009 MSFT 00000097)
ACPI: HPET 0x00000000DF392E80 000038 (v01 ALASKA A M I    01072009 AMI. 00000005)
ACPI: SSDT 0x00000000DF392EB8 00036D (v01 SataRe SataTabl 00001000 INTL 20091112)
ACPI: SSDT 0x00000000DF393228 0009AA (v01 PmRef  Cpu0Ist  00003000 INTL 20051117)
ACPI: SSDT 0x00000000DF393BD8 000A92 (v01 PmRef  CpuPm    00003000 INTL 20051117)
ACPI: Executed 1 blocks of module-level executable AML code
ACPI: 4 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x20, 24 pins
cpu0 at mainbus0 apid 0
cpu0: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz, id 0x306a9
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 2
cpu1: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz, id 0x306a9
cpu1: package 0, core 1, smt 0
cpu2 at mainbus0 apid 4
cpu2: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz, id 0x306a9
cpu2: package 0, core 2, smt 0
cpu3 at mainbus0 apid 6
cpu3: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz, id 0x306a9
cpu3: package 0, core 3, smt 0
acpi0 at mainbus0: Intel ACPICA 20170303
acpi0: X/RSDT: OemId <ALASKA,   A M I,01072009>, AslId <AMI ,00010013>
mpacpi: PCI bus 5 int routing already done!
acpi0: MCFG: segment 0, bus 0-63, address 0x00000000f8000000
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0x00000000CA68D004 00083B (v01 PmRef  Cpu0Cst  00003001 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0x00000000CA68C804 000303 (v01 PmRef  ApIst    00003000 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0x00000000CA182504 000119 (v01 PmRef  ApCst    00003000 INTL 20051117)
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (H_EC, PNP0C09-1)acpiec0: unable to evaluate _GPE: AE_NOT_FOUND
TPMX (PNP0C01) at acpi0 not configured
FWHD (INT0800) at acpi0 not configured
LDRC (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53 irq 0
CWDT (INT3F0D) at acpi0 not configured
SIO1 (PNP0C02) at acpi0 not configured
RMSC (PNP0C02) at acpi0 not configured
COPR (PNP0C04) at acpi0 not configured
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
PDRC (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
acpifan0 at acpi0 (FAN0, PNP0C0B-0): ACPI Fan
acpifan1 at acpi0 (FAN1, PNP0C0B-1): ACPI Fan
acpifan2 at acpi0 (FAN2, PNP0C0B-2): ACPI Fan
acpifan3 at acpi0 (FAN3, PNP0C0B-3): ACPI Fan
acpifan4 at acpi0 (FAN4, PNP0C0B-4): ACPI Fan
acpitz0 at acpi0 (TZ00)
acpitz0: active cooling level 0: 85.0C
acpitz0: active cooling level 1: 55.0C
acpitz0: active cooling level 2: 0.0C
acpitz0: active cooling level 3: 0.0C
acpitz0: active cooling level 4: 0.0C
acpitz0: levels: critical 106.0 C
acpitz1 at acpi0 (TZ01): cpu0 cpu1 cpu2 cpu3
acpitz1: levels: critical 106.0 C, passive 106.0 C, passive cooling
acpiwmi0 at acpi0 (AMW0, PNP0C14-ASUSWMI): ACPI WMI Interface
wmieeepc0 at acpiwmi0: Asus Eee PC WMI mappings
apm0 at acpi0: Power Management spec V1.2
ACPI: Enabled 5 GPEs in block 00 to 3F
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 8086 product 0150 (rev. 0x09)
ppb0 at pci0 dev 1 function 0: vendor 8086 product 0151 (rev. 0x09)
ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 8.0GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
radeon0 at pci1 dev 0 function 0: vendor 1002 product 5b63 (rev. 0x00)
radeon0: unable to reserve VGA registers for i386 radeondrmkms hack
vendor 1002 product 5b73 (miscellaneous display) at pci1 dev 0 function 1 not configured
vendor 8086 product 1c3a (miscellaneous communications, revision 0x04) at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0: vendor 8086 product 1c2d (rev. 0x05)
ehci0: interrupting at ioapic0 pin 23
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
usb0 at ehci0: USB revision 2.0
hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
hdaudio0: interrupting at msi0 vec 0
hdafg0 at hdaudio0: vendor 10ec product 0892
hdafg0: DAC00 8ch: Speaker [Jack]
hdafg0: DAC01 2ch: HP Out [Jack]
hdafg0: DIG02 2ch: SPDIF Out [Jack]
hdafg0: DIG03 2ch: SPDIF Out [Built-In]
hdafg0: ADC04 2ch: Line In [Jack], Mic In [Jack]
hdafg0: ADC05 2ch: Mic In [Jack]
hdafg0: 8ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
hdafg0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000
ppb1 at pci0 dev 28 function 0: vendor 8086 product 1c10 (rev. 0xb5)
ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 5.0GT/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 28 function 6: vendor 8086 product 1c1c (rev. 0xb5)
ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb2: link is x1 @ 2.5GT/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci3 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x06)
re0: interrupting at msi1 vec 0
re0: Ethernet address 54:04:a6:b9:3f:8e
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 4
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb3 at pci0 dev 28 function 7: vendor 8086 product 244e (rev. 0xb5)
ppb3: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb3: link is x1 @ 2.5GT/s
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
ppb4 at pci4 dev 0 function 0: vendor 1b21 product 1080 (rev. 0x01)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
puc0 at pci5 dev 1 function 0: SUNIX 405X 4S (com, com, com, com)
com3 at puc0 port 0 (16550-compatible): ioaddr 0xc000, interrupting at ioapic0 pin 16
com3: ns16550a, working fifo
com4 at puc0 port 1 (16550-compatible): ioaddr 0xc008, interrupting at ioapic0 pin 16
com4: ns16550a, working fifo
com5 at puc0 port 2 (16550-compatible): ioaddr 0xc020, interrupting at ioapic0 pin 16
com5: ns16550a, working fifo
com6 at puc0 port 3 (16550-compatible): ioaddr 0xc028, interrupting at ioapic0 pin 16
com6: ns16550a, working fifo
ehci1 at pci0 dev 29 function 0: vendor 8086 product 1c26 (rev. 0x05)
ehci1: interrupting at ioapic0 pin 23
ehci1: BIOS has given up ownership
ehci1: EHCI version 1.0
usb1 at ehci1: USB revision 2.0
ichlpcib0 at pci0 dev 31 function 0: vendor 8086 product 1c4a (rev. 0x05)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
tco0 at ichlpcib0: TCO (watchdog) timer configured.
tco0: Min/Max interval 1/367 seconds
ahcisata0 at pci0 dev 31 function 2: vendor 8086 product 1c02 (rev. 0x05)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: AHCI revision 1.30, 6 ports, 32 slots, CAP 0xc730ff45<EMS,PSC,SSC,PMD,ISS=0x3=Gen3,SCLO,SAL,SALP,SNCQ,S64A>
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
ichsmb0 at pci0 dev 31 function 3: vendor 8086 product 1c22 (rev. 0x05)
ichsmb0: interrupting at ioapic0 pin 18
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat  59 us, pow   500 mW
acpicpu0: C3: FFH, lat  80 us, pow   350 mW
acpicpu0: P0: FFH, lat  10 us, pow 77000 mW, 3101 MHz, turbo boost
acpicpu0: P1: FFH, lat  10 us, pow 77000 mW, 3100 MHz
acpicpu0: P2: FFH, lat  10 us, pow 73079 mW, 3000 MHz
acpicpu0: P3: FFH, lat  10 us, pow 69986 mW, 2900 MHz
acpicpu0: P4: FFH, lat  10 us, pow 66950 mW, 2800 MHz
acpicpu0: P5: FFH, lat  10 us, pow 63970 mW, 2700 MHz
acpicpu0: P6: FFH, lat  10 us, pow 60319 mW, 2600 MHz
acpicpu0: P7: FFH, lat  10 us, pow 57470 mW, 2500 MHz
acpicpu0: P8: FFH, lat  10 us, pow 51912 mW, 2300 MHz
acpicpu0: P9: FFH, lat  10 us, pow 48521 mW, 2200 MHz
acpicpu0: P10: FFH, lat  10 us, pow 45886 mW, 2100 MHz
acpicpu0: P11: FFH, lat  10 us, pow 43312 mW, 2000 MHz
acpicpu0: P12: FFH, lat  10 us, pow 40781 mW, 1900 MHz
acpicpu0: P13: FFH, lat  10 us, pow 38303 mW, 1800 MHz
acpicpu0: P14: FFH, lat  10 us, pow 35223 mW, 1700 MHz
acpicpu0: P15: FFH, lat  10 us, pow 32856 mW, 1600 MHz
coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=105
acpicpu1 at cpu1: ACPI CPU
coretemp1 at cpu1: thermal sensor, 1 C resolution, Tjmax=105
acpicpu2 at cpu2: ACPI CPU
coretemp2 at cpu2: thermal sensor, 1 C resolution, Tjmax=105
acpicpu3 at cpu3: ACPI CPU
coretemp3 at cpu3: thermal sensor, 1 C resolution, Tjmax=105
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 3110632400 Hz quality 3000
IPsec: Initialized Security Association Processing.
uhub0 at usb0: vendor 8086 (0x8086) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: vendor 8086 (0x8086) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ahcisata0 port 0: device present, speed: 3.0Gb/s
ahcisata0 port 1: device present, speed: 1.5Gb/s
ahcisata0 port 3: device present, speed: 1.5Gb/s
wd0 at atabus0 drive 0
wd0: <SAMSUNG HD161HJ>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149 GB, 310098 cyl, 16 head, 63 sec, 512 bytes/sect x 312579695 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 7
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus1 drive 0
wd1: <WDC WD5000AADS-98S9B1>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 465 GB, 969021 cyl, 16 head, 63 sec, 512 bytes/sect x 976773168 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
atapibus0 at atabus3: 1 targets
cd0 at atapibus0 drive 0: <HL-DT-ST DVDRAM GH24NS90, KD841122950, IN01> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
cd0(ahcisata0:3:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA)
uhub2 at uhub1 port 1: vendor 8087 (0x8087) product 0024 (0x24), class 9/0, rev 2.00/0.00, addr 2
uhub2: single transaction translator
uhub3 at uhub0 port 1: vendor 8087 (0x8087) product 0024 (0x24), class 9/0, rev 2.00/0.00, addr 2
uhub3: single transaction translator
uhub3: 6 ports with 6 removable, self powered
uhub2: 8 ports with 8 removable, self powered
uhidev0 at uhub2 port 6 configuration 1 interface 0
uhidev0: vendor 0d3d (0xd3d) Generic USBPS2 (0x01), rev 1.10/0.01, addr 3, iclass 3/1
ukbd0 at uhidev0
wskbd1 at ukbd0 mux 1
uhidev1 at uhub2 port 6 configuration 1 interface 1
uhidev1: vendor 0d3d (0xd3d) Generic USBPS2 (0x01), rev 1.10/0.01, addr 3, iclass 3/1
uhidev1: 3 report ids
ums0 at uhidev1 reportid 1: 3 buttons and Z dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev1 reportid 2: input=2, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=1, output=0, feature=0
WARNING: 2 errors while detecting hardware; check system log.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
kern.module.path=/stand/i386/8.0/modules
drm: initializing kernel modesetting (RV380 0x1002:0x5B63 0x174B:0x3000).
drm: register mmio base: 0xf7e30000
drm: register mmio size: 65536
drm: Generation 2 PCI interface, using max accessible memory
radeon0: info: VRAM: 256M 0x00000000E0000000 - 0x00000000EFFFFFFF (256M used)
radeon0: info: GTT: 512M 0x00000000C0000000 - 0x00000000DFFFFFFF
drm: Detected VRAM RAM=100M, BAR=256M
drm: RAM width 128bits DDR
Zone  kernel: Available graphics memory: 3807306 kiB
Zone   dma32: Available graphics memory: 2097152 kiB
drm: radeon: 256M of VRAM memory ready
drm: radeon: 512M of GTT memory ready.
drm: GART: num cpu pages 131072, num gpu pages 131072
drm: radeon: 1 quad pipes, 1 Z pipes initialized.
drm: PCIE GART of 512M enabled (table at 0x00000000E0040000).
radeon0: info: WB enabled
radeon0: info: fence driver on ring 0 use gpu addr 0x00000000c0000000 and cpu addr 0x0xe3342000
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
radeon0: info: radeon: using MSI.
radeon0: interrupting at msi2 vec 0 (radeon)
drm: radeon: irq initialized.
drm: Loading R300 Microcode
drm: radeon: ring at 0x00000000C0001000
drm: ring test succeeded in 1 usecs
drm: ib test succeeded in 0 usecs
drm: Radeon Display Connectors
drm: Connector 0:
drm:   VGA-1
drm:   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
drm:   Encoders:
drm:     CRT1: INTERNAL_DAC1
drm: Connector 1:
drm:   DVI-I-1
drm:   HPD1
drm:   DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
drm:   Encoders:
drm:     CRT2: INTERNAL_DAC2
drm:     DFP1: INTERNAL_TMDS1
drm: Connector 2:
drm:   SVIDEO-1
drm:   Encoders:
drm:     TV1: INTERNAL_DAC2
radeondrmkmsfb0 at radeon0
radeon0: info: registered panic notifier
radeondrmkmsfb0: framebuffer at 0xe3760000, size 1920x1080, depth 32, stride 7680
wsdisplay0 at radeondrmkmsfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wskbd1: connecting to wsdisplay0
/var: replaying log to disk
tap0: Ethernet address f2:0b:a4:5d:01:43
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)
/usr/pkg: replaying log to disk
/local: replaying log to disk
/local/home: replaying log to disk
/var/obj: replaying log to disk
/void: replaying log to disk






>How-To-Repeat:

	Run X11 on a netbsd-8 machine with a Radeon video card.

>Fix:
	I wish I could.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->riastradh
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Sat, 29 Jul 2017 23:45:27 +0000
Responsible-Changed-Why:
over to drm-bug-people (fyi)


From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/52438: radeon related panic
Date: Sun, 30 Jul 2017 09:20:58 +0000

 Expanded backtrace:

 ttm_dma_tt_init

 274    error = bus_dmamap_create(ttm->bdev->dmat,
 275        (ttm->num_pages * PAGE_SIZE), ttm->num_pages, PAGE_SIZE, 0,
 276        BUS_DMA_WAITOK, &ttm_dma->dma_address);
 277    if (error)
 278        goto fail1;

 ... looks like we failed to bus_dmamap_create? ...

 284fail1:  kmem_free(ttm_dma->dma_segs, (ttm->num_pages *
 285        sizeof(ttm_dma->dma_segs[0])));
 286fail0:  KASSERT(error);
 287    ttm_tt_destroy(ttm);
 288    /* XXX errno NetBSD->Linux */
 289    return -error;
 290    }


 destroy:
 .destroy = &radeon_ttm_backend_destroy,


 radeon_ttm_backend_destroy:
 572    ttm_dma_tt_fini(&gtt->ttm);


 ttm_dma_tt_fini:
 312#ifdef __NetBSD__
 313    bus_dmamap_destroy(ttm->bdev->dmat, ttm_dma->dma_address);
 314    kmem_free(ttm_dma->dma_segs, (ttm->num_pages *
 315        sizeof(ttm_dma->dma_segs[0])));

 It seems like the error path destroys something not created.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Sun, 30 Jul 2017 13:43:49 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Sun Jul 30 13:43:49 UTC 2017

 Modified Files:
 	src/sys/external/bsd/drm2/dist/drm/ttm: ttm_tt.c

 Log Message:
 Fix error branch in ttm_dma_tt_init to avoid double-free.

 Should fix symptom of PR kern/52438, but who knows what underlying
 problem causes us to reach the error branch in the first place.


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 src/sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Mon, 31 Jul 2017 17:42:00 +0200

 On Sun, 30 Jul 2017 13:45:00 +0000 (UTC), Taylor R Campbell wrote:
 >  Modified Files:
 >  =09src/sys/external/bsd/drm2/dist/drm/ttm: ttm_tt.c

 Thanks, I'll give that a spin.

 As an aside: After a panic-induced reboot, the xdm screen background=20
 often comes up bright green instead of the "traditional" b/w pattern -=20
 a hardware setup issue?. Restarting xdm then fixes that.

 Cheerio,
 hauke

 --=20
      The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email            Institut f=FCr Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
      Respect for open standards              Ruf +49-6151-16-21344

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Wed, 2 Aug 2017 11:50:03 +0200

 On 07/31/17 17:55, Hauke Fath wrote:
 >   Thanks, I'll give that a spin.

 The patch appears to have avoided

 There has not been a reboot for the second day in a row, which is 
 auusual - the patch appears to have effect.

 dmesg now has a row of

 radeon0: error: 0xcc65a904 pin failed
 DRM error in radeon_crtc_page_flip: failed to pin new rbo buffer before flip
 Buffer eviction failed
 radeon0: error: 0xcc65a904 pin failed
 DRM error in radeon_crtc_page_flip: failed to pin new rbo buffer before flip
 Buffer eviction failed


 and then


 radeon0: error: 0xcc65a904 pin failed
 DRM error in radeon_crtc_page_flip: failed to pin new rbo buffer before flip
 Buffer eviction failed
 radeon0: error: 0xcc65a904 pin failed
 DRM error in radeon_crtc_page_flip: failed to pin new rbo buffer before flip
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (6414336, 2, 4096, -12)
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (233472, 2, 4096, -12)
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (286720, 2, 4096, -12)
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (5898240, 2, 4096, -12)
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (655360, 2, 4096, -12)
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (1048576, 2, 4096, -12)
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (6414336, 2, 4096, -12)
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (6414336, 2, 4096, -12)
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (6414336, 2, 4096, -12)

 The latter went with garbage on the screen, and synchronization failure, 
 which went away after switching back to text console.

 Cheerio,
 hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Wed, 2 Aug 2017 12:00:10 +0200

 On 08/02/17 11:55, Hauke Fath wrote:
 >   DRM error in radeon_gem_object_create: Failed to allocate GEM object
 >   (6414336, 2, 4096, -12)
 >   
 >   The latter went with garbage on the screen, and synchronization failure,
 >   which went away after switching back to text console.

 I can reproduce this effect by live-resizing a PDF (fairly simple, it's 
 a mainboard manual) in mupdf.

 Cheerio,
 hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

From: Taylor R Campbell <riastradh@NetBSD.org>
To: Hauke Fath <hf@spg.tu-darmstadt.de>
Cc: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Wed, 2 Aug 2017 13:30:54 +0000

 This is a multi-part message in MIME format.
 --=_nBUd1T/x7U6TEjns63jM9dlmbnhRRTFP
 Content-Transfer-Encoding: quoted-printable

 > Date: Wed, 2 Aug 2017 12:00:10 +0200
 > From: Hauke Fath <hf@spg.tu-darmstadt.de>
 >=20
 > On 08/02/17 11:55, Hauke Fath wrote:
 > >   DRM error in radeon_gem_object_create: Failed to allocate GEM object
 > >   (6414336, 2, 4096, -12)
 > >  =20
 > >   The latter went with garbage on the screen, and synchronization failu=
 re,
 > >   which went away after switching back to text console.
 >=20
 > I can reproduce this effect by live-resizing a PDF (fairly simple, it's=20
 > a mainboard manual) in mupdf.

 Can you use dtrace?  Can you print the arguments to bus_dmamap_create
 while you trigger the failure?

 If not, can you try the attached patch?

 --=_nBUd1T/x7U6TEjns63jM9dlmbnhRRTFP
 Content-Type: text/plain; charset="ISO-8859-1"; name="ttm_tt"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment; filename="ttm_tt.patch"

 Index: sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/src/sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c,v
 retrieving revision 1.10
 diff -p -u -r1.10 ttm_tt.c
 --- sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c	30 Jul 2017 13:43:48 -0000	=
 1.10
 +++ sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c	2 Aug 2017 13:30:10 -0000
 @@ -266,6 +266,8 @@ int ttm_dma_tt_init(struct ttm_dma_tt *t
 =20
  	if (ttm->num_pages > (SIZE_MAX /
  		MIN(sizeof(ttm_dma->dma_segs[0]), PAGE_SIZE))) {
 +		printf("%s: ttm npages %lu too large\n", __func__,
 +		    ttm->num_pages);
  		error =3D ENOMEM;
  		goto fail0;
  	}
 @@ -274,8 +276,19 @@ int ttm_dma_tt_init(struct ttm_dma_tt *t
  	error =3D bus_dmamap_create(ttm->bdev->dmat,
  	    (ttm->num_pages * PAGE_SIZE), ttm->num_pages, PAGE_SIZE, 0,
  	    BUS_DMA_WAITOK, &ttm_dma->dma_address);
 -	if (error)
 +	if (error) {
 +		printf("%s:"
 +		    " bus_dmamap_create(dmat=3D%p, size=3D%#zx,"
 +		    " nsegs=3D%zu, maxsegsz=3D%zu,"
 +		    " boundary=3D0, flags=3DBUS_DMA_WAITOK) failed: %d\n",
 +		    __func__,
 +		    ttm->bdev->dmat,
 +		    (bus_size_t)(ttm->num_pages * PAGE_SIZE),
 +		    (bus_size_t)ttm->num_pages,
 +		    (bus_size_t)PAGE_SIZE,
 +		    error);
  		goto fail1;
 +	}
 =20
  	return 0;
 =20

 --=_nBUd1T/x7U6TEjns63jM9dlmbnhRRTFP--

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: Taylor R Campbell <riastradh@NetBSD.org>
Cc: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Wed, 2 Aug 2017 15:47:55 +0200

 On 08/02/17 15:30, Taylor R Campbell wrote:
 >> I can reproduce this effect by live-resizing a PDF (fairly simple, it's
 >> a mainboard manual) in mupdf.
 > Can you use dtrace?  Can you print the arguments to bus_dmamap_create
 > while you trigger the failure?

 Not without hand-holding, no.

 > If not, can you try the attached patch?

 Kernel is building as we speak.

 Cheerio,
 hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org, gnats-admin@netbsd.org
Subject: Re: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Thu, 3 Aug 2017 16:16:27 +0200

 On 08/02/17 15:50, Hauke Fath wrote:
 >   > If not, can you try the attached patch?
 >   
 >   Kernel is building as we speak.

 Took a while - put debug code in place, and the problem is gone.

 Aug  3 14:42:21 Gstoder /netbsd: ttm_dma_tt_init: 
 bus_dmamap_create(dmat=0xc1114200, size=0x40000, nsegs=64, 
 maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 Aug  3 14:42:21 Gstoder /netbsd: DRM error in radeon_gem_object_create: 
 Failed to allocate GEM object (262144, 2, 4096, -12)
 Aug  3 14:43:32 Gstoder /netbsd: ttm_dma_tt_init: 
 bus_dmamap_create(dmat=0xc1114200, size=0x40000, nsegs=64, 
 maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 Aug  3 14:43:32 Gstoder /netbsd: DRM error in radeon_gem_object_create: 
 Failed to allocate GEM object (262144, 2, 4096, -12)
 Aug  3 14:53:56 Gstoder /netbsd: ttm_dma_tt_init: 
 bus_dmamap_create(dmat=0xc1114200, size=0xe10000, nsegs=3600, 
 maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 Aug  3 14:53:56 Gstoder /netbsd: Buffer eviction failed
 Aug  3 14:53:56 Gstoder /netbsd: radeon0: error: 0xccc87004 pin failed
 Aug  3 14:53:56 Gstoder /netbsd: DRM error in radeon_crtc_page_flip: 
 failed to pin new rbo buffer before flip
 Aug  3 14:53:57 Gstoder /netbsd: ttm_dma_tt_init: 
 bus_dmamap_create(dmat=0xc1114200, size=0xe10000, nsegs=3600, 
 maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 Aug  3 14:53:57 Gstoder /netbsd: Buffer eviction failed

 [etc. ad nauseam, quietly, and then with visible artifacts:]

 ttm_dma_tt_init: bus_dmamap_create(dmat=0xc1114200, size=0x40000, 
 nsegs=64, maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (262144, 2, 4096, -12)
 ttm_dma_tt_init: bus_dmamap_create(dmat=0xc1114200, size=0xd52000, 
 nsegs=3410, maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (13967360, 2, 4096, -12)
 ttm_dma_tt_init: bus_dmamap_create(dmat=0xc1114200, size=0x781000, 
 nsegs=1921, maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (7868416, 2, 4096, -12)
 ttm_dma_tt_init: bus_dmamap_create(dmat=0xc1114200, size=0x297000, 
 nsegs=663, maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (2715648, 2, 4096, -12)
 ttm_dma_tt_init: bus_dmamap_create(dmat=0xc1114200, size=0xb03000, 
 nsegs=2819, maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (11546624, 2, 4096, -12)
 ttm_dma_tt_init: bus_dmamap_create(dmat=0xc1114200, size=0xb7e000, 
 nsegs=2942, maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 DRM error in radeon_gem_object_create: Failed to allocate GEM object 
 (12050432, 2, 4096, -12)

 HTH,
 hauke

From: Taylor R Campbell <riastradh@NetBSD.org>
To: Hauke Fath <hf@spg.tu-darmstadt.de>
Cc: gnats-bugs@NetBSD.org, gnats-admin@netbsd.org
Subject: Re: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Thu, 3 Aug 2017 15:10:23 +0000

 > Date: Thu, 3 Aug 2017 16:16:27 +0200
 > From: Hauke Fath <hf@spg.tu-darmstadt.de>
 > 
 > Took a while - put debug code in place, and the problem is gone.
 > 
 > Aug  3 14:42:21 Gstoder /netbsd: ttm_dma_tt_init: 
 > bus_dmamap_create(dmat=0xc1114200, size=0x40000, nsegs=64, 
 > maxsegsz=4096, boundary=0, flags=BUS_DMA_WAITOK) failed: 12
 > Aug  3 14:42:21 Gstoder /netbsd: DRM error in radeon_gem_object_create: 
 > Failed to allocate GEM object (262144, 2, 4096, -12)

 Interesting.  Not clear to me why bus_dmamap_create(BUS_DMA_WAITOK)
 could fail like this.  Will need to dive into x86/bus_dma.c to make
 some hypotheses.

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: Taylor R Campbell <riastradh@NetBSD.org>
Cc: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Mon, 7 Aug 2017 13:03:20 +0200

 On 08/03/17 17:10, Taylor R Campbell wrote:
 > Interesting.  Not clear to me why bus_dmamap_create(BUS_DMA_WAITOK)
 > could fail like this.  Will need to dive into x86/bus_dma.c to make
 > some hypotheses.

 After fancy screen artifacts, the screen went black, and I had to kill 
 the session.

 Looking into Xorg.0.log, I see lots of

 [412018.872] (WW) RADEON(0): Page flip failed: Invalid argument
 [412018.921] (WW) RADEON(0): flip queue failed: Invalid argument

 and xdm.log talked of failed memory allocations (there is no backup 
 file, so I don't have the exact wording).

 Cheerio,
 hauke

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org, riastradh@NetBSD.org, gnats-admin@NetBSD.org
Cc: 
Subject: Re: PR/52438 CVS commit: src/sys/external/bsd/drm2/dist/drm/ttm
Date: Wed, 9 Aug 2017 10:42:02 +0200

 On 08/07/17 13:10, Hauke Fath wrote:
 > xdm.log talked of failed memory allocations

 A sample log is in

 <https://www2.nt.tu-darmstadt.de/~hf/netbsd/pr-52348/pr-52348_xdm.log.gz>

 and a screenshot in

 <https://www2.nt.tu-darmstadt.de/~hf/netbsd/pr-52348/pr-52348.jpg>

 (it gets progressively worsw).

 Cheerio,
 hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52438 CVS commit: [netbsd-8] src/sys/external/bsd/drm2
Date: Sat, 1 Sep 2018 06:34:01 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sat Sep  1 06:34:00 UTC 2018

 Modified Files:
 	src/sys/external/bsd/drm2/dist/drm/i915 [netbsd-8]: i915_reg.h
 	    intel_sdvo.c
 	src/sys/external/bsd/drm2/dist/drm/ttm [netbsd-8]: ttm_tt.c
 	src/sys/external/bsd/drm2/drm [netbsd-8]: drm_scatter.c
 	src/sys/external/bsd/drm2/linux [netbsd-8]: linux_idr.c
 	    linux_ww_mutex.c

 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #1003):

 	sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c: revision 1.8
 	sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c: revision 1.10
 	sys/external/bsd/drm2/drm/drm_scatter.c: revision 1.4
 	sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.2
 	sys/external/bsd/drm2/linux/linux_ww_mutex.c: revision 1.3
 	sys/external/bsd/drm2/linux/linux_ww_mutex.c: revision 1.4
 	sys/external/bsd/drm2/linux/linux_idr.c: revision 1.6

 Pull in upstream commit:
 Author: Ville Syrj=E4l=E4 <ville.syrjala%linux.intel.com@localhost>
 Date:   Mon Jun 9 16:20:46 2014 +0300
     drm/i915: Avoid div-by-zero when pixel_multiplier is zero
 On certain platforms pixel_multiplier is read out in
 .get_pipe_config(), but it also gets used to calculate the
 pixel clock in intel_sdvo_get_config(). If the pipe is disabled
 but some SDVO outputs are active, we may end up dividing by zero
 in intel_sdvo_get_config().
 Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3D76520
 Tweak slightly sketchy logic in linux_idr.
 1. idr_preload can fail if you don't set __GFP_WAIT.
 2. If idr_preload fails, it is wrong for idr_alloc to assert.
 3. There is no way for idr_alloc to know what flags idr_preload got.
 Probably won't *fix* any bugs, but if there is a bug with a missing
 __GFP_WAIT, then we will learn about a trifle sooner.
 Fix error branch in ttm_dma_tt_init to avoid double-free.
 Should fix symptom of PR kern/52438, but who knows what underlying
 problem causes us to reach the error branch in the first place.
 Fix lockdebug_locked annotations.
 When thread A grants ownership to thread B waiting with a context,
 thread B needs to assert lockdebug_locked; otherwise, when it
 releases, lockdebug_unlocked thinks it's releasing an unlocked
 ww_mutex.

 Fixes LOCKDEBUG failure with radeon noticed by martin@.

 more const

 XXX: add a NULL init to avoid a GCC 6 maybe uninit warning.

 Remove UB from definition of symbols in i915_reg.h
 Kernel Undefined Behavior Sanitizer enforces more warnings in build time.
 This makes the build fatal in the drm/i915 code in:
  - intel_ddi_put_crtc_pll(),
  - intel_ddi_clock_get(),
  - intel_ddi_pll_enable(),
  - intel_ddi_setup_hw_pll_state().
 The error message in all the cases says:
   error: case label does not reduce to an integer constant
 Set the type of the value left shifted to unsigned.
 This change is required to build NetBSD/amd64 with KUBSan.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.2 -r1.1.1.2.22.1 \
     src/sys/external/bsd/drm2/dist/drm/i915/i915_reg.h
 cvs rdiff -u -r1.7 -r1.7.10.1 \
     src/sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c
 cvs rdiff -u -r1.9 -r1.9.6.1 src/sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c
 cvs rdiff -u -r1.3 -r1.3.22.1 src/sys/external/bsd/drm2/drm/drm_scatter.c
 cvs rdiff -u -r1.5 -r1.5.10.1 src/sys/external/bsd/drm2/linux/linux_idr.c
 cvs rdiff -u -r1.2 -r1.2.10.1 \
     src/sys/external/bsd/drm2/linux/linux_ww_mutex.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->feedback
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Sun, 20 Aug 2023 06:21:19 +0000
State-Changed-Why:
Candidate fix was committed, plus a number of other ww_mutex fixes
recently, and there've been two drm updates since this PR.  Any chance
you could test again with a newer kernel and see if it reproduces?


From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, riastradh@NetBSD.org
Subject: Re: kern/52438 (radeon related panic)
Date: Sun, 20 Aug 2023 13:28:40 +0200

 On Sun, 20 Aug 2023 06:21:19 +0000 (UTC), riastradh@NetBSD.org wrote:
 > 52438
 >=20
 > Candidate fix was committed, plus a number of other ww_mutex fixes
 > recently, and there've been two drm updates since this PR.  Any chance
 > you could test again with a newer kernel and see if it reproduces?

 *chuckle*

 I am three machines away from that hardware (being the sysadmin, I have=20
 to make do with what the colleagues have grown out of), and the box has=20
 gone to the scrapper a while ago.

 If you are confident the issue has been fixed, just close the PR.

 Cheerio,
 Hauke

 --=20
      The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email            Institut f=FCr Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
      Respect for open standards              Ruf +49-6151-16-21344

State-Changed-From-To: feedback->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Sun, 20 Aug 2023 12:09:43 +0000
State-Changed-Why:
Not confident it's been fixed, but confident we're not going to be able
to do anything about it!  If the same issue turns up again, well, we can
open a new PR and try to diagnose it with newer drm.
Thanks!


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