Date: Wed, 26 Oct 2005 11:24:15 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-drivers@freebsd.org Subject: Re: Cryptography Driver (Help !!!!) Message-ID: <200510261124.16956.jhb@freebsd.org> In-Reply-To: <20051026031920.11BC983C03@ws1-1.us4.outblaze.com> References: <20051026031920.11BC983C03@ws1-1.us4.outblaze.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 25 October 2005 11:19 pm, Yong Ma wrote: > Dear colleagues, > Cry for help!!!! > The cryptography card driver (polling mode, not interrupt mode) works well > under linux-2.4, but not working under FreeBSD-5.4. The DMA buffer just > keep intact under FreeBSD-5.4 after the Random value generation command > has been issued. > > Every thing is compared, but it still not working. First off, I don't really understand your question. Secondly, your driver might work better if you use the locking primitives we provide such as mutexes and condition variables. It looks like your home-grown lock might suffer from a deadlock condition if the current thread is preempted in m_sleep() for example and another thread tries to get the lock. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510261124.16956.jhb>