Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp990787imu; Fri, 11 Jan 2019 12:51:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN6vn8oswGK9qHKrwY1gMDY/PI7wD9oQaAgNh1JRHm77d9qDJXVaZgJ5YPua9+PBGMmi9uMB X-Received: by 2002:a65:47ca:: with SMTP id f10mr15017484pgs.166.1547239861257; Fri, 11 Jan 2019 12:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547239861; cv=none; d=google.com; s=arc-20160816; b=M1y4oZke3vPWjH5vbj1rLid8t+cK5hLwbWCasgsFLLB7vdbRdRu209dB7j+Iil+bG2 Ou5eqT4u/3FX7/O+F8hXfgqkvr8uMwKKkk5nmbF7oSq/e2Ojksm+EgVJXuHNE9ZeHkHE MXaRoCM7I6e9jVcMbOAOBxmaiJ67d/pA7C039MpuZqiom/91ZKoM8qTRkUf/nEQZZ/So h6j1bA5eUSFTaLSPEezgwyQexuQ2BBEkFOmx7P9wDZe9Pz7pbx7CcmXtVkx9XvElVJHY ZiZbG9LXlN+i6NVGrzpnL+ZO+3nQQMXxO5Oo95PC+lkWFxw7ELlCHcu38u47Ciu6TV4Q sBYA== 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=DlFk7o/2ZNODNHD/VdIS7XsBfIQWPv/wqK+gIofcuZw=; b=vamAZDpIdDyrzlu9c9b5y5TPyjTulipd09p5VZ4DePv2aj+/ZAgkd9w9xJ/R0+Qnsd 1X3+6j2eWWjt5phQEnipnVcDO7NUPmQbs4PcZJDR9ENbBTZb9KoDnjcE2S1oM7HO6mzC IbyCbwtHzStLw6BxRKcH3zxDiocwLhZ7jteVYECQdWBbzjRjjQTBZBAhBgQCx+ZQCmPi 6Z/41v0GEkXNNoYRnaUno39/6TnhDgln5F56eXCCI8IkY9QirzEmvcGB0lu0M6doR6tU a13iugLV2heaLK9y2dqKNTZVaARA+f1mjopRmTeG79BL7+FuYJJJSYd4C4zoexdbb7CB 6Lrg== 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 o10si22574726pgg.373.2019.01.11.12.50.46; Fri, 11 Jan 2019 12:51:01 -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 S1731624AbfAKPkr (ORCPT + 99 others); Fri, 11 Jan 2019 10:40:47 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:43686 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729463AbfAKPkq (ORCPT ); Fri, 11 Jan 2019 10:40:46 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x0BFTKM5016706 for ; Fri, 11 Jan 2019 10:40:45 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2pxupd045a-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 11 Jan 2019 10:40:44 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 11 Jan 2019 15:40:43 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 11 Jan 2019 15:40:39 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0BFedL443778098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Jan 2019 15:40:39 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F28DA5204E; Fri, 11 Jan 2019 15:40:38 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.91.13]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 3F07152050; Fri, 11 Jan 2019 15:40:38 +0000 (GMT) Subject: Re: [BUG] Nuvoton NCPT650 TPM 2.0 mode not working From: Mimi Zohar To: Michael =?ISO-8859-1?Q?Niew=F6hner?= Cc: jarkko.sakkinen@linux.intel.com, linux-integrity@vger.kernel.org, linux-kernel Date: Fri, 11 Jan 2019 10:40:27 -0500 In-Reply-To: References: <776f384a81466642472beb4a34b10f26f1de88e9.camel@mniewoehner.de> <1541960689.3190.4.camel@HansenPartnership.com> 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: 19011115-0008-0000-0000-000002AF9074 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19011115-0009-0000-0000-0000221B9B19 Message-Id: <1547221227.19931.453.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-11_09:,, 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-1810050000 definitions=main-1901110128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, On Sun, 2018-11-11 at 19:50 +0100, Michael Niewöhner wrote: > 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. With IBM's LTC help, we finally found a Lenovo with the Nuvoton NCPT650.  It's a System x3550 M5[1], not a ThinkStation P320, running Fedora (vmlinuz-4.16.14-300.fc28.x86_64). I replaced the 4.16 kernel with the latest stable 4.19.y kernel.  Both the TPM and IMA seem to be working properly.  Not sure if this helps... From dmesg: # dmesg | grep -i tpm  [ 0.000000] Linux version 4.19.14 (mimi@x86tpm2Server.rtp.stglabs.i bm.com) (gcc version 8.1.1 20180502 (Red Hat 8.1.1-1) (GCC)) #6 SMP Thu Jan 10 22:32:54 EST 2019 [ 0.000000] efi: ACPI=0x7b786000 ACPI 2.0=0x7b786014 SMBIOS=0x793fe000 TPMEventLog=0x426fa018  [ 0.014413] ACPI: SSDT 0x000000007B784000 0003A7 (v02 INTEL Tpm2Tabl 00001000 INTL 20130328) [ 0.014416] ACPI: TPM2 0x000000007B783000 000034 (v03 INTEL EDK2 00000002 INTL 01000013) [ 2.667052] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0xFE, rev-id 2 # cat /sys/kernel/security/ima/ascii_runtime_measurements | head -2 10 5425744ce804c8cae89a08d53b41ab20ff1b3ea6 ima-sig sha1:7996f7339c3ce64e63f1232ef1aa6033247af784 boot_aggregate I installed the ibmtpm2tss[2], built (eg. autoreconf -i; configure -- enable-hwtpm) and installed it. # export LD_LIBRARY_PATH=/usr/local/lib/ # cd /usr/local/bin # ./tsspcrread -ha 10 -halg sha256 -ns f73ff9109b06d4f7a7cbe7eac32b20d2ca662e55cb4c81e152beea261989ad4b Mimi [1] https://lenovopress.com/lp0599.pdf [2] https://git.code.sf.net/p/ibmtpm20tss/tss