LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Ati Radeon 9200 SE (xorg 6.8.0) driver (HELP please!) (https://www.linuxquestions.org/questions/slackware-14/ati-radeon-9200-se-xorg-6-8-0-driver-help-please-304994/)

apinta10 03-23-2005 05:00 AM

Ati Radeon 9200 SE (xorg 6.8.0) driver (HELP please!)
 
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.11.2/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/home/api/linux-2.6.11.2/linux-2.6.11.2'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `firegl_stub_putminor':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:509: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:511: warning: `inter_module_unregister' is deprecated (declared at include/linux/module.h:574)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `firegl_stub_register':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:531: warning: `inter_module_register'is deprecated (declared at include/linux/module.h:573)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:562: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_get_vm_phys_addr':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1673: warning: passing arg 1 of `pmd_offset' from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `do_vm_shm_nopage':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2203: warning: passing arg 1 of `pmd_offset' from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_vm_phys_addr_str':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2573: warning: passing arg 1 of `pmd_offset' from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2661: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_vm_map':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2722: warning: implicit declaration of function `remap_page_range'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2876: error: parse error before '*' token
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2876: warning: type defaults to `int'in declaration of `drm_agp_module_stub'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2876: warning: data definition has notype or storage class
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agpgart_available':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3018: error: `drm_agp_t' undeclared (first use in this function)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3018: error: (Each undeclared identifier is reported only once
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3018: error: for each function it appears in.)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3018: error: parse error before ')' token
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3039: error: request for member `free_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3041: error: request for member `free_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3044: error: request for member `allocate_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3046: error: request for member `allocate_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3049: error: request for member `bind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3051: error: request for member `bind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3054: error: request for member `unbind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3056: error: request for member `unbind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3059: error: request for member `enable' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3061: error: request for member `enable' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3064: error: request for member `acquire' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3066: error: request for member `acquire' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3069: error: request for member `release' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3071: error: request for member `release' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3074: error: request for member `copy_info' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3076: error: request for member `copy_info' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_uninit':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3147: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_free_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3180: error: request for member `free_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3181: error: request for member `free_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_allocate_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3190: error: request for member `allocate_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3191: error: request for member `allocate_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_bind_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3201: error: request for member `bind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3202: error: request for member `bind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_unbind_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3212: error: request for member `unbind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3213: error: request for member `unbind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_enable':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3223: error: request for member `enable' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3225: error: request for member `enable' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_acquire':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3271: error: request for member `acquire' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3272: error: request for member `acquire' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_release':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3282: error: request for member `release' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3283: error: request for member `release' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_copy_info':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3296: error: request for member `copy_info' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3303: error: request for member `copy_info' in something not a structure or union
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/home/api/linux-2.6.11.2/linux-2.6.11.2'
make: *** [kmod_build] Error 2
build failed with return value 2

Does anyone have any suggestions please?

Slackware 10.1
I am still searching for an answer how ti fix this! thank you.

xushi 03-23-2005 06:28 AM

Re: Ati Radeon 9200 SE (xorg 6.8.0) driver (HELP please!)
 
Quote:

Originally posted by apinta10
Does anyone have any suggestions please?[/B]
Yes, switch to Nvidia. Seriously.

apinta10 03-23-2005 06:53 AM

I have GeForce4 card at home as a reserve.
 
I think i will do that.

Don't have time to fix that kind of problem.

xushi 03-23-2005 07:44 AM

Nevertheless, lets try..

Have you tried any of the two patches mentioned here (at the bottom of the thread)?

http://www.linuxquestions.org/questi...&highlight=ati

egag 03-23-2005 08:07 AM

hi there,

i also have a 9200SE and my absolute max. runtime with fglrx is about 5 minutes.

but why would you use it.
using the radeon driver with dri gives the same results for acceleration.

try it ?
check for this in the xorg.conf :
modules section should have

Load "glx"
Load "dri "

device section should look like this :

Section "Device"
Identifier "card"
Driver "radeon"
ChipId 0x5964
Option "Overlay"
Option "EnablePageFlip" "on"
EndSection

and at the end of the file :

Section "DRI"
Mode 0666
EndSection

( note : the option "overlay" is not used, it sais so in my xorg.log file,
but without that option my tvimage won't work in overlay mode )
and i think the chipID will be ok for your card.

this gives the same fps with glxgears as the fglrx driver.

egag

xushi 03-23-2005 08:29 AM

egag,

What do you have compiled in the kernel in order to achieve such good results using just the default 'radeon' drivers? Because i have the same setting as you do up there (excluding the chipID), and the most i can get is 300fps (as opposed to 1400+fps on fglrx drivers).

egag 03-23-2005 08:40 AM

hmmm....1400 fps.
i get 760 fps max. and 550 fps without the "pageflip " option.
but when i had the fglrx driver running it did also 760 fps.
( and that driver always froze the screen within a few minutes )

but do you have a 9200SE or maybe a 9200 ?

egag

xushi 03-23-2005 08:44 AM

Quote:

Originally posted by egag
hmmm....1400 fps.
i get 760 fps max. and 550 fps without the "pageflip " option.
but when i had the fglrx driver running it did also 760 fps.
( and that driver always froze the screen within a few minutes )

but do you have a 9200SE or maybe a 9200 ?

egag

Well i'm on a Mobility Radeon 9200. On fglrx i used to get around 1400fps, but there were ALOT of complications and crashes, so it wasn't worth it.

Now on 'radeon' i get 200 to 250 fps, but none of the games want to run on 3D... =/

But i don't have the Radeon drivers compiled in the kernel (under Graphics drivers afaik)... I wonder if you need that or not, as well as anything else that i might have missed.

egag 03-23-2005 08:57 AM

no, i don't have anything special in the kernel configuration. ( afik )
i just use the radeon driver and i got the info from :

http://dri.freedesktop.org/wiki/ATIR...ac6c242de7f3c1

does "glxinfo " give " hardware acceleration=yes " ?
if not, maybe try the ChipID and pageflip options.

acc. to the dri-pages 3D-accel. should work for you..

edit: btw: the radeon driver you build in the kernel is only the framebuffer driver, that's used in console-mode.
the drm-radeon driver is used in graphics mode.

egag

2nd edit =erroredit ( drm was xorg )

xushi 03-23-2005 09:37 AM

erm... how do i know what my ChipID is ?

edit: hmm, very weird..
X11 logs give me this output, although my graphics card is 9200
Code:

(--) Chipset ATI Radeon Mobility 9000 (M9) Lf (AGP) found
(--) RADEON(0): Chipset: "ATI Radeon Mobility 9000 (M9) Lf (AGP)" (ChipID = 0x4c66)
root@xushi:~#


egag 03-23-2005 09:46 AM

maybe it's not ok recognised

quote
--------------
You need to use the 'ChipID 0x4242' option in the device section to make
it recognize the 9200.
--------------

from :

http://users.actrix.co.nz/michael/radeon9200.html

( take a look there, a lot of info on 9200 )

egag

xushi 03-23-2005 09:48 AM

Sorry, forgot to mention.

I've tried 0x4242, all i get is a black screen. Tried 0x514d too.. same problem.

EDIT:

Found the right one.. 0x4c66.
Atleast i can get into X again.. but still no dri rendering.. bah.

egag 03-23-2005 04:41 PM

do you have agp enabled ?
is the agpgart module loaded ?

also you can check /var/log/Xorg.0.log for warnings/errors.

egag

xushi 03-23-2005 05:00 PM

EDIT:::::
==============
Ok few corrections here...

Still same problem, but good progress so far.

In kernel, i've set /dev/agpgart as module instead of built in, and i don't get error messages anymore. When i lsmod, i get
Code:

root@xushi:/usr/src/linux# lsmod
Module                  Size  Used by
radeon                75072  0
drm                    60308  1 radeon
snd_pcm_oss            48672  0
snd_mixer_oss          17536  3 snd_pcm_oss
sr_mod                13732  0
usb_storage            29184  0
scsi_mod              79688  2 sr_mod,usb_storage
snd_intel8x0          29504  2
snd_ac97_codec        75320  1 snd_intel8x0
snd_pcm                84552  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              22020  1 snd_pcm
snd_page_alloc          7620  2 snd_intel8x0,snd_pcm
agpgart                28904  1 drm

(Strange how 'radeon' isn't being used anymore.. hmm)

I also enabled DRI in kernel as module..

But still, glxinfo shows Direct rendering as : NO
and glxgears is around 250fps


EDIT 2
========
Xorg.0.log

Code:

(II) RADEON(0): [drm] loaded kernel module for "radeon" driver
(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:01:00.0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xf98d3000
(II) RADEON(0): [drm] mapped SAREA 0xf98d3000 to 0xb3ce7000
(II) RADEON(0): [drm] framebuffer handle = 0x98000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(WW) RADEON(0): [agp] AGP not available 
(EE) RADEON(0): [agp] AGP failed to initialize. Disabling the DRI.
(II) RADEON(0): [agp] You may want to make sure the agpgart kernel module
is loaded before the radeon kernel module.
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xf98d3000 at 0xb3ce7000
(II) RADEON(0): Memory manager initialized to (0,0) (1680,8191)
(II) RADEON(0): Reserved area from (0,1050) to (1680,1052)
(II) RADEON(0): Largest offscreen area available: 1680 x 7139
(II) RADEON(0): Render acceleration enabled 
(II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)


egag 03-23-2005 05:21 PM

agpgart support is the general part.
the other module must match your chipset
( i have a via chipset , so i need a via-agp module )

and you need drm for ati radeon.

i allways make that 3 modules ( agpgart, via-agp, radeon )
maybe try that.
( don't forget to recompile the kernel also without the agp )

edit: didn't see your last post..... :)
looks ok, only agpgart should be loaded before the radeon....but u gueass agpgart is already
loaded by rc.modules.........so ???

egag

xushi 03-23-2005 05:29 PM

Quote:

Originally posted by egag
agpgart support is the general part.
the other module must match your chipset
( i have a via chipset , so i need a via-agp module )

This might sound silly (its getting late), but from lspci, i assume my chipset is an ATI chipset...
Code:

root@xushi:~# lspci
00:00.0 Host bridge: Intel Corp. 82855PM Processor to I/O Controller (rev 03)
00:01.0 PCI bridge: Intel Corp. 82855PM Processor to AGP Controller (rev 03)
00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #3 (rev 01)
00:1d.7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 01)
00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4) Ultra ATA Storage Controller (rev 01)
00:1f.3 SMBus: Intel Corp. 82801DB/DBM (ICH4) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) AC'97 Audio Controller (rev 01)
00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 Lf [Radeon Mobility 9000 M9] (rev 01)
02:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
02:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20)
02:02.0 Network controller: Intel Corp. PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
02:04.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller

or are we talking about this line ?
00:01.0 PCI bridge: Intel Corp. 82855PM Processor to AGP Controller (rev 03)

Quote:

and you need drm for ati radeon.
That's done.

Quote:

( don't forget to recompile the kernel also without the agp )
That i never understood what it exactly means....

BTW thanks egag for all the help so far
EDIT: And sorry apinta10 for stealing your thread from you :) but this could be useful to you too.

egag 03-23-2005 05:45 PM

---------
or are we talking about this line ?
00:01.0 PCI bridge: Intel Corp. 82855PM Processor to AGP Controller (rev 03)
---------

yes, so intel is the right one i think. ( modulename is smth. like intel-agp or so )

----------
That i never understood what it exactly means....
----------

i meant, if you have a kernel with agp compiled in and you want it modular,
then you have to recompile the bzImage as well as the modules.
if you only add a module then you only have to recompile the modules,

egag

xushi 03-23-2005 05:56 PM

oh god.. this is really starting to get confusing..

EDIT:
Fixed it up a bit.. here's a better snapshot,
http://xushi.co.uk/agp2.jpg

Still direct rendering = no, and same errors in Xorg.0.log

egag 03-23-2005 06:10 PM

ah...can't you choose /dev/agpgart and the intel as modules . ?
( i can do that here.... )
if so ,i would pick both options saying " intel " as a module.
( i dont't know which one you need , but the right one will be loaded when loading agpgart.

egag

xushi 03-24-2005 07:55 AM

Quote:

Originally posted by egag
if so ,i would pick both options saying " intel " as a module.
( i dont't know which one you need , but the right one will be loaded when loading agpgart.

lol egaaaaaaaag :) still no hope. they're both enabled as modules.. but still 3D won't work on X.. =/

egag 03-24-2005 08:06 AM

well....the other people that wrote the wiki in the link above have it working,
so it should work for you.

are the modules loaded ?
and what does the xorg-log file say ?
might be a clue there....

egag

apinta10 04-06-2005 05:07 PM

ATI and NVIDIA
 
I gave Ati to my sis.. now i Have NVIDIA- works great, no errors of anykind. TVOUT, 3d. games works great

Quake3
Unreal Tournamnet
Wolfenstein
StarCraft and its Expansion (havent installed the latest patch, need to use wine)

Debian Sarge + CrossOver + Cedega + Wine

apinta10 10-11-2005 03:22 AM

How to make ATI work in few steps
 
First make a new kernel. Some thing need to be unchecked!

#
# Graphics support
#
CONFIG_FB=m
CONFIG_FB_CFB_FILLRECT=m
CONFIG_FB_CFB_COPYAREA=m
CONFIG_FB_CFB_IMAGEBLIT=m
CONFIG_FB_SOFT_CURSOR=m
# CONFIG_FB_MACMODES is not set
CONFIG_FB_MODE_HELPERS=y
# CONFIG_FB_TILEBLITTING is not set
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_VIDEO_SELECT is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I810 is not set
# CONFIG_FB_INTEL is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON_OLD is not set
CONFIG_FB_RADEON=m
CONFIG_FB_RADEON_I2C=y
# CONFIG_FB_RADEON_DEBUG is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_VIRTUAL is not set
#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE is not set

Direct rendering Manager MUST BE DISABLED!

After that install ati package! compile the module. and configure fglrxconfig (the newest driver)
works at .run package
works in .rpm package

check dmesg


All times are GMT -5. The time now is 07:56 PM.