From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752432AbdLUJnm (ORCPT ); Thu, 21 Dec 2017 04:43:42 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:35553 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbdLUJnh (ORCPT ); Thu, 21 Dec 2017 04:43:37 -0500 X-Google-Smtp-Source: ACJfBotOcmRcKuUSrBfBRMXQx2OL4s80dl9/cd+EjOdT53aShNyvGgjGlVI3+n7kCg4xjZQZ1NhLJWTSbjgvg9ZXeHo= MIME-Version: 1.0 In-Reply-To: <116abe3f-f51a-197d-6669-53fa4cec01e0@molgen.mpg.de> References: <116abe3f-f51a-197d-6669-53fa4cec01e0@molgen.mpg.de> From: Chris Chiu Date: Thu, 21 Dec 2017 17:43:35 +0800 Message-ID: Subject: Re: TPM driver breaks S3 suspend To: Paul Menzel Cc: Linux Kernel , Linux Upstreaming Team , Alexander Steffen , Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , linux-integrity@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 21, 2017 at 5:22 PM, Paul Menzel wrote: > Dear Chris, > > > Thank you for bringin gup the issue. > >> We have a desktop which has S3 suspend (to RAM) problem due to >> error messages as follows. >> [ 198.908282] tpm tpm0: Error (38) sending savestate before suspend >> [ 198.908289] __pnp_bus_suspend(): tpm_pm_suspend+0x0/0x160 returns 38 >> [ 198.908293] dpm_run_callback(): pnp_bus_suspend+0x0/0x20 returns 38 >> [ 198.908298] PM: Device 00:0b failed to suspend: error 38 >> >> However, the first suspend after boot is working although it still >> shows an interesting message during resume. >> [ 155.789945] tpm tpm0: A TPM error (38) occurred continue selftest >> >> The error code 38 in definition is TPM_ERR_INVALID_POSTINIT. I >> found some explanations which said this error code means that this >> command was received in the wrong sequence relative to a TPM_Startup >> command. Don't really know what happens here and how should I deal >> with this? Any suggestions? Please let me know what else information >> should I provide. > > > Please provide more information. Tell us your Linux version, attach your > config and tell us the system name and if you know it the TPM version. Sorry for the missing information. This is reproducible in kernel 4.14 and latest 4.15-rc2 with all TPM drivers selected. What system name do you need? It's Acer Desktop Veriton 4410G. The TPM version shows in dmesg is [ 0.640244] tpm_tis 00:0b: 1.2 TPM (device-id 0xFE, rev-id 71) Chris