Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5872037ybl; Tue, 27 Aug 2019 10:50:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkFSPNZRQ5ejfcxPwG/kXKqD7FYxqAvEeLym3DEo59GOUW8r2N6Bmx0nfhVlQT9iMFy7ae X-Received: by 2002:a63:e70f:: with SMTP id b15mr22324008pgi.152.1566928249129; Tue, 27 Aug 2019 10:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566928249; cv=none; d=google.com; s=arc-20160816; b=fwQh92XrsRzS5HuZGUMljFAKJcrCM1pdABLaNQ8llCZ6N/7Ay5BmMlhPp7Zv2P2Go6 Nbofm6O6TfxSi+tOYeeqPOF0shPNb8Yes5w02VEKw2Iylrecfa7b/4WDbrw1/eEUso1S nyLDP1cy+uJcU2S5KglIiO993Elwl823DjzUZSLAu9uHp02fDcfNeD7QTIdNaSOqJBmI VsXT880pvakDVl04EQ+QDVsmHqZpn9nPKrsyjXICujKc7uPKAlWCVEjDCfA3iXTpjAxB emTUHOMuRrngLad2ny/IzLEMkoqEGPQAJMTNRpss8hyxETFX4Dg8xesIWW4iptJALzKh CJxg== 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=lLYloM0Ywjig+ulU3rxirWB2hunInBTjYfHlRq1yag0=; b=OHlAhJN5Bes7R1BTnonCCPQLexMlY2i5NRqGG3+C8320qsc6njBDF5apowlw0SRnsS 9jiImBRG86uCEMzTwKV/BjM82rvkL+LfLsexAjTG8LsV7UakKLEaNo1kaw6vbhcXusk6 xrADLVJkLdYtGO6w7Oo4jG80ocl2GqyzwHqILaVRAghucZf0ZATolCABsOZPvIHAnBpN pUPBh/rUmgNjoXJ6YgNsKR7XFY+Hy5BaccN9b5CTzhGzqEZwx/5IgLBMnTUgHOchhUEk oSqbESovJyt5av80Wk5EOSfd6h7Ys3vrngI4xytc7mlvZevQ/JMDdvIuutRRt7ta+Mf0 l/ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@codon.org.uk header.s=63138784 header.b="i4yWR/AG"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si14658098pfl.244.2019.08.27.10.50.33; Tue, 27 Aug 2019 10:50:49 -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=fail header.i=@codon.org.uk header.s=63138784 header.b="i4yWR/AG"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730469AbfH0RtC (ORCPT + 99 others); Tue, 27 Aug 2019 13:49:02 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:38406 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728371AbfH0Rs6 (ORCPT ); Tue, 27 Aug 2019 13:48:58 -0400 X-Greylist: delayed 2265 seconds by postgrey-1.27 at vger.kernel.org; Tue, 27 Aug 2019 13:48:57 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codon.org.uk; s=63138784; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lLYloM0Ywjig+ulU3rxirWB2hunInBTjYfHlRq1yag0=; b=i4yWR/AGXeNk0efti4p+I0xxR He1mnoWyZPL4x55cesht2sxmTyNiXHwOuyL7xB8q7GvUg6p1hZTfzm6vrlxwxsP1almCB6XTL6qQX mNAr7uZ6CkFnOz2D9Rv+/voSIbzTRnLqlT1cD7Ggd9yTJu/17YA07WnjiesVVv023Nins=; Received: from mjg59 by cavan.codon.org.uk with local (Exim 4.89) (envelope-from ) id 1i2ezq-00079w-HA; Tue, 27 Aug 2019 18:11:06 +0100 Date: Tue, 27 Aug 2019 18:11:06 +0100 From: Matthew Garrett To: Seunghun Han Cc: Matthew Garrett , Jarkko Sakkinen , 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: <20190827171106.owkvt6slwwg5ypyl@srcf.ucam.org> References: <20190826081752.57258-1-kkamagui@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false 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 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