Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5856080ybi; Tue, 4 Jun 2019 13:32:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSdPikQdpPivJBehZbwtHUFbkrJIyFU6+WaJ6rb4cYDagK4zY/PFwFGxYp70b1zioxH1H1 X-Received: by 2002:a63:31c7:: with SMTP id x190mr552862pgx.376.1559680366572; Tue, 04 Jun 2019 13:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559680366; cv=none; d=google.com; s=arc-20160816; b=w/xZeYmqzsUUbR57yB1BB33z7rGTaPSOdEVMW78JU1FIHi6a7s/mnaoapy03cjFyJp OCSRwkRvziRucefUS6qhQsFW/6UQ7soBHHW8rG3RZr+tlMtoi1RdNuCMEN7V1LvbNL1u 8/605bbc0qliugGjw0w9onv3AS6U9kkV0Cv/JYBSbFJCUrw8Fsf36nEWjVrxxEaEBtCu xqfyg8VNnF4/4P5K5QDayJNa1Q1nlY91/hoglBYT/SZ2vez0EDYcetpeZhTnpYTHh65p gNahsykJlqarKK4PCIFI++ER9wQkZt02SMlh+qZcf90Uj7BnlFRdx+hXSx6/CskRdfxP IUIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=Qvgi9EebcCKTkJL3XH6n75abRSmA+1KjL0uPQ7HHAeo=; b=gnFAtWOkBtUpoNAliaBg9PAoSf4BfE7NfV/CWQXo3O/vsF5OrUBhOcqkGJKxSw2c+w W1CtqHLtJ6jp71+1s3Z7+EZzsOWZyr9os7sl55Vzjz5lSmu7hgmX6dYJXSneFtcB2Q9W YjJJnml81xgrxpRwxOaQCnAFj6j2gUWh+E5aICZxGOC7jJcr/A5v/W4NhIUSKgZVPG7K 8dY45MZDqfYr5FaM/nBFHSFAnG0lSg0IuS3vexVTWBc0t1KiOEd/Zvi+P+ymenHYVk/G 0/Qj+zndP35WckPmCElYX+T5jxO40aJCTD3NvofuUsxCR1HwCPARy10tlUks7QBFxCpI 8YHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Ta7hdhGD; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd17si10159776plb.210.2019.06.04.13.32.32; Tue, 04 Jun 2019 13:32:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Ta7hdhGD; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726573AbfFDUbz (ORCPT + 99 others); Tue, 4 Jun 2019 16:31:55 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:10746 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbfFDUbd (ORCPT ); Tue, 4 Jun 2019 16:31:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1559680292; x=1591216292; h=from:to:cc:subject:date:message-id:mime-version; bh=Qvgi9EebcCKTkJL3XH6n75abRSmA+1KjL0uPQ7HHAeo=; b=Ta7hdhGDoJNbDuzf92aEfFIfqNN7443vpBk8sGQTF9UWGhbUKN9ieR59 gsOnxsL2GrXJiVmfPM2HkOzhTY9q92lesBR/VXMUAM+pHEjrLOA09O8jI BKOzdV6ci24zWxs9CLvPCpUGLHq9Yr61HX8G6106erqcQDVO2MscpDLhF o=; X-IronPort-AV: E=Sophos;i="5.60,550,1549929600"; d="scan'208";a="399352827" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2a-e7be2041.us-west-2.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 04 Jun 2019 20:31:30 +0000 Received: from EX13MTAUEB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-e7be2041.us-west-2.amazon.com (Postfix) with ESMTPS id 4FA1CA21DD; Tue, 4 Jun 2019 20:31:29 +0000 (UTC) Received: from EX13D08UEB001.ant.amazon.com (10.43.60.245) by EX13MTAUEB001.ant.amazon.com (10.43.60.96) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 4 Jun 2019 20:31:28 +0000 Received: from EX13MTAUEB001.ant.amazon.com (10.43.60.96) by EX13D08UEB001.ant.amazon.com (10.43.60.245) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 4 Jun 2019 20:31:28 +0000 Received: from dev-dsk-alisaidi-i31e-4ac69482.us-east-1.amazon.com (10.200.136.151) by mail-relay.amazon.com (10.43.60.129) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 4 Jun 2019 20:31:28 +0000 Received: by dev-dsk-alisaidi-i31e-4ac69482.us-east-1.amazon.com (Postfix, from userid 5131138) id 9A8BA47DE4; Tue, 4 Jun 2019 20:31:28 +0000 (UTC) From: Ali Saidi To: , , CC: Catalin Marinas , Will Deacon , Matt Mackall , Herbert Xu , Arnd Bergmann , "Greg Kroah-Hartman" , Ali Saidi , Ron Rindjunsky , Benjamin Herrenschmidt , David Woodhouse Subject: [PATCH 0/3] Add support for Graviton TRNG Date: Tue, 4 Jun 2019 20:30:57 +0000 Message-ID: <20190604203100.15050-1-alisaidi@amazon.com> X-Mailer: git-send-email 2.15.3.AMZN MIME-Version: 1.0 Content-Type: text/plain Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 this. Ali Saidi (3): arm/arm64: Add smccc hypervisor service identifiers arm64: export acpi_psci_use_hvc hwrng: Add support for AWS Graviton TRNG MAINTAINERS | 6 ++ arch/arm64/kernel/acpi.c | 1 + drivers/char/hw_random/Kconfig | 13 ++++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/graviton-rng.c | 123 ++++++++++++++++++++++++++++++++++ include/linux/arm-smccc.h | 2 + 6 files changed, 146 insertions(+) create mode 100644 drivers/char/hw_random/graviton-rng.c -- 2.15.3.AMZN