Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3691215pxy; Mon, 26 Apr 2021 07:38:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmMpd5MSpwUywPKwJTV2jaSvNjfv7pxWaX4nGTSnkvN1Qtfl4TIuEPws7oIKPM2jLNXRvu X-Received: by 2002:a65:620d:: with SMTP id d13mr17085468pgv.85.1619447900859; Mon, 26 Apr 2021 07:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619447900; cv=none; d=google.com; s=arc-20160816; b=JrtR0nktTkbFed8CF5KKI7BqK8vq/evKYO2xW+zKsIeZ78azkNw7WAMk16qwLdea4M JCDmE5LX9tmh50gFxpeoOiUgu8+ruFFqepRYunte9LMqlVzJc5l4oT56joCKkXymlUwD zjivYdBvkTOUyCdy5Iqxnyh7m++d4MbPTtRBNq6IkJQF8zqmGJe3k+QZEQ6ZqxhgJaIK isaHwTrRbqGcV65mnIq1/z///4BMaS58tZXMXGW3M4weCF/amrwMbDNdjZ4vtlb3mhbG nJ2u6uM1W3DB4atc8xjXlSUK7uyNI8Pi+5dTkuWdHglAAEkgNsrIC2lKAZsZrsDjCyGE svkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=dIR8qG+fZkjKx3j7arXn5imLXqkq2cTjPJyuy5kjYco=; b=dtjw2Wil8GG13YwxIIDvFqnszJsdzbL7X91eMA3n1mki3HahVISkG/6C0qIUHzGwNt qgkCLX4D1fDr+uJ63SBeQNahDjPodd+UaagFnyJaAbzT4lqR3okm29H0QgKDFLi1IdNr Dm2IB6GFJjFvWv0u8hSur/wVRPTx11P+/cpu+d29Vp/zBEwZm7j9Q9UUf4JakOyg+PZN iTSqWWCCfqUebZTo8l5UXGcjAkDsHJMkleXJA9t2nxAaiujCo0xp9u+30ucLRfStB0VA scb6+jz+IOzB5NJtsz1LZDwZvcMNPslFsnZsKyWs3DKXJpay7aStqaLoX7fbEwXAsPw3 DoMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=aWmoFan4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si17254728pgj.114.2021.04.26.07.38.08; Mon, 26 Apr 2021 07:38:20 -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=@ibm.com header.s=pp1 header.b=aWmoFan4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233834AbhDZOiO (ORCPT + 99 others); Mon, 26 Apr 2021 10:38:14 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:22098 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232575AbhDZOiO (ORCPT ); Mon, 26 Apr 2021 10:38:14 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13QEWwRW072667; Mon, 26 Apr 2021 10:37:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=dIR8qG+fZkjKx3j7arXn5imLXqkq2cTjPJyuy5kjYco=; b=aWmoFan4j0muEg/S825aP4IzMh+/36Cf65CkCTuymgotwkWre0ODG7768UGs+QaRlguT CFXBvcro2d8wm1arFk8pQHtD+wW4HdUQcV0fVptGxsr72xS2Ole5nskyZ4YosYuSXDKU oxdDPAvP12QSxCjx9F6N5QIe6uEPWwdGJyN9rF8sI5jQ1qOc9RZNSpH9QNYD1Ti00llx A/Ve5V+4h6yymXABX9GGxs08rpi/EMQaQ+VKMAOz0/VjNI/uXTws86tqgb3btp9PCqwY xYeiUQPEaoVjQ75208jyOU4FeKGQDpNdymoWzqn4OptPjbgbthgNNvJCBqTGRHpuZw6m Wg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 385xfbtjct-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Apr 2021 10:37:26 -0400 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 13QEXFah073564; Mon, 26 Apr 2021 10:37:26 -0400 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 385xfbtjc5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Apr 2021 10:37:25 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 13QEb45p018141; Mon, 26 Apr 2021 14:37:25 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma04dal.us.ibm.com with ESMTP id 384ay9afdp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Apr 2021 14:37:25 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 13QEbOvL34603460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Apr 2021 14:37:24 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3BA6BAC05F; Mon, 26 Apr 2021 14:37:24 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 29B11AC05E; Mon, 26 Apr 2021 14:37:24 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 26 Apr 2021 14:37:24 +0000 (GMT) Subject: Re: [PATCH v2 1/4] tpm: Use a threaded interrupt handler To: Lino Sanfilippo , peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca Cc: stefanb@linux.vnet.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 References: <1619394440-30646-1-git-send-email-LinoSanfilippo@gmx.de> <1619394440-30646-2-git-send-email-LinoSanfilippo@gmx.de> From: Stefan Berger Message-ID: Date: Mon, 26 Apr 2021 10:37:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <1619394440-30646-2-git-send-email-LinoSanfilippo@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-GUID: H9oGXGdNxmJDpC5gO_lrsSNUVDxZdFK7 X-Proofpoint-ORIG-GUID: Jh8jNyDJEWdZAhmkBuiueWmFMbYSB531 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-26_07:2021-04-26,2021-04-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 mlxscore=0 phishscore=0 clxscore=1015 priorityscore=1501 adultscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=805 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104260114 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/25/21 7:47 PM, Lino Sanfilippo wrote: > Interrupt handling at least includes reading and writing the interrupt > status register from the interrupt routine. However over SPI those accesses > require a sleepable context, since a mutex is used in the concerning > functions. > For this reason request a threaded interrupt handler which is running in > (sleepable) process context. > > Signed-off-by: Lino Sanfilippo Reviewed-by: Stefan Berger