Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6874504pxv; Fri, 30 Jul 2021 04:46:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeQ8QyeUxkgovhazt1epRiYQTjh7I6bbu4v6/vQKN+obhtgobr3VtgEPzmthlIMgHmc79F X-Received: by 2002:a92:c5c5:: with SMTP id s5mr1530214ilt.271.1627645608080; Fri, 30 Jul 2021 04:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627645608; cv=none; d=google.com; s=arc-20160816; b=b2lSnqFyrY0MoHU/PH4QO8X2LQPONt0ahoCH5m28MSkEJYJ5hR5tBE/P+6g2SeO6D/ iJpuITF6wIl2UdwhSjsj0ig0E9Iy44Cw9Xxq3hIxNVz+3Z0oSaECQGs8B0vb57D8ibFY q/d9usUVQNU6EBV96AUOf6sFSq/r6FZHaxN12t2FUvB4A9gEUWdQn+a0alD0Uqe70NQK PPynPHgmk/WwR0ABb0kZa7k/6MHpD+7bIINyitG0X7naqAkGbsdx5FoHRBRGS4C3HSmr e8e0HtfDLA6SDUSBDYJ6l0MYMhjCVZ7D9IHSkdQSgK8XqxU8Hpaj48GIHCIltSJpezJ8 MePA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=5nwtFUK6rZsQSaPedvMtggo0kXPpIuOZXQXwWmwUXyw=; b=fYNFt+mDo9CQZoEJ1iLu9q7rCJPVqQ0UQQRX+dbftv1blUM2qOTXsRIYG4FePnlXR7 w+kd9G8yEZVpoBwndx4VT73yE/8iaLxV06J/0+L0UIR5sS54FQ8SvFfEvSV7BY2bBToj byxlC5X0p9SvzF029Q/rrDIoTp8VUtXMTOMCC5BqrukHFyOx7mbO+fPUIUxTMOesRR85 67HXeWYqveQxrPZ2mQoBTcAjP8jAO9rIBQaWgbe9h0EWLux3ixY0y5cbrf8xOqdhrH32 PfcaDvvddDPV1AbYYzZP8ynlf+Ws6880Er812i1I6ZOna0lWWbJV9LiJ3D7gKcR4tVmE 9WGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=QV220zb7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si1664120ilc.54.2021.07.30.04.46.36; Fri, 30 Jul 2021 04:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=QV220zb7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238660AbhG3Lp6 (ORCPT + 99 others); Fri, 30 Jul 2021 07:45:58 -0400 Received: from mout.gmx.net ([212.227.17.21]:38947 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbhG3Lp5 (ORCPT ); Fri, 30 Jul 2021 07:45:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627645548; bh=5nwtFUK6rZsQSaPedvMtggo0kXPpIuOZXQXwWmwUXyw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QV220zb7rpnBcz4J0qAKKimC58tuXv5SUSM1V8eY52hw/duRbaqxszjCI1958pJ26 O9+H+cF/22/Pj3Z0YLmtgWe9eSYl1Ppn1phH9vW4QatTygOrQLQdhvo8cJos/Em1m2 4B4P8er62f0ZqOOUidr13ckYbn+FBhHEYMuxvw3A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [87.130.101.138] ([87.130.101.138]) by web-mail.gmx.net (3c-app-gmx-bs53.server.lan [172.19.170.137]) (via HTTP); Fri, 30 Jul 2021 13:45:48 +0200 MIME-Version: 1.0 Message-ID: From: Lino Sanfilippo To: Jarkko Sakkinen Cc: peterhuewe@gmx.de, jgg@ziepe.ca, linus.walleij@linaro.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Aw: Re: [PATCH v2] tpm, tpm_tis_spi: Allow to sleep in the interrupt handler Content-Type: text/plain; charset=UTF-8 Date: Fri, 30 Jul 2021 13:45:48 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <20210623133420.gw2lziue5nkvjtps@kernel.org> References: <20210620023444.14684-1-LinoSanfilippo@gmx.de> <20210623133420.gw2lziue5nkvjtps@kernel.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:iD0cgET1uosZgRcmeBTa/6zynHtSmS9RAa0zPzePWzPxyajS59Lk2bD+DghdCYoGMy3wl DVtcWR7eCEnJfdRwqKPuGaFNH6Y3TpQqnsas/6vYDwDPfhn7M41UIlWtz89kdV+bjN4Ki89TvXhu +fUryqpBqjDFTa0tBFgrBf6oEOiZaMx2SD3ao8FO3BQRyNESKtUiSZvY7gtvP60roXZLLMJyyY+s yxfYG1aZIMutHe979SBulg30sI8rVFFQ6gUiTT2l3vBJENW/DB295om1QJnPTtjil5Y5Cni93mBI Bw= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Sx8Hbnu69Tk=:P2zLXADOnYyEPlPGwyUGkl JDPf3njtHtSOnAvZRuaDs4w0PlIoy/fIbUyRQ7nv9sejlZ0e+S2K3DzLwjyvQuK5GtRfL5FL1 EfZ3nbSpVQE6m0cwDoeDJnCbeaJiYjjacb3ru9yeVCxPIIPX+5iY3qNrCXbBgkA6u/BA4Td9q 9H8QJjyuZFiw6joWvmw34iF+7Khtas7W4FsCuU1g03Y89Pzp7+LPonualQwIy4WVgvIRGTX3S +SU+U5DdLzl2zzBkB6bhO9ZGtX9ghU8eH0cNAYw1SjhU0cKu1JQGP2WODjQVns08Y1n30hzPV vSC44X9smcn/6j6A0bhC5KcBtMMf9jZewxqDDEqPVfQq6JlVyl/zoU7N8BYssQSjMhsVfPizH D8ew9d0iNVCT9w+dLBoQV83w9Ckj51kxUcR2wrIuNc2KJT/4qRKMSve3/F2vQx8krAxTbjj/N rudugvjvRAhJiKQ7k7pEkCsGO8qODhDXKMFI0/Z3xur0cO9uAt1iUbho7BfcXwsCymQjKrC1L X4yz5FEsW7+I0dDwQ8EeqafdOmhqpbSRva8kmIiiBLaIJKgElr7L1K8Bo7mSoPxlfoaO2HBkg IFdM6aMJuqCL0mPVR7BFm7kOc9nC30cg2AcsR0eLUjf90dDm6RlRdpRsCa1uNpZnosuuQ+gD9 CMf6UTvH3A1rnVbhnI2Gswf0G2JPHaO+Tj+hvTb+Fs/1dR8qCEMZwL0mPQAiTpGGFBHz8VzSK R6anq5zpgN0mFUTK+LzjvToPLVJ/6jBs4irH8ejum0omELXzMlWkJrC/x9dW4aZJLgajW9DHP 17NNPKbrfjOJg5pyfDjOhAncMHGbQ== Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jarko, > Gesendet: Mittwoch, 23. Juni 2021 um 15:34 Uhr > Von: "Jarkko Sakkinen" > An: "Lino Sanfilippo" > Cc: peterhuewe@gmx.de, jgg@ziepe.ca, linus.walleij@linaro.org, linux-int= egrity@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.o= rg > Betreff: Re: [PATCH v2] tpm, tpm_tis_spi: Allow to sleep in the interrup= t handler > > On Sun, Jun 20, 2021 at 04:34:44AM +0200, Lino Sanfilippo wrote: > > Interrupt handling at least includes reading and writing the interrupt > > status register within the interrupt routine. For accesses over SPI a = mutex > > is used in the concerning functions. Since this requires a sleepable > > context request a threaded interrupt handler for this case. > > > > Cc: stable@vger.kernel.org > > Fixes: 1a339b658d9d ("tpm_tis_spi: Pass the SPI IRQ down to the driver= ") > > Signed-off-by: Lino Sanfilippo > > I'll test this after rc1 PR (I have one NUC which uses tpm_tis_spi). > > /Jarkko > any news from this patch? Did you already have the opportunity to test it? Regards, Lino