20 Oct, 2014

1 commit


14 Oct, 2014

1 commit

  • Replaced the use of a Variable Length Array In Struct (VLAIS) with a C99
    compliant equivalent. This patch allocates the appropriate amount of memory
    using a char array using the SHASH_DESC_ON_STACK macro.

    The new code can be compiled with both gcc and clang.

    Signed-off-by: Jan-Simon Möller
    Signed-off-by: Behan Webster
    Reviewed-by: Mark Charlebois
    Acked-by: Herbert Xu

    Jan-Simon Möller
     

24 Sep, 2014

1 commit

  • If the ccp is built as a built-in module, then ccp-crypto (whether
    built as a module or a built-in module) will be able to load and
    it will register its crypto algorithms. If the system does not have
    a CCP this will result in -ENODEV being returned whenever a command
    is attempted to be queued by the registered crypto algorithms.

    Add an API, ccp_present(), that checks for the presence of a CCP
    on the system. The ccp-crypto module can use this to determine if it
    should register it's crypto alogorithms.

    Cc: stable@vger.kernel.org
    Reported-by: Scot Doyle
    Signed-off-by: Tom Lendacky
    Tested-by: Scot Doyle
    Signed-off-by: Herbert Xu

    Tom Lendacky
     

13 Aug, 2014

1 commit

  • We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to
    meet kernel coding style guidelines. This issue was reported by checkpatch.

    A simplified version of the semantic patch that makes this change is as
    follows (http://coccinelle.lip6.fr/):

    //

    @@
    identifier i;
    declarer name DEFINE_PCI_DEVICE_TABLE;
    initializer z;
    @@

    - DEFINE_PCI_DEVICE_TABLE(i)
    + const struct pci_device_id i[]
    = z;

    //

    [bhelgaas: add semantic patch]
    Signed-off-by: Benoit Taine
    Signed-off-by: Bjorn Helgaas

    Benoit Taine
     

01 Aug, 2014

1 commit

  • The CCP hardware interprets all numbers as unsigned numbers, therefore
    sign extending input data is not valid. Modify the function calls
    for RSA and ECC to not perform sign extending.

    This patch is based on the cryptodev-2.6 kernel tree.

    Signed-off-by: Tom Lendacky
    Signed-off-by: Herbert Xu

    Tom Lendacky
     

24 Jul, 2014

1 commit

  • The addition of the "select OF if ARM64" has led to a Kconfig
    recursive dependency error when "make ARCH=sh rsk7269_defconfig"
    was run. Since OF is selected by ARM64 and the of_property_read_bool
    is defined no matter what, delete the Kconfig line that selects OF.

    Reported-by: kbuild test robot
    Signed-off-by: Tom Lendacky
    Signed-off-by: Herbert Xu

    Tom Lendacky
     

23 Jul, 2014

1 commit

  • The default cache operations for ARM64 were changed during 3.15.
    To use coherent operations a "dma-coherent" device tree property
    is required. If that property is not present in the device tree
    node then the non-coherent operations are assigned for the device.

    Add support to the ccp driver to assign the AXI DMA cache settings
    based on whether the "dma-coherent" property is present in the device
    node. If present, use settings that work with the caches. If not
    present, use settings that do not look at the caches.

    Signed-off-by: Tom Lendacky
    Signed-off-by: Herbert Xu

    Tom Lendacky
     

20 Jun, 2014

2 commits


22 May, 2014

1 commit


16 Apr, 2014

1 commit

  • As result of deprecation of MSI-X/MSI enablement functions
    pci_enable_msix() and pci_enable_msi_block() all drivers
    using these two interfaces need to be updated to use the
    new pci_enable_msi_range() or pci_enable_msi_exact()
    and pci_enable_msix_range() or pci_enable_msix_exact()
    interfaces.

    Signed-off-by: Alexander Gordeev
    Cc: Tom Lendacky
    Cc: "David S. Miller"
    Cc: linux-crypto@vger.kernel.org
    Cc: linux-pci@vger.kernel.org
    Signed-off-by: Herbert Xu

    Alexander Gordeev
     

27 Feb, 2014

3 commits


09 Feb, 2014

5 commits


15 Jan, 2014

6 commits


30 Dec, 2013

1 commit


20 Dec, 2013

3 commits


09 Dec, 2013

1 commit

  • drivers/crypto/ccp/ccp-crypto-aes.c:344:1-7: Replace memcpy with struct assignment
    drivers/crypto/ccp/ccp-crypto-sha.c:398:1-7: Replace memcpy with struct assignment
    drivers/crypto/ccp/ccp-dev.c:578:2-3: Unneeded semicolon
    /c/kernel-tests/src/cocci/drivers/crypto/ccp/ccp-dev.c:565:2-3: Unneeded semicolon

    Generated by: coccinelle/misc/memcpy-assign.cocci

    CC: Tom Lendacky
    Signed-off-by: Fengguang Wu
    Signed-off-by: Herbert Xu

    Fengguang Wu
     

05 Dec, 2013

7 commits