Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5200798imu; Tue, 13 Nov 2018 02:52:40 -0800 (PST) X-Google-Smtp-Source: AJdET5fOihmqH6KC1OEHkBTbDReKL04Z4DZuy6uW/MFDUB3MHAptN3r+CQ3XIb9PckfaVm9+meRZ X-Received: by 2002:a63:a84a:: with SMTP id i10mr4317014pgp.263.1542106360111; Tue, 13 Nov 2018 02:52:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542106360; cv=none; d=google.com; s=arc-20160816; b=RVajkZwIEUuuOLoynAxssEevHtvUnntWCnbDjkjXJT5oX6LJ1wrIDmWlqLL+Y8mbv2 TchHsjmyXRHiiBFEdVKQnvsWP+1ozVn/YbYgH3eU4sPAhTE/Bnfeas/XkiWsPVdWdLho KQ+hnOHrFuJ28hLRAQgRvQz2B7C+GsfBUYy5N1bymYNzegyoGO+pKvSmLFpel8oC/mC6 lxYFTvZP3D9PbHn7ULadtTRAaLxXXhXbL4yBmwTany7JM5kfyNMx+EWcI9yFsf8EwIsj oh6XnkDSCMhqEiQiWYNrOQlrE8otDdv2+FmsX58wsBSj8zxdYfxbfTVEVSSZiB71Nqf8 ak0Q== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=fKeBJL7pB/EABduabeg4aJW+xRwY6x6//2QoLkS4yr8=; b=HK8VTTcO2M0PUZD2k3rKrka5+1Q9+1IZLIcJbCgoHfd8rITu2D68u6Cnpilqm6efdJ dzXiDDYQ1R+Apr6Of+Mg6N4ZR5jSZBzkaL20Au10fSMqdYeitvIj/QZmy3t29V4/KsQF Erlk/PLq3bZhAcY5eEW0PP4dgbKiNEf34q0yNeRAUSp9ai8eAFKfHYciURMytw0Fb/cQ 9NTUA3BVpL7Fc7GA4cnol4ASY0izdORP0MkdxMfIYHe6EQVwxAmoCaXEF9WfEXZi/Aak SCTvOxs/m2nbFFlgCDCg6VS3RM73ODwW03ZVZVk6Rj94u/u71VPD0iTl+UW2Xk2qNfzD OQlQ== 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 s35si19625352pgk.392.2018.11.13.02.52.24; Tue, 13 Nov 2018 02:52:40 -0800 (PST) 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 S1732292AbeKMUsY (ORCPT + 99 others); Tue, 13 Nov 2018 15:48:24 -0500 Received: from mga05.intel.com ([192.55.52.43]:31254 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732148AbeKMUsY (ORCPT ); Tue, 13 Nov 2018 15:48:24 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 02:50:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,498,1534834800"; d="scan'208";a="105837169" Received: from ibanaga-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.254.77]) by fmsmga004.fm.intel.com with ESMTP; 13 Nov 2018 02:50:47 -0800 Date: Tue, 13 Nov 2018 12:50:45 +0200 From: Jarkko Sakkinen To: Michael =?iso-8859-1?Q?Niew=F6hner?= Cc: James Bottomley , peterhuewe@gmx.de, jgg@ziepe.ca, arnd@arndb.de, linux-integrity@vger.kernel.org, linux-kernel Subject: Re: [BUG] Nuvoton NCPT650 TPM 2.0 mode not working Message-ID: <20181113105045.GC10434@linux.intel.com> References: <776f384a81466642472beb4a34b10f26f1de88e9.camel@mniewoehner.de> <1541960689.3190.4.camel@HansenPartnership.com> <1541962653.3190.7.camel@HansenPartnership.com> <7d8cc5ad4bb7548d283f363de6f24c90d5d0a2b2.camel@mniewoehner.de> <1541968191.3190.12.camel@HansenPartnership.com> <3243d0325b3ea5878d3f86b0ee4fec1498f21dc1.camel@mniewoehner.de> <660b0934bc16c8d195a2724f8be4ba8dfbe71134.camel@mniewoehner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <660b0934bc16c8d195a2724f8be4ba8dfbe71134.camel@mniewoehner.de> 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 Sun, Nov 11, 2018 at 10:11:33PM +0100, Michael Niew?hner wrote: > Very strange... When I pull the power cord, then replug and boot, I get these > dmesg messages: > [ 0.000000] efi: ACPI > 2.0=0x9ea78000 ACPI=0x9ea78000 SMBIOS=0x9f5e5000 SMBIOS > 3.0=0x9f5e4000 MPS=0xfca00 ESRT=0x9c06e918 MEMATTR=0x99cb9018 TPMEventLog=0x > 98d0c018 > [ 0.001794] ACPI: TPM2 0x000000009EAB1F70 000034 (v03 LENOVO TC- > S06 00001260 AMI 00000000) > [ 3.096587] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0xFE, rev-id 2) > [ 3.105684] tpm tpm0: A TPM error (2314) occurred attempting the self test > > After a reboot I get those "ima: ..." message again. Pulling the plug seems to > reset anything (the TPM). > > The PTT TPM 2.0 shows exactly the same behaviour. The error in question is TPM_RC_TESTING i.e. TPM is still processing selftests in the background. It is clearly a regression but unfortanely it is harmless and unrelated i.e. tpm2_do_selftest() should not print an error message because it is legit behavior. The function actually masks the whole error: if (rc == TPM2_RC_TESTING) rc = TPM2_RC_SUCCESS; /Jarkko