1. 14 7月, 2015 2 次提交
  2. 08 7月, 2015 5 次提交
  3. 07 7月, 2015 1 次提交
  4. 06 7月, 2015 5 次提交
    • N
      crypto: nx - do not emit extra output if status is disabled · 7abd75bf
      Nishanth Aravamudan 提交于
      If the device-tree indicates the nx-842 device's status is 'disabled',
      we emit two messages:
      
      nx_compress_pseries ibm,compression-v1: nx842_OF_upd_status: status 'disabled' is not 'okay'.
      nx_compress_pseries ibm,compression-v1: nx842_OF_upd: device disabled
      
      Given that 'disabled' is a valid state, and we are going to emit that
      the device is disabled, only print out a non-'okay' status if it is not
      'disabled'.
      Signed-off-by: NNishanth Aravamudan <nacc@linux.vnet.ibm.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      7abd75bf
    • N
      crypto: nx - rename nx842_{init, exit} to nx842_pseries_{init, exit} · ec13bcbe
      Nishanth Aravamudan 提交于
      While there is no technical reason that both nx-842.c and
      nx-842-pseries.c can have the same name for the init/exit functions, it
      is a bit confusing with initcall_debug. Rename the pseries specific
      functions appropriately
      Signed-off-by: NNishanth Aravamudan <nacc@linux.vnet.ibm.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      ec13bcbe
    • N
      crypto: nx - nx842_OF_upd_status should return ENODEV if device is not 'okay' · fa9a9a08
      Nishanth Aravamudan 提交于
      The current documention mentions explicitly that EINVAL should be
      returned if the device is not available, but nx842_OF_upd_status()
      always returns 0. However, nx842_probe() specifically checks for
      non-ENODEV returns from nx842_of_upd() (which in turn calls
      nx842_OF_upd_status()) and emits an extra error in that case. It seems
      like the proper return code of a disabled device is ENODEV.
      Signed-off-by: NNishanth Aravamudan <nacc@linux.vnet.ibm.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      fa9a9a08
    • T
      crypto: ccp - Provide support to autoload CCP driver · 6170511a
      Tom Lendacky 提交于
      Add the necessary module device tables to the platform support to allow
      for autoloading of the CCP driver. This will allow for the CCP's hwrng
      support to be available without having to manually load the driver. The
      module device table entry for the pci support is already present.
      Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      6170511a
    • V
      crypto: omap-des - Fix unmapping of dma channels · acb33cc5
      Vutla, Lokesh 提交于
      dma_unmap_sg() is being called twice after completing the
      task. Looks like this is a copy paste error when creating
      des driver.
      With this the following warn appears during boot:
      
      [    4.210457] ------------[ cut here ]------------
      [    4.215114] WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:1080 check_unmap+0x710/0x9a0()
      [    4.222899] omap-des 480a5000.des: DMA-API: device driver tries to free DMA memory it has not allocated [device address=0x00000000ab2ce000] [size=8 bytes]
      [    4.236785] Modules linked in:
      [    4.239860] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.14.39-02999-g1bc045a-dirty #182
      [    4.247918] [<c001678c>] (unwind_backtrace) from [<c0012574>] (show_stack+0x10/0x14)
      [    4.255710] [<c0012574>] (show_stack) from [<c05a37e8>] (dump_stack+0x84/0xb8)
      [    4.262977] [<c05a37e8>] (dump_stack) from [<c0046464>] (warn_slowpath_common+0x68/0x8c)
      [    4.271107] [<c0046464>] (warn_slowpath_common) from [<c004651c>] (warn_slowpath_fmt+0x30/0x40)
      [    4.279854] [<c004651c>] (warn_slowpath_fmt) from [<c02d50a4>] (check_unmap+0x710/0x9a0)
      [    4.287991] [<c02d50a4>] (check_unmap) from [<c02d5478>] (debug_dma_unmap_sg+0x90/0x19c)
      [    4.296128] [<c02d5478>] (debug_dma_unmap_sg) from [<c04a77d8>] (omap_des_done_task+0x1cc/0x3e4)
      [    4.304963] [<c04a77d8>] (omap_des_done_task) from [<c004a090>] (tasklet_action+0x84/0x124)
      [    4.313370] [<c004a090>] (tasklet_action) from [<c004a4ac>] (__do_softirq+0xf0/0x20c)
      [    4.321235] [<c004a4ac>] (__do_softirq) from [<c004a840>] (irq_exit+0x98/0xec)
      [    4.328500] [<c004a840>] (irq_exit) from [<c000f9ac>] (handle_IRQ+0x50/0xb0)
      [    4.335589] [<c000f9ac>] (handle_IRQ) from [<c0008688>] (gic_handle_irq+0x28/0x5c)
      
      Removing the duplicate call to dma_unmap_sg().
      
      Cc: stable@vger.kernel.org
      Reported-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      acb33cc5
  5. 04 7月, 2015 1 次提交
  6. 01 7月, 2015 1 次提交
    • V
      genalloc: rename of_get_named_gen_pool() to of_gen_pool_get() · abdd4a70
      Vladimir Zapolskiy 提交于
      To be consistent with other kernel interface namings, rename
      of_get_named_gen_pool() to of_gen_pool_get().  In the original function
      name "_named" suffix references to a device tree property, which contains
      a phandle to a device and the corresponding device driver is assumed to
      register a gen_pool object.
      
      Due to a weak relation and to avoid any confusion (e.g.  in future
      possible scenario if gen_pool objects are named) the suffix is removed.
      
      [sfr@canb.auug.org.au: crypto/marvell/cesa - fix up for of_get_named_gen_pool() rename]
      Signed-off-by: NVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: Sascha Hauer <kernel@pengutronix.de>
      Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
      Cc: Vinod Koul <vinod.koul@intel.com>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: Boris BREZILLON <boris.brezillon@free-electrons.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      abdd4a70
  7. 29 6月, 2015 1 次提交
  8. 22 6月, 2015 1 次提交
  9. 21 6月, 2015 3 次提交
  10. 19 6月, 2015 15 次提交
  11. 18 6月, 2015 2 次提交
    • H
      crypto: drivers - Fix Kconfig selects · 596103cf
      Herbert Xu 提交于
      This patch fixes a number of problems in crypto driver Kconfig
      entries:
      
      1. Select BLKCIPHER instead of BLKCIPHER2.  The latter is internal
      and should not be used outside of the crypto API itself.
      2. Do not select ALGAPI unless you use a legacy type like
      CRYPTO_ALG_TYPE_CIPHER.
      3. Select the algorithm type that you are implementing, e.g., AEAD.
      4. Do not select generic C code such as CBC/ECB unless you use them
      as a fallback.
      5. Remove default n since that is the default default.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      596103cf
    • S
      crypto: caam - fix non-64-bit write/read access · f657f82c
      Steffen Trumtrar 提交于
      The patch
      
      	crypto: caam - Add definition of rd/wr_reg64 for little endian platform
      
      added support for little endian platforms to the CAAM driver. Namely a
      write and read function for 64 bit registers.
      The only user of this functions is the Job Ring driver (drivers/crypto/caam/jr.c).
      It uses the functions to set the DMA addresses for the input/output rings.
      However, at least in the default configuration, the least significant 32 bits are
      always in the base+0x0004 address; independent of the endianness of the bytes itself.
      That means the addresses do not change with the system endianness.
      
      DMA addresses are only 32 bits wide on non-64-bit systems, writing the upper 32 bits
      of this value to the register for the least significant bits results in the DMA address
      being set to 0.
      
      Fix this by always writing the registers in the same way.
      Suggested-by: NRussell King <linux@arm.linux.org.uk>
      Signed-off-by: NSteffen Trumtrar <s.trumtrar@pengutronix.de>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f657f82c
  12. 17 6月, 2015 3 次提交
    • H
      crypto: caam - Convert GCM to new AEAD interface · f2147b88
      Herbert Xu 提交于
      This patch converts the caam GCM implementations to the new AEAD
      interface.  This is compile-tested only.
      
      Note that all IV generation for GCM algorithms have been removed.
      The reason is that the current generation uses purely random IVs
      which is not appropriate for counter-based algorithms where we
      first and foremost require uniqueness.
      
      Of course there is no reason why you couldn't implement seqiv or
      seqniv within caam since all they do is xor the sequence number
      with a salt, but since I can't test this on actual hardware I'll
      leave it alone for now.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f2147b88
    • H
      crypto: caam - Handle errors in dma_map_sg_chained · 6c94711c
      Herbert Xu 提交于
      Currently dma_map_sg_chained does not handle errors from the
      underlying dma_map_sg calls.  This patch adds rollback in case
      of an error by simply calling dma_unmap_sg_chained for the ones
      that we've already mapped.
      
      All current callers ignore the return value so this should have
      no impact on them.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      6c94711c
    • H
      crypto: nx - Convert GCM to new AEAD interface · 201f28f0
      Herbert Xu 提交于
      This patch converts the nx GCM implementations to the new AEAD
      interface.  This is compile-tested only.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      201f28f0