Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4745329yba; Wed, 8 May 2019 01:57:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQnuB2MjEC7eTRU7Jty1j/ugTkYueZvcySb5+xieHwSyf2VgYXG3pfyXnfiMo8pd/3tqDJ X-Received: by 2002:a17:902:7c90:: with SMTP id y16mr46388858pll.309.1557305829171; Wed, 08 May 2019 01:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557305829; cv=none; d=google.com; s=arc-20160816; b=DYplKoK0BVJx8VXZKDBkkZ9m3DCAkUUwAZqkelvSKM8SSFUgr2pbNzDD9qcSIeHCKv jfvZisurvBGLjMJEJAYtHffHfVEqqIj2YqSQDLpniiDhOKZzrjKRs6P/6mg4WCKM/XUy aSrt2HWvnuKEmIuBO09LedXepgn/1ZA/S9FrSqHbMgzg2edILECGOTJ4nlKWCbLcaTXE KdFkcMH2M1VqWklhKBEC5HZuXmdiRwNu6TaMYlM5ZxVOUIYpJ8TH3pLVS54oXLUawqOr 6vVBLS3DmIdtc/4wEeuXf1U99NbgWdJ3z38wi8teIvDANL1lFVGfL1/MYT1/pN24F4zN Pf5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lW7WPvS0BGszPgf22bfJoZtgKKh2N28a/QSwohBZbr8=; b=LbLTcdn7WiA5BjFrlEc66sIWmtaZlhg+CDc7kK3ibaU1yMRjwrOZMMyt6mU16NuIvE z5h44zwZ47ZLkXOQf5ei+ncxD489XgR3EdKgXD8XMVSBTmTrtkAQs7g2JAza0my7l/t+ cByF0mO/bVf7XZko85dwQlPbi79+NXByfJH91mi7AJhQf4Ia2Yg6lQezvFmSC3GHMEYi WNVx3m3IRBtLX6MZ1ffAwngdX9B00yoYVYBHuwmEVhpg6tIFU94kia/zQT/I2VpiyoXA k5hbDiqBUqeegKDeR2k/jP9GNKoyuUxPzUyj0cg36PxYsrSG9JslJEy1eMHq1yABOJLX 8xZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lr+O5/B0"; 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 n3si23681421plb.148.2019.05.08.01.56.52; Wed, 08 May 2019 01:57:09 -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="lr+O5/B0"; 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 S1726713AbfEHICj (ORCPT + 99 others); Wed, 8 May 2019 04:02:39 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34556 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfEHICi (ORCPT ); Wed, 8 May 2019 04:02:38 -0400 Received: by mail-wr1-f68.google.com with SMTP id f7so15570812wrq.1 for ; Wed, 08 May 2019 01:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lW7WPvS0BGszPgf22bfJoZtgKKh2N28a/QSwohBZbr8=; b=lr+O5/B0mr3yFBj3gucyu+7aRM6kkirSd0HWcJrx1iOguC0CdFSymKqv56EcXwGw0/ Pm9EmV2CSSH3Fnv37oBNPGCTTOoo8NDkzbP4efMm+tcvdiSx66GzbeW2sfnyINs1wX5I PkhEDqhfVjl9VRv6lddMh+POF/EhIcDx21mQbcNiKZ7k6z8IAUrbRR1zDG69wSipQVM+ r3tyClDm6HP9BGRSwBRb5EcvnNCxAelsaCC4kb/+t9QXIlBmYabC7n3bdTKMcwDKoaQO LD74S7jaGvjBkYVmZyuB/LimjmQLPaUIa1u6cvgqVWRvMBOB3WL9aP1fFUZqz9h57djj 8THw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lW7WPvS0BGszPgf22bfJoZtgKKh2N28a/QSwohBZbr8=; b=B+nc2Hu7zt5YPxvDH8HhRaaBSWIo4cIhFqyDTt3YPfCr8Be/fzHpkWycw4s2y2yKQ3 0uxvu32xEKRwLQPs4YDBS9FBYvAZt3JM40RWN2hCF/07HjBj8WLJKpANy55Aqyy+E9pO 79tcWBJ6EhwEIHBx/CtSSu0hkfUoOX+iy516jYgjiQ+rb1Jp3HhSxUkQ3yDJne7MSDnd 0mCLZzKGXiy9Bo7k25Sqd+nSjxnAyp80PQJsmq8Uw4PWeehglZ9XXI+IcmFkvHn4/sco IhMVgi66QZUxoFsnh7oGEA9+x3E8AQO0gpIAo2gWPWTHJcBceiZuXKSDgJxoVFJEFaL5 iJkQ== X-Gm-Message-State: APjAAAXPv4DImfEoonGtoUYs1gEyqkqAo1PG6LA/8U5U55bHGVXrDLlM FQXqsXHgKFXWqqYhLDkf8D7HVw== X-Received: by 2002:adf:ce90:: with SMTP id r16mr569812wrn.156.1557302556362; Wed, 08 May 2019 01:02:36 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id j190sm2658814wmb.19.2019.05.08.01.02.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 01:02:34 -0700 (PDT) Date: Wed, 8 May 2019 09:02:32 +0100 From: Daniel Thompson To: Sumit Garg 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 Subject: Re: [PATCH v3 0/2] ftpm: a firmware based TPM driver Message-ID: <20190508080232.vzdyvmrqx2apfvlf@holly.lan> References: <20190415155636.32748-1-sashal@kernel.org> <20190507174020.GH1747@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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