Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp368562rdb; Thu, 18 Jan 2024 06:10:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxmV1TBHyb/BCJisGVaoh2w8Rd7+mlbJ+GXeo2Td92lKoRn49Md2ZMNDMgZrZMWBqFuu8u X-Received: by 2002:a17:907:c8e:b0:a26:edeb:7635 with SMTP id gi14-20020a1709070c8e00b00a26edeb7635mr441337ejc.91.1705587011313; Thu, 18 Jan 2024 06:10:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705587011; cv=pass; d=google.com; s=arc-20160816; b=j9G1FaN+Z42hYcSoXUiIGvsPgAYeYm4DCOpqzwJV//RCYS+xsfsWyrwvZrd7f7zcZG RJPCSTDYcK9OxxJeyhileELhi+6Urxmb/gNkpb9h+XEujj22FUAPSt87vXD55JcMvkcF 0jr/ufDo10OapHrpO/w6e3h4BaZwg/ISKttJPLlHMAn19DAka45hOlI30KP46xeeoh/b LqUF/iXlctDwADPZvW3n1JX2Ujdn3CRaXBNgG9sXWcSxmPAOp5kLz/2NAH1GUmOEztuc Gd0OGCjfz0HLF8Vy7pSy1gRGm5orEhQFDoUdodX8kE+tb5Ys3c82k2Cd/+7OJmXjNlLw R79A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=Zd6nefOE8T1la0FglyIJuwvCcGp74XhsYkIPoNjsqY4=; fh=E48XRmaGNS5fHVGu1Kt47vCTjqaWnFc9uTei6Fuy3vo=; b=syit76VlJC/CTxPtuAbRVXYsN07HnwjchNPVm6FYGXJm82supPmwep6c958Xc3YNQS 0sUAFccpWoaJ7q1nrgVzTs3XBKsKL7QUGV8+YgkikF3nj9ozGGa1ttnkq7eY9lOPjr8j aXRXV1iX6W937wbTc3qUOGtFwnKHS0FUPpHv2Vr51fQlZSLhfdBsXw3Cuq0inBBUDsrH uH4UZofQsgtv5y2m3+VXvRgF45zSVuOFJvSNWf2eSso+flCc9WLqjsF7JKHB58Xsfnnf MDRGSuFRYVFDzqeiCYHanjS+xW0SENHxrbM3OO9sIPWR2XNZN3dIFh+ZL92fZ3kiF7oZ AMow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SorbwJHw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dt14-20020a170906b78e00b00a2dd05f57d1si3793701ejb.44.2024.01.18.06.10.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 06:10:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SorbwJHw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30184-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 164B31F2365A for ; Thu, 18 Jan 2024 14:10:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F077288DC; Thu, 18 Jan 2024 14:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SorbwJHw" 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 A8350286AC; Thu, 18 Jan 2024 14:09:55 +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=1705586995; cv=none; b=pPNbJVUFJd/HVpEh33yk0uWjAwUzL8tczXx9SBbTIg0qrSCoTRSrNx4yWYSFtFCEOJoGPQMcRdFVAVs4U48joR87Pzc96CH3s8l+fEIlIeJrSTR8cXIWxZwKCtVOQzH79V3JloWjRS4RCcGgju9mnNMBVSs0Ry7yDUVspXSX9WM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705586995; c=relaxed/simple; bh=kBiT5drkA1zgE0V/ePCDsjTx47cqMBWft3QxfGT5hXg=; h=Received:DKIM-Signature:Received:Date:Message-ID:From:To:Cc: Subject:In-Reply-To:References:User-Agent:MIME-Version: Content-Type:X-SA-Exim-Connect-IP:X-SA-Exim-Rcpt-To: X-SA-Exim-Mail-From:X-SA-Exim-Scanned; b=R2jnQ7hGhjXqzngg6k2IQBjT0R326TkbKIM+TULd2CeC/8JsuoDy0MzOPokqAwef5TqH7Cotr743hadAUlY7UgOH7RKp1+oUu4oBv1Rjx8q0qlUk0BoV0Jrzlc1QWjWgI6XlZDAEipneGthvyyOSbtIQP4MtuEa6rYQUu25UUFk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SorbwJHw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 371CEC433C7; Thu, 18 Jan 2024 14:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705586995; bh=kBiT5drkA1zgE0V/ePCDsjTx47cqMBWft3QxfGT5hXg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SorbwJHwyJdHQdbkVNp8ySIaJDkWF/fDdv4spTE3Zc5Pnm8eUEpxyq3vE2h+QS7wB VOqhuIzlR5F6q1jVIvFCHNxgj2C4a4+Dj2ZtdlSCCIrJsBZHiT+FqERGJ93YtzoeT1 mrTKjnwkn0nU+pAlcqLoQelYhIlSDvVVlem/u1ShNOitByvbuYBuQAbmC/0N3Qkuhu 3O+gH4BhEZ3hdgwzjWAOLwF2q88Ixaf0GRrXBhPJ8psJZkEpC8WE88o/bondO90aiQ 0j4pITXHZ6c9Gw4jRYf/PyTgW7dndpLBKrpuDwoMw2lOg2qr0pe70fGAtR1bRT/yyq 06PZ69uTLy93A== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rQT5d-00CiPd-4S; Thu, 18 Jan 2024 14:09:53 +0000 Date: Thu, 18 Jan 2024 14:09:52 +0000 Message-ID: <87y1cmwx5b.wl-maz@kernel.org> From: Marc Zyngier To: Dawei Li Cc: tglx@linutronix.de, sdonthineni@nvidia.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, set_pte_at@outlook.com, stable@vger.kernel.org Subject: Re: [PATCH 4/4] genirq: Initialize resend_node hlist for all irq_desc In-Reply-To: <20240118112739.2000497-5-dawei.li@shingroup.cn> References: <20240118112739.2000497-1-dawei.li@shingroup.cn> <20240118112739.2000497-5-dawei.li@shingroup.cn> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: dawei.li@shingroup.cn, tglx@linutronix.de, sdonthineni@nvidia.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, set_pte_at@outlook.com, stable@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Thu, 18 Jan 2024 11:27:39 +0000, Dawei Li wrote: > > For !CONFIG_SPARSE_IRQ kernel, early_irq_init() is supposed to > initialize all the desc entries in system, desc->resend_node > included. > > Thus, initialize desc->resend_node for all irq_desc entries, rather > than irq_desc[0] only, which is the current implementation is about. > > Fixes: bc06a9e08742 ("genirq: Use hlist for managing resend handlers") > Cc: stable@vger.kernel.org > > Signed-off-by: Dawei Li > --- > kernel/irq/irqdesc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c > index 27ca1c866f29..371eb1711d34 100644 > --- a/kernel/irq/irqdesc.c > +++ b/kernel/irq/irqdesc.c > @@ -600,7 +600,7 @@ int __init early_irq_init(void) > mutex_init(&desc[i].request_mutex); > init_waitqueue_head(&desc[i].wait_for_threads); > desc_set_defaults(i, &desc[i], node, NULL, NULL); > - irq_resend_init(desc); > + irq_resend_init(&desc[i]); > } > return arch_early_irq_init(); > } Well spotted. It would probably be worth having a helper that fully initialises one desc, but that's out of the scope of this fix. Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.