Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2470089ybl; Thu, 29 Aug 2019 08:36:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIgApDor74TfnS0ZZNGVtkQCxXTtOK2sP98H5KJID0/OkLtzbklXo/sRvpOLLpmKS69J4+ X-Received: by 2002:a17:902:b48c:: with SMTP id y12mr10467219plr.202.1567092970215; Thu, 29 Aug 2019 08:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567092970; cv=none; d=google.com; s=arc-20160816; b=jNodTWNkBca/c5228ErA4J1xyXkcXdCSLlIV08rdzQghYqzvWpBKnBvbdZKSwTz97g tPputp1bFFw9wdhue9Op+3AZBIlSEWfnXyIgXsaiarSYFdViEgYVc/KdVRdjwtM0fN/w sorxLPW69gOj7ACvjCDgVrpPjOMzlO9d1KhjL85XjWYIkVbSZ0+UTBOkIsp32E6D3Udp /YveifipIhU2yPQl8VIQqQ9LnmDBdc9ImFtj60vfYVUuR+cxcToCOegiIPoauQyrLrQk yiXxj8Fy78E++TMW3aEmZN/tbx5rqh2kbKuv4ompa2uODXPE18gAIjN1mKMirf5PmMu7 1N0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=x8noy67i9VT1SjF+Qc8OCRsHNpp6R89adsfTvWWvxJM=; b=RWNl0cW3X0r8pzq/Q20hY4FN8dNxcbhXDPSQ7THe1W39hBlb8oj1HtrxGGqHQUfgzf S+yVKClu2FpEPoCHKNtTtfyrWHC/0iT8CEvJu4tbw/Z3yALxkQAYgZvMuIEUHJPXMX12 AG/XeHWIGDybmKwt3u7Vmy9zRZUaRJZuQGRH48MpWbBVZjEMyhDu/Oe03sIgbM9Xgvof 7a6oseMKAy9lYOD0mSitXWvZ78rf2ZcfFYi27Ub9Stio53r5lT1RH2pSsJcdZrhr5HBI D/u0kw9m7DkCRE+HP6ZvAkEzUcttO16UnwxLsF6IqbMu0QnHsEgQvqIfmJyD/9DEHBKH Ethg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l67si2226644plb.336.2019.08.29.08.35.53; Thu, 29 Aug 2019 08:36:10 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbfH2Pen (ORCPT + 99 others); Thu, 29 Aug 2019 11:34:43 -0400 Received: from mga07.intel.com ([134.134.136.100]:46572 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbfH2Pen (ORCPT ); Thu, 29 Aug 2019 11:34:43 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2019 08:34:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,443,1559545200"; d="scan'208";a="182374920" Received: from friedlmi-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.54.26]) by fmsmga007.fm.intel.com with ESMTP; 29 Aug 2019 08:34:40 -0700 Date: Thu, 29 Aug 2019 18:34:37 +0300 From: Jarkko Sakkinen To: Seunghun Han Cc: Matthew Garrett , Matthew Garrett , Peter Huewe , "open list:TPM DEVICE DRIVER" , Linux Kernel Mailing List Subject: Re: [PATCH] x86: tpm: Remove a busy bit of the NVS area for supporting AMD's fTPM Message-ID: <20190829153437.gjcqfolsc26vyt4x@linux.intel.com> References: <20190826081752.57258-1-kkamagui@gmail.com> <20190827171106.owkvt6slwwg5ypyl@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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, Aug 28, 2019 at 06:36:04PM +0900, Seunghun Han wrote: > > > > On Wed, Aug 28, 2019 at 01:36:30AM +0900, Seunghun Han wrote: > > > > > I got your point. Is there any problem if some regions which don't > > > need to be handled in NVS area are saved and restored? If there is a > > > problem, how about adding code for ignoring the regions in NVS area to > > > the nvs.c file like Jarkko said? If we add the code, we can save and > > > restore NVS area without driver's interaction. > > > > The only thing that knows which regions should be skipped by the NVS > > driver is the hardware specific driver, so the TPM driver needs to ask > > the NVS driver to ignore that region and grant control to the TPM > > driver. > > > > -- > > Matthew Garrett | mjg59@srcf.ucam.org > > Thank you, Matthew and Jarkko. > It seems that the TPM driver needs to handle the specific case that > TPM regions are in the NVS. I would make a patch that removes TPM > regions from the ACPI NVS by requesting to the NVS driver soon. > > Jarkko, > I would like to get some advice on it. What do you think about > removing TPM regions from the ACPI NVS in TPM CRB driver? If you don't > mind, I would make the patch about it. I'm not sure if ignoring is right call. Then the hibernation behaviour for TPM regions would break. Thus, should be "ask access" rather than "grant control". /Jarkko