Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp910325imu; Thu, 3 Jan 2019 09:15:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN4+SzR8Yj/tmPtXzLZZUPZaqhw0zXCmNnQ1X0rizenVc4B0BUdmDyK3uXGkb9sIBJJo3tW+ X-Received: by 2002:a65:4ccb:: with SMTP id n11mr18076183pgt.257.1546535752832; Thu, 03 Jan 2019 09:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546535752; cv=none; d=google.com; s=arc-20160816; b=CSMIjfoEZq+nByt5fYOoemUbSRwKcWXbnfsaumwlGp/pTDYNd1FOeDTMFpRHrvMw7R OD4QuRY/frcfFONnXC3Oebm1+U+J0zh1voKv17Aj4KuGeJU23o6fjU3tI0q7gsd83fZU z9+rPRubYsiu+AXhHbhezW4Hrd1RLhK1S3tumdFi9F2dBuImhEEGwHCLi9XyLBMv3NRe Xm+5x/6i6Oe/z7paFj3E5NB1xSQbnPUOKUEOfOOfsL9H9MuXpMY03Lsb6ZI08G4SqdnD +HecvM5ghB/48fP3WhP1QzarW75c588jPkUHdDjYQ1Bp3QzL98Q5AXya3j/c3MtciSY6 oSWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=33t1eKKsFgBWc6HSuAHMHJbk8bID8TMLA7rfgK8xhb8=; b=G0+3xV4pxC7QlhZOpqKcXSgKpaHZ4Pvnf7U2aZ0Kj/t9MQLlY1kDtrdvxTW9yop9Ml a1t0vNTUm7HSIZQ5bB0bJuLD1DsBbTGKuWDj2bonO+Ij3K7VTkmcROVMiDsI+wSsRRB6 QIClr09Z/IqD5nzr5J6WZQrXKrs/BfZxtuiQSU1AtnNdunk2FFfWCCsOVr+m1l0lj/Yh m/LiMXsmpCdMlI65SBDMTsTYeGr9EwM85SnpPm5Rvn7TNYqRHZL8rHaNwRIVURtci5qV xDVBruGkaR9iNkCI1TMdFenA7T5TsqSZ0E/h6L/Ywnkt80Q2+UNButbRVVc1S1YGopgP 0Gzw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si31220747pgl.457.2019.01.03.09.15.37; Thu, 03 Jan 2019 09:15:52 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731708AbfACN1n (ORCPT + 99 others); Thu, 3 Jan 2019 08:27:43 -0500 Received: from mga18.intel.com ([134.134.136.126]:51986 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730229AbfACN1m (ORCPT ); Thu, 3 Jan 2019 08:27:42 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jan 2019 05:27:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,435,1539673200"; d="scan'208";a="105222390" Received: from tmuluk-mobl4.ger.corp.intel.com (HELO localhost) ([10.249.254.238]) by orsmga006.jf.intel.com with ESMTP; 03 Jan 2019 05:27:38 -0800 Date: Thu, 3 Jan 2019 15:27:37 +0200 From: Jarkko Sakkinen To: Michael =?iso-8859-1?Q?Niew=F6hner?= Cc: Mimi Zohar , James Bottomley , peterhuewe@gmx.de, jgg@ziepe.ca, arnd@arndb.de, linux-integrity@vger.kernel.org, linux-kernel , Nayna Jain , Ken Goldman Subject: Re: tpm_tis TPM2.0 not detected on cold boot Message-ID: <20190103132737.GD10491@linux.intel.com> References: <1f281756bb1f041e55be8dd090670a1a7b1d1c94.camel@mniewoehner.de> <1545519232.3940.115.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 23, 2018 at 12:55:12PM +0100, Michael Niew?hner wrote: > There is another issue but I don't know if both are related. Maybe that's just a > timing issue... > > root@debian:~# dd if=/dev/hwrng bs=1 count=1 > dd: error reading '/dev/hwrng': Operation not permitted > 0+0 records in > 0+0 records out > 0 bytes copied, 0.755958 s, 0.0 kB/s > root@debian:~# dd if=/dev/hwrng bs=1 count=1 | xxd; dd if=/dev/hwrng bs=1 > count=1 | xxd > dd: error reading '/dev/hwrng': Operation not permitted > 0+0 records in > 0+0 records out > 0 bytes copied, 0.755697 s, 0.0 kB/s > 1+0 records in > 1+0 records out > 00000000: 52 R > 1 byte copied, 0.0106268 s, 0.1 kB/s > > > Michael What does /sys/devices/virtual/misc/hw_random/rng_current show? Did run commands as a sanity check on my laptop and seem to work. /Jarkko