Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3314208imu; Sun, 11 Nov 2018 12:10:37 -0800 (PST) X-Google-Smtp-Source: AJdET5cPWsypTlt/XNwlYjOQGiiB7otbF3cy3Do/Oh/3OUE1Xb1OTreUUGH56lwDBd4UBeuu1LjH X-Received: by 2002:a17:902:e201:: with SMTP id ce1-v6mr17490378plb.138.1541967037101; Sun, 11 Nov 2018 12:10:37 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si16193540pfy.29.2018.11.11.12.10.21; Sun, 11 Nov 2018 12:10:37 -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; arc=fail (body hash mismatch); 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 S1731251AbeKLF7M convert rfc822-to-8bit (ORCPT + 99 others); Mon, 12 Nov 2018 00:59:12 -0500 Received: from sender-of-o53.zoho.com ([135.84.80.218]:21795 "EHLO sender-of-o53.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbeKLF7L (ORCPT ); Mon, 12 Nov 2018 00:59:11 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1541966965; cv=none; d=zoho.com; s=zohoarc; b=ZMQc1Gp4fycFKPWTuDWaRv5OaGKnY1ylMtHb+hdySvWOUewNorBmULBd6j64coiaQJki8PnIx9rlypGdUqdhG7zoBlfwD5kO4EZOMZEnIhLMO4lGaamh0PMsOjKdQW4c9jr7oFX3K5HwL9oNjMWBlnepsPbtlpXwSQYoDj0vbMI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1541966965; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=YR3WVKfpIS6z1Qj4SMgJBZ1aePS5t8lU9Y+Foo7GYNk=; b=fJdQfQ9ZeVh0hu+bJbcXKW1LVTT29nSIGLPRumsxdvWUBpVPqa2uvxyr2cXezV1Qs++IvCneWBi89nvvtZurQTo5Tc5DAV59EbTobdILQ0FUysAU+q+Pdfg3mJSGRQts8lWRJuoMWmg31VM4FJAetmF7E5OmLnRNVZFptJ6MNSU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=mniewoehner.de; spf=pass smtp.mailfrom=linux@mniewoehner.de; dmarc=pass header.from= header.from= Received: from z3r0 (31.187.91.78 [31.187.91.78]) by mx.zohomail.com with SMTPS id 1541966962917302.1454457460799; Sun, 11 Nov 2018 12:09:22 -0800 (PST) Message-ID: <7d8cc5ad4bb7548d283f363de6f24c90d5d0a2b2.camel@mniewoehner.de> Subject: Re: [BUG] Nuvoton NCPT650 TPM 2.0 mode not working From: Michael =?ISO-8859-1?Q?Niew=F6hner?= To: James Bottomley , peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, jgg@ziepe.ca, arnd@arndb.de, linux-integrity@vger.kernel.org, linux-kernel In-Reply-To: <1541962653.3190.7.camel@HansenPartnership.com> References: <776f384a81466642472beb4a34b10f26f1de88e9.camel@mniewoehner.de> <1541960689.3190.4.camel@HansenPartnership.com> <1541962653.3190.7.camel@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" Date: Sun, 11 Nov 2018 21:09:19 +0100 Mime-Version: 1.0 X-Mailer: Evolution 3.28.5 Content-Transfer-Encoding: 8BIT X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-11-11 at 10:57 -0800, James Bottomley wrote: > On Sun, 2018-11-11 at 19:50 +0100, Michael Niewöhner wrote: > [...] > > > However, this makes me wonder about yours: > > > > > > > [ 0.003517] ACPI: TPM2 0x000000009E490ED8 000034 (v03 LENOVO > > > > TC- > > > > S06 00001300 AMI 00000000) > > > > > > I thought the Lenovo "upgrade to 2.0" in fact disabled the external > > > TPM in favour of the Intel PTT (software TPM in the management > > > engine). Since you apparently have the tpm_crb driver that should > > > find the PTT TPM, this might be one of the attachment bugs in the > > > CRB driver ... from your ACPI output it looks to be not specifying > > > the Tpm2Tabl. > > > > Well, there are at least two implementations I know of: > > For my Lenovo X260 I can choose between Infineon TPM 1.2 or Intel PTT > > TPM 2.0 This here is my ThinkStation P320 which can choose between > > PTT 1.2, PTT 2.0, > > Nuvoton 1.2 and 2.0. When switchting between 1.2 and 2.0 the Nuvoton > > gets > > reflashed with the appropriate firmware. > > Well, I still think the ACPI setup is incorrect. What's in > /sys/class/platform (should be directories of ACPI devices)? The TPM > is supposed to show up as MSFT0101. If it doesn't is there any other > device string in there that might be a TPM? Nope. I'm not sure if it should show up in ACPI... isn't TPM 2.0 I2C? $ find /sys | grep -i tpm /sys/class/tpmrm /sys/class/tpm /sys/bus/platform/drivers/tpm_tis /sys/bus/platform/drivers/tpm_tis/uevent /sys/bus/platform/drivers/tpm_tis/bind /sys/bus/platform/drivers/tpm_tis/unbind /sys/bus/pnp/drivers/tpm_tis /sys/bus/pnp/drivers/tpm_tis/uevent /sys/bus/pnp/drivers/tpm_tis/bind /sys/bus/pnp/drivers/tpm_tis/unbind /sys/bus/acpi/drivers/tpm_crb /sys/bus/acpi/drivers/tpm_crb/uevent /sys/bus/acpi/drivers/tpm_crb/bind /sys/bus/acpi/drivers/tpm_crb/unbind /sys/bus/i2c/drivers/tpm_i2c_nuvoton /sys/bus/i2c/drivers/tpm_i2c_nuvoton/uevent /sys/bus/i2c/drivers/tpm_i2c_nuvoton/bind /sys/bus/i2c/drivers/tpm_i2c_nuvoton/unbind > > James >