Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14704914rwb; Mon, 28 Nov 2022 04:13:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Qa03ZeSFyM7VPo1Z1/T1jJFawEtcPJ9kF/GuEngxxyadd0azOeSGxito5ZVztFMnpY/+6 X-Received: by 2002:a17:90a:d24e:b0:218:b478:f44f with SMTP id o14-20020a17090ad24e00b00218b478f44fmr32565905pjw.232.1669637608724; Mon, 28 Nov 2022 04:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669637608; cv=none; d=google.com; s=arc-20160816; b=1JxR0j8XbEZTF0fqd11+5NfqMrSjM4XRLZGK9NYY2E/aycp4OQTfvKm3PbSt0H7vdn fMTY4ubKLG+XjFdxcb7FSLvY6m7dpNyFVpGZKhf5PTBwcmTTj/0lM8VElO1AZHoMJbr1 l+XFyAAXHJ031rk6nlThbLBUIRCgJGEitp63Px3Y8jdSPShEruXhJqpPpu8sPcl/+sbo nvJ9UcKRcjlk3b+qHegK92nEVWWz3bV+vnbgH0Lb624BKvNoFiD2ZyNpf5TVfyL9tz2p GDuSmblzJ4bRkMkMYtuulTZlRAmhNKJ5EvzBWq5EzIWlrg742I1vqcxEY1rJJwNcmg4P AyrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Deg2zp7dwT9o3e/HySvPJHslvn3AjSP4JHQTJYiaB/k=; b=lG4bnaqtmHnRl5ljscoF5FdFRPRxjIgxosVoma/ZfrNOzXXN7PM7FrQnsFN2wyyi44 61uWJ5WaUur8PlBw3kmMYG1Hym/xMZSW5C1d2/Wo4eTKbh+ZVYTkVoUJJqIe2cWav9zq mydlebUouLFSO/SSg+vmkCIhk6b1Q8INxWPxW7Lc0WXZgurttVtdloydT7DYlg4X/3o5 gZ29Y2Id710DZlRjxz7u5j/FNXYCOQ1pGZAaqZFl3LrCGJb4b+fx9gQQxjuQZMCngJbr si+xMyXrA/i//AMy1NF1WAvYk1WN5ba4zG0aCAm4x/6Dfo89m2R8vSa+GGjN1JEokGLU 5TuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=YeseauXB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a056a0002cb00b0056242234478si3016746pft.164.2022.11.28.04.13.16; Mon, 28 Nov 2022 04:13:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=YeseauXB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231730AbiK1MLH (ORCPT + 85 others); Mon, 28 Nov 2022 07:11:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231682AbiK1MKr (ORCPT ); Mon, 28 Nov 2022 07:10:47 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F229D222B8; Mon, 28 Nov 2022 04:04:35 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 107B361149; Mon, 28 Nov 2022 12:03:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ADEBC433C1; Mon, 28 Nov 2022 12:03:37 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="YeseauXB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1669637015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Deg2zp7dwT9o3e/HySvPJHslvn3AjSP4JHQTJYiaB/k=; b=YeseauXBsvMz5Okw2aUPDHv/z2Z2pedguidoFR1Oak/sJdZ2xKe1BQ/5R53pACPZEgm8aY LAa8kSyngl3hU5oe7fUF/NPr563SSZyqNOJ8eD2/l84YtG2Uc/RvzLLeHVeNdW6kOhkMsv gB1GP5vjzDTNm2b0Jyv4v0dvADG9iT4= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 64c5fbf5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 28 Nov 2022 12:03:35 +0000 (UTC) Date: Mon, 28 Nov 2022 13:03:31 +0100 From: "Jason A. Donenfeld" To: Vlastimil Babka Cc: Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Jan Dabros , regressions@lists.linux.dev, LKML , linux-integrity@vger.kernel.org, Dominik Brodowski , Herbert Xu , Linus Torvalds Subject: Re: [REGRESSION] suspend to ram fails in 6.1 due to tpm errors Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vlastimil, Thanks for CC'ing me. On Mon, Nov 28, 2022 at 09:15:33AM +0100, Vlastimil Babka wrote: > Dominik on IRC pointed me to commit b006c439d58d ("hwrng: core - start hwrng > kthread also for untrusted sources"), which could make sense if the TPM was not > used at all before and now it's used for randomness. But then it probably "just" > uncovered a pre-existing issue? Maybe there's a race with getting the randomness > and suspend? Could it be exactly what this patch is attempting to fix? > https://lore.kernel.org/all/20221103145450.1409273-2-jsd@semihalf.com/ The commit you referenced just turns on some functionality that most people previously didn't have (but maybe could have, manually). So this is a case of a new commit unearthing a bug in some old code. We had something similar happen with a raspi driver and fixed the bug there. From the looks of the lore link you provided, it sounds like the same thing has happened already there to tpm? That this is already fixed by that commit? I think if you have a system that's readily exhibiting the issue, the best thing to do would be to try that series, and report back, maybe even providing your `Tested-by:` line if it works. I'll play around and see if I can repro too. Looks like you have a T460? I don't have exactly that but maybe something close enough. Jason