Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7165782imu; Wed, 14 Nov 2018 12:48:02 -0800 (PST) X-Google-Smtp-Source: AJdET5eQit/H+J9OcwS1RuOWmmK5RRN653bSltCByU8HgGiNCH1fybUkoynXFjAWhP8j8M7jggpL X-Received: by 2002:a62:47d9:: with SMTP id p86mr2975529pfi.95.1542228482258; Wed, 14 Nov 2018 12:48:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1542228482; cv=pass; d=google.com; s=arc-20160816; b=UoG/RNkGoK8Sj1O9Sju269WNF79KYXuPDF3RnZkabzkCGnRLLnh9lLL4jpMqexf4Yl vlrBAwNe5ETwioWXs5I3Rla9tD7PznGByKExtZj7OxUo9bIc7yQLgByxci6pWvEvyGbL JjPM72ZwU2i85Jc9nT5XR6mBvNO+g1N1uwcyJplC3feXLHjl+sV83aSJIZHpgRWhp5+g mFUYdo67LQ5SDpYkFXN7RS0LyNP+hSzamKPAz9S+pO6XzM8FeolK1Qm7vsKRtIumk1f7 fxyUfmmj7Z5UIoCefWphJc/oBjEz2HxKJn509MK7sDBOAl6wX0HB74ByN078IjjiMRY/ 3f3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:references:in-reply-to:cc:to:from:subject:message-id; bh=yHiZL1mYH+AVYQadTcbktf0OXMM7teDTUzRXY1I+bq8=; b=UuVBNqkXQviNVP8p8ZqLqolMp2mq7RoTokkIqJnd1Dab2dQy3O9xf4C21XtsVmXe3X od3uebTuAqwrB5idQip0/z5wtXu5iDwDLaHyYVsciv51BWBH3iKxtqwJvA2nFV49N1VS 4KpCo1zvyxcgyYLqwS0Xn+U0AAN44On/SuyS2MDgRfcDYmC74wROHU7nECcKqQvYaQWB km8JU9inCvJyJrKGKR79Dyl3c4eyQMUq/DYOX1nhOnS9q6CwvKI4TEnCdK9vNiB00rjA 2J1KS5NUQ1JgbwS7SB/ILHwdprTGSE9kNfGRnPHJDznWKSWSYf+oK78+nH8NZVw0LU8S rAIw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=mniewoehner.de dkim=pass dkdomain=mniewoehner.de dmarc=pass fromdomain=mniewoehner.de>); 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2-v6si23666999pge.276.2018.11.14.12.47.46; Wed, 14 Nov 2018 12:48:02 -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=pass (i=1 spf=pass spfdomain=mniewoehner.de dkim=pass dkdomain=mniewoehner.de dmarc=pass fromdomain=mniewoehner.de>); 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 S1728232AbeKOGwF (ORCPT + 99 others); Thu, 15 Nov 2018 01:52:05 -0500 Received: from sender-of-o53.zoho.com ([135.84.80.218]:21747 "EHLO sender-of-o53.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725756AbeKOGwF (ORCPT ); Thu, 15 Nov 2018 01:52:05 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1542228421; cv=none; d=zoho.com; s=zohoarc; b=Dp2RNO+l9R/QOvv88tT47O1nMZt3BY7BIBMJe9TTPD/BhLgsZPFyazoiOZQAsCkzpuSrVDNhWLP/Y/PO2CCRya5Ch7x9KQsf0gPXBTiEoz5VD8rBqE+b6qSOthwHq+CmtVVH7917hHtU3Hrme8V1YvzUx8YcIffot1udVPLQBIw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1542228421; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=yHiZL1mYH+AVYQadTcbktf0OXMM7teDTUzRXY1I+bq8=; b=Gr7yegQlD6ciljlox4hdPy7FlsOzcHC6ENKCkSt84j/6o9xrsqV0/Mie9QyniG7Qs/k3wb1LNLirXzJ7lrtH1nLhxZLuslzkb1BL2nv7U4km0aI4986u3D4xil/gev0JkvRmVB/SgH6t5F5q0KVmIMqg0S7TKyKP+Fggr6cMyJM= 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 1542228417085432.2836951108044; Wed, 14 Nov 2018 12:46:57 -0800 (PST) Message-ID: <4f7cc7152f2266d8d0782889db2375d4c1c71987.camel@mniewoehner.de> Subject: Re: [BUG] Nuvoton NCPT650 TPM 2.0 mode not working From: Michael =?ISO-8859-1?Q?Niew=F6hner?= To: Mimi Zohar , James Bottomley , peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, jgg@ziepe.ca, arnd@arndb.de, linux-integrity@vger.kernel.org, linux-kernel Cc: Nayna Jain In-Reply-To: <1541972556.3734.90.camel@linux.ibm.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> <1541972556.3734.90.camel@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 14 Nov 2018 21:46:53 +0100 Mime-Version: 1.0 X-Mailer: Evolution 3.28.5 Content-Transfer-Encoding: 7bit X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I tried that patch mentioned by Mimi but it does not change anything for me. Then I did some more tests with different kernel configs and finally got TPM working by a) compiling TPM as modules and rmmod tpm* and re-modprobe tpm_tis. (initramfs) dmesg | grep -i tpm [ 0.000000] efi: ACPI 2.0=0x9ea7e000 ACPI=0x9ea7e000 SMBIOS=0x9f5eb000 SMBIOS 3.0=0x9f5ea000 ESRT=0x9c07d918 MEMATTR=0x9bea3018 TPMEventLog=0x97cbb018 [ 0.003793] ACPI: TPM2 0x000000009EAB7F70 000034 (v03 LENOVO TC- S06 00001260 AMI 00000000) (initramfs) rmmod tpm_crb tpm_tis tpm_tis_core tpm (initramfs) modprobe tpm_tis [ 44.956905] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0xFE, rev-id 2) b) compiling TPM-support in-kernel and manually bind the ACPI device (initramfs) dmesg | grep -i tpm [ 0.000000] efi: ACPI 2.0=0x9ea7e000 ACPI=0x9ea7e000 SMBIOS=0x9f5eb000 SMBIOS 3.0=0x9f5ea000 ESRT=0x9c07d918 MEMATTR=0x9bea3018 TPMEventLog=0x97cbb018 [ 0.003546] ACPI: TPM2 0x000000009EAB7F70 000034 (v03 LENOVO TC-S06 00001260 AMI 00000000) (initramfs) echo MSFT0101:00 >/sys/bus/platform/drivers/tpm_tis/bind [ 233.076079] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0xFE, rev-id 2) It seems to me, the kernel tries to enable the TPM to early... Michael