From owner-freebsd-x11@freebsd.org Mon Sep 19 14:16:23 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC735BE1300 for ; Mon, 19 Sep 2016 14:16:23 +0000 (UTC) (envelope-from stachecki.tyler@gmail.com) Received: from mail-yw0-x231.google.com (mail-yw0-x231.google.com [IPv6:2607:f8b0:4002:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A2991183 for ; Mon, 19 Sep 2016 14:16:23 +0000 (UTC) (envelope-from stachecki.tyler@gmail.com) Received: by mail-yw0-x231.google.com with SMTP id g192so150297507ywh.1 for ; Mon, 19 Sep 2016 07:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=IG8+EqpNg9aIr3fA6GQzrwV2W2GNSc3tELJZRGjfHwk=; b=QsX1lSY4b0nBAw0T0kcDMBQ2uwQwFP6US8UVq7MGrUxPsKh68JwMhFwJsaQdKEuwIS iiUZq0yMuuzh3kHb3T3xCNu0E4l1QEy5yeByYE1M0Qnp95zboH47Q/76OX/33xcSSQoc R/2TS9UaWvkt0WvIqWbefCZ89A4wNhNQdOHxfG3ph/kIrtcv+fmwZTJIr8HwzxNUmY3I 7VuNGnS8Phgd08qePedfCR5D+vmQLZWikyK28xkpKviQxWZf/Bye1B2y5DiXDmKB+FLw fUhaosqbNNcSaI2QlYQI5wuYetWHjGK2LW5k6fU0xmr4poBcv+3gYgx4rY+m6oYANXVg Hh4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=IG8+EqpNg9aIr3fA6GQzrwV2W2GNSc3tELJZRGjfHwk=; b=NRfAqdffhLk97l4m5WY08TFz1tv47/fI5nz11JF0HvyUS7DB61svVhcN5NcqgCPl9R m3BKNCc8dmGLHiw94BlXjpJIDX/lb10phrXetUTSF9eJTtHtKFHhnyWosMGD1xWxfBI2 4MYKFxT3Ohp0N++xXEE9myplAr/m2GKEQSaHJJbs4o+O/Ts6JpJjUbBUaml2hLrlsNCY Pk7bVJxYhV4inQS1w3c8g4n9Z/NLfKnAEaVJZwJpiLWJzBCUk608ZMixX4ZFajmBVnI5 r1z8KOZ7Fo9W8dA6Ny9i+TWqq+vMfxCb+f8uGeMevFqGEB2MFDKSGrOu5A5c4pMUfBKH CHTQ== X-Gm-Message-State: AE9vXwM+rE+gzJY+tyPbjHqGa4aoDpD5CY14eU3007+7OPuQwcmXBf6mFjXKcx2z3Dq4vSfLxTypU/VnS+pIeA== X-Received: by 10.129.161.19 with SMTP id y19mr16683961ywg.347.1474294582772; Mon, 19 Sep 2016 07:16:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.50.3 with HTTP; Mon, 19 Sep 2016 07:16:22 -0700 (PDT) In-Reply-To: References: From: Tyler Stachecki Date: Mon, 19 Sep 2016 10:16:22 -0400 Message-ID: Subject: Re: Haswell GPU and/or display issues? To: Kevin Oberman Cc: "freebsd-x11@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2016 14:16:24 -0000 On Sun, Sep 18, 2016 at 7:33 PM, Kevin Oberman wrote: > On Sun, Sep 18, 2016 at 6:34 AM, Tyler Stachecki > wrote: >> >> Hi, >> >> I am currently giving FreeBSD 11 RC3 a test drive and can't get X11 to >> play ball. >> >> At first, Xorg reported that it couldn't find a display. I found that >> only Haswell GT1 and GT2 PCI IDs are present, so I added a PCI ID >> entry for my GPU (Haswell GT3). I assume it's supported and just >> missing entries? >> >> After adding PCI IDs for my GPU (Haswell GT3 mobile/Iris 5100), I was >> able to get the kernel to get drm to start spitting out some output. >> However, when running 'X -configure' or 'X -config', my display blacks >> out and becomes unresponsive. The display remains unresponsive even >> when I try to drop back to a VTY with ctrl+alt+fX. >> >> I noticed the bug in the wiki regarding resolutions above Full HD and >> have tried lowering my resolution to 1080p or lower to no avail. >> >> Any suggestions? >> Tyler >> >> [...] > > >> >> Xorg log: >> [ 23.410] >> X.Org X Server 1.17.4 >> Release Date: 2015-10-28 >> [ 23.410] X Protocol Version 11, Revision 0 >> [ 23.410] Build Operating System: FreeBSD 11.0-RC2 amd64 >> [ 23.410] Current Operating System: FreeBSD green 11.0-RC3 FreeBSD >> 11.0-RC3 #1 r305893: Sun Sep 18 12:22:45 EDT 2016 >> root@green:/usr/obj/usr/src/sys/GENERIC amd64 >> [ 23.410] Build Date: 13 September 2016 07:19:21PM >> [ 23.410] >> [ 23.410] Current version of pixman: 0.34.0 >> [ 23.410] Before reporting problems, check http://wiki.x.org >> to make sure that you have the latest version. >> [ 23.410] Markers: (--) probed, (**) from config file, (==) default >> setting, >> (++) from command line, (!!) notice, (II) informational, >> (WW) warning, (EE) error, (NI) not implemented, (??) unknown. >> [ 23.410] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Sep 18 >> 12:35:10 2016 > > >> >> [...] > > >> >> [ 23.415] (==) ModulePath set to "/usr/local/lib/xorg/modules" >> [ 23.415] (II) The server relies on devd to provide the list of >> input devices. >> If no devices become available, reconfigure devd or disable >> AutoAddDevices. >> [...] > > >> >> [ 23.431] (II) LoadModule: "vesa" >> [ 23.431] (WW) Warning, couldn't open module vesa >> [ 23.431] (II) UnloadModule: "vesa" >> [ 23.431] (II) Unloading vesa >> [ 23.431] (EE) Failed to load module "vesa" (module does not exist, 0) >> [ 23.431] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets: >> i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, >> 915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, >> Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, >> GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics, >> HD Graphics 2000, HD Graphics 3000, HD Graphics 2500, >> HD Graphics 4000, HD Graphics P4000, HD Graphics 4600, >> HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100, >> HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200 > > >> >> [...] > > >> >> [ 25.550] (II) intel(0): EDID for output HDMI1 >> [ 25.559] (II) intel(0): EDID for output DP1 >> [ 25.564] (II) intel(0): EDID for output HDMI2 >> [ 25.573] (II) intel(0): EDID for output DP2 >> [ 25.573] (II) intel(0): Output eDP1 connected >> [ 25.573] (II) intel(0): Output HDMI1 disconnected >> [ 25.573] (II) intel(0): Output DP1 disconnected >> [ 25.573] (II) intel(0): Output HDMI2 disconnected >> [ 25.573] (II) intel(0): Output DP2 disconnected >> [ 25.573] (II) intel(0): Using exact sizes for initial modes >> [ 25.573] (II) intel(0): Output eDP1 using initial mode 2560x1440 >> [ 25.573] (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) >> unless otherwise stated. >> [ 25.573] (II) intel(0): Kernel page flipping support detected, >> enabling >> [ 25.573] (==) intel(0): DPI set to (96, 96) >> [ 25.573] (II) Loading sub module "fb" >> [ 25.573] (II) LoadModule: "fb" >> [ 25.573] (II) Loading /usr/local/lib/xorg/modules/libfb.so > > >> >> [...] > > >> >> [ 27.554] (**) sysmouse: (accel) keeping acceleration scheme 1 >> >> [ 27.554] (**) sysmouse: (accel) acceleration profile 0 >> [ 27.554] (**) sysmouse: (accel) acceleration factor: 2.000 >> [ 27.554] (**) sysmouse: (accel) acceleration threshold: 4 >> [ 27.554] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0 >> [ 27.554] (II) sysmouse: SetupAuto: protocol is SysMouse >> [ 27.605] (II) config/devd: adding input device Mouse (/dev/psm0) >> [ 27.605] (II) Using input driver 'mouse' for 'Mouse' >> [ 27.605] (**) Mouse: always reports core events >> [ 27.605] (**) Option "Device" "/dev/psm0" >> [ 27.605] (==) Mouse: Protocol: "Auto" >> [ 27.605] (**) Mouse: always reports core events >> [ 27.656] (==) Mouse: Emulate3Buttons, Emulate3Timeout: 50 >> [ 27.656] (**) Mouse: ZAxisMapping: buttons 4 and 5 >> [ 27.656] (**) Mouse: Buttons: 5 >> [ 27.656] (**) Option "config_info" "devd:psm0" >> [ 27.656] (II) XINPUT: Adding extended input device "Mouse" (type: >> MOUSE, id 8) >> [ 27.656] (**) Mouse: (accel) keeping acceleration scheme 1 >> [ 27.656] (**) Mouse: (accel) acceleration profile 0 >> [ 27.656] (**) Mouse: (accel) acceleration factor: 2.000 >> [ 27.656] (**) Mouse: (accel) acceleration threshold: 4 >> [ 27.672] (II) Mouse: SetupAuto: hw.iftype is 3, hw.model is 0 >> [ 27.672] (II) Mouse: SetupAuto: protocol is PS/2 >> [ 27.875] (II) Mouse: ps2EnableDataReporting: succeeded >> [ 28.394] (II) AIGLX: Suspending AIGLX clients for VT switch >> [ 33.203] (WW) config/devd: devd socket is lost >> [ 33.204] (EE) config/devd: fail to connect to devd >> [ 33.235] (II) config/devd: terminating backend... >> [ 33.235] (II) UnloadModule: "mouse" >> [ 33.235] (II) UnloadModule: "mouse" >> [ 33.235] (II) UnloadModule: "kbd" >> [ 33.239] (II) Server terminated successfully (0). Closing log file. >> > Several potential issues, but the most obvious is that devd does not appear > to be working. Is devd running? If not, why not? if so, is there an issue > with the /etc/devd.conf file? Is it current? If it's not current, it may not > have the required devices to work with yo9ur hardware. But it can't even > find the keyboard or mouse and those shold be pretty much unchanged since > devd came into existence. > > This could be the cause of other odd things in the Xlog, so get this fixed > and see if things work better. > -- > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > devd not running was a product of me killing Xorg too soon; my apologies, as I should have been more clear on that. I did manage to fix the issue, though! After applying this patch, I finally got Xorg to work with full GPU acceleration on a 1440p eDP display (ASUS UX301LAA laptop)! https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/gpu/drm/i915?h=v3.10.10&id=6b9f3486bb756d0aa6c00d7f745c8ca65ff35f07 I would suggest that the maintainer consider that patch and also consider adding PCI IDs for Haswell GT3(,e) to the kernel. Best, Tyler