On Wed, 2003-11-05 at 05:07, Felix Kühling wrote:
> Hi,
> 
> I get hard lockups when switching from a second Xserver (:1) started on
> vt8 back to the first one (:0) on vt7. It happens on  VT switches as
> well as when the second Xserver exits. Sysrq keys don't work, and the
> machine doesn't respond to ping any more. I had a look at the
> XFree86.1.log from the second Xserver. This looks surprising to me:
> 
> ...
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is 9, (OK)
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is 9, (OK)
> drmOpenByBusid: Searching for BusID pci:0000:01:00.0
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is 9, (OK)
> drmOpenByBusid: drmOpenMinor returns 9
> drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
> (II) RADEON(0): [drm] DRM interface version 1.1
> (II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:01:00.0"
> (II) RADEON(0): [drm] added 8192 byte SAREA at 0xd8f7e000
> (II) RADEON(0): [drm] mapped SAREA 0xd8f7e000 to 0x40012000
> (II) RADEON(0): [drm] framebuffer handle = 0xd0000000
> (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 0xd8f7e000 at 0x40012000
> ...
> 
> IIRC the old behaviour was that the second Xserver couldn't open the DRM
> in the first place. Now it opens the DRM but fails because AGP is not
> available (it was available to the first Xserver, though). Does anyone
> know for sure? Eric, could this be related to your latest DRM changes?

It should be fixed now.  The 2nd server, by addmapping the SAREA, was
setting dev->lock.hw_lock to its SHM area and breaking the 1st server's
locking.  Now, the addmap attept by the 2nd server will fail, and that
server will not initialize the DRI.

-- 
Eric Anholt                                [EMAIL PROTECTED]          
http://people.freebsd.org/~anholt/         [EMAIL PROTECTED]




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to