From owner-freebsd-x11@FreeBSD.ORG Fri Jun 22 23:18:20 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2D6E106566C for ; Fri, 22 Jun 2012 23:18:19 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 840578FC0C for ; Fri, 22 Jun 2012 23:18:19 +0000 (UTC) Received: by werg1 with SMTP id g1so2109610wer.13 for ; Fri, 22 Jun 2012 16:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=t55Ak9JYQ9IbTTfr4amaJUUNUZA2fUjkioaGA1n5MyI=; b=qug/B1gDHxaHX9v8VdwkcgUwe2gFECwQ1FHOr2aLK/FG74ziT1sPOlGjbmBinNt1rP j2EQxUBwRL2+kxlCuuqnri8MRa7mqcRxVzeLh0I460ccZ81r/dWwh6EJzICT3+h4+CM0 ak96UPdbI/SG1nIkyAR7lSFZjciJ8GvdImVsqYsb2poL1keww1V45qc1h+W26rr539wU 2q13vtEqDpZfD6FF1ffFhpOKV3TSoBCahiVPYyXDw0wPVKr82c7FR1wQwBH1WU1IjcRp Wg2+2+xdQG9qO4mJdQ+Lapu4R9K9k3EopaRuihdQSTZQzTIhzq85qp3k/fjyFPN2jnep UfUw== MIME-Version: 1.0 Received: by 10.180.24.193 with SMTP id w1mr8433820wif.5.1340407093488; Fri, 22 Jun 2012 16:18:13 -0700 (PDT) Received: by 10.223.155.4 with HTTP; Fri, 22 Jun 2012 16:18:13 -0700 (PDT) In-Reply-To: <20120622213442.GL2337@deviant.kiev.zoral.com.ua> References: <20120622213442.GL2337@deviant.kiev.zoral.com.ua> Date: Fri, 22 Jun 2012 16:18:13 -0700 Message-ID: From: Kevin Oberman To: Konstantin Belousov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-x11@freebsd.org Subject: Re: GPU_KMS still not working for me since merge X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 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, 22 Jun 2012 23:18:20 -0000 On Fri, Jun 22, 2012 at 2:34 PM, Konstantin Belousov wrote: > On Fri, Jun 22, 2012 at 02:20:59PM -0700, Kevin Oberman wrote: >> I am still missing something needed to get the KMS support for my >> Sandybridge to work.It has been working fine until the KMS code was >> merged into RELENG-9. >> >> I updated my sources and built a new kernel this morning. I already >> had WITH_KMS=3DYES and WITH_NEW_XORG=3DYES in my make.conf from building >> prior to the patch. =C2=A0I can confirm that i915kms.ko is built and in >> /boot/kernel/ >> >> When I tried starting X, the screen never left vty mode. The keyboard >> would no longer work, but I could do a clean shutdown via a network >> connection. I examined the log and things went awry at: >> [ =C2=A0 330.411] drmOpenByBusid: Searching for BusID pci:0000:00:02.0 >> [ =C2=A0 330.411] drmOpenDevice: node name is /dev/dri/card0 >> [ =C2=A0 330.411] Failed to change owner or group for file /dev/dri! 2: = No >> such file or directory >> [ =C2=A0 330.411] Failed to change owner or group for file /dev/dri/card= 0! >> 2: No such file or directory >> [ =C2=A0 330.411] drmOpenDevice: open result is -1, (No such file or dir= ectory) >> [ =C2=A0 330.411] Failed to change owner or group for file /dev/dri/card= 0! >> 2: No such file or directory >> [ =C2=A0 330.411] drmOpenDevice: open result is -1, (No such file or dir= ectory) >> [ =C2=A0 330.411] drmOpenDevice: Open failed >> [ =C2=A0 330.411] drmOpenByBusid: drmOpenMinor returns -2 >> where my old log showed: >> [ =C2=A0 300.134] drmOpenByBusid: Searching for BusID pci:0000:00:02.0 >> [ =C2=A0 300.134] drmOpenDevice: node name is /dev/dri/card0 >> [ =C2=A0 300.134] drmOpenDevice: open result is 10, (OK) >> [ =C2=A0 300.134] drmOpenByBusid: drmOpenMinor returns 10 >> [ =C2=A0 300.134] drmOpenByBusid: Interface 1.4 failed, trying 1.1 >> [ =C2=A0 300.134] drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0 >> [ =C2=A0 300.134] (II) intel(0): Creating default Display subsection in >> Screen section >> =C2=A0 =C2=A0 =C2=A0 "Builtin Default intel Screen 0" for depth/fbbpp 24= /32 >> [ =C2=A0 300.134] (=3D=3D) intel(0): Depth 24, (--) framebuffer bpp 32 >> [ =C2=A0 300.134] (=3D=3D) intel(0): RGB weight 888 >> [ =C2=A0 300.134] (=3D=3D) intel(0): Default visual is TrueColor >> [ =C2=A0 300.135] (II) intel(0): Integrated Graphics Chipset: Intel(R) >> Sandybridge Mobile (GT2+) >> [ =C2=A0 300.135] (--) intel(0): Chipset: "Sandybridge Mobile (GT2+)" >> >> What am I missing? > Show the verbose dmesg during the load of i915kms. Hmm. I don't see exactly how to get that. I booted verbose, but I see no console message about the module loading, either to the console or to /var/run/dmesg.boot. I do see: DRM_IOCTL_I915_GEM_APERTURE failed: Bad file descriptor Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [9] param: 4, val: 0 Assertion failed: (0), function drm_intel_bufmgr_gem_init, file intel_bufmg= r_gem .c, line 2332. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error The log contains: [ 39.104] (II) LoadModule: "intel" [ 39.105] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so [ 39.154] (II) Module intel: vendor=3D"X.Org Foundation" [ 39.154] compiled for 1.10.6, module version =3D 2.16.0 [ 39.154] Module class: X.Org Video Driver [ 39.154] ABI class: X.Org Video Driver, version 10.0 [ 39.154] (II) LoadModule: "vesa" [ 39.155] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so [ 39.160] (II) Module vesa: vendor=3D"X.Org Foundation" [ 39.160] compiled for 1.10.6, module version =3D 2.3.0 [ 39.160] Module class: X.Org Video Driver [ 39.160] ABI class: X.Org Video Driver, version 10.0 [ 39.160] (II) LoadModule: "fbdev" [ 39.160] (II) Loading /usr/local/lib/xorg/modules/drivers/fbdev_drv.so [ 39.166] (II) Module fbdev: vendor=3D"X.Org Foundation" [ 39.166] compiled for 1.10.6, module version =3D 0.4.2 [ 39.166] ABI class: X.Org Video Driver, version 10.0 [ 39.166] (II) intel: Driver for Intel Integrated Graphics Chipsets: i81= 0, 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, B43, Clarkdale, Arrandale, Sandybridge Desktop (GT1), Sandybridge Desktop (GT2), Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1), Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+), Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2), Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com