LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-01-2004, 11:50 AM   #1
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Unhappy igp320M 3D acceleration..HELP ALMOST THERE!


I can't wait to post a linux success story on this thing.

Ok. I have a compaq presario 2100 (2110CA) and 3D accel on my igp320M (64M) is my linux unicorn right now.

I've put on Fedora Core 2 test, I've got the stock 2.6.1 kernel loaded, I haven't recompiled yet because I've had rotten luck so far compiling 2.6 kernels on this thing AND the AGP and DRM modules seem to already be there by default.

I've gotten XFree86 4.3.99 with the appropriate radeon IGP patches to run (from rpms provided on a link by a kind soul at http://consultmatt.co.uk/nx9005/radeon-igp/index.php ). I've made the changes to my XF86Config file (included below) and I've modprobed the radeon module, the agpgart boots up automatically in the kernel (dmesg output included below)...

The /var/XFree86.log seems to show all loading properly...

Yet, glxinfo says DRI is not enabled and glxgears gives me dismal FPS.

What am I missing? Any suggestions? Anything at all? I've read dozens of posts and pages, I could really use some pointers.

Some relevant info (sorry for the length of it):

Code:
..
From dmseg:

Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected Ati IGP320/M chipset
agpgart: Maximum main memory to use for agp memory: 379M
agpgart: AGP aperture is 64M @ 0xd4000000

...

[drm] Initialized radeon 1.9.0 20020828 on minor 0
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:05.0 into 4x mode

...

[drm] Module unloaded
[drm] Initialized radeon 1.9.0 20020828 on minor 0
request_module: failed /sbin/modprobe -- char-major-10-134. error = 256
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:05.0 into 4x mode
request_module: failed /sbin/modprobe -- char-major-10-134. error = 256
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:05.0 into 4x mode
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
request_module: failed /sbin/modprobe -- char-major-10-134. error = 256
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:05.0 into 4x mode
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
request_module: failed /sbin/modprobe -- snd-card-1. error = 256

---------------------

XFree86.log:

XFree86 Version 4.3.99.13 (Custom Build: 4.3.99-1)
Release Date: 25 September 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.22 i686 [ELF]
Current Operating System: Linux localhost.localdomain 2.6.1-1.65 #1 Fri Jan 30 17:28:54 EST 2004 i686
Build Date: 26 September 2003
Changelog Date: 25 September 2003
Build Host: riogrande

...
(--) PCI:*(1:5:0) ATI Technologies Inc Radeon Mobility U1 rev 0, Mem @ 0xe0000000/28, 0xd0100000/16, I/O @ 0x9000/8

...

(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="The XFree86 Project"
        compiled for 4.3.99.13, module version = 1.0.0
        ABI class: XFree86 Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="The XFree86 Project"
        compiled for 4.3.99.13, module version = 1.0.0
        ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension XFree86-DRI

...

(II) LoadModule: "radeon"
(II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.o
(II) Module radeon: vendor="The XFree86 Project"
        compiled for 4.3.99.13, module version = 4.0.1
        Module class: XFree86 Video Driver
        ABI class: XFree86 Video Driver, version 0.7
(II) LoadModule: "ati"
(II) Loading /usr/X11R6/lib/modules/drivers/ati_drv.o
(II) Module ati: vendor="The XFree86 Project"
        compiled for 4.3.99.13, module version = 6.5.3
        Module class: XFree86 Video Driver
        ABI class: XFree86 Video Driver, version 0.7

...

(II) RADEON: Driver for ATI Radeon chipsets: ATI Radeon QD (AGP),
        ATI Radeon QE (AGP), ATI Radeon QF (AGP), ATI Radeon QG (AGP),
        ATI Radeon VE/7000 QY (AGP), ATI Radeon VE/7000 QZ (AGP),
        ATI Radeon Mobility M7 LW (AGP),
        ATI Mobility FireGL 7800 M7 LX (AGP),
        ATI Radeon Mobility M6 LY (AGP), ATI Radeon Mobility M6 LZ (AGP),
        ATI Radeon IGP320 (A3) 4136, ATI Radeon IGP320M (U1) 4336,
        ATI Radeon IGP330/340/350 (A4) 4137,
        ATI Radeon IGP330M/340M/350M (U2) 4337,
        ATI Radeon 7000 IGP (A4+) 4237, ATI Radeon Mobility 7000 IGP 4437,
        ATI FireGL 8700/8800 QH (AGP), ATI Radeon 8500 QI (AGP),
        ATI Radeon 8500 QJ (AGP), ATI Radeon 8500 QK (AGP),
        ATI Radeon 8500 QL (AGP), ATI Radeon 9100 QM (AGP),
        ATI Radeon 8500 QN (AGP), ATI Radeon 8500 QO (AGP),
        ATI Radeon 8500 Qh (AGP), ATI Radeon 8500 Qi (AGP),

...

(II) Primary Device is: PCI 01:05:0
(--) Chipset ATI Radeon IGP320M (U1) 4336 found

...

(II) Loading sub module "radeon"
(II) LoadModule: "radeon"
(II) Reloading /usr/X11R6/lib/modules/drivers/radeon_drv.o

...

(II) RADEON(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(II) RADEON(0): PCI bus 1 card 5 func 0
(**) RADEON(0): Depth 16, (--) framebuffer bpp 16
(II) RADEON(0): Pixel depth = 16 bits stored in 2 bytes (16 bpp pixmaps)
(==) RADEON(0): Default visual is TrueColor
(**) RADEON(0): Option "accel"
(**) RADEON(0): Option "AGPMode" "4"
(**) RADEON(0): Option "AGPFastWrite" "True"
(**) RADEON(0): Option "EnablePageFlip" "True"
(==) RADEON(0): RGB weight 565
(II) RADEON(0): Using 6 bits per RGB (8 bit DAC)

...

(II) RADEON(0): initializing int10
(II) RADEON(0): Primary V_BIOS segment is: 0xc000
(--) RADEON(0): Chipset: "ATI Radeon IGP320M (U1) 4336" (ChipID = 0x4336)
(--) RADEON(0): Linear framebuffer at 0xe0000000
(--) RADEON(0): VideoRAM: 65536 kByte (64-bit SDR SDRAM)

...

(==) RADEON(0): Write-combining range (0xe0000000,0x4000000)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmGetBusid returned ''
(II) RADEON(0): [drm] created "radeon" driver at busid "PCI:1:5:0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xdc8e0000
(II) RADEON(0): [drm] mapped SAREA 0xdc8e0000 to 0x440f6000
(II) RADEON(0): [drm] framebuffer handle = 0xe0000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [agp] Mode 0x0f000214 [AGP 0x1002/0xcab0; Card 0x1002/0x4336]
(II) RADEON(0): [agp] 8192 kB allocated with handle 0x00000001
(II) RADEON(0): [agp] ring handle = 0xd4000000
(II) RADEON(0): [agp] Ring mapped at 0x440f8000
(II) RADEON(0): [agp] ring read ptr handle = 0xd4101000
(II) RADEON(0): [agp] Ring read ptr mapped at 0x441f9000
(II) RADEON(0): [agp] vertex/indirect buffers handle = 0xd4102000
(II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x441fa000
(II) RADEON(0): [agp] AGP texture map handle = 0xd4302000
(II) RADEON(0): [agp] AGP Texture map mapped at 0x443fa000
(II) RADEON(0): [drm] register handle = 0xd0100000
(II) RADEON(0): [dri] Visual configs initialized
(II) RADEON(0): CP in BM mode
(II) RADEON(0): Using 8 MB AGP aperture
(II) RADEON(0): Using 1 MB for the ring buffer
(II) RADEON(0): Using 2 MB for vertex/indirect buffers
(II) RADEON(0): Using 5 MB for AGP textures
(II) RADEON(0): Memory manager initialized to (0,0) (1024,8191)
(II) RADEON(0): Memory manager initialized to (0,0) (1024,8191)
(II) RADEON(0): Reserved area from (0,768) to (1024,770)
(II) RADEON(0): Largest offscreen area available: 1024 x 7421
(II) RADEON(0): Will use back buffer at offset 0x600000
(II) RADEON(0): Will use depth buffer at offset 0x780000
(II) RADEON(0): Will use 56320 kb for textures at offset 0x900000
(II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)
        Screen to screen bit blits
        Solid filled rectangles
        8x8 mono pattern filled rectangles
        Indirect CPU to Screen color expansion
        Solid Lines
        Dashed Lines
        Scanline Image Writes
        Offscreen Pixmaps
        Setting up tile and stipple cache:
                32 128x128 slots
                32 256x256 slots
                16 512x512 slots
(II) RADEON(0): Acceleration enabled
(==) RADEON(0): Backing store disabled
(==) RADEON(0): Silken mouse enabled
(II) RADEON(0): Using hardware cursor (scanline 770)
(II) RADEON(0): Largest offscreen area available: 1024 x 7413
(**) Option "dpms"
(**) RADEON(0): DPMS enabled
(II) RADEON(0): X context handle = 0x00000001
(II) RADEON(0): [drm] installed DRM signal handler
(II) RADEON(0): [DRI] installation complete
(WW) RADEON(0): Mismatched FB location. Incorrect version of DRM kernel driver is used.
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xdc8e0000 at 0x440f6000
(II) RADEON(0): Direct rendering disabled
(==) RandR enabled

...

XFConfig:

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"
        Load  "synaptics"
EndSection


Section "Device"
        Identifier  "Videocard0"
        Driver      "radeon"
        VendorName  "Videocard vendor"
        BoardName   "ATI Radeon Mobility U1"
        Option "EnablePageFlip" "True"
        Busid  "PCI:1:5:0"
        Option "accel"
        Option "AGPMode" "4"
        Option "AGPFastWrite" "True"
        #Option "DPMS"
EndSection


...

glxinfo:

name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
    GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess


...

glxgears:

749 frames in 5.0 seconds = 149.800 FPS
720 frames in 5.0 seconds = 144.000 FPS
720 frames in 5.0 seconds = 144.000 FPS
720 frames in 5.0 seconds = 144.000 FPS


...
from /boot/config:

CONFIG_AGP=y
CONFIG_AGP_ALI=y
CONFIG_AGP_ATI=y
CONFIG_AGP_AMD=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
CONFIG_AGP_NVIDIA=y
CONFIG_AGP_SIS=y
CONFIG_AGP_SWORKS=y
CONFIG_AGP_VIA=y
CONFIG_DRM=y
 
Old 03-02-2004, 10:09 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
Your problem is this:
Quote:
I haven't recompiled yet because I've had rotten luck so far compiling 2.6 kernels on this thing AND the AGP and DRM modules seem to already be there by default.
The DRM modules may be there already, but they are the wrong version:
Code:
(WW) RADEON(0): Mismatched FB location. Incorrect version of DRM kernel driver is used.
Looks like you're going to have to do a recompile I'm afraid.
 
Old 03-02-2004, 10:19 AM   #3
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Original Poster
Rep: Reputation: 45
Thanks. I hadn't spotted that.

Does this mean I'll have to apply some sort of patch? Like this one?

http://bugs.xfree86.org/show_bug.cgi?id=314

Hmmm...looks like I have more reading. I mean, I'm not sure the patches on that page apply to 2.6.1 (I had thought they were incorporated).



I'm going to try a recompile in the next day or so.
 
Old 03-02-2004, 10:30 AM   #4
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
It looks like it means that your kernel has tried to load DRM as a module, but has loaded an incompatible version. Just recompiling the kernel should fix things (as long as you pick all of the right options of course...)
 
Old 03-02-2004, 10:35 AM   #5
Mr. D.
Member
 
Registered: Jul 2003
Location: Switzerland
Distribution: Slackware 10, SuSE 9.3
Posts: 35

Rep: Reputation: 15
keep on going and tell the rest of us how it works, please.

bye d
 
Old 04-12-2004, 11:49 AM   #6
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Original Poster
Rep: Reputation: 45
For Mr. D. and anyone else who is subscribed to this thread (and anyone else stuck with an IGP320M and found this thread through a search)

There's hope...more than hope:

I GOT 3D WORKING!!!! WOOOHOOOO!!!!

First I decided to try and get Gentoo running, and I did (I was impressed with how well it runs and how rock stable it is on my presario 2110)...

Then I read through this thread:

here

Note: On page 2, there is the main, important HOWTO posted by a user called captnjameskirk (thank you!) but you can't stop there...there are other hints in the rest of the thread that help IF you run into trouble. Foremost of which that the ebuild for xfree they mention isn't in the portage tree anymore but someone posts a link to it elsewhere.

Anyway...it works.

I'm a VERY happy guy....just installed and played Quake3 arena here and I'm moving on to NeverWinterNights
 
Old 09-23-2004, 12:01 AM   #7
crazytigger
Member
 
Registered: Sep 2004
Location: Brighton UK
Distribution: *buntu 7.10
Posts: 59

Rep: Reputation: 15
OMG i want to get 3d working sooooo badly on my compaq laptop... can't someone make it easier for me!!!?? i know it's asking too much really but i don't even know how to recompile mandrake 10's kenel... :*( ..

Looking hopeful tho as you say.. i have reading to do...

_________________________
linux... book and beard
 
Old 09-23-2004, 03:20 AM   #8
Nitrox
Member
 
Registered: Aug 2004
Location: Detroit.
Distribution: Slack 12.1 - Vector (exp)
Posts: 51

Rep: Reputation: 15
Congratz on getting it to work...

I have a few posts out there in different forums, dated a year or more ago, posting what Ive found, questions,
feedback, etc. about the IGP 320M. Still in 2d mode here tho (Slack X). Never did get it running.

Gonna give it one more shot, I'd hate to switch to a diff distro..

Questions might be incoming soon
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Video out on an ATI IGP320M johngcarlsson Linux - Hardware 0 09-26-2004 02:38 PM
HELP - 3D for IGP320m on SuSE9.1 PLEASE Mr_C Linux - Laptop and Netbook 1 06-17-2004 08:18 AM
xfree 4.4 and radeon igp320m 3d acceleration ferenkileen Linux - Laptop and Netbook 12 05-17-2004 05:13 AM
radeon igp320m-i do what exactly? Brain Drop Linux - Laptop and Netbook 0 12-14-2003 01:29 PM
Amilo A 7600 / Radeon IGP320M Sammy2ooo Linux - Laptop and Netbook 10 11-26-2003 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration