Bug 5098

Summary: i915 DRM needs to be ported to FreeBSD
Product: DRI Reporter: Sune Wettersteen <forexs>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: high CC: eric
Version: XOrg 6.7.0   
Hardware: All   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:

Description Sune Wettersteen 2005-11-19 16:44:52 UTC
There is apparently no support for this as specified in    
http://dri.freedesktop.org/wiki/FreeBSD (and this page links to a "DRI on    
FreeBSD" page that has not been updated since 2003 and which handles a kernel    
module which is no obsolete).    
I'm not sure if this is the right place to ask/notify about the lack of support    
for drm/dri on intel chipsets on freebsd, but I'll give it a shot anyway.   
  
No drm device is created/"found" on start, ie dmesg | grep drm returns void.   
This resolves in a (xorg log):  
drmOpenDevice: node name is /dev/dri/card0  
drmOpenDevice: open result is -1, (No such file or directory)  
drmOpenDevice: open result is -1, (No such file or directory)  
drmOpenDevice: Open failed  
[drm] failed to load kernel module "i915"  
(II) I810(0): [drm] drmOpen failed  
(EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.  
  
Basically: Should I go somewhere else and ask this?, or when will there be a  
port of the driver (and if it is work in progess, how far is it?), and will  
there be one at all? (the chipset has been around for many years now and I find  
it odd that its never been done. This may however be because these gfx cards  
are mostly in laptops, and freebsd is perhaps not used that much on laptops :)  
(untill now anyway)  
 
Thanks in advance. 
 
Best regards, 
  Sune Wettersteen, Denmark 
 
 
P.S. 
Some extra information if useful: I'm personally testing this in a Dell 
Inspiron 500m. 
uname: FreeBSD 6.0-RELEASE #0 
xorg: xorg-6.8.2 (latest port) 
agp0: <Intel 8285xM (85xGM GMCH) SVGA controller> port 0xc000-0xc007 mem 
0xf0000000-0xf7ffffff,0xfaf80000-0xfaffffff irq 11 at device 2.0 on pci0 
This is an Intel Extreme Graphics 2 card.
Comment 1 Eric Anholt 2005-11-19 19:21:05 UTC
Yes, the driver needs to be ported.  It's also one of the most annoying drivers
(second only to i810, I'd say), because it needs to attach to the same device
that the agp driver does.  This should be a little bit of newbus play for
someone that understands how that works (the current code works in theory, but
not in practice).  Keith Whitwell has had this working, I think, and perhaps
also John Baldwin, but it didn't for me while I had the hardware.

I won't be attacking this myself.
Comment 2 Sune Wettersteen 2005-11-20 06:32:41 UTC
As far as I understand intel released a linux driver for this, shouldn't that 
make it easier get to gribs with it? (I'm not really comfertable with a how all 
this works. However I develop with openGL which is why I'm so interested in the 
driver). 
Okay, but thanks for your reply. Do you know someone else you could refer to 
this bug that may look into it? 
Comment 3 Eric Anholt 2005-11-20 07:53:11 UTC
Sure, there's an open-source driver written by Tungsten Graphics, which is the
one we're talking about here.  The question is how to make it work on FreeBSD.

There are no people currently working on this.  If you want it fixed, it's
probably going to mean experimenting and figuring it out yourself.  That
probably means looking at the probe/attach stuff in the core drm, figuring out
why i915 DRM isn't attaching to the special drmsub device that the intel AGP
driver is creating just for the drm to attach to.
Comment 4 Eric Anholt 2005-12-14 12:01:47 UTC
i915 DRM has been committed to -current and merged to RELENG_6.
Comment 5 Sune Wettersteen 2005-12-16 14:09:02 UTC
Wow, great!! Thanks a lot man..

If I could only get it to work now  :)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.