openvortex-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openvortex-dev] Findings...


From: Shamus
Subject: Re: [Openvortex-dev] Findings...
Date: Wed, 23 Apr 2003 09:04:40 -0700

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

Hi!

>I agree. I expected the card wouldn't be doing anything before it was

>programmed to.
>Imagine a soundcard capturing sound and writing it per DMA somewhere 
>into memory ... very bad.
>Maybe there some few Vortex card badly designed with such odd
behaviour. 
>Anyway,  our driver
>has to deal with such situations.
>
>Any sugestions ?

According "Linux Device Drivers, 2nd Ed.", the right way to handle IRQ
grabbing is at the device's open() code--they also suggest that the
IRQ should be released in the device's close() code as well which
means you'd have to keep track of how many open()'s have happened and
how many close()'s before releasing the IRQ (keep a reference count).

In this case, it sounds like it would be a good idea to do things this
way for the au88x0 driver. That way the card would (ideally) be fully
initialized before an IRQ can occur. As for badly designed Vortex
cards, mine's revision FA, so that is a distinct possibility.  ;-(  At
least now there is the possibility of finding these problems...  :-p

Stay tuned...

- -- Shamus

-----BEGIN PGP SIGNATURE-----
Version: Encrypted with PGP Plugin for Calypso

iQA/AwUBPqa5k5hOW/ztyY5GEQJx0QCcDuS6upo2nFFO1FiVnA8y8YpZKEYAoNEU
fYQvWAsPPC5zleOR4fwB5CLA
=W+yE
-----END PGP SIGNATURE-----






reply via email to

[Prev in Thread] Current Thread [Next in Thread]