Linux cryptographic layer development
 help / color / mirror / Atom feed
From: "Jordan Crouse" <jordan.crouse@amd.com>
To: "Evgeniy Polyakov" <johnpol@2ka.mipt.ru>
Cc: linux-crypto@vger.kernel.org, info-linux@ldcmail.amd.com, akpm@osdl.org
Subject: Re: crypto: Add support for the Geode AES engine
Date: Thu, 28 Sep 2006 10:31:15 -0600	[thread overview]
Message-ID: <20060928163115.GL25387@cosmic.amd.com> (raw)
In-Reply-To: <LYRIS-4270-86779-2006.09.28-04.27.47--jordan.crouse#amd.com@whitestar.amd.com>

> As far as I can see, register access is not protected, how can your
> driver handle the case when dm-crypt and IPsec simultaneously try to
> encrypt/decrypt some data, it can happen even around 
> preemt_disable/enable calls and actually crypto processing can happen 
> in interrupt context too (although it is not the best thing to do).

I had the mutex in there, but I took it out based on our previous
conversations, which probably was a little rash.  If CRYPTO_TFM_REQ_MAY_SLEEP
is still a valid flag to check, I could use that along with a spin lock of
some sort.   I'll think about this a bit more.

> You added timeout for the broken hardware condition, I think it is
> better to return some error from _crypt() in that case, and, btw, that
> name is not very good choice.

I normally use _<blah> for static functions within my module - it helps
me remember which commands might be important to others and which are just
utility functions for my own use and abuse.  I'll change the name.

Thanks,
Jordan

-- 
Jordan Crouse
Senior Linux Engineer
Advanced Micro Devices, Inc.
<www.amd.com/embeddedprocessors>



  parent reply	other threads:[~2006-09-28 16:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-27 19:31 [RFC] crypto: Add support for the Geode AES engine Jordan Crouse
2006-09-28 10:23 ` Evgeniy Polyakov
2006-09-28 21:47   ` crypto: Add support for the Geode AES engine (v2) Jordan Crouse
2006-09-28 22:03     ` crypto: Add support for the Geode AES engine (v3) Jordan Crouse
2006-09-28 22:06     ` crypto: Add support for the Geode AES engine (v2) Andrew Morton
     [not found]     ` <LYRIS-4270-86789-2006.09.28-16.10.32--jordan.crouse#amd.com@whitestar.amd.com>
2006-09-28 23:17       ` crypto: Add support for the Geode AES engine (v4) Jordan Crouse
2006-09-28 23:54         ` Andrew Morton
2006-09-29  0:16           ` Jordan Crouse
2006-10-04  8:52         ` Herbert Xu
     [not found] ` <LYRIS-4270-86779-2006.09.28-04.27.47--jordan.crouse#amd.com@whitestar.amd.com>
2006-09-28 16:31   ` Jordan Crouse [this message]
2006-09-29  8:53     ` crypto: Add support for the Geode AES engine Evgeniy Polyakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060928163115.GL25387@cosmic.amd.com \
    --to=jordan.crouse@amd.com \
    --cc=akpm@osdl.org \
    --cc=info-linux@ldcmail.amd.com \
    --cc=johnpol@2ka.mipt.ru \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox