From owner-freebsd-x11@FreeBSD.ORG Sun Jul 29 07:21:39 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 E2452106566B; Sun, 29 Jul 2012 07:21:39 +0000 (UTC) (envelope-from dennylin93@hs.ntnu.edu.tw) Received: from mail.hs.ntnu.edu.tw (mail.hs.ntnu.edu.tw [140.131.149.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2A42C8FC08; Sun, 29 Jul 2012 07:21:39 +0000 (UTC) Received: by mail.hs.ntnu.edu.tw (Postfix, from userid 58) id 091D21C6451; Sun, 29 Jul 2012 15:21:38 +0800 (CST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.hs.ntnu.edu.tw X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Received: from mail.hs.ntnu.edu.tw (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.hs.ntnu.edu.tw (Postfix) with ESMTPS id 832451C643F; Sun, 29 Jul 2012 15:21:37 +0800 (CST) Received: (from dennylin93@localhost) by mail.hs.ntnu.edu.tw (8.14.5/8.14.5/Submit) id q6T7LaD8025070; Sun, 29 Jul 2012 15:21:36 +0800 (CST) (envelope-from dennylin93@hs.ntnu.edu.tw) X-Authentication-Warning: mail.hs.ntnu.edu.tw: dennylin93 set sender to dennylin93@hs.ntnu.edu.tw using -f Date: Sun, 29 Jul 2012 15:21:36 +0800 From: Denny Lin To: Erich Dollansky Message-ID: <20120729072136.GA23082@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> <20120729121201.5ca6db2e@AMD620.ovitrap.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120729121201.5ca6db2e@AMD620.ovitrap.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-x11@freebsd.org, freebsd-current@freebsd.org Subject: Re: Unable to load i915kms 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: Sun, 29 Jul 2012 07:21:40 -0000 Hi, On Sun, Jul 29, 2012 at 12:12:01PM +0700, Erich Dollansky wrote: > On Sat, 28 Jul 2012 21:49:18 -0700 > Kevin Oberman wrote: > > > 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 > > How do the wrong modules get loaded? Thanks for all the help guys. The problem was the result of my own stupidity. I went through some code trying to find out why the wrong modules were loaded, and I discovered that I previously commented out this line in x11-drivers/xf86-video-intel/Makefile: EXTRA_PATCHES+= ${PATCHDIR}/extra-i915kms This patch is for -CURRENT since the name of the module changed when kib@ imported the code to -CURRENT: - intel->drmSubFD = drmOpen("i915", busid); + intel->drmSubFD = drmOpen("i915kms", busid); Since I built -CURRENT from around 3 months ago and an up-to-date ports tree, I had to remove this patch to make it work. So it fell apart when I tried to upgrade to the lastest -CURRENT... Apparently portsnap doesn't overwrite local modifications to the ports tree unless there are updates (unlike csup), so the patch wasn't included until I discovered my mistake. Next time I'll keep a list of local changes for my ports tree, so I don't shoot myself in the foot again. Sorry for the noise. -- Denny Lin