[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: direct rendering on i845G chipset



On Tuesday 18 October 2005 00:40, Lubos Vrbka wrote:
> hi,
>
> > No, you're confusing kernel modules with X modules.  You can't load X
> > modules into the kernel and vice versa.
>
> ok, thanks for clarification.
>
> firstly, i get this in my dmesg
> ...
> Linux agpgart interface v0.101 (c) Dave Jones
> agpgart: Detected an Intel 845G Chipset.
> agpgart: Detected 8060K stolen memory.
> agpgart: AGP aperture is 128M @ 0xd8000000
> ...
> this is probably related to the fact that i have 8mb memory reserved for
> agp in bios. am i right? and is that message ok? iirc, setting it to 1mb
> (the only other option) didn't allow me to run x with desired
> resolution/color depth when i tried in the past...
>
Yes, you're right.  You have 8mb memory reserved for agp.  That message is 
OK, but a message below indicates you might want to reserve more memory.

> > Based upon your chipset, you'll need to modprobe i830.  You may also
> > need the "intel_agp", "agpgart" and "drm" modules loaded, but modprobe
> > i830 should take care of that for you.
>
> i recompiled the kernel to have all of these as modules (i had them
> compiled to the kernel). after modprobing i830 (or i915, respectively -
> in 2.6.12 both of these are available for the i845G chipset) i get
>
> # modprobe i830
> ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
> mtrr: 0xd8000000,0x8000000 overlaps existing 0xd8000000,0x400000
> [drm] Initialized i915 1.1.0 20040405 on minor 0: Intel Corporation
> 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device
> # lsmod
> Module                  Size  Used by
> i830                   29248  0
> drm                    69588  1 i830
> intel_agp              24156  1
> agpgart                35976  2 drm,intel_agp
> ...
> so everything seems to be ok. i get the same output for i915 (i830
> changed to i915, of course).
>
OK, this is good.  I'm sorry I wasn't clear, though.  You don't have to 
install the i830 driver as a kernel module.  I didn't realize you had it 
compiled into the kernel.  Compiled in is just as good as a module, once 
the module is loaded.  My bad for not noticing.

> mtrr gives me
> # cat /proc/mtrr
> reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
> reg01: base=0x1ff80000 ( 511MB), size= 512KB: uncachable, count=1
> reg02: base=0xd8000000 (3456MB), size=   4MB: write-combining, count=1
> i have 512mb of physical ram in my machine and 512mb of swap.
>
> > After those modules are loaded, try restarting X, and look for entries
> > in the log file (/var/log/Xorg.0.log) like this [my comments in
> > brackets]: (II) LoadModule: "i810"
> > (II) Loading /usr/X11R6/lib/modules/drivers/i810_drv.o
> > (II) Module i810: vendor="X.Org Foundation"
> >         compiled for 6.8.2, module version = 1.3.0
> >         Module class: X.Org Video Driver
> >         ABI class: X.Org Video Driver, version 0.7
>
> ok, i have this...
> (II) LoadModule: "i810"
> (II) Loading /usr/X11R6/lib/modules/drivers/i810_drv.o
> (II) Module i810: vendor="X.Org Foundation"
>          compiled for 6.8.2, module version = 1.5.160
>          Module class: X.Org Video Driver
>          ABI class: X.Org Video Driver, version 0.7
>
So far, so good...

> > ...
> > (II) I810: Driver for Intel Integrated Graphics Chipsets: i810,
> > i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G, E7221
> > (i915), 915GM, 945G
>
> and also this...
> (II) I810: Driver for Intel Integrated Graphics Chipsets: i810,
> i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G, E7221
> (i915), 915GM, 945G
> (II) Primary Device is: PCI 00:02:0
> (--) Chipset 845G found
>
OK, this is still good...

> > ...
> > drmOpenDevice: node name is /dev/dri/card0
> > drmOpenDevice: open result is 8, (OK)
> > drmOpenDevice: node name is /dev/dri/card0
> > drmOpenDevice: open result is 8, (OK)
> > drmOpenByBusid: Searching for BusID pci:0000:00:02.0
> > drmOpenDevice: node name is /dev/dri/card0
> > drmOpenDevice: open result is 8, (OK)
> > drmOpenByBusid: drmOpenMinor returns 8
> > drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
> > (II) I810(0): [drm] DRM interface version 1.2
> > (II) I810(0): [drm] created "i915" driver at busid "pci:0000:00:02.0"
> > (II) I810(0): [drm] added 8192 byte SAREA at 0xdfdf6000
> > (II) I810(0): [drm] mapped SAREA 0xdfdf6000 to 0xb7c7a000
> > (II) I810(0): [drm] framebuffer handle = 0xf0020000
> > (II) I810(0): [drm] added 1 reserved context for kernel
>
> but this is missing. no occurence of drm* lines at all.
>
> > If you get an error message instead, try replacing your X i810_drv.o
> > module with the one from this web site:
> > http://www.fairlite.demon.co.uk/intel.html
>
> the same result with this driver.
>
> > Restart X, and if it still doesn't work, post the relevant portions of
> > your log file.
>
> everything is above...
>
> the only errors in the xorg log are
> (II) Loading sub module "GLcore"
> (II) LoadModule: "GLcore"
> (II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
> Skipping "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_clip.o":
>   No symbols found
> Skipping "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_norm.o":
>   No symbols found
> Skipping
> "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_xform.o":  No
> symbols foun
> d
> (II) Module GLcore: vendor="X.Org Foundation"
>          compiled for 6.8.2, module version = 1.0.0
I don't use the GLcore module.  I recall using that disabled direct 
rendering for me, but I'll have to go back and check again to be sure.  
Suffice to say, I don't use it and I do have direct rendering enabled, but 
that may not be the cause of your problem.

> ...
> (II) I810(0): 6392 kBytes additional video memory is required to
>          enable tiling mode for DRI.
> (II) I810(0): 4344 kBytes additional video memory is required to enable
> DRI. (II) I810(0): Disabling DRI.
OK, here's where your problem is.  You need more video memory to enable DRI.  
So use your bios configuration utility, and give the agp more memory.  
Then, try again.  I think it should work after you do that.

> ...
> (II) Loading /usr/X11R6/lib/modules/libfb.a
> Skipping "/usr/X11R6/lib/modules/libfb.a:fbmmx.o":  No symbols found
> (II) Module fb: vendor="X.Org Foundation"
>          compiled for 6.8.2, module version = 1.0.0
>          ABI class: X.Org ANSI C Emulation, version 0.2
> ...
>
> the relevant parts of my xorg.conf are
> Section "Module"
>          Load    "GLcore"
>          Load    "bitmap"
>          Load    "dbe"
>          Load    "ddc"
>          Load    "dri"
>          Load    "extmod"
>          Load    "freetype"
>          Load    "glx"
>          Load    "int10"
>          Load    "record"
>          Load    "type1"
>          Load    "v4l"
>          Load    "vbe"
>          Load    "synaptics"
> EndSection
> ...
> Section "Device"
>          Identifier      "Intel Corporation 82845G/GL[Brookdale-G]/GE
> Chipset Integrated Gr
> aphics Device"
>          Driver          "i810"
>          BusID           "PCI:0:2:0"
>          VideoRam        8192
> EndSection
> ...
> Section "DRI"
>          Mode    0666
> EndSection
> ...
>
> if you need more info, let me know. thank you for help.
>
Nope, you have given all the information necessary to diagnose your problem.  
You've asked a great question!

> regards,
>
> --
> Lubos
> _@_"

Let us know if adding more memory fixes your problem.

Justin Guerin



Reply to: