1. 29 Oct, 2021 6 commits
  2. 22 Oct, 2021 2 commits
  3. 15 Oct, 2021 2 commits
  4. 08 Oct, 2021 16 commits
  5. 01 Oct, 2021 4 commits
  6. 24 Sep, 2021 4 commits
    • Herbert Xu's avatar
      crypto: api - Fix built-in testing dependency failures · adad556e
      Herbert Xu authored
      When complex algorithms that depend on other algorithms are built
      into the kernel, the order of registration must be done such that
      the underlying algorithms are ready before the ones on top are
      registered.  As otherwise they would fail during the self-test
      which is required during registration.
      
      In the past we have used subsystem initialisation ordering to
      guarantee this.  The number of such precedence levels are limited
      and they may cause ripple effects in other subsystems.
      
      This patch solves this problem by delaying all self-tests during
      boot-up for built-in algorithms.  They will be tested either when
      something else in the kernel requests for them, or when we have
      finished registering all built-in algorithms, whichever comes
      earlier.
      Reported-by: default avatarVladis Dronov <vdronov@redhat.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      adad556e
    • Krzysztof Kozlowski's avatar
      crypto: marvell/cesa - drop unneeded MODULE_ALIAS · 7c532969
      Krzysztof Kozlowski authored
      The MODULE_DEVICE_TABLE already creates proper alias for platform
      driver.  Having another MODULE_ALIAS causes the alias to be duplicated.
      Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      7c532969
    • Giovanni Cabiddu's avatar
      crypto: qat - power up 4xxx device · ca605f97
      Giovanni Cabiddu authored
      After reset or boot, QAT 4xxx devices are inactive and require to be
      explicitly activated.
      This is done by writing the DRV_ACTIVE bit in the PM_INTERRUPT register
      and polling the PM_INIT_STATE to make sure that the transaction has
      completed properly.
      
      If this is not done, the driver will fail the initialization sequence
      reporting the following message:
          [   22.081193] 4xxx 0000:f7:00.0: enabling device (0140 -> 0142)
          [   22.720285] QAT: AE0 is inactive!!
          [   22.720287] QAT: failed to get device out of reset
          [   22.720288] 4xxx 0000:f7:00.0: qat_hal_clr_reset error
          [   22.720290] 4xxx 0000:f7:00.0: Failed to init the AEs
          [   22.720290] 4xxx 0000:f7:00.0: Failed to initialise Acceleration Engine
          [   22.720789] 4xxx 0000:f7:00.0: Resetting device qat_dev0
          [   22.825099] 4xxx: probe of 0000:f7:00.0 failed with error -14
      
      The patch also temporarily disables the power management source of
      interrupt, to avoid possible spurious interrupts as the power management
      feature is not fully supported.
      
      The device init function has been added to adf_dev_init(), and not in the
      probe of 4xxx to make sure that the device is re-enabled in case of
      reset.
      
      Note that the error code reported by hw_data->init_device() in
      adf_dev_init() has been shadowed for consistency with the other calls
      in the same function.
      
      Fixes: 8c826816 ("crypto: qat - add qat_4xxx driver")
      Signed-off-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
      Reviewed-by: default avatarWojciech Ziemba <wojciech.ziemba@intel.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      ca605f97
    • Michael Walle's avatar
      crypto: caam - disable pkc for non-E SoCs · f20311cc
      Michael Walle authored
      On newer CAAM versions, not all accelerators are disabled if the SoC is
      a non-E variant. While the driver checks most of the modules for
      availability, there is one - PKHA - which sticks out. On non-E variants
      it is still reported as available, that is the number of instances is
      non-zero, but it has limited functionality. In particular it doesn't
      support encryption and decryption, but just signing and verifying. This
      is indicated by a bit in the PKHA_MISC field. Take this bit into account
      if we are checking for availability.
      
      This will the following error:
      [    8.167817] caam_jr 8020000.jr: 20000b0f: CCB: desc idx 11: : Invalid CHA selected.
      
      Tested on an NXP LS1028A (non-E) SoC.
      
      Fixes: d239b10d ("crypto: caam - add register map changes cf. Era 10")
      Signed-off-by: default avatarMichael Walle <michael@walle.cc>
      Reviewed-by: default avatarHoria Geantă <horia.geanta@nxp.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      f20311cc
  7. 17 Sep, 2021 6 commits