On Thu, Jun 12, 2003 at 08:42:03AM +0200, Martin Spott wrote: > Hello Jose, > > > Since it's easy for you to rebuild the kernel module, try the attached > > patch which adds a debug output line. That line should appear, and both > > pointers should be non-NULL. > > I applied your patch but I did not notice where the expected debug output > should appear. Should it show up on STDERR, in the syslog, in XFree ? > > '/var/log/messages' looks as usual on 'radeon' module load and X server > start: > > Jun 12 08:19:25 quickstep kernel: [drm] AGP 0.99 aperture @ 0xe4000000 64MB > Jun 12 08:19:25 quickstep kernel: [drm] Initialized radeon 1.9.0 20020828 on minor 0 > Jun 12 08:19:25 quickstep kernel: [drm] Loading R200 Microcode > Jun 12 08:19:28 quickstep kernel: [drm:radeon_cp_init] *ERROR* radeon_cp_init called > without lock held > Jun 12 08:19:28 quickstep kernel: [drm:radeon_unlock] *ERROR* Process 26871 using > kernel context 0
It should appear in the lines above of the /var/log/messages, but I forgot that DRM_DEBUG messages don't usually get printed at all. Replace the DRM_DEBUG in the last patch by DRM_INFO. Also try the attached patch. This should hopefully point what is causing the ioctl to fail. > > I attached a compressed XFree86.0.log - in case it might be useful (it's > only 8k). I didn't get the attachement. > > I managed to get something different. When setting LIBGL_DEBUG=verbose, each > time I start a program that is supposed to use OpenGL, I can read the > following on STDERR immediately after hitting enter: > > libGL error: XF86DRIQueryDirectRenderingCapable returned falselibGL error: > XF86DRIQueryDirectRenderingCapable returned falselibGL error: > XF86DRIQueryDirectRenderingCapable returned falsename of display: > quickstep.plesnik.bonsai.de:0.0 This is a consequence of DRM being disabled on the server. José Fonseca
Index: drm_agp_tmp.h =================================================================== RCS file: /cvsroot/dri/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_agp_tmp.h,v retrieving revision 1.4 diff -u -r1.4 drm_agp_tmp.h --- drm_agp_tmp.h 7 Jun 2003 12:45:55 -0000 1.4 +++ drm_agp_tmp.h 12 Jun 2003 10:17:01 -0000 @@ -166,6 +166,7 @@ drm_device_t *dev = priv->dev; int retcode; + DRM_INFO("dev->agp = 0x%lx dev->agp->acquired = 0x%lx\n", dev->agp, dev->agp ? dev->agp->acquired : 0); if (!dev->agp || dev->agp->acquired || !drm_agp->acquire) return -EINVAL; if ((retcode = DRM(agp_acquire)())) return retcode;