Re: crypto: Add support for the Geode LX HW AES engine

2006-06-06 Thread Herbert Xu
On Tue, Jun 06, 2006 at 09:19:14AM -0600, Jordan Crouse wrote: > > No - but they can run with preempt turned on - so there's always the > risk that we can have two processes in the code at the same time. preempt_disable should take care of both cases. Cheers, -- Visit Openswan at http://www.ope

Re: crypto: Add support for the Geode LX HW AES engine

2006-06-06 Thread Jordan Crouse
On 06/06/06 11:24 +1000, Herbert Xu wrote: > Jordan Crouse <[EMAIL PROTECTED]> wrote: > > > > Is there any way to differentiate if a crypto API call was made in an > > atomic context or not? The problem here, is that I only have one engine, > > so I need to protect it from multiple processes acces

Re: crypto: Add support for the Geode LX HW AES engine

2006-06-06 Thread Evgeniy Polyakov
On Mon, Jun 05, 2006 at 10:11:17AM -0600, Jordan Crouse ([EMAIL PROTECTED]) wrote: > On 03/06/06 14:53 +0400, Evgeniy Polyakov wrote: > > > > +static inline void AWRITE(unsigned long val, unsigned short reg) { > > > +#ifdef DEBUG > > > + printk("[AES] W [%x]=%x\n", reg, val); > > > +#endif > > >