Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3228453imu; Sun, 11 Nov 2018 10:13:25 -0800 (PST) X-Google-Smtp-Source: AJdET5ef1QeOMl6AEwpo50t5Vs8+lqK8U4EJVma8hwPcMXLlyduSh3C+IjAR+pQ5T0zbkThe2aR/ X-Received: by 2002:a17:902:784c:: with SMTP id e12-v6mr16959004pln.185.1541960005806; Sun, 11 Nov 2018 10:13:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1541960005; cv=pass; d=google.com; s=arc-20160816; b=fWCs5sycd6D7iwJo8lwPTOSuPaazmzBB0ziht5iagmzuP91bR1S4ovCv4/50eGcmHF 2nK1varRa+K2P+/A0r0WbCAFuvOPyYYCOcEcXlgvHtlMGzpkfwKZNPnYWkBtYKdCYs9O GQTpvZc2qXIjEMxtGr9RyIy/6BciN14ejK1JShwwgL3AiwnlSp+7SDwh5l+0THUHzElk 1lkHpYEr7g+LeU6s5wOgcYhS5zODHTV8Zys7yhRcsAVgmAjIs77Vu1f84ZTVsiodYTRP WIs3/5GSVAUKEX1I4I/2hPZeKLw4NkmbWR3eglOH/seaucQcgwTwivlBbs3fquCTuf0+ 3VYA== 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:to:from:subject:message-id; bh=Gosx38Ns29Vh9yVIMh7/LRoo+EyczdD5dnchWF9zP6A=; b=aAfKNH3Ob8Ltl0ICiKYeLUDb9vOr/cAKbmANa2zGBfrQWoes0Ybbo5pvfxsMe1X8r5 hFFW9merhJct8ncyGW1C0E771R1HWoj2qHyB+bYa9lOtn7L2B32zFLsEPzpf2+4wYJAk rS980YuGusnmw0tHUr9uyPWY+XteQqS9RBwFoLV4EA58GVGSgxxcc9RR4+Q1jPJajj0g PNiEahtZca+OFniaMrbrsCT0yy+mS2mypba/NFt6XONabJ4l0JMY5qHU619aAEIJirRA /loosXDuYFxbIeBuSlN+KgJ7GnpwOAbpM6ZKeCBsKWu5CY5DiJ0l+LM9MRgr0MGbQA4T tmPg== 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 e2-v6si13193528pgm.95.2018.11.11.10.13.10; Sun, 11 Nov 2018 10:13:25 -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 S1729395AbeKLEAG (ORCPT + 99 others); Sun, 11 Nov 2018 23:00:06 -0500 Received: from sender-of-o53.zoho.com ([135.84.80.218]:21745 "EHLO sender-of-o53.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbeKLEAG (ORCPT ); Sun, 11 Nov 2018 23:00:06 -0500 X-Greylist: delayed 905 seconds by postgrey-1.27 at vger.kernel.org; Sun, 11 Nov 2018 23:00:05 EST ARC-Seal: i=1; a=rsa-sha256; t=1541958941; cv=none; d=zoho.com; s=zohoarc; b=hy5JlQGxJWJskPr1V1UYQYsHkTANSDnfoMQwKIfoUzlbxsTmr6XOvk59k9DXtqtlZZa98AA7gQAc9MWZuPQXP5rkoZLLZgqYQwqB2c9dMa7Jyglyew7qkcsSDcmzo4HlUPZcTH9Ewrqb7pyez0ggwe2CQnk0Xe656b8+S5cYb1w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1541958941; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=Gosx38Ns29Vh9yVIMh7/LRoo+EyczdD5dnchWF9zP6A=; b=eTQWlHT3u8NDKdumivcUo6O6ErkodGjy64NrLn3k9+4FH8brQDKYS/cOmX57mOlF2cIk6N2UVH8iTARAC1I0NoriQw7Vf71VlxTQbU6cfeK0PkN/MEqNjQUfaRFl57JtAwjoQVsJ5ladq8VxyTj0OXQAOlbY992RDB6cY5s2JBY= 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 1541958939093130.72691079638196; Sun, 11 Nov 2018 09:55:39 -0800 (PST) Message-ID: <776f384a81466642472beb4a34b10f26f1de88e9.camel@mniewoehner.de> Subject: [BUG] Nuvoton NCPT650 TPM 2.0 mode not working From: Michael =?ISO-8859-1?Q?Niew=F6hner?= To: peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, jgg@ziepe.ca, arnd@arndb.de, linux-integrity@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Date: Sun, 11 Nov 2018 18:55:36 +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, 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 Kernel config: $ cat .config | egrep 'TCG|TPM|CRB|_TIS' CONFIG_TCG_TPM=y CONFIG_HW_RANDOM_TPM=y CONFIG_TCG_TIS_CORE=y CONFIG_TCG_TIS=y CONFIG_TCG_TIS_SPI=y # CONFIG_TCG_TIS_I2C_ATMEL is not set # CONFIG_TCG_TIS_I2C_INFINEON is not set CONFIG_TCG_TIS_I2C_NUVOTON=y # CONFIG_TCG_NSC is not set # CONFIG_TCG_ATMEL is not set # CONFIG_TCG_INFINEON is not set CONFIG_TCG_CRB=y # CONFIG_TCG_VTPM_PROXY is not set # CONFIG_TCG_TIS_ST33ZP24_I2C is not set # CONFIG_TCG_TIS_ST33ZP24_SPI is not set TPM 1.2 mode dmesg: $ dmesg | egrep -i tis\|tpm\|crb [ 3.210040] tpm_tis 00:0a: 1.2 TPM (device-id 0xFE, rev-id 2) TPM 2.0 mode dmesg: $ dmesg | egrep -i tis\|tpm\|crb [ 0.000000] efi: ACPI 2.0=0x9e457000 ACPI=0x9e457000 SMBIOS=0x9ec44000 SMBIOS 3.0=0x9ec43000 TPMEventLog=0x9711f018 [ 0.003517] ACPI: TPM2 0x000000009E490ED8 000034 (v03 LENOVO TC- S06 00001300 AMI 00000000) [ 4.071550] ima: No TPM chip found, activating TPM-bypass! Any ideas? Best regards Michael