Re: CCREE performance on R-Car H3 + crash

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

 



On Mon, Jul 23, 2018 at 1:31 PM, Gilad Ben-Yossef <gilad@xxxxxxxxxxxxx> wrote:
> On Mon, Jul 23, 2018 at 12:55 PM, Geert Uytterhoeven
> <geert@xxxxxxxxxxxxxx> wrote:
>> Hi Gilad,
>>
>> CC linux-crypto for the crash log.
>>
>> On Sun, Jul 22, 2018 at 7:28 AM Gilad Ben-Yossef <gilad@xxxxxxxxxxxxx> wrote:
>>> On Thu, Jul 19, 2018 at 3:43 PM, Geert Uytterhoeven
>>> <geert@xxxxxxxxxxxxxx> wrote:
>>> > I've noticed CCREE is used with a LUKS-formatted disk, so I did some small
> ...
>>
>> $ cryptsetup benchmark
>> # Tests are approximate using memory only (no storage IO).
>> PBKDF2-sha1       478364 iterations per second for 256-bit key
>> PBKDF2-sha256     927943 iterations per second for 256-bit key
>> PBKDF2-sha512     360583 iterations per second for 256-bit key
>> PBKDF2-ripemd160  266677 iterations per second for 256-bit key
>> PBKDF2-whirlpool  115787 iterations per second for 256-bit key
>> #  Algorithm | Key |  Encryption |  Decryption
>>      aes-cbc   128b    46.0 MiB/s    46.7 MiB/s
>>  serpent-cbc   128b           N/A           N/A
>>  twofish-cbc   128b           N/A           N/A
>>      aes-cbc   256b    46.5 MiB/s    46.4 MiB/s
>>  serpent-cbc   256b           N/A           N/A
>>  twofish-cbc   256b           N/A           N/A
>> Segmentation fault
>>
>> Oops.
>>
>> ccree e6601000.crypto: Unsupported data size 65536.
>> Unable to handle kernel paging request at virtual address ffffffbf5c3c3c20
>>
>
> Oy. Thank you for reporting this. I'll take a look at what is going on ASAP.

hmm... well, the plot thickens.

I was able to recreate the "Unsupported data size 65536" message and
now trying to understand
why the check that causes it is there but - I wasn't able to get a
crash, nor do I understand why
this condition would result in a crash (it ends up returning -EINVAL)... :-(

I am surely using a different tree though - I'm based on the
cryptodev/master tree with cherry picking of just R-Car ccree clocks
and enabling.

I was thinking maybe it's a fix that is already in upstream cryptodev
tree but not in your tree but didn't manage to identify any obvious
suspects

What tree are you based off?

Thanks,
Gilad

-- 
Gilad Ben-Yossef
Chief Coffee Drinker

values of β will give rise to dom!




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux