From owner-freebsd-x11@FreeBSD.ORG Sat Jun 23 16:17:02 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D61DF106564A for ; Sat, 23 Jun 2012 16:17:02 +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 65CDE8FC15 for ; Sat, 23 Jun 2012 16:17:02 +0000 (UTC) Received: by werg1 with SMTP id g1so2544228wer.13 for ; Sat, 23 Jun 2012 09:17:01 -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=7Vein7yYf/7Afp0m5y/73INnIrzA2TsDSKd6dAPb0MA=; b=OpeN+d/Z35Q7Uk+0qJ1Y2kAH9nNYrV9f3Dq5dqLoZX9T2y/AuMrKkZ8rp2Pkp6iRKJ 2uNS34cmzxCik2Q+uSyJh2U83FW2aw/Qqv2DA+w5tiPoD5xpvS31QwjaxVt37T3pQ3OT fvB1QrJl9VJ/VvdGx98mB4jeMjw4DBTw4RmwBWy532I1dpQIMjVQs9pXDx15/XMeUrfD Lb4OrSXxZ5wTrXXnJKV4KXO7Sd4nIsxp/Sn22HrTwMwpq6FTKckL8r/RvAuStrFtA2eA smyGYRV8eYPbIzs5lC9x24bpA8JgHdZLRBcetkJ+bZIiIZ/1CvN2C+kU87K0cyIane+n 6eUA== MIME-Version: 1.0 Received: by 10.180.93.99 with SMTP id ct3mr12515560wib.13.1340468221418; Sat, 23 Jun 2012 09:17:01 -0700 (PDT) Received: by 10.223.155.4 with HTTP; Sat, 23 Jun 2012 09:17:01 -0700 (PDT) In-Reply-To: <20120623085812.GN2337@deviant.kiev.zoral.com.ua> References: <20120622213442.GL2337@deviant.kiev.zoral.com.ua> <20120623085812.GN2337@deviant.kiev.zoral.com.ua> Date: Sat, 23 Jun 2012 09:17:01 -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: Sat, 23 Jun 2012 16:17:02 -0000 On Sat, Jun 23, 2012 at 1:58 AM, Konstantin Belousov wrote: > On Fri, Jun 22, 2012 at 04:18:13PM -0700, Kevin Oberman wrote: >> 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 build= ing >> >> 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/c= ard0! >> >> 2: No such file or directory >> >> [ =C2=A0 330.411] drmOpenDevice: open result is -1, (No such file or = directory) >> >> [ =C2=A0 330.411] Failed to change owner or group for file /dev/dri/c= ard0! >> >> 2: No such file or directory >> >> [ =C2=A0 330.411] drmOpenDevice: open result is -1, (No such file or = directory) >> >> [ =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 3= 2 >> >> [ =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_bu= fmgr_gem >> .c, line 2332. >> xinit: giving up >> xinit: unable to connect to X server: Connection refused >> xinit: server error > Show the _dmesg(8)_ output. > > Verify that i915kms is loaded. If it is not, investigate why. There is nothing of relevance in dmesg. But kldstat makes the problem very clear.. After 'startx', I see i915.ko has been loaded along with drm.k= o. No i915kms.ko nor the i2c stuff that used to be pulled in. When I was running the pre-merge KMS code from back in late April, there was no i915kms.ko...only i915.ko. Is there something I need to do to cause the correct module to load? I don't have any Xorg.conf file and never have had for this laptop. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com