1. 19 5月, 2016 1 次提交
  2. 03 5月, 2016 1 次提交
  3. 17 8月, 2015 1 次提交
  4. 18 5月, 2015 1 次提交
  5. 15 5月, 2015 1 次提交
  6. 03 4月, 2015 1 次提交
    • V
      crypto: omap-sham - Add the offset of sg page to vaddr · 13cf394c
      Vutla, Lokesh 提交于
      kmap_atomic() gives only the page address of the input page.
      Driver should take care of adding the offset of the scatterlist
      within the page to the returned page address.
      omap-sham driver is not adding the offset to page and directly operates
      on the return vale of kmap_atomic(), because of which the following
      error comes when running crypto tests:
      
      00000000: d9 a1 1b 7c aa 90 3b aa 11 ab cb 25 00 b8 ac bf
      [    2.338169] 00000010: c1 39 cd ff 48 d0 a8 e2 2b fa 33 a1
      [    2.344008] alg: hash: Chunking test 1 failed for omap-sha256
      
      So adding the scatterlist offset to vaddr.
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      13cf394c
  7. 01 4月, 2015 1 次提交
  8. 20 10月, 2014 1 次提交
  9. 14 10月, 2014 1 次提交
  10. 10 3月, 2014 2 次提交
  11. 20 12月, 2013 1 次提交
    • L
      crypto: omap-sham - Fix Polling mode for larger blocks · acef7b0f
      Lokesh Vutla 提交于
      Command "tcrypt sec=1 mode=403" give the follwoing error for Polling
      mode:
      root@am335x-evm:/# insmod tcrypt.ko sec=1 mode=403
      [...]
      
      [  346.982754] test 15 ( 4096 byte blocks, 1024 bytes per update,   4 updates):   4352 opers/sec,  17825792 bytes/sec
      [  347.992661] test 16 ( 4096 byte blocks, 4096 bytes per update,   1 updates):   7095 opers/sec,  29061120 bytes/sec
      [  349.002667] test 17 ( 8192 byte blocks,   16 bytes per update, 512 updates):
      [  349.010882] Unable to handle kernel NULL pointer dereference at virtual address 00000000
      [  349.020037] pgd = ddeac000
      [  349.022884] [00000000] *pgd=9dcb4831, *pte=00000000, *ppte=00000000
      [  349.029816] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
      [  349.035482] Modules linked in: tcrypt(+)
      [  349.039617] CPU: 0 PID: 1473 Comm: insmod Not tainted 3.12.4-01566-g6279006-dirty #38
      [  349.047832] task: dda91540 ti: ddcd2000 task.ti: ddcd2000
      [  349.053517] PC is at omap_sham_xmit_dma+0x6c/0x238
      [  349.058544] LR is at omap_sham_xmit_dma+0x38/0x238
      [  349.063570] pc : [<c04eb7cc>]    lr : [<c04eb798>]    psr: 20000013
      [  349.063570] sp : ddcd3c78  ip : 00000000  fp : 9d8980b8
      [  349.075610] r10: 00000000  r9 : 00000000  r8 : 00000000
      [  349.081090] r7 : 00001000  r6 : dd898000  r5 : 00000040  r4 : ddb10550
      [  349.087935] r3 : 00000004  r2 : 00000010  r1 : 53100080  r0 : 00000000
      [  349.094783] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
      [  349.102268] Control: 10c5387d  Table: 9deac019  DAC: 00000015
      [  349.108294] Process insmod (pid: 1473, stack limit = 0xddcd2248)
      
      [...]
      
      This is because polling_mode is not enabled for ctx without FLAGS_FINUP.
      
      For polling mode the bufcnt is made 0 unconditionally. But it should be made 0
      only if it is a final update or a total is not zero(This condition is similar
      to what is done in DMA case). Because of this wrong hashes are produced.
      
      Fixing the same.
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      acef7b0f
  12. 05 12月, 2013 1 次提交
  13. 30 10月, 2013 1 次提交
  14. 24 10月, 2013 1 次提交
  15. 21 8月, 2013 2 次提交
    • L
      crypto: omap-sham - correct dma burst size · f5e46260
      Lokesh Vutla 提交于
      Each cycle of SHA512 operates on 32 data words where as
      SHA256 operates on 16 data words. This needs to be updated
      while configuring DMA channels. Doing the same.
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f5e46260
    • L
      crypto: omap-sham - Enable Polling mode if DMA fails · b8411ccd
      Lokesh Vutla 提交于
      For writing input buffer into DATA_IN register current driver
      has the following state machine:
      -> if input buffer < 9 : use fallback driver
      -> else if input buffer < block size : Copy input buffer into data_in regs
      -> else use dma transfer.
      
      In cases where requesting for DMA channels fails for some reason,
      or channel numbers are not provided in DT or platform data, probe
      also fails. Instead of returning from driver use cpu polling mode.
      In this mode processor polls on INPUT_READY bit and writes data into
      data_in regs when it equals 1. This operation is repeated until the
      length of message.
      
      Now the state machine looks like:
      -> if input buffer < 9 : use fallback driver
      -> else if input buffer < block size : Copy input buffer into data_in regs
      -> else if dma enabled: use dma transfer
      	   else use cpu polling mode.
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      b8411ccd
  16. 01 8月, 2013 4 次提交
  17. 24 5月, 2013 1 次提交
  18. 10 3月, 2013 2 次提交
  19. 20 1月, 2013 1 次提交
  20. 12 1月, 2013 1 次提交
    • T
      ARM: OMAP2+: Disable code that currently does not work with multiplaform · a62a6e98
      Tony Lindgren 提交于
      We still need to fix up few places for multiplatform support,
      but that can proceed separately. Fix the issue by making the
      problem drivers depends !ARCH_MULTIPLATFORM for now.
      
      The remaining pieces that are not multiplatform compatible
      for omap2+ SoCs are:
      
      1. Some drivers are using custom omap_dm_timer calls
      
      There are two drivers that are directly usign omap hardware
      timers for PWM and DSP clocking: drivers/media/rc/ir-rx51.c and
      drivers/staging/tidspbridge/core/dsp-clock.c. These can be
      fixed for multiplatform by allowing a minimal set of hardware
      timers to be accessed, and for some functionality by using the
      hrtimer framework.
      
      2. Hardware OMAP4_ERRATA_I688 needs to be fixed up
      
      This can't be enabled for multiplatform configurations in
      it's current form. It may be possible to fix it up to do
      instruction replacement early on during init. Luckily it
      looks like this errata does not seem to get hit with
      mainline kernel code alone at least currently.
      
      3. Legacy header needed for omap-sham.c
      
      Looks like it still needs mach/irqs.h for omap1 that
      does not exist for multiplatform systems. Just ifdef
      it for now.
      
      4. Mailbox is waiting to get moved to drivers
      
      Disable it for now to avoid adding a dependency to the
      mailbox patches.
      
      Cc: Timo Kokkonen <timo.t.kokkonen@iki.fi>
      Cc: Sean Young <sean@mess.org>
      Cc: "Víctor Manuel Jáquez Leal" <vjaquez@igalia.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
      Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
      Tested-by: NEzequiel Garcia <ezequiel.garcia@free-electrons.com>
      [tony@atomide.com: updated to disable mailbox]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      a62a6e98
  21. 05 1月, 2013 9 次提交
  22. 04 1月, 2013 1 次提交
    • G
      Drivers: crypto: remove __dev* attributes. · 49cfe4db
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Kent Yoder <key@linux.vnet.ibm.com>
      Cc: Jamie Iles <jamie@jamieiles.com>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
      Cc: Alex Porosanu <alexandru.porosanu@freescale.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      49cfe4db
  23. 01 12月, 2012 1 次提交
    • T
      ARM: OMAP: Move plat-omap/dma-omap.h to include/linux/omap-dma.h · 45c3eb7d
      Tony Lindgren 提交于
      Based on earlier discussions[1] we attempted to find a suitable
      location for the omap DMA header in commit 2b6c4e73 (ARM: OMAP:
      DMA: Move plat/dma.h to plat-omap/dma-omap.h) until the conversion
      to dmaengine is complete.
      
      Unfortunately that was before I was able to try to test compile
      of the ARM multiplatform builds for omap2+, and the end result
      was not very good.
      
      So I'm creating yet another all over the place patch to cut the
      last dependency for building omap2+ for ARM multiplatform. After
      this, we have finally removed the driver dependencies to the
      arch/arm code, except for few drivers that are being worked on.
      
      The other option was to make the <plat-omap/dma-omap.h> path
      to work, but we'd have to add some new header directory to for
      multiplatform builds.
      
      Or we would have to manually include arch/arm/plat-omap/include
      again from arch/arm/Makefile for omap2+.
      
      Neither of these alternatives sound appealing as they will
      likely lead addition of various other headers exposed to the
      drivers, which we want to avoid for the multiplatform kernels.
      
      Since we already have a minimal include/linux/omap-dma.h,
      let's just use that instead and add a note to it to not
      use the custom omap DMA functions any longer where possible.
      
      Note that converting omap DMA to dmaengine depends on
      dmaengine supporting automatically incrementing the FIFO
      address at the device end, and converting all the remaining
      legacy drivers. So it's going to be few more merge windows.
      
      [1] https://patchwork.kernel.org/patch/1519591/#
      
      cc: Russell King <linux@arm.linux.org.uk>
      cc: Kevin Hilman <khilman@ti.com>
      cc: "Benoît Cousson" <b-cousson@ti.com>
      cc: Herbert Xu <herbert@gondor.apana.org.au>
      cc: "David S. Miller" <davem@davemloft.net>
      cc: Vinod Koul <vinod.koul@intel.com>
      cc: Dan Williams <djbw@fb.com>
      cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
      cc: David Woodhouse <dwmw2@infradead.org>
      cc: Kyungmin Park <kyungmin.park@samsung.com>
      cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      cc: Hans Verkuil <hans.verkuil@cisco.com>
      cc: Vaibhav Hiremath <hvaibhav@ti.com>
      cc: Lokesh Vutla <lokeshvutla@ti.com>
      cc: Rusty Russell <rusty@rustcorp.com.au>
      cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
      cc: Afzal Mohammed <afzal@ti.com>
      cc: linux-crypto@vger.kernel.org
      cc: linux-media@vger.kernel.org
      cc: linux-mtd@lists.infradead.org
      cc: linux-usb@vger.kernel.org
      cc: linux-fbdev@vger.kernel.org
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      45c3eb7d
  24. 16 10月, 2012 2 次提交
    • T
      ARM: OMAP: Trivial driver changes to remove include plat/cpu.h · 27615a97
      Tony Lindgren 提交于
      Drivers should not use cpu_is_omap or cpu_class_is_omap macros,
      they should be private to the platform init code. And we'll be
      removing plat/cpu.h and only have a private soc.h for the
      arch/arm/*omap* code.
      
      This patch is intended as preparation for the core omap changes
      and removes the need to include plat/cpu.h from several drivers.
      This is needed for the ARM common zImage support.
      
      These changes are OK to do because:
      
      - omap-rng.c does not need plat/cpu.h
      
      - omap-aes.c and omap-sham.c get the proper platform_data
        passed to them so they don't need extra checks in the driver
      
      - omap-dma.c and omap-pcm.c can test the arch locally as
        omap1 and omap2 cannot be compiled together because of
        conflicting compiler flags
      
      Cc: Deepak Saxena <dsaxena@plexity.net>
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Venkatraman S <svenkatr@ti.com>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: Vinod Koul <vinod.koul@intel.com>
      Cc: Dan Williams <djbw@fb.com>
      Acked-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      Acked-by: NJarkko Nikula <jarkko.nikula@bitmer.com>
      Cc: Liam Girdwood <lrg@ti.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: linux-crypto@vger.kernel.org
      Cc: linux-mmc@vger.kernel.org
      Cc: alsa-devel@alsa-project.org
      Cc: linux-kernel@vger.kernel.org
      [tony@atomide.com: mmc changes folded in to an earlier patch]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      27615a97
    • L
      ARM: OMAP: DMA: Move plat/dma.h to plat-omap/dma-omap.h · 2b6c4e73
      Lokesh Vutla 提交于
      Move plat/dma.h to plat-omap/dma-omap.h as part of single
      zImage work
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      2b6c4e73
  25. 13 1月, 2012 1 次提交