On Sunday 20 November 2005 00:25, Ricardo Lugo wrote:
> "classic smp problems" means its time for more locking, no?
> So I played around with some of the locking of enc_work_handler and
> dec_work_handler:
>
> When enc_work_handler and dec_work_handler are blocked on the same
> lock, no freezes occur. (IE only one part of the card can work at a
> time: Encoder or Decoder)
>
> When I gave dec_work_handler its own lock (for all the code in the
> entire function), the freezes came back. (IE Encoder & Decoder
> working together)
>
> What is wierd about this is that I don't have to be using the Encoder
> for the Decoder to freeze up!
>
> Conclusion: there must be something that the ENC functions do to
> (being called even when the ENC is idle) that invalidate the DEC dma
> stream on multi-processor (or multi-threaded) machines. IE we need
> more fine-grained locking.
Rick,
Can you mail me a patch with your changes that make it work on an smp
machine?
Thanks,
Hans
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel