Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp603102ybl; Wed, 28 Aug 2019 02:37:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBj6gspoUw9KUzmtNLbNrXieodwmnEUTyexWEey7eedJHKWpz6L07j7tkqDRRy3yodBmdd X-Received: by 2002:a05:6a00:c7:: with SMTP id e7mr3578429pfj.52.1566985049730; Wed, 28 Aug 2019 02:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566985049; cv=none; d=google.com; s=arc-20160816; b=SkdcAuetfV5NA7gSlpM8Rxgg8gOAG3srKc/rbIGe1iAT+Cwsw1+ONDI96meqfjHQKz QOfMkowqm3FVcM1MkoEY4ADv5df35HkoDz0LIJknqjymQYwlerlBgjl39Yxbh5bGCLCG fw1URSGjh6sBbF4dLVXZ04Cy2FZ/uqvxM8ZWPqve4btSC11S6O49LbZsruW1B6n9/CXV UUpzlLRanAsB54Jje3cZsc6KPGC4/vfi/JHBwMblI8tw1VrT4l2uTQ4XjoC8xZcXPFwO dCmQLlCuJSNpidFyfOGyxSsoj/dKVoVJnlMDOTlR1Nz822ik+i4bWz+17LRxSyI9S4Ho HErA== 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=m8H1ni9yUIvKX3ot84qs9UAKbQ5sv70F7CGKmm49qW4=; b=PX55sLgihnCQeXAU7Vmemi+45jRGfvdYG6rP+hVhskxnbabqA3OktqHMIcfXumfrgX t8SyhzZ90kT24nCX468xLFwc9EDmqjjkHY5TomwKuTQ+PApDvF6NygxRYJkeQMSRiRc7 0JinAeBe2WOPN42w55lmXd27x6GdV3MQL72kSr1XPOiIAXDB2UETSyafjgkla++qd2/A XbwXCgb4TZ6nYQmF9IfuB9zIi+GYl3bpG9awuVVsZc5EqXwanxbkK81G13OdGsscUv5Q zSE+a4krPoRCdy4xvK510Az26mzpM30rNlUprKIVhGqqe1gPZ0UKYYtVrhfNTRjrdq+o xovw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="q3/C+voF"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck13si1436523plb.272.2019.08.28.02.37.13; Wed, 28 Aug 2019 02:37:29 -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=@gmail.com header.s=20161025 header.b="q3/C+voF"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726432AbfH1JgQ (ORCPT + 99 others); Wed, 28 Aug 2019 05:36:16 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:35512 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbfH1JgQ (ORCPT ); Wed, 28 Aug 2019 05:36:16 -0400 Received: by mail-yb1-f195.google.com with SMTP id c9so583037ybf.2; Wed, 28 Aug 2019 02:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m8H1ni9yUIvKX3ot84qs9UAKbQ5sv70F7CGKmm49qW4=; b=q3/C+voFtOOZNKoHGbnnO9Lg3fcxIGE+I+t73LnEHRvCavUUPEU4M8v09XScvVHHJ/ ef4ZUdZ5B8yrQihlHBLcuYYIbJB8Vg05r8uOCN+HZTg4LKguyrltkFdPoEi1axbGEvEP 0iaNoTsbzz/Kk/j4iq1P01lB5wi1il0lHo1pi9NrM9Y64Lbq1yWjFAMy9y09qG4PRb0L VUgYInjsBhqtNX9QPvPVkMhXm27U3ykIq3x3RfMB/oUmAF9WuxrZ84Qw7BDgq43k5jcZ HAeYs1jLgBsjddmJ/B81VMz9bCYJzE5DrRUlq8VR3WBzJPxvFOruPuaj70NUEjBfPqB3 BUZw== 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=m8H1ni9yUIvKX3ot84qs9UAKbQ5sv70F7CGKmm49qW4=; b=sGf1blZZ0RvrK365nWzw5GBGvItBF5N56zXSmOAw92ROSNG33x+7M2UFLQM18kshLt aDm93eKqCJdoh3Aeks4tp5AiE0RJ+dVfwKW1TBCMBSQ88q7t9xbSp5h5kYaEpfzRNhAl q1wrgmAzupKBaMsRMdh/NDXBgNjLnN+bfyfOywnYL6z6xUx40Dx9er33H1K+m0F5313t djD/QT739HUsBpBKQ0IhF9ffAMSOFaSgeXwkFeMo5e50uQXjBGAwYRz7iKC0AiUhFAjM bzxppKlJm838MywqCvXg8eldfY2fUlRnQSeJRJU5IBFkkDB4Yjn6iNNtxuSjP0g6nMyI h9hQ== X-Gm-Message-State: APjAAAWGjikjzZtvg4n3hIj+BWPjAfPtksBCjU7DL5+BodxqELvBrp6J XFTV3qFEpM9Ug1MXHn8MRIi2hqnuehj2jQfqi/k= X-Received: by 2002:a25:2f42:: with SMTP id v63mr2232165ybv.228.1566984975242; Wed, 28 Aug 2019 02:36:15 -0700 (PDT) MIME-Version: 1.0 References: <20190826081752.57258-1-kkamagui@gmail.com> <20190827171106.owkvt6slwwg5ypyl@srcf.ucam.org> In-Reply-To: <20190827171106.owkvt6slwwg5ypyl@srcf.ucam.org> From: Seunghun Han Date: Wed, 28 Aug 2019 18:36:04 +0900 Message-ID: Subject: Re: [PATCH] x86: tpm: Remove a busy bit of the NVS area for supporting AMD's fTPM To: Matthew Garrett Cc: Matthew Garrett , Jarkko Sakkinen , Peter Huewe , "open list:TPM DEVICE DRIVER" , Linux Kernel Mailing List 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 > > 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. Seunghun