From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91866C433FF for ; Fri, 2 Aug 2019 01:35:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 638762080C for ; Fri, 2 Aug 2019 01:35:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dZd7bo+w" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 638762080C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xsU0gF7afkuvl2miGQ+J4b4T1n3ByMriltFlnOC5kVE=; b=dZd7bo+wyk1r7Q TEqMM+Iby/VmCnLvBXctSeufg1EVbJEgmht+u+VT1x3iFeRB/O8EsFTxQ8Rsx3aa/14gGBpxyiMyr ShGZVYrcN2jfUPC5NO6FGU+ODmJcOFxu+wEhzTjLuDBsKjmn4rxE+k+KBSt/iom6h99E6mdvAAoSt DdEdex0hqco6pDf+7OdZXnFom/+7WrsOTLMlytvDT9iKDn6I8iym7x2yUjCyi8RKbHA9Km6clnb5p 0EqrRZJPTb/x82CnAiykGGt9oQpMyGjK8R3PXwmJorlTKUGXNZgQFydPn3p8UcP65yXXY1G1VngxR G+OeAGTdXvvn0yKmAEKw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1htMU8-0003Kw-Ul; Fri, 02 Aug 2019 01:35:56 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1htMU5-0003KC-TE; Fri, 02 Aug 2019 01:35:55 +0000 X-UUID: aa595f9cc79d418d959798958be9536f-20190801 X-UUID: aa595f9cc79d418d959798958be9536f-20190801 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1536259290; Thu, 01 Aug 2019 17:35:47 -0800 Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 1 Aug 2019 18:35:45 -0700 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 2 Aug 2019 09:35:44 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 2 Aug 2019 09:35:44 +0800 Message-ID: <1564709744.8481.2.camel@mtkswgap22> Subject: Re: [PATCH v4 0/3] MediaTek Security random number generator support From: Neal Liu To: Rob Herring , Matthias Brugger , Mark Rutland Date: Fri, 2 Aug 2019 09:35:44 +0800 In-Reply-To: <1563789042.14676.3.camel@mtkswgap22> References: <1561361052-13072-1-git-send-email-neal.liu@mediatek.com> <1563789042.14676.3.camel@mtkswgap22> X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190801_183553_953380_17A2FAA0 X-CRM114-Status: GOOD ( 14.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "devicetree@vger.kernel.org" , Herbert Xu , wsd_upstream , Sean Wang , "linux-kernel@vger.kernel.org" , Crystal Guo =?UTF-8?Q?=28=E9=83=AD=E6=99=B6=29?= , "linux-crypto@vger.kernel.org" , Matt Mackall , Neal Liu , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dear Matthias, Rob, Mark, Just gentle ping. Thanks > On Mon, 2019-06-24 at 15:24 +0800, Neal Liu wrote: > > These patch series introduce a generic rng driver for Trustzone > > based kernel driver which would like to communicate with ATF > > SIP services. > > > > Patch #1 initials SMC fid table for Mediatek SIP interfaces and > > adds HWRNG related SMC call. > > > > Patch #2..3 adds mtk-sec-rng kernel driver for Trustzone based SoCs. > > For MediaTek SoCs on ARMv8 with TrustZone enabled, peripherals like > > entropy sources is not accessible from normal world (linux) and > > rather accessible from secure world (ATF/TEE) only. This driver aims > > to provide a generic interface to ATF rng service. > > > > > > changes since v1: > > - rename mt67xx-rng to mtk-sec-rng since all MediaTek ARMv8 SoCs > > can reuse this driver. > > - refine coding style and unnecessary check. > > > > changes since v2: > > - remove unused comments. > > - remove redundant variable. > > > > changes since v3: > > - add dt-bindings for MediaTek rng with TrustZone enabled > > - revise HWRNG SMC call fid > > > > > > Neal Liu (3): > > soc: mediatek: add SMC fid table for SIP interface > > dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs > > hwrng: add mtk-sec-rng driver > > > > .../devicetree/bindings/rng/mtk-sec-rng.txt | 10 ++ > > drivers/char/hw_random/Kconfig | 16 +++ > > drivers/char/hw_random/Makefile | 1 + > > drivers/char/hw_random/mtk-sec-rng.c | 97 +++++++++++++++++++ > > include/linux/soc/mediatek/mtk_sip_svc.h | 33 +++++++ > > 5 files changed, 157 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/rng/mtk-sec-rng.txt > > create mode 100644 drivers/char/hw_random/mtk-sec-rng.c > > create mode 100644 include/linux/soc/mediatek/mtk_sip_svc.h > > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel