Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3255397imu; Sun, 11 Nov 2018 10:50:57 -0800 (PST) X-Google-Smtp-Source: AJdET5eQ4XPgK1ynxa3Cjvcy90dbTOTB1aPOI8tpiK+pMR354OhqrWtcs51uwxxs5Pyzi1sZivpX X-Received: by 2002:a62:1cc6:: with SMTP id c189-v6mr17299042pfc.49.1541962257608; Sun, 11 Nov 2018 10:50:57 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h20si13717126pgm.366.2018.11.11.10.50.41; Sun, 11 Nov 2018 10:50:57 -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 S1729477AbeKLEjh convert rfc822-to-8bit (ORCPT + 99 others); Sun, 11 Nov 2018 23:39:37 -0500 Received: from sender-of-o53.zoho.com ([135.84.80.218]:21781 "EHLO sender-of-o53.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729413AbeKLEjh (ORCPT ); Sun, 11 Nov 2018 23:39:37 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1541962208; cv=none; d=zoho.com; s=zohoarc; b=YtyMnd0letGd52Ni0tD5x76/h0e7f8/H5wsp9Z/VwzwNfLZQuh4ZFNQgwNVYueThQ0b8a8Kkw2ZsQw4IBngqpOJAaBcfEyURTJ+QDRaCkxBidypzPoIWabnM6kO1meaXUygONkEef4ZY+58fAysdP+PR3SW9Vb+GLfJUA66OuoE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1541962208; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=sAz7EJdTyRSsvQVPqXZuOgcvzMBL2HR4Upqo6kqrPAQ=; b=oWUsZTqRjFflTfceKrQCYKnINw4BT3kuFGVzLRE4pjf/KY1hYH/+bDUAJ2zL6u5vNQlKLfBwFmrFAI1U8VhJyknehKWK5skW+/0ATqFcx9y1ThgnRAhSbLq4RqeRHIAtPmFwGKLzGXK/9/leNupeyJnmJ7ZkjQhlV3Dz9o2kjwQ= 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 1541962206767736.60132244995; Sun, 11 Nov 2018 10:50:06 -0800 (PST) Message-ID: 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: <1541960689.3190.4.camel@HansenPartnership.com> References: <776f384a81466642472beb4a34b10f26f1de88e9.camel@mniewoehner.de> <1541960689.3190.4.camel@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" Date: Sun, 11 Nov 2018 19:50:03 +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 Hi James, On Sun, 2018-11-11 at 10:24 -0800, James Bottomley wrote: > On Sun, 2018-11-11 at 18:55 +0100, Michael Niewöhner wrote: > > Hi all, > > > > Nuvoton NCPT650 does not work in TPM 2.0 mode with tpm_tis / > > tpm_i2c_nuvoton while it works in TPM 1.2 mode (I can reflash it via > > UEFI setup). Kernel version is 4.19.1 > > Not that this helps you, but mine definitely works. I've got an older > Dell XPS-13 with a Nuvoton 650 which is software switchable between 1.2 > and 2.0. This is what mine says > > jejb@jarvis:~> dmesg|egrep -i tis\|tpm\|crb > [ 0.000000] efi: ACPI=0x79419000 ACPI > 2.0=0x79419000 SMBIOS=0xf0000 TPMEventLog=0x69db3018 > [ 0.012797] ACPI: TPM2 0x0000000079446CC0 000034 (v03 Tpm2Tabl > 00000001 AMI 00000000) > [ 2.035242] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0xFE, rev-id 2) > > 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. > > James >