Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6856234ybi; Mon, 22 Jul 2019 02:54:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiUhMo8GJcA7ZdVaKJ69qTYwzy/RH6B+iMd8COvqbs0YScPnkNjpcQu4+xjGPeZwSKuyl7 X-Received: by 2002:a65:4044:: with SMTP id h4mr70898471pgp.164.1563789268899; Mon, 22 Jul 2019 02:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563789268; cv=none; d=google.com; s=arc-20160816; b=lHGNB5FwyoWiX66T0ZTgPJBbGGhQ8eqbJXbUWM29wyOtpOmGrgWcD71B6Bq4xQE79Q x8/QDt4tfV0XsMcp8MlKN6YBvvyd8osLw5uCIlkaaXvuWaVDNq3LLgbYJILul2iqRu6F XvtsVvhwgle4KSoM9g8cgdSFrg3fGu0eFfeNM/9s15XzFaIww42rTNnALMfqU0ijyGR2 wQDwvGBdunhJALaSbhX//YJ5Yzgi0bnx50FnkHOkFlP71i1+uVnrObPv8d9LBWoJ8nQV kpkb11FQ6UA2tavDOfrvGt47qXSAAr6qRux0pu6stCw8QdlGkvJMAi/4MxIUn50HNRCA BPbg== 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=+pUOi4JkDEIN+cLskVvKFkvW6Hwz6Z6Bf/0ZnNevVXA=; b=uJ9zFtVJJSFV+7a0sZvr3Q82OxHrDUMYFL97A5gnJAQaBjblz9Coy1uLtLuzbOPySH +WGAmYlaGnaCefXmTVa9JFI4oUyv3KbD+f9/lGB/sfPuGP/6OfUQ/qjSPp6L7mSr7NGo 6XAtnt7xzKGud0AqkyvROUVTEwgbTXjW4lgJq3QmqcuXfVa020SZ0okGopeof0CsHAdk mhShUaeYw0Pv8scoJjyOXSm33rSYNA5Yixbg6s+zbvJM6Y/8/e90/s0HuclpphYDIcbL pI4By55WvQrT9WqrCwxnY+yPahWuiEKXvPs2VfPi9QV8GrbkhbANirMDygWO4oUYi8lx oV9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 u4si10392437pgb.218.2019.07.22.02.54.13; Mon, 22 Jul 2019 02:54:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729071AbfGVJvd (ORCPT + 99 others); Mon, 22 Jul 2019 05:51:33 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:58112 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729367AbfGVJuw (ORCPT ); Mon, 22 Jul 2019 05:50:52 -0400 X-UUID: c45950b4dc394bb492ec60abafe0491e-20190722 X-UUID: c45950b4dc394bb492ec60abafe0491e-20190722 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 208432879; Mon, 22 Jul 2019 17:50:44 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 22 Jul 2019 17:50:43 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 22 Jul 2019 17:50:42 +0800 Message-ID: <1563789042.14676.3.camel@mtkswgap22> Subject: Re: [PATCH v4 0/3] MediaTek Security random number generator support From: Neal Liu To: Matt Mackall , Rob Herring , Herbert Xu , Mark Rutland , Matthias Brugger , "Sean Wang" CC: Neal Liu , 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 Date: Mon, 22 Jul 2019 17:50:42 +0800 In-Reply-To: <1561361052-13072-1-git-send-email-neal.liu@mediatek.com> References: <1561361052-13072-1-git-send-email-neal.liu@mediatek.com> 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 >