Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3766037ybe; Mon, 16 Sep 2019 00:25:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlYKc6QGWnNkzCp1dohXJaFxI0LksWm1pC/aIFFdQDQWZkVKzYJuGHmgkC9ndxQ1P4kQyO X-Received: by 2002:a17:906:6dd4:: with SMTP id j20mr50439159ejt.173.1568618739137; Mon, 16 Sep 2019 00:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568618739; cv=none; d=google.com; s=arc-20160816; b=KY9cxXtcGdQtUGP15OlJmbw2BVIv3tgkmuc1dGMBuspI1/zGq7J97AHoSYSv6vuzIv r7lKJMa6fS9AlCGgMGdWHZWjqUFZIfULK9eOsXFDf94GHrZJecoeSWS321mNdYNvZ+V4 ypsrsVWDCXSxesac7l6iceZLwGNC4XDnWpR2eoaIwCBKg3NE/EMcBjyEOI7G91eXILqX dkCrxeNFYFY2LLWY9KYAd1ecTwvKBG4TTkjJUoJTx/64KQNdvvUVBp5SuPSBXFnHlVCE 9SQjV+Scp+Lg6UDoTNmoSr2yWPnb237nlcW0UYa9Me/4c4W1owsXsGgOXY4py0hC1bNi XJhA== 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=zQ4Vm0KcB/bEsWgyoKRrSzyRIdVowVKpj02Cnx+P8oE=; b=KuuVmTPEz0PY6l66/8s7iDFzLkPND8k8pkLhBVIMMh39ugs9R97VHZ6M1f/ADyJ0rf SOLkwLfRhU9f9WRt+SaiBs09h2R6zv+A9lRj1215LFHMgXCnNojQCIVTVJgnKlYOZuf9 ORG75kzU06jCy+q1IDc89Q/W1vyc6siDEZhJ68t65EZx3+HhTyJvoytErbnrE54gtYqO faruIw7fSSYC+V2l+co4wP4ngD11EY3DG5zVdVY7eLkovMmWmnaLAN8RBvfmXXZClRxF rNaMNZA5uw/Iu1xXaSW9HkL5SEXZX1lFqqyS8Yh2N0pk28LCvzHAiaDFfOYKNoNa8nmr 27zQ== 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 b47si20274110edc.45.2019.09.16.00.25.15; Mon, 16 Sep 2019 00:25:39 -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 S1728861AbfIPF0Y (ORCPT + 99 others); Mon, 16 Sep 2019 01:26:24 -0400 Received: from mga07.intel.com ([134.134.136.100]:29724 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfIPF0Y (ORCPT ); Mon, 16 Sep 2019 01:26:24 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Sep 2019 22:26:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="scan'208";a="190970096" Received: from abonnier-mobl5.ger.corp.intel.com (HELO localhost) ([10.252.54.54]) by orsmga006.jf.intel.com with ESMTP; 15 Sep 2019 22:26:18 -0700 Date: Mon, 16 Sep 2019 08:26:16 +0300 From: Jarkko Sakkinen To: ivan.lazeev@gmail.com Cc: Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] tpm_crb: fix fTPM on AMD Zen+ CPUs Message-ID: <20190916052616.GB4556@linux.intel.com> References: <20190914171743.22786-1-ivan.lazeev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190914171743.22786-1-ivan.lazeev@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 14, 2019 at 08:17:44PM +0300, ivan.lazeev@gmail.com wrote: > From: Ivan Lazeev > > Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 > > cmd/rsp buffers are expected to be in the same ACPI region. > For Zen+ CPUs BIOS's might report two different regions, some of > them also report region sizes inconsistent with values from TPM > registers. > > Memory configuration on ASRock x470 ITX: > > db0a0000-dc59efff : Reserved > dc57e000-dc57efff : MSFT0101:00 > dc582000-dc582fff : MSFT0101:00 This is interesting and great thing for us because we can test fully the tpm_crb part without requiring NVS tweaks. And NVS tweak can then be built on top of working code. So far I've seen only AMD fTPM's that report NVS regions. This is important thing to have in the commit message. I'll give a detailed review later on. /Jarkko