Re: X not working with Radeon 9200 under 2.6.11

Dave Airlie
2005-03-24T06:36:13Z

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

>
> It's a bit sad that xfree _used_ to work (2.6.9?) and now it doesn't work,
> and the fix is to switch to the x.org server.
>
> Do we know what changed to cause this? Was it deliberate?

Okay I installed Debian Sarge today and found a bug in the drm version
ioctls alright with the older interface that XFree86 4.3 uses...

Anyone want to test this patch (Andrew I'll put it my -mm tree ASAP)...

I'm still at a loss to reproduce the brige problems ppl are seeing..
time to switch to i865 chipset ...

Dave.

[-- Attachment #2: drm_test_diff --]
[-- Type: application/octet-stream, Size: 495 bytes --]

===== drivers/char/drm/drm_drv.c 1.63 vs edited =====
--- 1.63/drivers/char/drm/drm_drv.c 2005-03-10 20:19:42 +11:00
+++ edited/drivers/char/drm/drm_drv.c 2005-03-24 17:07:16 +11:00
@@ -144,6 +144,12 @@
if (dev->driver->pretakedown)
dev->driver->pretakedown(dev);

+ if (dev->unique) {
+ drm_free(dev->unique, strlen(dev->unique) + 1, DRM_MEM_DRIVER);
+ dev->unique = NULL;
+ dev->unique_len = 0;
+ }
+
if ( dev->irq_enabled ) drm_irq_uninstall( dev );

down( &dev->struct_sem );