Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751949AbdLXUh7 (ORCPT ); Sun, 24 Dec 2017 15:37:59 -0500 Received: from mga09.intel.com ([134.134.136.24]:22882 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009AbdLXUh4 (ORCPT ); Sun, 24 Dec 2017 15:37:56 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,451,1508828400"; d="scan'208";a="15298228" Date: Sun, 24 Dec 2017 22:37:51 +0200 From: Jarkko Sakkinen To: Alexander.Steffen@infineon.com Cc: chiu@endlessm.com, peterhuewe@gmx.de, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux@endlessm.com Subject: Re: TPM driver breaks S3 suspend Message-ID: <20171224203751.2cyemyq7ugy3uquy@linux.intel.com> References: <5dbce6c25e7e499aaac05269ba3c0f73@infineon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5dbce6c25e7e499aaac05269ba3c0f73@infineon.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 706 Lines: 14 > The correct solution should be something like tpm2_auto_startup > (execute selftests, if they fail because of the missing startup > command, execute that and retry the selftests). Interestingly, > tpm1_auto_startup (same purpose as tpm2_auto_startup, but for TPM 1.2 > instead) does not use the same sequence, the startup-retry part is > missing. Is there any reason this is done differently for TPM 1.2? > Otherwise I'd propose to make tpm1_auto_startup follow the same > sequence as tpm2_auto_startup and then call both from tpm_tis_resume, > similar to what tpm_chip_register does. I think the reason for that is that such regression has never reported on TPM 1.2 platform. No other reason. /Jarkko