Roland Scheidegger wrote:
José Fonseca wrote:

(II) RADEON(0): [drm] created "radeon" driver at busid "PCI:1:0:0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xe0c70000
(II) RADEON(0): [drm] mapped SAREA 0xe0c70000 to 0x40023000
(II) RADEON(0): [drm] framebuffer handle = 0xd8000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(WW) RADEON(0): [agp] AGP not available
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xe0c70000 at 0x40023000
(II) RADEON(0): Memory manager initialized to (0,0) (1152,8191)
(II) RADEON(0): Reserved area from (0,864) to (1152,866)
(II) RADEON(0): Largest offscreen area available: 1152 x 7325
(II) RADEON(0): Acceleration enabled
(II) RADEON(0): Using hardware cursor (scanline 866)
(II) RADEON(0): Largest offscreen area available: 1152 x 7321
(II) RADEON(0): Direct rendering disabled



This can't be. This log can't possible match the other one you gave me. In the /var/log/messages it showed the agp buffer being added and so on.

The only explanantion I can think of is that you're running _two_ X
servers. The first one acquires the AGP device but the second fails to
acquire, since the AGP device is already acquired by the first.


FWIW, I get that now always when I start the X server, then shut down
the X server and start it again. DRI will never work again, unless I
rmmod the radeon module manually before I restart the X server. Sounds like some initialization thing.
lsmod will show (before starting X, but after manually inserting agpgart
& radeon):
Module Size Used by Not tainted
radeon 102152 0 (unused)
agpgart 13904 1


after X is started:
radeon                102152   12
agpgart                13904   3

and after X shutdown (and restart with dri not working):
radeon                102152   0
agpgart                13904   3

after rmmod radeon the agpgart used count will be back to 0.
It looks like the driver doesn't release the agp device when the X Server is shut down. At next startup (with startx) thus the driver can't acquire the agp device. More precisely, calling DRM(agp_acquire_ioctl)(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg) (in drm_agp_tmp.h) returns an error, since dev->agp->acquired is still 1 (verified with some additional debug output).
I remember there was a bug which resulted in non-freeing the resources if the X Server was terminated, but I thought this was fixed some month ago?


Roland




------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to