From owner-freebsd-current@FreeBSD.ORG Sun Jul 29 04:49:19 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC1CF106566C; Sun, 29 Jul 2012 04:49:19 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 4B6858FC0A; Sun, 29 Jul 2012 04:49:19 +0000 (UTC) Received: by wibhr14 with SMTP id hr14so629852wib.13 for ; Sat, 28 Jul 2012 21:49:18 -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; bh=TvjVR1Ke9GmyQvEbvsCUSz9x8X1CGSl0NjQjosW8+mQ=; b=Jt3R+1JzNycSBH+IUh+idaH/S43j66J9bYYikxEf120GWM29Ddh4F2Bq14Nh+doblR xNXZcX0ghteRWtFlFbXg42JTtATDyIlTTgniPoFHFUwGged3gihCK+GTGTC8dgHexc+9 1RDBw9Wz9fnB1nBGS9lCH42TUiAhgtPJUztYRegtpvJLi/AMlSy6vIhGuQoHpUq7pXNr ed8phi1/cYywEatQmnPJL/GfmMVn9YTAXZ+PLhol07M6tr+TRgKsiLwkXZrxnwX/21Ff Dm1XB8+klXq7YANoEdB/fEs0XFjzPdjTj55KcZIB+FH00ifgAgWAn24yPbW6jhyankV9 HKfA== MIME-Version: 1.0 Received: by 10.180.84.1 with SMTP id u1mr17188946wiy.15.1343537358135; Sat, 28 Jul 2012 21:49:18 -0700 (PDT) Received: by 10.223.60.147 with HTTP; Sat, 28 Jul 2012 21:49:18 -0700 (PDT) In-Reply-To: <20120729042013.GA22960@mail.hs.ntnu.edu.tw> References: <20120729015350.GH72464@mail.hs.ntnu.edu.tw> <20120729105954.7de47bbf@AMD620.ovitrap.com> <20120729042013.GA22960@mail.hs.ntnu.edu.tw> Date: Sat, 28 Jul 2012 21:49:18 -0700 Message-ID: From: Kevin Oberman To: Denny Lin Content-Type: text/plain; charset=UTF-8 Cc: Erich Dollansky , freebsd-x11@freebsd.org, freebsd-current@freebsd.org Subject: Re: Unable to load i915kms X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2012 04:49:20 -0000 On Sat, Jul 28, 2012 at 9:20 PM, Denny Lin wrote: > On Sun, Jul 29, 2012 at 10:59:54AM +0700, Erich Dollansky wrote: >> this seems to be wrong: >> >> > 13 1 0xffffffff8167a000 7019 i915.ko >> > 14 1 0xffffffff81682000 111c4 drm.ko >> > >> From my machine: >> >> 2 1 0xffffffff817e4000 aee0 sem.ko >> 3 1 0xffffffff81a12000 9db3 linprocfs.ko >> 4 1 0xffffffff81a1c000 587a5 linux.ko >> 5 1 0xffffffff81a75000 3900 ums.ko >> 6 1 0xffffffff81a79000 2b0d uhid.ko >> 7 1 0xffffffff81a7c000 1b7a1 ng_btsocket.ko >> 8 1 0xffffffff81a98000 ba58 netgraph.ko >> 9 1 0xffffffff81aa4000 118b ng_bluetooth.ko >> 10 1 0xffffffff81aa6000 a9f3 fuse.ko >> 11 1 0xffffffff81ab1000 69298 i915kms.ko >> 12 1 0xffffffff81b1b000 1ba2 iicbb.ko >> 13 4 0xffffffff81b1d000 1ddb iicbus.ko >> 14 1 0xffffffff81b1f000 1cd5 iic.ko >> 15 1 0xffffffff81b21000 32386 drm2.ko >> 16 1 0xffffffff81b54000 241 acpi_call.ko >> >> So, why did drm.ko and i915.ko make it into your kernel? > > Both are built by default, but only drm.ko and i915.ko are loaded > automatically. i915kms.ko has to loaded manually: > http://lists.freebsd.org/pipermail/freebsd-x11/2012-May/011857.html > > I do have i915kms and drm2.ko, but every time I try to load i915kms.ko, > the computer blacks out. > >> > I have WITH_KMS=YES and WITH_NEW_XORG=YES in /etc/make.conf. I also >> > rebuilt xorg-* and xf86-video-intel after updating to r238858. >> > >> > Xorg previously worked on my laptop with all.14.3.patch on top of >> > -CURRENT from around mid-April, so I'm not sure what went wrong. >> > >> I did not touch this machine since 16.07.12. >> >> Maybe your patches affected something. Can you download a fresh source >> tree? > > I used a new checkout when I updated to r238858, so this shouldn't be > a problem. You are working too hard from old information. Do not attempt to load i915kms.ko. Do not attempt to load drm2.ko. For the past months the drivers have been fixed to automatically load all needed drivers and kernel modules when Xorg is started. My Sandybridge behaves just like your system if I try to manually load i915kms.ko. Screen goes black and that is the end. Oh, and you didn't mention libdrm. It should be built with WITH_KMS, too. -- R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com