1. 28 Sep, 2018 3 commits
  2. 21 Sep, 2018 30 commits
  3. 14 Sep, 2018 5 commits
  4. 13 Sep, 2018 1 commit
    • Brijesh Singh's avatar
      crypto: ccp - add timeout support in the SEV command · 3702a058
      Brijesh Singh authored
      Currently, the CCP driver assumes that the SEV command issued to the PSP
      will always return (i.e. it will never hang).  But recently, firmware bugs
      have shown that a command can hang.  Since of the SEV commands are used
      in probe routines, this can cause boot hangs and/or loss of virtualization
      capabilities.
      
      To protect against firmware bugs, add a timeout in the SEV command
      execution flow.  If a command does not complete within the specified
      timeout then return -ETIMEOUT and stop the driver from executing any
      further commands since the state of the SEV firmware is unknown.
      
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: Gary Hook <Gary.Hook@amd.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarBrijesh Singh <brijesh.singh@amd.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      3702a058
  5. 04 Sep, 2018 1 commit
    • Eric Biggers's avatar
      crypto: arm/chacha20 - faster 8-bit rotations and other optimizations · a1b22a5f
      Eric Biggers authored
      Optimize ChaCha20 NEON performance by:
      
      - Implementing the 8-bit rotations using the 'vtbl.8' instruction.
      - Streamlining the part that adds the original state and XORs the data.
      - Making some other small tweaks.
      
      On ARM Cortex-A7, these optimizations improve ChaCha20 performance from
      about 12.08 cycles per byte to about 11.37 -- a 5.9% improvement.
      
      There is a tradeoff involved with the 'vtbl.8' rotation method since
      there is at least one CPU (Cortex-A53) where it's not fastest.  But it
      seems to be a better default; see the added comment.  Overall, this
      patch reduces Cortex-A53 performance by less than 0.5%.
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      a1b22a5f