[PATCH 0/3] Add support for Graviton TRNG

2019-06-04 Thread Ali Saidi
AWS Graviton based systems provide an Arm SMC call in the vendor defined hypervisor region to read random numbers from a HW TRNG and return them to the guest. We've observed slower guest boot and especially reboot times due to lack of entropy and providing access to a TRNG is meant to address thi

[PATCH 3/3] hwrng: Add support for AWS Graviton TRNG

2019-06-04 Thread Ali Saidi
AWS Graviton based systems provide an Arm SMC call in the vendor defined hypervisor region to read random numbers from a TRNG and return them to the guest. Co-developed-by: Ron Rindjunsky Signed-off-by: Ali Saidi Signed-off-by: Ron Rindjunsky --- MAINTAINERS | 6 ++

[PATCH 2/3] arm64: export acpi_psci_use_hvc

2019-06-04 Thread Ali Saidi
Allow a module that wants to make SMC calls to detect if it should be using smc or hvc. Signed-off-by: Ali Saidi --- arch/arm64/kernel/acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c index 803f0494dd3e..ea41c6541d3c 100644 --- a/arch

[PATCH 1/3] arm/arm64: Add smccc hypervisor service identifiers

2019-06-04 Thread Ali Saidi
The SMC calling convention defines service identifiers for generic and vendor specific hypervisor services. This patch adds those services to the list of existing service identifiers. Signed-off-by: Ali Saidi --- include/linux/arm-smccc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc

[PATCH -next] crypto: bcm - Make some symbols static

2019-06-04 Thread YueHaibing
Fix sparse warnings: drivers/crypto/bcm/cipher.c:99:6: warning: symbol 'BCMHEADER' was not declared. Should it be static? drivers/crypto/bcm/cipher.c:2096:6: warning: symbol 'spu_no_incr_hash' was not declared. Should it be static? drivers/crypto/bcm/cipher.c:4823:5: warning: symbol 'bcm_spu_pro

RE:(2) [PATCH 1/4] zstd: pass pointer rathen than structure to functions

2019-06-04 Thread Vaneet Narang
Hi Andrew,   >But struct ZSTD_CCtx_s.params is still a copied structure.  Could we >make it `const ZSTD_parameters *params'?  Probably not, due to lifetime >issues? ZSTD maintains its own ctxt. Yes we can avoid storing pointers of other modules because of lifetime issues. We should keep ZSTD_CCtx_

RE:(2) [PATCH 0/4] zstd: reduce stack usage

2019-06-04 Thread Vaneet Narang
Hi Andrew, >> This patch set reduces stack usage for zstd code, because target like ARM has >> limited 8KB kernel stack, which is getting overflowed due to hight stack >> usage >> of zstd code with call flow like: >That's rather bad behaviour. I assume the patchset actually fixes this? Yes, p