Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 653613C488 for ; Tue, 19 Mar 2024 21:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710884472; cv=none; b=EpIVfgbfxk8X3gXiQEoNROUR6FgCyhGW6mY94aHfctf36e0i1N3VRPJLkXSDgHSp8CPtILPJoxu0JWn371/h/MJxagt3lwEkJnd//7fp22MuWdKMEcUQr1thOY9yt3mG401zDYRTsJqTUnLlNCfb6eRdniooq2689gnFw+AniAs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710884472; c=relaxed/simple; bh=28Z7ebjVPvspZTuSeXh1/vWTK0HeGMo2Ovw7JyP+nVM=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=rbv9XPsJiqGBKv55HeOtZRJEvyvgptKiIwlocVWlyWrraaKcdq8qcQR8Kj2Ab+EuSHvcXf5I8F5M7G7o16aq/znFCkjZzJiil5TVYgR5kXiLmZNWji6iv3swnmVk0A/1nknOHDk/Tk5y1GJsMKatokJ3lOlzydE90sMiZ2a6fqA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Djr6gop+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Djr6gop+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4522C433C7; Tue, 19 Mar 2024 21:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710884471; bh=28Z7ebjVPvspZTuSeXh1/vWTK0HeGMo2Ovw7JyP+nVM=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=Djr6gop+/Ek0fWTRv+j8F5mq7CAiRRtR9e0Mu6pbpfzKOC9igKL88DbOjjRH1+vQs FBb9POHd75qFubfnv5yjPEEMs0aaDoVRdzY4XLuGX0t9NAcAZ977Hj6xgGA6jeK7q+ 2ju40/71YvRkwSrGxkZ0FnZdGrFzcWTdQx+a474rzA001a5xiHrpP7uKCMe3LMrgcq wFiIiRtonHNMrWqGkbpFbeJWO0V2+3XKk7akwZt8nGY92GZQraq9mc8QkOfE9YNdS1 FwKDe2zWzivGo3myqemvFjtc3dddc9X2esLAlY+fQcImRDDEKs0lRyUZc0AQNRT5XV D3NBzlG28kROg== Precedence: bulk X-Mailing-List: linux-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 19 Mar 2024 23:41:09 +0200 Message-Id: Subject: Re: [PATCH v2] tpm: Fix suspend/shutdown on some boards by preserving chip Locality From: "Jarkko Sakkinen" To: "Jarkko Sakkinen" , "Adam Alves" Cc: "Peter Huewe" , "Jason Gunthorpe" , X-Mailer: aerc 0.15.2 References: <20240307224957.29432-1-adamoa@gmail.com> In-Reply-To: On Tue Mar 19, 2024 at 11:38 PM EET, Jarkko Sakkinen wrote: > On Tue Mar 19, 2024 at 9:57 PM EET, Jarkko Sakkinen wrote: > > On Wed Mar 13, 2024 at 7:02 PM EET, Adam Alves wrote: > > > Hi Jarkko, > > > > > > Thank you very much for kindly reviewing this proposal. > > > > > > After one week without any issues with my PC hanging, it happened > > > again. It seems that the fix I am proposing is not final (it only > > > reduced the frequency since it always happened when I shutdown after > > > couple hours of power up time and now it only happened after two week= s > > > with a similar usage rate). > > > > > > I will share with you the data you requested below. > > > > Thanks I'll definitely check these in detail. > > > > Any possible bug fix (if we decide to fix anything) is tpm_crb.c > > including possible kernel command-line parameters or whatever. The > > current proposal affects all the possible pieces of TPM hardware so > > in all cases it is unacceptable. > > > > Do you have dmesg/journactl transcript? Did you try to update the > > firmware? > > OK so I do have ASUS motherboard and my TPM2 ACPI table is almost the > same match but: > > BIOS Information > Vendor: American Megatrends Inc. > Version: 2212 > Release Date: 12/13/2022 > Address: 0xF0000 > Runtime Size: 64 kB > ROM Size: 24 MB > > Where as in you dmidecode.txt: > > Handle 0x0000, DMI type 0, 26 bytes > BIOS Information > Vendor: American Megatrends Inc. > Version: 1601 > Release Date: 02/11/2022 > Address: 0xF0000 > Runtime Size: 64 kB > ROM Size: 16 MB > > So at least the BIOS version is older. Can you update BIOS and see if > that could possibly fix the issue? > > Make sure that it contains update for both BIOS and Management Engine. AND if you end up still proposing any fix please make sure that it only changes tpm_crb.c so that there is something to analyze. Sprinkled arbitrary changes are not something we can really not say much. If you don't know exactly what you are fixing and why please try to keep the fix local to the issue. But yeah, BIOS update is really the first trial here. BR, Jarkko