Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2238735pxb; Wed, 30 Mar 2022 20:20:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY1Mri+yiU4LHZP+Eg/GXbfhAlcEIo6KneibRh9oBWvaIYJC/fn9Tm8jesgoig62fRH79M X-Received: by 2002:a17:90a:4890:b0:1bf:654e:e1a0 with SMTP id b16-20020a17090a489000b001bf654ee1a0mr3657256pjh.113.1648696838801; Wed, 30 Mar 2022 20:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648696838; cv=none; d=google.com; s=arc-20160816; b=r91qy8gTXwT7+LeU1B5gn+fQ+pQIVpMdLbV7P4eWlvkLk8Mr59n83pP+0s7GLzQLqQ IhQEXxTeYt0madFJAadeOY3g2Dc+QFAfQkXuAXwQ/tcu3/9ZjsFuxz4J2wxLeI/ulqjg BJswMXMEcFBF7PM0KgkzrN66VIrCUpypi6I53usnjBNjNBYXua/l2l2In5GZZLhxeohW ltnScovJ94LdfF63jXdthkED8XVG/BAQP8K/ePdFaVs3xxtmTPc9tDjW/GwK2AKopZE2 zUxiDArFJ8sZKX0baxETg8hRlvht+cqtqVwNC+0qr7MuBtSQfVnnXDEu82qr6unMzhQO mxJA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Pi757fpxJ69Am+kFt4DZXyorSmbjAWPMY+T8awXkSXg=; b=rfRwuuOUcKjlOxa/mtUZPkp57JRbyTZwTC3uolou5MQnbpYmyP0rHo6j9pCfhudMdp 3DS0wzdUeRubpZgH4PdhKqWMk5C+IDZNQwm8pbpI8BKucd5As2D//1NfuRDqoxp7mroE pzDdOjeyncTxU9N/6yIKLNfCoxlA0vqJmIa/n8KBJOQHYUj5Hb80OOdFJYDG6OsLJQwR HBoERlgH/cdhgLk6mUYAh97kyf+UQ5Co8ehIWDpZCF/3KtKjUB4TUIj8JqnIu0BUGUkR wvS2fFOQl6oNt7fpqZOR1VBfNnNokgirt2g/Unq7JeyAxAVtjDDXYigL6lQ3fblcySpR 7lgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ruhvSz9i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ct27-20020a056a000f9b00b004fac7e6ea02si20963533pfb.355.2022.03.30.20.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 20:20:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ruhvSz9i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1248610BBF0; Wed, 30 Mar 2022 19:51:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348099AbiC3PUT (ORCPT + 99 others); Wed, 30 Mar 2022 11:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240658AbiC3PUS (ORCPT ); Wed, 30 Mar 2022 11:20:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFE4515AAE2; Wed, 30 Mar 2022 08:18:32 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 7CD9EB81B2F; Wed, 30 Mar 2022 15:18:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A6FAC340EE; Wed, 30 Mar 2022 15:18:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648653510; bh=NZtLh5n6uJudC6+M/fqWrHQmUDG8lg9LYqRK+f4nvX8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ruhvSz9i814m2acImZ8wezw8pt9oMQE/BYobaaOwb3vLi5z/HHeh0CSkeEWv6lyWd UCQfXZqZPLYKcO7Eojt4wRAl95VVc6azBSSLCJR72NGHcX31LL1YjpnOPrn7VeQpoR obdm0UJ7Er6CAc26SzKAWCb2K+FLNalfJPQkjU0JBC/whtTQa+pNzLfHHYc0IAHO3P AQehrXVERFc+FBwjA92LGaZaZDU74jMpzsllrBOpZ8lCwTC8v1dj8rzQcyVr7XWS5T MLvw3enPVAM94v0FcVgklslr83imDChpCVniRyWcEDl0/KvSPKeow6GaNicu86zm3X BW3xZbivVEYfg== Date: Wed, 30 Mar 2022 18:19:37 +0300 From: Jarkko Sakkinen To: Lino Sanfilippo Cc: Michael =?iso-8859-1?Q?Niew=F6hner?= , peterhuewe@gmx.de, jgg@ziepe.ca, stefanb@linux.vnet.ibm.com, stefanb@linux.ibm.com, James.Bottomley@hansenpartnership.com, keescook@chromium.org, jsnitsel@redhat.com, ml.linux@elloe.vision, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, twawrzynczak@chromium.org Subject: Re: [PATCH v3 0/4] Fixes for TPM interrupt handling Message-ID: References: <20210501135727.17747-1-LinoSanfilippo@gmx.de> <20210501135727.17747-3-LinoSanfilippo@gmx.de> <6722bf6f-1a3f-ee9c-55e2-cf63c64266a9@gmx.de> <2a1a1cf61732eff1608aeae74054a0c135c1671f.camel@mniewoehner.de> <0d6c22b40a2f17d4b260f287d4c479a96a88b0b1.camel@mniewoehner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Sat, Mar 26, 2022 at 04:24:55AM +0100, Lino Sanfilippo wrote: > > Hi Michael, > > On 25.03.22 at 13:32, Michael Niew?hner wrote: > >>> > >>> Lino, I'd be happy to test the patches, when you have time and interest to > >>> work > >>> on this again! > >>> > >>> Thanks, Michael > >> > >> It's quite easy to test them out. Both fixes are in the mainline GIT tree. > >> E.g. give a shot rc1, and please report if any issues persists to: > >> > >> ? linux-integrity@vger.kernel.org? > >> > >> BR, Jarkko > > > > I don't see Linos patches on mainline. Also, the series included four patches: > > [PATCH v3 0/4] Fixes for TPM interrupt handling > > [PATCH v3 1/4] tpm: Use a threaded interrupt handler > > [PATCH v3 2/4] tpm: Simplify locality handling > > [PATCH v3 3/4] tpm: Fix test for interrupts > > [PATCH v3 4/4] tpm: Only enable supported irqs > > > > Three of them are relevant for the interrupt problem, which is still present in > > mainline, as these patches were refused: > > [PATCH v3 1/4] tpm: Use a threaded interrupt handler > > [PATCH v3 2/4] tpm: Simplify locality handling > > [PATCH v3 3/4] tpm: Fix test for interrupts > > > > Michael > > > > You are right, the interrupts are still not working in the mainline kernel. > I would gladly make another attempt to fix this but rather step by step > than in a series that tries to fix (different) things at once. > > A first step could be to have a sleepable context for the interrupt handling, > since in case of SPI the accesses to the irq status register may sleep. > > I sent a patch for this purpose once, but it seems to have gone lost: > > https://lore.kernel.org/all/20210620023444.14684-1-LinoSanfilippo@gmx.de/ > > > Best regards, > Lino This is clearly my bad I'll test this ASAP. BR, Jarkko