Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4555999yba; Tue, 7 May 2019 21:43:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNNyiIjxv/7O05Z8Zr1xauKFEd4mo2nQH7H8iA+QMxnGBj29L490i9fURZyKM9lP+MII3S X-Received: by 2002:a63:8dc9:: with SMTP id z192mr43714074pgd.6.1557290601537; Tue, 07 May 2019 21:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557290601; cv=none; d=google.com; s=arc-20160816; b=jfPyKidQXH688nrC0pQ/fy1eNVNIH3SXAIP7oQEAv4kYBO/hQsqWHnZv+DE7eZfI6X xPplHR689jFLPUWIuj1rWRiA8hByJUAL/eqWwviwitlo5cxc5mtWfeQ3VgDUcEUXNyyf JW0QjazF5ye3Q7fySNH9JGbW8F2kUMpEXrbtJWLhj3EpqQu2ekjsJBSDYvQtMPWmf3T4 ODZBMuXN71XchU1uHGUzrCmZODQ9vNKMiKK+8ZmB2FuPKhchWHV98xbS5VK4iqu/WmDS BJDXPKTczyk89GWkqdUtrOGTYyzgsUcFbdAcqbOucRYPIKdqydfrPqlhx1vm6lBTYUFN awBg== 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=vLH+/uAC3vUrfOPxTEYrno+A0sUf0tEBN5RGNCkywlE=; b=NiqabO4+KDWjYB8oFCKkVQCPIeH69fTYFcETyBDp6mLEBbLsZKNdWMV5aW46ZOICsi mvHJQg5ufI8BcQvvzh8vi2TeVATuaMuxMi2h8biqKQQlcKwGwqX4VeVYFPabm7062jHb v+N/MCl8W0GVObUX06EHS79nz2uaV1U+sdRYzml3Odw1y1LsdQHqmjwMx7vzljMDDR8L ZkRm068voCnU8FDERGfELeT+wkCNPgfzWP63rNC1Q+2vigCCbk6cRqtB1R1eVly2neXc WNXAfA9/HpP+o5fL4lEX7eomZwOq7pKjMoPMHxokyLRPphQSUgWRjLOaR9KQ2TcTII/m wNEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bHdHAm1+; 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 r9si21029311pls.323.2019.05.07.21.43.01; Tue, 07 May 2019 21:43:21 -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=bHdHAm1+; 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 S1727105AbfEHEmG (ORCPT + 99 others); Wed, 8 May 2019 00:42:06 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:40224 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbfEHEmG (ORCPT ); Wed, 8 May 2019 00:42:06 -0400 Received: by mail-vs1-f68.google.com with SMTP id c24so4962389vsp.7 for ; Tue, 07 May 2019 21:42:05 -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=vLH+/uAC3vUrfOPxTEYrno+A0sUf0tEBN5RGNCkywlE=; b=bHdHAm1+CelPIzEDiciBV1JovJqMomr8rEGeKkRsjJmBBl+YaJDuqnA64n/UEQJ27y e5HyHtdd6RG2xiy/5+q3RRVK93nri8iCQNPdH/WqBXk6KrQk2VfpY8uXAtmChJX11ssc EgDUjLKx4PRFbBOiGGd8EsU5V56bBc+vANs4V3wMLZm6Ys10DKms8N7/4Ba3hxWILbkD ikaEpvTcRJcw4C/0m/i/lyfwc11qGoXXUTGqEkuuUAIoMh9MXUCEgJxm6KlrrIZQyZ/7 FcSyueeJaH68nLZxyi2A7IwD9TK3jckpkhBguSFJJmMphf8oIpMlJGMOjkvHBGCGoyt/ 352w== 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=vLH+/uAC3vUrfOPxTEYrno+A0sUf0tEBN5RGNCkywlE=; b=MNBSXPpPi+2L2GQQoeTCI+Ei5a023ETU2oucpRfJUTT0f09znVZhHPm6/3DBguHjAm NDUDxrkSyIExbEpe8cgvYCYL7CcVG6ewGbwUu7bqkGJAz9DHHtkB/ExailPyrVwprph3 DXzp6BFqtVr0TnYhg7VJEinygtmWKOB1A0CD8oY/MFBI0ZhEe4o46Lrlc4Fn+owkJb7g 2kAtdVY997JS1x87ES6YYTpKqQDKgeLtRWJzrpY7fGQEfG8BKzddmEqe9++Vh59C6wVg WFzTpdKenffdJb1m7jA9LCC00WRcJqIIPRGI+YSpQDVXc0xiSFHv0loATrbIIsDTD7PA d1mA== X-Gm-Message-State: APjAAAWpLunQb3mONW5uC+1zdIpMq+Q9+swIsxsKmLS6/GT7JfwzUFUj MLmQbKv294qHJlQ1J7e+WdI5WeBod2OoxhUwyyZ+Gg== X-Received: by 2002:a67:d887:: with SMTP id f7mr9258563vsj.141.1557290525198; Tue, 07 May 2019 21:42:05 -0700 (PDT) MIME-Version: 1.0 References: <20190415155636.32748-1-sashal@kernel.org> <20190507174020.GH1747@sasha-vm> In-Reply-To: <20190507174020.GH1747@sasha-vm> From: Sumit Garg Date: Wed, 8 May 2019 10:11:54 +0530 Message-ID: Subject: Re: [PATCH v3 0/2] ftpm: a firmware based TPM driver To: Sasha Levin Cc: 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 + 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. 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