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 9882C219E8 for ; Fri, 11 Aug 2023 20:01:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D64BC433C8; Fri, 11 Aug 2023 20:01:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691784118; bh=UGeRy4kLv1Yj8E1RIf2OqaKJS9+bUxuImBDCoJL5HU0=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=H8miYJcl51YWHF2csAydYJQUkKKHzXsVUALhwxhFOTo4h9lyerhLx6EGirlj2N4i+ uWFG5gYxZ9SsZ7zWmiHt9SwND5jlo4rVikcBUn6m0nnbuNaLtcFRWeNsKxMzB3wFhT qYswuT77+lkervYtfN+kTXtbb5mzQVafF8f3hzIDunNw6V3FnVpLTcnKjFAjCJtSCM ekElFAgbpMStakJ1xm43G/nyKTC8GqG+UgsNlbtt4Yi8mLFmdvnbMcombOxoGWzZRz MM0/lTfdeeOoWrMRi2ueRTg7C+ebUuJwZoCnNXKLRS0W6NN4cd+X8GM8kdfgUxAe3B EWoTCokoWI6FQ== Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 11 Aug 2023 23:01:53 +0300 Message-Id: Subject: Re: [PATCH v2 1/2] tpm/tpm_tis: Disable interrupts for Framework Laptop Intel 12th gen From: "Jarkko Sakkinen" To: "Grundik" , "Thorsten Leemhuis" , "Lino Sanfilippo" Cc: "Linux kernel regressions list" , "Peter Huewe" , "Christian Hesse" , , , "Linus Torvalds" , "Christian Hesse" , X-Mailer: aerc 0.14.0 References: <20230710133836.4367-1-mail@eworm.de> <20230710142916.18162-1-mail@eworm.de> <20230710231315.4ef54679@leda.eworm.net> <0f272843a33a1706dbcbb2d84b02e3951ee60cbb.camel@kernel.org> <5806ebf113d52c660e1c70e8a57cc047ab039aff.camel@gmail.com> In-Reply-To: <5806ebf113d52c660e1c70e8a57cc047ab039aff.camel@gmail.com> On Fri Aug 11, 2023 at 9:47 PM EEST, Grundik wrote: > On Fri, 2023-08-11 at 20:40 +0300, Jarkko Sakkinen wrote: > > On Fri Aug 11, 2023 at 8:22 PM EEST, Jarkko Sakkinen wrote: > > > On Fri Aug 11, 2023 at 11:18 AM EEST, Thorsten Leemhuis wrote: > > >=20 > > >=20 > > > I see two long-standing options: > > >=20 > > > A. Move from deny list to allow list when considering using IRQs. > > > This > > > =C2=A0=C2=A0 can be supplemented with a kernel command-line parameter= to > > > enforce > > > =C2=A0=C2=A0 IRQs and ignore the allow list (and IRQ storm detection = provides > > > =C2=A0=C2=A0 additional measure in case you try to enforce) > > > B. Change deny list to match only vendors for the time being. This > > > can > > > =C2=A0=C2=A0 be supplemented with a allow list that is processed afte= r the > > > deny > > > =C2=A0=C2=A0 list for models where IRQs are known to work. > [...] > >=20 > > This is also super time consuming and takes the focus away from more > > important matters (like most likely the AMD rng fix would have gone > > smoother without these getting in the way all the time). > > Main problem of any list is maintaining of them. So, I think there > should not be any black or white lists at all. Module should work with > reasonable default (polling is the one, which lived without problems > for years and years due to bug, as I understand), and probably a boot > option to force IRQ. Maybe module should warn user to try that option. > > I don't know: is it even worth it to use IRQ, if it so problematic? Are > there any significant advantages of that? I understand, polling is a > resource consumer, but its just TPM, which is used mainly at the boot > time, is it worth it? +1 Thanks for sharing your opinion. I'll take the necessary steps. BR, Jarkko