1. 22 9月, 2016 7 次提交
  2. 13 9月, 2016 3 次提交
  3. 01 7月, 2016 1 次提交
  4. 24 6月, 2016 4 次提交
  5. 19 5月, 2016 1 次提交
  6. 03 5月, 2016 1 次提交
  7. 17 8月, 2015 1 次提交
  8. 18 5月, 2015 1 次提交
  9. 15 5月, 2015 1 次提交
  10. 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
  11. 01 4月, 2015 1 次提交
  12. 20 10月, 2014 1 次提交
  13. 14 10月, 2014 1 次提交
  14. 10 3月, 2014 2 次提交
  15. 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
  16. 05 12月, 2013 1 次提交
  17. 30 10月, 2013 1 次提交
  18. 24 10月, 2013 1 次提交
  19. 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
  20. 01 8月, 2013 4 次提交
  21. 24 5月, 2013 1 次提交
  22. 10 3月, 2013 2 次提交
  23. 20 1月, 2013 1 次提交