Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3244265imu; Sun, 11 Nov 2018 10:34:32 -0800 (PST) X-Google-Smtp-Source: AJdET5cSNHWJwnSINdBtLuNUMSU5ZDSiQAcaY5IJMth8AC/Hpk7O0X9pRMhaWua/DAXWD+QC+6F1 X-Received: by 2002:a63:d40a:: with SMTP id a10mr14517077pgh.394.1541961272095; Sun, 11 Nov 2018 10:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541961272; cv=none; d=google.com; s=arc-20160816; b=CrnibuLKOL8/bulMksB5TDKHxD6KtU5YOKiIsQHcCmUEbnxJodl61GAgXSesORbkHj Y/VPEZ1HZ+OdudcdePeE/ab4B+kKSleK7gxKrpa2oRUM1ayeV/ZN8AYXujqbX8yVY10w 4XzddeJkk6Sye/iEo488P2rxuplrghLijY9wNzHPrG5g+9BEOJCC/yEib9QFGJiEShjC D+WUrdtUKC9Rq/ksPSI+6ZFWIvgH36RBx1dvMLAE+1BVmo0ihZ3lbZBMgsrTwqubPH5g JlVme0Lbo/pciW4atErmjjStcCG57oUsqE7fjdXmVaWS0mYoEft2I3J7NA3GYvOxe01t v8tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:to:from:subject; bh=arrao52qC3pz80kSeM8/s3BxF9xj2xIYiLMm+ylPLKs=; b=SQgnmybU32/ExapQ1u4D8dSXEH2IPOCFjBDCr/FJakW94bX1/uJr1MW9aQf8l22bGP b6bl2Q9MOepMR9WFrt5E4wPa/QbStZdyk1tWessQsTvDW4WcvxoE2PSLb+pALjMHxW1y yhbypULhoFNZV5UoByY2ox/VbKjDlgnhcnRRuNeSTViLt7GuBlEWbHg0BgtsI8btFhAv QbjKSYV10G9sbXiKy0679T49nKO9XnkwqprY9LMjixSRaElVu9ynd+0vx0XiJhV5RIEj RQSO94ljhzw3Dg+fqJGzRz+Dx+8uohxYZYrg1hy6aTlfOVwq5PzUIReOKPfkb8PZrxY6 4lzA== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si13710039pgj.60.2018.11.11.10.34.16; Sun, 11 Nov 2018 10:34:32 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729427AbeKLEXL (ORCPT + 99 others); Sun, 11 Nov 2018 23:23:11 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38782 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729390AbeKLEXL (ORCPT ); Sun, 11 Nov 2018 23:23:11 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wABISvnh137749 for ; Sun, 11 Nov 2018 13:33:55 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2npde80083-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 11 Nov 2018 13:33:55 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 11 Nov 2018 18:33:52 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sun, 11 Nov 2018 18:33:48 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wABIXl2E6357490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 11 Nov 2018 18:33:48 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DFA744C044; Sun, 11 Nov 2018 18:33:47 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E09D34C040; Sun, 11 Nov 2018 18:33:46 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.88.36]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sun, 11 Nov 2018 18:33:46 +0000 (GMT) Subject: Re: [BUG] Nuvoton NCPT650 TPM 2.0 mode not working From: Mimi Zohar To: Michael =?ISO-8859-1?Q?Niew=F6hner?= , peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, jgg@ziepe.ca, arnd@arndb.de, linux-integrity@vger.kernel.org, linux-kernel Date: Sun, 11 Nov 2018 13:33:36 -0500 In-Reply-To: <776f384a81466642472beb4a34b10f26f1de88e9.camel@mniewoehner.de> References: <776f384a81466642472beb4a34b10f26f1de88e9.camel@mniewoehner.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18111118-0020-0000-0000-000002E65700 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18111118-0021-0000-0000-000021355932 Message-Id: <1541961216.3734.60.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-11_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811110176 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 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 > > 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! It's possible that eventually the TPM is initialized, but not in time for IMA.  Could you you check to see if the TPM is responding to userspace commands after boot? Mimi