All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/4] Add ACE HW support for SHA 256
@ 2013-02-27 15:24 Akshay Saraswat
  2013-02-27 15:24 ` [U-Boot] [PATCH 1/4] Exynos: Add hardware accelerated " Akshay Saraswat
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Akshay Saraswat @ 2013-02-27 15:24 UTC (permalink / raw)
  To: u-boot

This patch set adds hardware acceleration for SHA 256
with the help of ACE.

Akshay Saraswat (4):
  Exynos: Add hardware accelerated SHA 256
  Exynos: config: Enable ACE HW for SHA 256 for Exynos
  gen: Add sha256 command
  Exynos: Flush memory region before starting SHA DMA operation

 arch/arm/cpu/armv7/exynos/Makefile         |   4 +
 arch/arm/cpu/armv7/exynos/ace_sha.c        | 123 ++++++++++++
 arch/arm/include/asm/arch-exynos/ace_sfr.h | 310 +++++++++++++++++++++++++++++
 arch/arm/include/asm/arch-exynos/ace_sha.h |  41 ++++
 arch/arm/include/asm/arch-exynos/cpu.h     |   4 +
 common/Makefile                            |   1 +
 common/cmd_sha256.c                        |  69 +++++++
 include/configs/exynos5250-dt.h            |   3 +
 8 files changed, 555 insertions(+)
 create mode 100644 arch/arm/cpu/armv7/exynos/ace_sha.c
 create mode 100644 arch/arm/include/asm/arch-exynos/ace_sfr.h
 create mode 100644 arch/arm/include/asm/arch-exynos/ace_sha.h
 create mode 100644 common/cmd_sha256.c

-- 
1.8.0

^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <46.D5.13994.5AA3F215@epcpsbgx4.samsung.com>]
[parent not found: <14.1F.12957.833D0315@epcpsbgx3.samsung.com>]
* [U-Boot] [PATCH 1/4] Exynos: Add hardware accelerated SHA 256
@ 2013-03-06 14:52 Akshay Saraswat
  0 siblings, 0 replies; 13+ messages in thread
From: Akshay Saraswat @ 2013-03-06 14:52 UTC (permalink / raw)
  To: u-boot

Hi Kim,

>On Fri, 1 Mar 2013 16:11:36 +0000
>Akshay Saraswat <akshay.s@samsung.com> wrote:
>
>> Samsung Enterprise Portal mySingle
>> 
>>  
>> 
>> Hi Kim,
>> 
>>  
>> 
>> >On Thu, 28 Feb 2013 11:08:21 +0000
>> 
>> >Akshay Saraswat <akshay.s@samsung.com> wrote:
>> 
>As you can see, no.  It looks like you didn't change anything.  I
>have to manually single-space things below.
>
>> >> So, I have incremented this value
>> >> to 500 which shall be good enough for the lowest of all frequencies. But I guess what we
>> >> need here is some formula, to calculate timeout on the basis of frequency, which is nowhere
>> >> defined.
>> 
>> >That's odd - I see a bunch of frequencies advertised in
>> >arch/arm/cpu/armv7/exynos/clock.c.
>> >Or how about using a cycle counter instead?
>> >btw, where can I find documentation for the ACE?
>> 
>> I tried with different frequencies and data sizes and found that it takes 2 to 3 msecs in all the cases.
>> Since, it is hardware accelerated encoding it is supposed to behave in this same manner.
>> But the current version of u-boot behaves mysteriously and slow downs when pressed enter for long.
>> In the above case mentioned I even saw time took to be more than 100 msecs for all the cases.
>> I think it would not be a better idea to timeout encoding acceleration.
>> But still if it is needed, cycle counter suggestion would be a great solution.
>
>it depends on whether the h/w can fault during its operation.
>
>> You can read Exynos5250 manual's "Security subsystem" section, which I referred for this.
>
>you mean this?:
>
>http://www.samsung.com/global/business/semiconductor/file/product/Exynos_5_Dual_User_Manaul_Public_REV100-0.pdf

Yes, this is the manual. But this ine is just a part of it which has been made public by Samsung.
The one I have has 64 chapters in it and security subsystems is the 57th chapter.

>
>There is no "Security subsystem" section.
>
>Kim
>

Regards,
Akshay Saraswat

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-03-06 14:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-27 15:24 [U-Boot] [PATCH 0/4] Add ACE HW support for SHA 256 Akshay Saraswat
2013-02-27 15:24 ` [U-Boot] [PATCH 1/4] Exynos: Add hardware accelerated " Akshay Saraswat
2013-02-28  1:25   ` Kim Phillips
2013-02-27 15:24 ` [U-Boot] [PATCH 2/4] Exynos: config: Enable ACE HW for SHA 256 for Exynos Akshay Saraswat
2013-02-27 20:22   ` Simon Glass
2013-02-27 15:24 ` [U-Boot] [PATCH 3/4] gen: Add sha256 command Akshay Saraswat
2013-02-27 20:22   ` Simon Glass
2013-02-27 20:23     ` Simon Glass
2013-02-27 15:24 ` [U-Boot] [PATCH 4/4] Exynos: Flush memory region before starting SHA DMA operation Akshay Saraswat
2013-02-28  1:29   ` Kim Phillips
     [not found] <46.D5.13994.5AA3F215@epcpsbgx4.samsung.com>
2013-02-28 20:00 ` [U-Boot] [PATCH 1/4] Exynos: Add hardware accelerated SHA 256 Kim Phillips
     [not found] <14.1F.12957.833D0315@epcpsbgx3.samsung.com>
2013-03-04 22:04 ` Kim Phillips
2013-03-06 14:52 Akshay Saraswat

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.