Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp306743ybi; Thu, 1 Aug 2019 19:30:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/23OlYJ2gRY6mL9pbJfVxWGPadsWi1ihED3Of2IanYbKBqEG3/6wyK2xik9kyY++USPtm X-Received: by 2002:a17:902:124:: with SMTP id 33mr131920928plb.145.1564713057209; Thu, 01 Aug 2019 19:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564713057; cv=none; d=google.com; s=arc-20160816; b=lyiDXAjtxWxZ/lPjWg159JatZqK5KabgaCrffAmo4qPt9ICVuHtLhbcdOxDEiLyBlO ooaQKEWywRBX4f1DPcIu0c2MIkkPUqbeSMjbfqe7xZ04r5TQIauMQoORmBemkamBsXHa Jg6ngdvwoEZr4r2MjIvTzXxFg03AkyxoMnf8+bg3FdWCPeYsS5gfGZpfT51YcD3lRF9u PQgvlNEqoWnOO5b6HhWDGmF0pWdIiYS0Y2iYDV7PoGv9rlWhMfuQKoDCDqcKxaZP7oyg DdSh2lmF5mIbCVpFm1b6B6M3tOEIinHNQLUyCFZFrp6bCmYqe1VSIS0M/E1Hx1qQfygi 4EHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=0V9pC69TtbfbVgI4NM9lO7Xw/LYS8L8G8qfG2IVWXW0=; b=S/o5KiSNu8z6ykjBChlGD1AEDO9LIGoO2maaDhi/+yBdBdiprDbUnSIv5cg8Tv4Pzo xMrXYm5E0M0QAj1KXSfQ9ajREenIHinQ9wFsUAItjVs6olRVfnt/E8y42B9OG+PkTfcX 9Ye8MTZng/EmAzFJNvSKx9vM4Urpu1mRq+fouw3QH3C54y14M9OJnS0Cb+aNnWyjxOJN 3AHn+804kwChkAR26QjrJXyRXUHarFztbAAYtSBa2C+tVz6T9g2PwYVbFY5OoUJPi+aW BgLfWslQmz0cdWeO0WAeEAH0msF6NUOkDXegyUuiIKrNEDTq5Yuc5ah9se1L9VSZPSN2 K12g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si34961672pls.280.2019.08.01.19.30.43; Thu, 01 Aug 2019 19:30:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731165AbfHBBfv (ORCPT + 99 others); Thu, 1 Aug 2019 21:35:51 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:16015 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731011AbfHBBfu (ORCPT ); Thu, 1 Aug 2019 21:35:50 -0400 X-UUID: 8caf567bc513476db8dcba29a9fa4f3c-20190802 X-UUID: 8caf567bc513476db8dcba29a9fa4f3c-20190802 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 266494707; Fri, 02 Aug 2019 09:35:43 +0800 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 CC: Matt Mackall , Herbert Xu , Sean Wang , "Crystal Guo =?UTF-8?Q?=28=E9=83=AD=E6=99=B6=29?=" , "linux-crypto@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , "linux-kernel@vger.kernel.org" , wsd_upstream , Neal Liu 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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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 > > >