1. 28 Dec, 2017 3 commits
    • Gilad Ben-Yossef's avatar
      crypto: tcrypt - allow setting num of bufs · 8fcdc868
      Gilad Ben-Yossef authored
      For multiple buffers speed tests, the number of buffers, or
      requests, used actually sets the level of parallelism a tfm
      provider may utilize to hide latency. The existing number
      (of 8) is good for some software based providers but not
      enough for many HW providers with deep FIFOs.
      
      Add a module parameter that allows setting the number of
      multiple buffers/requests used, leaving the default at 8.
      Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      8fcdc868
    • Gilad Ben-Yossef's avatar
      crypto: tcrypt - fix AEAD decryption speed test · 4431bd49
      Gilad Ben-Yossef authored
      The AEAD speed test pretended to support decryption, however that support
      was broken as decryption requires a valid auth field which the test did
      not provide.
      
      Fix this by running the encryption path once with inout/output sgls
      switched to calculate the auth field prior to performing decryption
      speed tests.
      Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      4431bd49
    • Gilad Ben-Yossef's avatar
      crypto: tcrypt - use multi buf for ahash mb test · 7c3f1323
      Gilad Ben-Yossef authored
      The multi buffer ahash speed test was allocating multiple
      buffers for use with the multiple outstanding requests
      it was starting but never actually using them (except
      to free them), instead using a different single statically
      allocated buffer for all requests.
      
      Fix this by actually using the allocated buffers for the test.
      
      It is noted that it may seem tempting to instead remove the
      allocation and free of the multiple buffers and leave things as
      they are since this is a hash test where the input is read
      only. However, after consideration I believe that multiple
      buffers better reflect real life scenario with regard
      to data cache and TLB behaviours etc.
      Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      7c3f1323
  2. 22 Dec, 2017 37 commits