Unable to load i915kms

Denny Lin dennylin93 at hs.ntnu.edu.tw
Sun Jul 29 07:21:40 UTC 2012


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 <kob6558 at gmail.com> 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


More information about the freebsd-current mailing list