Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4727922yba; Wed, 8 May 2019 01:33:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxP77GRrmqWRYunswNcaJdiQg4AOwE6mMsRWIYRSIL4um6KReZq5cujqlT55hePBvdnqsHt X-Received: by 2002:a17:902:765:: with SMTP id 92mr44133184pli.196.1557304409838; Wed, 08 May 2019 01:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557304409; cv=none; d=google.com; s=arc-20160816; b=ejwhNzuGjYL8sVO9BTha1pxDfZGJnABmdYspr4phtO7fdi/AezTQTyX+H4NC7eyvH+ t2JOIcbw5hsbgPS/HYew4hOU8Sd7BuvMvmTSqQkwEvV7t2+ouarswykJxqFt3AUlW8yN 2yaxtiLLcV2qBXY9omRXuQBh5R8K9ovOJFH0CU7fzXLyZJVDPSJJBH+0h9GdAko7FjeQ WuaYsva734rbo7cZK2SJPJJKTm94eiTWKgvELZWdXmIbS3hZ/RxrUQgB6bwEVqA0uzla EBIahNRhwNMTdvG5iyQYryVoZzWTnuajQfh0J7L6bWAPh02UJvRq1adAVFFP27wtQncA qigw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XNonYk8/ihexURqWmbVWGo+HlXE5x3mb0fn10s1rhqQ=; b=0gUS840OxK9WcObplOkYr/lqvM8+t6hBKIgTs7+ii26h7VlcEPD7Jvg1DyFcDtv0ZQ YS0nhRxB8eHD0sNPJ+Hzxb7yKGQ3ZHaF+IB7Rtd7J3tNG6ZOf1HOtd2ErHjmmep9rzpz vBaNVC41AMN6bxfw+M+WrHDL8+pn/xWC7bAWxGYMmHzlreqpaKi/uEIBbppe3Wi1uoEH qzUnWmpPhi3X5hMMxxri2GDe/zpyuJW/OhRI1tM1TMe/M/VVfKKEhWr4iyLE8VN5DBpy if45m1LqV8D6eFukHxXeC9jJ8TzI9YR5qS0dK0xbn5lFhuHJqX2fTyHtLWrjU/yYcSfd rP6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NCJGCMhK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si23997841pfv.48.2019.05.08.01.33.13; Wed, 08 May 2019 01:33:29 -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; dkim=pass header.i=@linaro.org header.s=google header.b=NCJGCMhK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbfEHIYa (ORCPT + 99 others); Wed, 8 May 2019 04:24:30 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:44733 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfEHIYa (ORCPT ); Wed, 8 May 2019 04:24:30 -0400 Received: by mail-vs1-f67.google.com with SMTP id j184so12106019vsd.11 for ; Wed, 08 May 2019 01:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XNonYk8/ihexURqWmbVWGo+HlXE5x3mb0fn10s1rhqQ=; b=NCJGCMhKpS7Nhq/WlWT49Dtmz49HBFEsfHuLJFyUR7lU7KrMSRbEg5CxmzO2MYJYAc xeTN36amdNGYTYJcDBGer9V9C59ZmERZ814kwtqfK1+2l3beltuBS2EBTwo2kQ9rU39r RxT3GqRpQuluDKyof/1SKJz3cvlP8m/dXmvHfAu5yzWo82mFctlVQWntst4XRWOzOPVw pT0eC6YSnaSl4yILqf+YIau2ag0dZA0fAHDEdr3/OOzOk1GCM6ac31g5+xSm3J9KG3XW 6K2sZ28EunqXWhvUgwN4V6aDhQP8XPfopzGQDynU3l2hP3w2aC3ch8IfGiLu/yOgCROn V77w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XNonYk8/ihexURqWmbVWGo+HlXE5x3mb0fn10s1rhqQ=; b=fbFr6td0ccmv25JoBoS2sP2gzmUAr/XDYp01A2SZ00ow8lPWpWOk1xvlpPEoVi0JXq LrvMy/hFimhkmbdpduAYADNKUVratjMR6lGvBWC3CV3LL9ZPIpwp4YLBcDmPQqLJBjzZ tNWa3G/vfD7PZkpB0SIiGP7vBHR3B0MQ3+xtE+JauJlCY/LgjZYh97pZ0e0qqWeRTmjG ni4pWagiRfrUa0iDvGCAbMVp7M32wMhAaVL+yO62ZPPMkkt0L1QELfZ4eJK/aZZ1nED2 Rr3DhE+7wZInkNSdj0zwjh8DOV68QvukCc0OYoH6GfCmOtWj3B9RJZCjjEoo6v5ylbxt KWbQ== X-Gm-Message-State: APjAAAXOsJEzmUKNEv6JdY61cV+lu3U6uqUPfycjd6mcMnXBrkDAoA1U do9oi/XlGUHvO6SoQkEeEHuHDL0GKI8AwsyNw9UBdg== X-Received: by 2002:a67:fa95:: with SMTP id f21mr19250315vsq.180.1557303869534; Wed, 08 May 2019 01:24:29 -0700 (PDT) MIME-Version: 1.0 References: <20190415155636.32748-1-sashal@kernel.org> <20190507174020.GH1747@sasha-vm> <20190508080232.vzdyvmrqx2apfvlf@holly.lan> In-Reply-To: <20190508080232.vzdyvmrqx2apfvlf@holly.lan> From: Sumit Garg Date: Wed, 8 May 2019 13:54:18 +0530 Message-ID: Subject: Re: [PATCH v3 0/2] ftpm: a firmware based TPM driver To: Daniel Thompson Cc: Sasha Levin , peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, jgg@ziepe.ca, corbet@lwn.net, Linux Kernel Mailing List , linux-doc@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@microsoft.com, thiruan@microsoft.com, bryankel@microsoft.com, tee-dev@lists.linaro.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 May 2019 at 13:32, Daniel Thompson wrote: > > On Wed, May 08, 2019 at 10:11:54AM +0530, Sumit Garg wrote: > > + TEE ML > > > > Hi Sasha, > > > > Firstly apologies for my comments here as I recently joined > > linux-integrity ML so I don't have other patches in my inbox. Also, it > > would be nice if you could cc TEE ML in future patches, so that people > > are aware of such interesting use-cases and may provide some feedback. > > If this kind is desire exists then shouldn't it be captured in > MAINTAINERS? > Makes sense, will send a patch to capture it in MAINTAINERS file. -Sumit > > Daniel. > > > > > On Tue, 7 May 2019 at 23:10, Sasha Levin wrote: > > > > > > On Mon, Apr 15, 2019 at 11:56:34AM -0400, Sasha Levin wrote: > > > >From: "Sasha Levin (Microsoft)" > > > > > > > >Changes since v2: > > > > > > > > - Drop the devicetree bindings patch (we don't add any new ones). > > > > - More code cleanups based on Jason Gunthorpe's review. > > > > > > > >Sasha Levin (2): > > > > ftpm: firmware TPM running in TEE > > > > ftpm: add documentation for ftpm driver > > > > > > Ping? Does anyone have any objections to this? > > > > > > > From [PATCH v3 1/2] ftpm: firmware TPM running in TEE: > > > > > +static const struct of_device_id of_ftpm_tee_ids[] = { > > > + { .compatible = "microsoft,ftpm" }, > > > + { } > > > +}; > > > +MODULE_DEVICE_TABLE(of, of_ftpm_tee_ids); > > > + > > > +static struct platform_driver ftpm_tee_driver = { > > > + .driver = { > > > + .name = DRIVER_NAME, > > > + .of_match_table = of_match_ptr(of_ftpm_tee_ids), > > > + }, > > > + .probe = ftpm_tee_probe, > > > + .remove = ftpm_tee_remove, > > > +}; > > > + > > > +module_platform_driver(ftpm_tee_driver); > > > > Here this fTPM driver (seems to communicate with OP-TEE based TA) > > should register on TEE bus [1] rather than platform bus as its actual > > dependency is on TEE driver rather than using deferred probe to meet > > its dependency. Have a look at OP-TEE based RNG driver here [2]. > > > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fc1db9d105915021260eb241661b8e96f5c0f1a > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fe8b1cc6a03c46b3061e808256d39dcebd0d0f0 > > > > -Sumit > > > > > -- > > > Thanks, > > > Sasha