Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4260512pxk; Tue, 29 Sep 2020 20:26:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1kLXhi8Jg1YFmHQYYuO+TH9+Rw1e+JY1XVrahrIkChrT6e6RtRqm6SVXiD5Q82LCQ5PhZ X-Received: by 2002:a17:906:f917:: with SMTP id lc23mr752645ejb.233.1601436389044; Tue, 29 Sep 2020 20:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601436389; cv=none; d=google.com; s=arc-20160816; b=zoaaAO3JrstTq839iwKqFjoVy8DO0hyRm2QSeail8WSvlfiefqjEU5JdqvS881+M9n jHgygdg6FxE4w946bvtN/bwkRy3LawPbdh1pQGWLqkA5RUYbSxmyod5ONU8cowgJYcEI z/OOkuZn9/P+MKxgNuu0ahlYlIP9/8xCW3dYIUVqm+0TBsUQmnBiahe0bTFLgriR2mlG pHPSPSrc6gn2r2mxjzHRoyXLG/LwlH81m4IqrTvlPm88JxCC35u0cRhkgjSXkgSy8Acf Kr8R4VEobuBYG1dA1pMPuuiOOWhf5Aq0sfA8iHI3/qgLNTI95OuT48qAVqSsH0GifZ/K 9Vfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=cEnfWm8sIp1Viq/BF8C1HB9SegZY/l6rrNmKrCDuAWs=; b=e+jzrmOuPqh3t+gkMRPBLf2ec2DJ2vrsYLOygHTKD6F9HHQgrFLvZpD2j95iZ3ssIM 5nKPForZjaeCSw3c21HQ2wFAmOXtCh40JEPk0NzZRAZYe+p+O2+5ZzMQpDk6o5q97jTF /bkQN12NFqhoR59xpTQZ8dqjSLrFIxzkHUur2HD7fJi8Krwjd3bpyNCl3htoYHnB6Efz DwxnJY7dmpHwLHqNFukubXJcZLwSFx8IwNEZkOLIDWZQpLbVTqAMtatoQ4XMqLzTzeO2 RvNPdGFJnDoYM9ScfF77tUM3sM3zsrpzCe0YFrLB87Ve9V8TqOBtffciVEExlBsIwQ/Y 50PQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si194746edr.379.2020.09.29.20.26.06; Tue, 29 Sep 2020 20:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729898AbgI3DY7 (ORCPT + 99 others); Tue, 29 Sep 2020 23:24:59 -0400 Received: from mga11.intel.com ([192.55.52.93]:40737 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726299AbgI3DY7 (ORCPT ); Tue, 29 Sep 2020 23:24:59 -0400 IronPort-SDR: wFnj2fDaCCqAAZ4VmeemyRgZQCA0xs2BJmxb3+zG7KVGBEZZSiYSq5DqiL9MLYuc2z8TFcwHiC sUuKV0DYSvrA== X-IronPort-AV: E=McAfee;i="6000,8403,9759"; a="159684528" X-IronPort-AV: E=Sophos;i="5.77,320,1596524400"; d="scan'208";a="159684528" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 20:24:58 -0700 IronPort-SDR: GT/qSFOvF4oYuTG2A/9XYSrD3W+UzzTNynL976fGHG/yA2DvfjNSOhO7QDqygJiupSkkx1jS4Y THWrgClUOKpQ== X-IronPort-AV: E=Sophos;i="5.77,320,1596524400"; d="scan'208";a="495110304" Received: from xinpan-mobl.ger.corp.intel.com (HELO localhost) ([10.249.35.239]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 20:24:54 -0700 Date: Wed, 30 Sep 2020 06:24:52 +0300 From: Jarkko Sakkinen To: "Daniel P. Smith" Cc: Ross Philipson , linux-kernel@vger.kernel.org, x86@kernel.org, iommu@lists.linux-foundation.org, linux-integrity@vger.kernel.org, linux-doc@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, luto@amacapital.net, trenchboot-devel@googlegroups.com Subject: Re: [PATCH 05/13] x86: Add early TPM1.2/TPM2.0 interface support for Secure Launch Message-ID: <20200930032452.GA880758@linux.intel.com> References: <1600959521-24158-1-git-send-email-ross.philipson@oracle.com> <1600959521-24158-6-git-send-email-ross.philipson@oracle.com> <20200925054313.GB165011@linux.intel.com> <20200930031952.GA880396@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200930031952.GA880396@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 06:19:57AM +0300, Jarkko Sakkinen wrote: > On Tue, Sep 29, 2020 at 07:47:52PM -0400, Daniel P. Smith wrote: > > TrenchBoot's AMD Secure Loader (LZ). The former is not well supported > > and the latter will be getting maintenance under TB. While this is not > > preferred, we had to weigh this versus trying to convince you and the > > other TPM driver maintainers on a significant refactoring of the TPM > > driver. It was elected for the reuse of a clean implementation that can > > be replaced later if/when the TPM driver was refactored. When we > > explained this during the RFC and it was not rejected, therefore we > > carried it forward into this submission. > > What does it anyway mean when you say "RFC was not rejected"? I don't > get the semantics of that sentence. It probably neither was ack'd, > right? I do not really care what happened with the RFC. All I can say > is that in the current state this totally PoC from top to bottom. > > > > How it is now is never going to fly. > > > > We would gladly work with you and the other TPM maintainers on a > > refactoring of the TPM driver to separate core logic into standalone > > files that both the driver and the compressed kernel can share. > > Yes, exactly. You have to refactor out the common parts. This is way too > big patch to spend time on giving any more specific advice. Should be in > way smaller chunks. For (almost) any possible, this is of unacceptable ^ " patch" > size. > > I think that it'd be best first to keep the common files in > drivers/char/tpm and include them your code with relative paths in the > Makefile. At least up until we have clear view what are the common > parts. > > You might also want to refactor drivers/char/tpm/tpm.h and include/linux > TPM headers to move more stuff into include/linux. > > If you are expecting a quick upstreaming process, please do not. This > will take considerable amount of time to get right. /Jarkko