Re: [BUG] r200 dri driver deadlocks

From: Mike Mestnik
Date: Tue Sep 07 2004 - 01:36:23 EST



--- Felix Kühling <fxkuehl@xxxxxx> wrote:

> On Sun, 05 Sep 2004 20:14:43 -0400
> Lee Revell <rlrevell@xxxxxxxxxxx> wrote:
>
> > On Sun, 2004-09-05 at 16:18, Patrick McFarland wrote:
> [snip]
> > >
> > > That shouldn't matter, should it? The userland stuff should never
> lock
> > > the machine up.
> > > I'll test it anyhow, though.
> >
> > No, it shouldn't. Anything that directly accesses hardware belongs in
> > the kernel. How to fix this is a pretty hot topic now.
>
> That's not the whole truth. There are just too many ways to lock up
> those 3D chips. For instance I fixed a lockup in the r100 driver where
> the order in which state changing commands were sent to the hardware
> would cause a lockup. Each individual state changing command is
> perfectly valid. Finding all permutations that trigger a lockup would
> have been too much of a hassle and may not even have been true for all
> supported hardware out there. So we made the user-space driver emit
> state changing commands in a fixed order, which seems to work
> everywhere.
>
Dose the DRM varify that the cmds are in this order? Why not just have
the DRM 'sort' the cmds? A simple bouble sort would have no more overhead
then the check for correct order, but it would fix missordered cmd
streams.

Once this is done the statement holds true, userland stuff should never...

> Regars,
> Felix
>
> >
> > Lee
> >
>
> | Felix Kühling <fxkuehl@xxxxxx> http://fxk.de.vu |
> | PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3 B152 151C 5CC1 D888 E595 |
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
> --
> _______________________________________________
> Dri-devel mailing list
> Dri-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/dri-devel
>




__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/