Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp499724rdb; Thu, 1 Feb 2024 15:19:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJYXpZGwjoYuxVPbpZTUqJzoOmH56jAWNwo+Sg9Y63ytYYkcfswdDw2L/ZUjcwVn95wc7l X-Received: by 2002:a05:6102:92:b0:46c:fe7d:711e with SMTP id t18-20020a056102009200b0046cfe7d711emr693138vsp.18.1706829551950; Thu, 01 Feb 2024 15:19:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706829551; cv=pass; d=google.com; s=arc-20160816; b=BzcEYs6lytKSisML8Rk5X593BR93FXudnwyctrIT3EET9fQU7kHXtYCzS4X8PLGbo1 RHxANV72MZako7sQ3aaj81CTuT6UyEpUT2Tf/0ELyKvLqNOm1poE+WmX7ODSj54wfvSx jtbVcZ0Z8pCTQ0Tg5QH47bAA6W6M6MO7PQOluYYyf66Ved1/WSDmqYIV6QzD4oEQ4cRa Vhh5haJx5lic0sMsiNfzj0RnkGMgHGWQyNd/T64FQgapmaU6PwM6Zp4narve46TdaTs5 v2sVq/EzWL7cGjbsfJd8oxhOGak//ScHfWIFSw/cU3330MtiXUkyHcpJiIj049vDR7l7 yErA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=g/Fqx31XYNOhlJ9ECDsRvPPG0ycRV++0qSKtdAFxaxg=; fh=bqrU2f15YODM93h21Jqtt0vDXFAwdxaCJBaAW3dlch0=; b=bol0Yex8zcEUNVKEe5erz+dU8wM2IacG/jFUdYqYX27iLTlzUG1Uh6J19WyACYq904 lc9PtIs/xMPSHwDa8GeeymB/YMU133JqjNBfVJNoJV+SMGRtTOHr+YDx2z5NYzWqXuA+ fY+sA6oBbM2BWJrEYBpzJxC2lnUJiytjEZFxhgKHnI48N4rXtaHQG4UULrCECYNzENeg qb6EqPMM2AekLyJUppzq/4U1fs+mf135kP38+34ixz2TYJEZxF0kbZ62Hb7TiJM6fQ9w F0wlJZ3Z4RUW4UXhtwklM49QDWEahBl4cICLGAJ+Xo1JoutgZ9gRRvKvqUOSGAL8e3Gg cruw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lqqy/x+M"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVsevprYoMXEdQQYOqp94cYwxjhKt4w6cLP2oZcj/R7Ro05ZdLr8JtVZBMFZGz6Gg7Myx+N2xibxClVTyfZvV7ThPNxLnhdtea/Hd8S9g== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bk9-20020a05620a1a0900b00783636cd0e4si731317qkb.780.2024.02.01.15.19.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 15:19:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lqqy/x+M"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AEA1F1C22F06 for ; Thu, 1 Feb 2024 23:19:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86AA747F51; Thu, 1 Feb 2024 23:19:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lqqy/x+M" 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 A186B41211; Thu, 1 Feb 2024 23:19:03 +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=1706829543; cv=none; b=iyW9+bkl2xlFi99GxnMx6VpmQrkHbp/is4ZnezT5qccoerXSj4pLJ96Sr/Elwj/OgBKeagu0vmjPvhhrVgESWwx76xjqYCbC7/6ko5NTGEh+sWZvAVSE9+XImp/A4kAbzfKc1D/dWIHWGVdd/yoEVc7STQWe3EoDa6TYJrXjVug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706829543; c=relaxed/simple; bh=g/Fqx31XYNOhlJ9ECDsRvPPG0ycRV++0qSKtdAFxaxg=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=j7q64ct7GQoCzq3G60HLUc3rHYgI40LznWLYPD01VbGb8kKjb2T+/mETz6ksWxciMe3BEcbsplAyfIU3IeuFXfCrobJuStQu4iXLGD3vztnIrnsvb/TGpfLuCYZ/bkFh/Anq0abc4OTpJ/LJtcy238kD8rXbofXY92moLM7a424= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lqqy/x+M; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11851C433F1; Thu, 1 Feb 2024 23:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706829543; bh=g/Fqx31XYNOhlJ9ECDsRvPPG0ycRV++0qSKtdAFxaxg=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=lqqy/x+M6PKHk6qI+VElPsSLnPfv79iVSVo15fdzGE+KkQVXj0k0Dn/SX+Nhs7L1y ALMVaX8aNE8nK9WpHt/gRv9iGbN+u7SuAjEOWMHqkqHETQTp8PuMwatsnEbk3yK/pt p6BnBx5jtRywsHk9i8AhB+Q4h55A4CI18bz7tZ+QG3MSD6/hKDPpP75aB7D5H+s/z6 kR/9AAHAtEuU4H539UqLw/9QHF7Lu8N3LPuJyQsUsrYyTYVPp8LOFXgYGV4OeXGxbX 8zhxfLIwyMNzmtgPBRN0/zbNecijFMwAsh+4iJnYubwkK5gM4D3+qNzst+Juz8Unmc sPRp/H03he1yw== Precedence: bulk X-Mailing-List: linux-kernel@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: Fri, 02 Feb 2024 01:18:59 +0200 Message-Id: Cc: "LinoSanfilippo@gmx.de" , "p.rosenberger@kunbus.com" , "lukas@wunner.de" , "jgg@ziepe.ca" , "linux-integrity@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH] tpm,tpm_tis: Avoid warning splat at shutdown From: "Jarkko Sakkinen" To: "Elliott, Robert (Servers)" , "Lino Sanfilippo" , "peterhuewe@gmx.de" X-Mailer: aerc 0.15.2 References: <20240201113646.31734-1-l.sanfilippo@kunbus.com> In-Reply-To: On Thu Feb 1, 2024 at 6:40 PM EET, Elliott, Robert (Servers) wrote: > > From: Lino Sanfilippo > > Sent: Thursday, February 1, 2024 5:37 AM > > Subject: [PATCH] tpm,tpm_tis: Avoid warning splat at shutdown > >=20 > > If interrupts are not activated the work struct 'free_irq_work' is not > > initialized. This results in a warning splat at module shutdown. > >=20 > > Fix this by always initializing the work regardless of whether interrup= ts > > are activated or not. > > That's using flush_work(), which just waits for one to complete. Is there > any case where multiple work entries could be queued, and cancel_work_syn= c()=20 > would be necessary? Questions are cool but please explain how this aligns with the patch review because I already accepted the patch. Should I drop it based on this question, and if so, why? > tpm_tis_probe_irq() has a loop calling tpm_tis_probe_irq_single() > for 3 to 15. Could each of those could trigger an interrupt storm and > call tpm_tis_revert_interrupts(), which calls schedule_work()? AFAIK no based on that TPM_CHIP_FLAG_IRQ should take care of this. BR, Jarkko