1. 16 Jul, 2020 6 commits
  2. 09 Jul, 2020 29 commits
  3. 03 Jul, 2020 5 commits
    • Tom Lendacky's avatar
      crypto: ccp - Update CCP driver maintainer information · 57c8aa43
      Tom Lendacky authored
      Add John Allen as a new CCP driver maintainer. Additionally, break out
      the driver SEV support and create a new maintainer entry, with Brijesh
      Singh and Tom Lendacky as maintainers.
      
      Cc: John Allen <john.allen@amd.com>
      Cc: Brijesh Singh <brijesh.singh@amd.com>
      Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Acked-by: default avatarJohn Allen <john.allen@amd.com>
      Acked-by: default avatarBrijesh Singh <brijesh.singh@amd.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      57c8aa43
    • Herbert Xu's avatar
      crypto: cpt - Fix sparse warnings · c4149431
      Herbert Xu authored
      This patch fixes all the sparse warnings in the octeontx driver.
      Some of these are just trivial type changes.
      
      However, some of the changes are non-trivial on little-endian hosts.
      Obviously the driver appears to be broken on either LE or BE as it
      was doing different things.  I've taken the BE behaviour as the
      correct one.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      c4149431
    • Fenghua Yu's avatar
      crypto: hisilicon/qm - Change type of pasid to u32 · f532ed2a
      Fenghua Yu authored
      PASID is defined as "int" although it's a 20-bit value and shouldn't be
      negative int. To be consistent with PASID type in iommu, define PASID
      as "u32".
      Suggested-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarFenghua Yu <fenghua.yu@intel.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      f532ed2a
    • Jian Cai's avatar
      crypto: aesni - add compatibility with IAS · 44069737
      Jian Cai authored
      Clang's integrated assembler complains "invalid reassignment of
      non-absolute variable 'var_ddq_add'" while assembling
      arch/x86/crypto/aes_ctrby8_avx-x86_64.S. It was because var_ddq_add was
      reassigned with non-absolute values several times, which IAS did not
      support. We can avoid the reassignment by replacing the uses of
      var_ddq_add with its definitions accordingly to have compatilibility
      with IAS.
      
      Link: https://github.com/ClangBuiltLinux/linux/issues/1008Reported-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
      Reported-by: default avatarFangrui Song <maskray@google.com>
      Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # build+boot Linux v5.7.5; clang v11.0.0-git
      Signed-off-by: default avatarJian Cai <caij2003@gmail.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      44069737
    • John Allen's avatar
      crypto: ccp - Fix use of merged scatterlists · 8a302808
      John Allen authored
      Running the crypto manager self tests with
      CONFIG_CRYPTO_MANAGER_EXTRA_TESTS may result in several types of errors
      when using the ccp-crypto driver:
      
      alg: skcipher: cbc-des3-ccp encryption failed on test vector 0; expected_error=0, actual_error=-5 ...
      
      alg: skcipher: ctr-aes-ccp decryption overran dst buffer on test vector 0 ...
      
      alg: ahash: sha224-ccp test failed (wrong result) on test vector ...
      
      These errors are the result of improper processing of scatterlists mapped
      for DMA.
      
      Given a scatterlist in which entries are merged as part of mapping the
      scatterlist for DMA, the DMA length of a merged entry will reflect the
      combined length of the entries that were merged. The subsequent
      scatterlist entry will contain DMA information for the scatterlist entry
      after the last merged entry, but the non-DMA information will be that of
      the first merged entry.
      
      The ccp driver does not take this scatterlist merging into account. To
      address this, add a second scatterlist pointer to track the current
      position in the DMA mapped representation of the scatterlist. Both the DMA
      representation and the original representation of the scatterlist must be
      tracked as while most of the driver can use just the DMA representation,
      scatterlist_map_and_copy() must use the original representation and
      expects the scatterlist pointer to be accurate to the original
      representation.
      
      In order to properly walk the original scatterlist, the scatterlist must
      be walked until the combined lengths of the entries seen is equal to the
      DMA length of the current entry being processed in the DMA mapped
      representation.
      
      Fixes: 63b94509 ("crypto: ccp - CCP device driver and interface support")
      Signed-off-by: default avatarJohn Allen <john.allen@amd.com>
      Cc: stable@vger.kernel.org
      Acked-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      8a302808