-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have done some debugging, so i try to tell you what i discovered, hoping
some of you can help me.

I have noticed that after some delay the hdd led was flashing, so i waited
before rebooting.
Doing so, after the hard reboot, i can find some log written.

First, i opened XFree86.0.log and found the following error:

**) R128(0): DPMS enabled
(EE) R128(0): R128CCEWaitForIdle: CCE idle -1007
(EE) R128(0): Idle timed out, resetting engine...
(EE) R128(0): R128CCEWaitForIdle: CCE reset -1007
(EE) R128(0): R128CCEWaitForIdle: CCE start -1007
(EE) R128(0): R128CCEWaitForIdle: CCE idle -1007
(EE) R128(0): Idle timed out, resetting engine...
(EE) R128(0): R128CCEWaitForIdle: CCE reset -1007
(EE) R128(0): R128CCEWaitForIdle: CCE start -1007
(EE) R128(0): R128CCEWaitForIdle: CCE idle -1007
(EE) R128(0): Idle timed out, resetting engine...
( the messages where repeated FOREVER )

And, in kern.log:
Mar  6 19:10:12 shimitar vmunix: [drm:r128_cce_idle] *ERROR* r128_cce_idle
called without lock held
Mar  6 19:10:12 shimitar vmunix: *ERROR* r128_cce_reset called without lock
held
Mar  6 19:10:13 shimitar vmunix: [drm:r128_cce_start] *ERROR* r128_cce_start
called without lock held
Mar  6 19:10:14 shimitar vmunix: [drm:r128_cce_idle] *ERROR* r128_cce_idle
called without lock held
Mar  6 19:10:14 shimitar vmunix: [drm:r128_cce_reset] *ERROR* r128_cce_reset
called without lock held
Mar  6 19:10:16 shimitar vmunix: [drm:r128_cce_start] *ERROR* r128_cce_start
called without lock held
( again, these messages where repeated several times )

So i opened the files (r128_cce.c and r128_state.c mainly) and discovered that
the macro
#define LOCK_TEST_WITH_RETURN( dev )                                    \
do {                                                                    \
        if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) ||           \
             dev->lock.pid != current->pid ) {                          \
                DRM_ERROR( "%s called without lock held\n",             \
                           __FUNCTION__ );                              \
                return -EINVAL;                                         \
        }                                                               \
} while (0)

causes my lockup problem.

It seems that there should a LOCK which is not set!
Now, i am not so into DRM code so i am asking for help here.

What can be tryed to avoid this problem?

(i have tryed to comment out the macro but i'v got a nice
Mar  6 20:07:08 shimitar vmunix: Unable to handle kernel NULL pointer
dereference at virtual address 00000030 ) off course.




Alle 09:30, gioved� 6 marzo 2003, Willy Gardiol ha scritto:
> Hi,
> i have compiled&installed XFree86 4.3.0 (gcc 3.2.1, kernel 2.4.20)
> It works quite well with DRI disabled, it works well with DRI enabled using
> old kernel modules (eg: an old dri snapshot or the gatos for x 4.2.0 ones)
> but it lock if i use the kernel modules given with XFree86 4.3.0.
>
> I moved to xc/programs/Xservers/..../os-support/linux/kernel
> and did make -f Makefile.linux
> then removed old r128*.o form my modules dir and put there the new ones.
>
> When i start X with bpp > 8 it clear the screen, goes to the right video
> mode and then leavwe me with a black screen and locks. CTRL+ALT+FX does not
> work, i cannot ssh into it (no other pc networked to it).
> This happen with every depth DRI accelerated i tried (16,24)
> if i disable DRI or choose 8bpp it works (with no DRI enabled).
>
> The /var/log/XFree86* says nothing (i think the computer chrash BEFORE
> writing anything to them or flushing cache to disk)
> I have also tried startx > x.out with again, the outoput file is never
> written on disk.
>
>
>
> I will download the new gatos drm-kernel for x 4.3.0 and try with it.
>
> anyway, using the old kernel modules gives me plenty of broken textures in
> UT
>
> :(
>
> bye!

- --

!
 Willy Gardiol - [EMAIL PROTECTED]
 goemon.polito.it/~gardiol
 Use linux for your freedom.

   "La GPL e il modello open source consentono
    la creazione della tecologia migliore.
    Tutto qui."

      Linus Torvalds


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD4DBQE+Z5/2Q9qolN/zUk4RApmrAJ4gZaQkXciBja45qkvaNLOzVDgYzgCY878V
2f3Foc/mIlrTbR2Ac5PAdw==
=DdO9
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to