Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3381064imu; Sun, 11 Nov 2018 13:44:14 -0800 (PST) X-Google-Smtp-Source: AJdET5eaP3EOZXqpD8qCQlxnvovmWcQXc86mEt4DPrd6orK3b0uu0poIjg2w9KMTsNU92IQ3MLdi X-Received: by 2002:a62:b802:: with SMTP id p2-v6mr17448498pfe.1.1541972653982; Sun, 11 Nov 2018 13:44:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541972653; cv=none; d=google.com; s=arc-20160816; b=oYltft/eCWXYEo3KuUFR4U5v3MVcyd2iQwMB5Xo656pdHjcpcWytMl7gF+Me//E3bk speMRPudJRpkbFWaHHRJ98ad+XJ6FIETH2FyVX9mdUBge9fnSV4ng5mFjJBR77zgC7e8 EJB/WI2z+ZU8R3TCM5fP3zCLBg9xVz92hOKFk8nfnLPBydtpfQIteym90KROad0NgM9t GNnRHlolaw2Tia0UcxCo6EjlEe7ZU1dMFdBq4114ojVOxF1ASl3w76EoMXbfQ8dZhk3C 318jIxox2jF+R0WuD8OxGMYrAdAEEP4bPJ70UYyRt1u/v5U/6V7f8A6LjIMPj6RwN1/8 vnww== 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:cc:to:from:subject; bh=dWqvYmMd7909iZ1lpNGq4DrgHGPGjQAAT2ik4lqaYO4=; b=Sj0Ew5OXexB4CV54njUMMHshTTppcr3ztesf73wLCuQrETIljZ8YutpvVEEgJgwacU A3cecglaYxAD/xrdtr8ewJES+FQofrjzqpHf5UDm21HDY0v9JRU1Y1m4kjf3o9j2BXrR Qf6RWEOGJfzrSo3+KIQBQkFavlieZxTiyumXb7Uuba2ovtG/oheVP3SXwnfXukeaRDvS V4ygRQsPjGdbCbZHem8oV6iz4DhGDj6FDcgtJU+23/zGTTKD9ehnTwiTV3UluBUDoMvp sxLXkai55XEEae4suLcVdQfHLb+ph+YXqYn6es5cChJ7Yrr+FpsYXDu7b9kaYtSgHoLL bRDA== 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 i63si14350225pge.515.2018.11.11.13.43.58; Sun, 11 Nov 2018 13:44:13 -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 S1729543AbeKLHcn (ORCPT + 99 others); Mon, 12 Nov 2018 02:32:43 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56830 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729476AbeKLHcn (ORCPT ); Mon, 12 Nov 2018 02:32:43 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wABLXdZZ067384 for ; Sun, 11 Nov 2018 16:42:54 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2npdhecpth-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 11 Nov 2018 16:42:54 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 11 Nov 2018 21:42:52 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp03.uk.ibm.com (192.168.101.133) 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 21:42:49 -0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wABLgmEH9109902 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 11 Nov 2018 21:42:48 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D2BEAA405C; Sun, 11 Nov 2018 21:42:48 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BA5BDA4054; Sun, 11 Nov 2018 21:42:47 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.88.36]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sun, 11 Nov 2018 21:42:47 +0000 (GMT) Subject: Re: [BUG] Nuvoton NCPT650 TPM 2.0 mode not working From: Mimi Zohar To: Michael =?ISO-8859-1?Q?Niew=F6hner?= , 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 Date: Sun, 11 Nov 2018 16:42:36 -0500 In-Reply-To: <660b0934bc16c8d195a2724f8be4ba8dfbe71134.camel@mniewoehner.de> 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> 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: 18111121-0012-0000-0000-000002C8D918 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18111121-0013-0000-0000-000020FDDDC3 Message-Id: <1541972556.3734.90.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-11_14:,, 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-1811110205 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Very strange... When I pull the power cord, then replug and boot, I get these > dmesg messages: > [ 0.000000] efi: ACPI > 2.0=0x9ea78000 ACPI=0x9ea78000 SMBIOS=0x9f5e5000 SMBIOS > 3.0=0x9f5e4000 MPS=0xfca00 ESRT=0x9c06e918 MEMATTR=0x99cb9018 TPMEventLog=0x > 98d0c018 > [ 0.001794] ACPI: TPM2 0x000000009EAB1F70 000034 (v03 LENOVO TC- > S06 00001260 AMI 00000000) > [ 3.096587] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0xFE, rev-id 2) > [ 3.105684] tpm tpm0: A TPM error (2314) occurred attempting the self test > > After a reboot I get those "ima: ..." message again. Pulling the plug seems to > reset anything (the TPM). > > The PTT TPM 2.0 shows exactly the same behaviour. On a cold boot, it takes longer to initialize the TPM.  The TPM is returning TPM2_RC_TESTING (0x090A == 2314), meaning that it has not yet finished the initialization. Nayna's post a patch, which should address the TPM2_RC_TESTING error message. https://lore.kernel.org/linux-integrity/20180515071712.9331-1-nayna@li nux.vnet.ibm.com/ thanks, Mimi