From owner-freebsd-x11@freebsd.org Fri Apr 26 23:48:06 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 9093E15A199B for ; Fri, 26 Apr 2019 23:48:06 +0000 (UTC) (envelope-from tychon@freebsd.org) 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 17C038C740 for ; Fri, 26 Apr 2019 23:48:06 +0000 (UTC) (envelope-from tychon@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C8E1315A199A; Fri, 26 Apr 2019 23:48:05 +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 9320A15A1999 for ; Fri, 26 Apr 2019 23:48:05 +0000 (UTC) (envelope-from tychon@freebsd.org) Received: from pb-smtp1.pobox.com (pb-smtp1.pobox.com [64.147.108.70]) (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 2F6AE8C73F for ; Fri, 26 Apr 2019 23:48:05 +0000 (UTC) (envelope-from tychon@freebsd.org) Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 6B52813C3EC; Fri, 26 Apr 2019 19:48:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=content-type :mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=sasl; bh= 7XwJ61K+s49bsjF1D8toQfnivys=; b=ZrHzs3efRFMMN9c+LOBDhX71S0Flck7G dwvtjA8h5vjV8KwuAo3LaiBMyhe6IGSVKTBxzgqyjz3A0iBHlvyh4GMwtyqM362Z qZ0khjMOSLON42f4loHVpO49aQxp9Aqc1j2tU1PWbTfMLg60IWbdq8sALc5oWBee P6RLZrBr3ag= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 62E3A13C3EB; Fri, 26 Apr 2019 19:48:04 -0400 (EDT) Received: from [10.0.1.195] (unknown [146.115.68.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id C45D013C3E9; Fri, 26 Apr 2019 19:48:03 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: drm-current-kmod-4.16.g20190424 hangs From: Tycho Nightingale In-Reply-To: <88157456-fe57-997a-14f6-9d1b01c2dbc9@alvermark.net> Date: Fri, 26 Apr 2019 19:48:03 -0400 Cc: Johannes Lundberg , x11@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <5713985b-e97f-c7f2-2592-47a17baf8095@alvermark.net> <88157456-fe57-997a-14f6-9d1b01c2dbc9@alvermark.net> To: Jakob Alvermark X-Mailer: Apple Mail (2.3445.9.1) X-Pobox-Relay-ID: BB960E1A-687D-11E9-91A4-1646B3964D18-09779102!pb-smtp1.pobox.com X-Rspamd-Queue-Id: 2F6AE8C73F X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-7.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.996,0] 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 23:48:06 -0000 Hi, There=E2=80=99s not much of a clue in your boot message output. I = understand a recompile is necessary as the underlying linuxkpi data = structure changed; likely breaking module interfaces. This leaves me a = bit concerned about mixing and matching versions of port and kernel. If = you are trying the latest binaries of both compiled with the same = headers and seeing: device_attach: drmn0 attach returned 19 It=E2=80=99s that ENODEV where I would start. If VT-d is off the recent changes to add bus_dma(9) to LinuxKPI should = be essentially a no-op. Actually ensuring that VT-d is disabled in your = BIOS as it=E2=80=99s been repaired that the Intel GPU and DMAR are = likely incompatible is probably the first thing to try. Tycho > On Apr 26, 2019, at 11:13 AM, Jakob Alvermark = wrote: >=20 > Sure: >=20 > ---<>--- > 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=3D"GenuineIntel" Id=3D0x30678 Family=3D0x6 Model=3D0x37 = Stepping=3D8 > = Features=3D0xbfebfbff > = Features2=3D0x41d8e3bf > AMD Features=3D0x28100800 > AMD Features2=3D0x101 > Structured Extended Features=3D0x2282 > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > TSC: P-state invariant, performance statistics > real memory =3D 8589934592 (8192 MB) > avail memory =3D 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=3D0x3<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=3D11 height=3D768 width=3D1366 depth=3D32 > cmsize=3D16 size=3D4227072 > pbase=3D0x80000000 vbase=3D0xfffff80080000000 > name=3Ddrmn0 flags=3D0x0 stride=3D5504 bpp=3D32 > cmap[0]=3D0 cmap[1]=3D7f0000 cmap[2]=3D7f00 cmap[3]=3Dc4a000 > 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=3D0x12a80601 > 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. >=20 > On 2019-04-26 16:48, Johannes Lundberg wrote: >> Hi >>=20 >> Hmm, this is not good. The only thing I can think of is the dma = changes >> to base linuxkpi... >>=20 >> Can you share a dmesg output from boot to crash, or at least to after >> driver is loaded? >>=20 >> Tycho, any ideas? >>=20 >>=20 >> On 4/26/19 5:00 AM, Jakob Alvermark wrote: >>> Hi, >>>=20 >>>=20 >>> When I upgraded -current to r346730 drm-current-kmod-4.16.g20190323 >>> wouldn't load, "device_attach: drmn0 attach returned 19" >>>=20 >>> So I upgraded drm-current-kmod to 4.16.g20190424. >>>=20 >>> It loads fine, but shortly after starting Xorg the screen freezes. >>>=20 >>> The only way out is pressing the power button, it shuts down = cleanly. >>>=20 >>> /var/log/messages shows this: >>>=20 >>> 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: . >>>=20 >>> Tried once more, same thing happened: >>>=20 >>> 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: . >>>=20 >>> Reverting back to drm-current-kmod-4.16.g20190323 and -current to >>> r346593 (yay boot environments!) it is stable. >>>=20 >>> This is on a laptop with CPU: Intel(R) Pentium(R) CPU N3540 @ >>> 2.16GHz (2166.72-MHz K8-class CPU) >>> Baytrail graphics. >>>=20 >>>=20 >>> Jakob >>>=20 >>> _______________________________________________ >>> 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"