Bug 16982 - Problems with DRM on G33 chipset
Summary: Problems with DRM on G33 chipset
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) FreeBSD
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-04 03:02 UTC by Pierre Bardou
Modified: 2008-10-10 00:24 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Pierre Bardou 2008-08-04 03:02:09 UTC
I use FREEBSD 7.0-CURRENT, and Xorg 7.3 compiled from the ports (all less than 1 week ago).
I use the AMD64 version on a Intel E2180 CPU.
My graphic card is an Intel G33 chipset.

I had to modify kernel sources to get Xorg work (G33 lines were commented out in agp_i810.c), but DRM is still not working.

Here are some logs :
stage003:~ # kldstat
Id Refs Address            Size     Name
 1    7 0xffffffff80100000 b2dc98   kernel
 2    1 0xffffffffaf641000 aa7a     fuse.ko
 3    1 0xffffffffaf64c000 4ba7     i915.ko
 4    1 0xffffffffaf651000 d5d8     drm.ko

stage003:~ # dmesg|grep drm
-> nothing

stage003:~ # grep -i drm /var/log/Xorg.0.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
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
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
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
drmOpenByBusid: drmOpenMinor returns -2
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed
[snip]
drmOpenByBusid: drmOpenMinor returns -2
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"
(EE) [drm] drmOpen failed.

then the Intel driver reports :
(EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI.


stage003:~ # cat /usr/local/etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/local/share/X11/rgb"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "/usr/local/lib/X11/fonts/misc/"
        FontPath     "/usr/local/lib/X11/fonts/TTF/"
        FontPath     "/usr/local/lib/X11/fonts/OTF"
        FontPath     "/usr/local/lib/X11/fonts/Type1/"
        FontPath     "/usr/local/lib/X11/fonts/100dpi/"
        FontPath     "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
        Load  "extmod"
        Load  "record"
        Load  "dbe"
        Load  "glx"
        Load  "GLcore"
        Load  "xtrap"
        Load  "dri"
        Load  "freetype"
        Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel"  "pc105"
        Option      "XkbLayout" "fr"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/sysmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Dell"
        ModelName    "E177FP"
        HorizSync    31-81
        VertRefresh  56-76
        ModeLine     "1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066
        Option       "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "DefaultRefresh"            # [<bool>]
        #Option     "ModeSetClearScreen"        # [<bool>]
        Identifier  "Card0"
        #Driver      "vesa"
        #Driver             "i810"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "82G33/G31 Express Integrated Graphics Controller"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        Option     "AddARGBGLXVisuals" "True"

        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1280x1024"
        EndSubSection
EndSection

Section "Extensions"
        Option     "Composite" "Enable"
EndSection

Section "DRI"
        Mode 0666
EndSection
Comment 1 Robert Noland 2008-08-09 13:06:34 UTC
Are you using a current git drm?
Comment 2 Pierre Bardou 2008-08-11 06:40:02 UTC
I use libDRM 2.3.0 (the standard in freeBSD 7.0-STABLE ports).
Comment 3 Robert Noland 2008-08-11 07:11:33 UTC
The base drm from current kernel sources does not have support for this chipset.  I'm hoping to get an update ready shortly.

robert.
Comment 4 Robert Noland 2008-08-25 10:23:37 UTC
I have committed the drm updates to -CURRENT and a patch set is available for RELENG_7 at http://people.freebsd.org/~rnoland.  Please, see how that works.

robert.
Comment 5 Pierre Bardou 2008-09-04 02:49:14 UTC
Sorry but I have no time for this right now.

I will be able to make tests during week 40-41, I'll keep you informed.
Comment 6 Pierre Bardou 2008-10-10 00:24:14 UTC
I reinstallend a fresh BSD CURRENT.
In the logs of X drm seems to work, but I can't do further testing because
of a buggy USB keyboard.

Many thanks for your reactivity, and very sorry for the late return.


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.