From owner-freebsd-x11@freebsd.org Fri Apr 26 15:14:28 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A2D81596981 for ; Fri, 26 Apr 2019 15:14:28 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 37EA870B84 for ; Fri, 26 Apr 2019 15:14:27 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: by mailman.ysv.freebsd.org (Postfix) id EC6E8159697B; Fri, 26 Apr 2019 15:14:26 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9CFB2159697A for ; Fri, 26 Apr 2019 15:14:26 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from out.alvermark.net (out.alvermark.net [185.34.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 299EE70B7F; Fri, 26 Apr 2019 15:14:25 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from c-93a3e555.06-431-73746f70.bbcust.telenor.se ([85.229.163.147] helo=mail.alvermark.net) by out.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1hK2YR-000DO8-3w; Fri, 26 Apr 2019 17:14:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alvermark.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VJ5E3qQbPcITHjhnZc5Mt8g+IzJvOIpOSO5k8m3zsSI=; b=ms+ML/99zSa15mPiWVXVCiIE+D HLlgU+aDYGGO8g411E3fCnlhPUNglA4z/iDb2VYz0LZ7qiuBBiFg+IaPqmithlQSH7pXHlkxzxvSJ OAtqm5fg94scjbY4JMSHoGJwfPayobA9FHABo9uisCfkm5uC7cIG/Ye3B3dzVlb00/w46av3fyRLL 8XDvPD/LtOG40bqSO6QPGE/yPXXZDc3grmnn7+qJ5nMtEZH48jA7fAAgSPpLbeRVj0NUB7isS7bvX lvLzrfIMzVZJpGKzpXQgVIJQwCk3a+eyOCwv8lsYjUCs9oLJEshpWQBH2p0wU+konxhi2NY4CqjNZ +UG7n74Q==; Received: from [192.168.67.37] by mail.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1hK2Y1-000FPG-CM; Fri, 26 Apr 2019 17:13:57 +0200 Subject: Re: drm-current-kmod-4.16.g20190424 hangs To: Johannes Lundberg , x11@freebsd.org Cc: Tycho Nightingale References: <5713985b-e97f-c7f2-2592-47a17baf8095@alvermark.net> From: Jakob Alvermark Message-ID: <88157456-fe57-997a-14f6-9d1b01c2dbc9@alvermark.net> Date: Fri, 26 Apr 2019 17:13:57 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 299EE70B7F X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.992,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2019 15:14:28 -0000 Sure: ---<>--- Copyright (c) 1992-2019 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994     The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-CURRENT #194 r346736M: Fri Apr 26 12:26:20 CEST 2019     root@flyer:/usr/obj/usr/src/amd64.amd64/sys/FLYER amd64 FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0) VT(efifb): resolution 1366x768 CPU: Intel(R) Pentium(R) CPU  N3540  @ 2.16GHz (2166.72-MHz K8-class CPU)   Origin="GenuineIntel"  Id=0x30678  Family=0x6  Model=0x37 Stepping=8 Features=0xbfebfbff Features2=0x41d8e3bf   AMD Features=0x28100800   AMD Features2=0x101   Structured Extended Features=0x2282   VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID   TSC: P-state invariant, performance statistics real memory  = 8589934592 (8192 MB) avail memory = 8120422400 (7744 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: WARNING: L1 data cache covers fewer APIC IDs than a core (0 < 1) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) __stack_chk_init: WARNING: Initializing stack protection with non-random cookies! __stack_chk_init: WARNING: This severely limits the benefit of -fstack-protector! ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-86 on motherboard Launching APs: 2 3 1 Timecounter "TSC-low" frequency 1083359641 Hz quality 1000 Cuse v0.1.36 @ /dev/cuse random: entropy device external interface kbd1 at kbdmux0 module_register_init: MOD_LOAD (vesa, 0xffffffff81150570, 0) error 19 random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" 000.000049 [4254] netmap_init               netmap: loaded module [ath_hal] loaded nexus0 efirtc0: on motherboard efirtc0: registered as a time-of-day clock, resolution 1.000000s cryptosoft0: on motherboard acpi0: on motherboard acpi0: Power Button (fixed) unknown: I/O range not supported cpu0: on acpi0 atrtc0: port 0x70-0x77 on acpi0 atrtc0: Warning: Couldn't map I/O. atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 hpet0: iomem 0xfed00000-0xfed003ff irq 8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pcib0: Length mismatch for 3 range: 109fffff vs 10a00000 pci0: on pcib0 vgapci0: port 0x2050-0x2057 mem 0x90000000-0x903fffff,0x80000000-0x8fffffff at device 2.0 on pci0 vgapci0: Boot video device ahci0: port 0x2048-0x204f,0x205c-0x205f,0x2040-0x2047,0x2058-0x205b,0x2020-0x203f mem 0x9091e000-0x9091e7ff at device 19.0 on pci0 ahci0: AHCI v1.30 with 2 3Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 xhci0: mem 0x90900000-0x9090ffff at device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA xhci0: Port routing mask set to 0xffffffff usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 pci0: at device 26.0 (no driver attached) hdac0: mem 0x90910000-0x90913fff at device 27.0 on pci0 pcib1: at device 28.0 on pci0 pcib1: [GIANT-LOCKED] pcib2: at device 28.1 on pci0 pcib2: [GIANT-LOCKED] pci1: on pcib2 iwn0: mem 0x90600000-0x90601fff at device 0.0 on pci1 arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled. pcib3: at device 28.2 on pci0 pcib3: [GIANT-LOCKED] pci2: on pcib3 re0: port 0x1000-0x10ff mem 0x90500000-0x90500fff,0x90400000-0x90403fff at device 0.0 on pci2 re0: Using 1 MSI-X message re0: ASPM disabled re0: Chip rev. 0x4c000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Using defaults for TSO: 65518/35/2048 re0: Ethernet address: c4:54:44:d6:95:39 re0: netmap queues/slots: TX 1/256, RX 1/256 isab0: at device 31.0 on pci0 isa0: on isab0 acpi_button0: on acpi0 acpi_button1: on acpi0 gpio0: iomem 0xfed0c000-0xfed0cfff irq 49 on acpi0 gpiobus0: on gpio0 gpioc0: on gpio0 gpio1: iomem 0xfed0d000-0xfed0dfff irq 48 on acpi0 gpiobus1: on gpio1 gpioc1: on gpio1 gpio2: iomem 0xfed0e000-0xfed0efff irq 50 on acpi0 gpiobus2: on gpio2 gpioc2: on gpio2 sdhci_acpi0: iomem 0x90a02000-0x90a02fff irq 44 on acpi0 mmc0: on sdhci_acpi0 sdhci_acpi1: iomem 0x90a00000-0x90a00fff irq 47 on acpi0 ig4iic_acpi0: iomem 0x90a07000-0x90a07fff irq 32 on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 acpi_lid0: on acpi0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Synaptics Touchpad, device ID 0 uart0: <16550 or compatible> at port 0x3f8 irq 4 flags 0x10 on isa0 coretemp0: on cpu0 est0: on cpu0 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 hdaa0: Coef 0x06 val 0x2104 -> 0x2100 hdaa0: Coef 0x45 val 0xc429 -> 0xd429 hdaa0: Coef 0x1b val 0x080b -> 0x0c2b hdaa0: Coef 0x32 val 0x4ea3 -> 0x4ea3 pcm0: at nid 20,33 and 18 on hdaa0 hdacc1: at cad 2 on hdac0 hdaa1: at nid 1 on hdacc1 pcm1: at nid 4 on hdaa1 ugen0.1: <0x8086 XHCI root HUB> at usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-2 ATA SATA 3.x device ada0: Serial Number S1MBNSAFA22012 ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 122104MB (250069680 512 byte sectors) ada0: quirks=0x3<4K,NCQ_TRIM_BROKEN> mmc0: No compatible cards found on bus iicbus0: on ig4iic_acpi0 iicsmb0: on iicbus0 smbus0: on iicsmb0 Trying to mount root from zfs:flyer2/ROOT/default []... Root mount waiting for: usbus0 uhub0: 7 ports with 7 removable, self powered Root mount waiting for: usbus0 ugen0.2: at usbus0 uhub1 on uhub0 uhub1: on usbus0 uhub1: 4 ports with 3 removable, self powered Root mount waiting for: usbus0 ugen0.3: at usbus0 Root mount waiting for: usbus0 ugen0.4: at usbus0 ugen0.5: at usbus0 random: unblocking device. drmn0: on vgapci0 vgapci0: child drmn0 requested pci_enable_io [drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19). Successfully added WC MTRR for [0x80000000-0x8fffffff]: 0; [drm] Got stolen memory base 0x7b000000, size 0x4000000 [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] Driver supports precise vblank timestamp query. [drm] Connector VGA-1: get mode from tunables: [drm]   - kern.vt.fb.modes.VGA-1 [drm]   - kern.vt.fb.default_mode [drm] Connector DP-1: get mode from tunables: [drm]   - kern.vt.fb.modes.DP-1 [drm]   - kern.vt.fb.default_mode [drm] Connector HDMI-A-1: get mode from tunables: [drm]   - kern.vt.fb.modes.HDMI-A-1 [drm]   - kern.vt.fb.default_mode [drm] Connector eDP-1: get mode from tunables: [drm]   - kern.vt.fb.modes.eDP-1 [drm]   - kern.vt.fb.default_mode [drm] Initialized i915 1.6.0 20171222 for drmn0 on minor 0 ichwd0: on isa0 VT: Replacing driver "efifb" with new "fb". start FB_INFO: type=11 height=768 width=1366 depth=32 cmsize=16 size=4227072 pbase=0x80000000 vbase=0xfffff80080000000 name=drmn0 flags=0x0 stride=5504 bpp=32 cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000 end FB_INFO drmn0: fb0: inteldrmfb frame buffer device wlan0: Ethernet address: 80:00:0b:5a:cd:23 lo0: link state changed to UP iwn0: iwn_read_firmware: ucode rev=0x12a80601 re0: link state changed to DOWN wlan0: link state changed to UP ubt0 on uhub1 ubt0: on usbus0 rum0 on uhub1 rum0: on usbus0 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 WARNING: attempt to domain_add(bluetooth) after domainfinalize() WARNING: attempt to domain_add(netgraph) after domainfinalize() ubt0: ubt_bulk_read_callback:979: bulk-in transfer failed: USB_ERR_STALLED wlan1: Ethernet address: 00:18:f8:34:d2:8d wlan1: link state changed to UP . Security policy loaded: MAC/ntpd (mac_ntpd) . [drm] GPU HANG: ecode 7:0:0x86f2fffd, in Xorg [100491], reason: Hang on rcs0, action: reset drmn0: Resetting chip after gpu hang drmn0: i915_reset_device timed out, cancelling all in-flight rendering. On 2019-04-26 16:48, Johannes Lundberg wrote: > Hi > > Hmm, this is not good. The only thing I can think of is the dma changes > to base linuxkpi... > > Can you share a dmesg output from boot to crash, or at least to after > driver is loaded? > > Tycho, any ideas? > > > On 4/26/19 5:00 AM, Jakob Alvermark wrote: >> Hi, >> >> >> When I upgraded -current to r346730 drm-current-kmod-4.16.g20190323 >> wouldn't load, "device_attach: drmn0 attach returned 19" >> >> So I upgraded drm-current-kmod to 4.16.g20190424. >> >> It loads fine, but shortly after starting Xorg the screen freezes. >> >> The only way out is pressing the power button, it shuts down cleanly. >> >> /var/log/messages shows this: >> >> kernel: [drm] GPU HANG: ecode 7:0:0x60ac6ee9, in Xorg [100385], >> reason: Hang on rcs0, action: reset >> kernel: drmn0: Resetting chip after gpu hang >> syslogd: last message repeated 1 times >> kernel: drmn0: i915_reset_device timed out, cancelling all in-flight >> rendering. >> kernel: . >> >> Tried once more, same thing happened: >> >> kernel: [drm] GPU HANG: ecode 7:0:0x86f2fffd, in Xorg [100491], >> reason: Hang on rcs0, action: reset >> kernel: drmn0: Resetting chip after gpu hang >> syslogd: last message repeated 1 times >> kernel: drmn0: i915_reset_device timed out, cancelling all in-flight >> rendering. >> kernel: . >> >> Reverting back to drm-current-kmod-4.16.g20190323 and -current to >> r346593 (yay boot environments!) it is stable. >> >> This is on a laptop with CPU: Intel(R) Pentium(R) CPU  N3540  @ >> 2.16GHz (2166.72-MHz K8-class CPU) >> Baytrail graphics. >> >> >> Jakob >> >> _______________________________________________ >> freebsd-x11@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-x11 >> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"