Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1300550rdb; Wed, 24 Jan 2024 10:36:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDlhG6WbQpoFyqveuFyM6rARs/hAZKbe6q3uWGHp/KcQS/an/hQ1wAlhYK41D/r3TXgQIm X-Received: by 2002:a05:6a00:3d50:b0:6dd:8992:6b26 with SMTP id lp16-20020a056a003d5000b006dd89926b26mr1346623pfb.9.1706121361879; Wed, 24 Jan 2024 10:36:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706121361; cv=pass; d=google.com; s=arc-20160816; b=XmD6CLHypn76ccENL4XyKIx0zr90Yn/BaC0+ij42xO0Wt0xGbqamvJI4bF6bqKeiGC ZAHdzWAgmO9nqcRvePYOddd+VyO/mQXpAB7aCOMVKnpOU3f4gOFRwHSm2ICloqkO2B3C 8dstrYe9hRoaOdb2xRBuJatwYfJLuqyVDPUBWq21nMC2WKjthABqPy0MZt2Djcca8ff6 TBnznCxA27+4xja2A85/2YZRk8NaLIqLkC2q3xSUZPJAZ/A8buwXjiA9QXzU75sFJRFs nfX/hQ2ylAeVnjdxrrO8u4Dx5y9N2HG7H/OHKG9oGT6E2V3hhL/OsWJaqV/n40r0WDLq OhYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=mOprUGS9zKn8QM34ojdM+ZY2ATHviEv2z/2ZMLoiCis=; fh=rHtGBW2/mTxuGrkMz83l3u7ZpNqf7DTz14xtpzbe824=; b=sSKEx/ZfqCSOWLHSm33ipqP3wIbS7hwsFdOwlj2gIW0QmeWGPaNXAlg1YKnFKwN97U fLXpxfMJLbRtUFaOdq5gqsazUWl1y0JHSMGpdpRh7moNlspkhk/4eZZSjQZtVXMKkT99 QbqbDWGfghU9fchqrkCGOP+twaAoEUsr0uYixgMYGHU6k+cBPlhHz30j2/fFskJf1gTK PXL9ACSyVMcBQsOTv3omutyP0gd2dM+rABP3mPoydacSBoWlMCwfeydOyffW0Le9OogM PKBHwmrWalG1JbC/i44EM7Z9yiISyqB4dCo9/+QAgAIiqo4SksHFrVyADJN4YWGlgIWi glWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LXHwFYwF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-37521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j22-20020a63e756000000b005cec9314a24si11826651pgk.394.2024.01.24.10.36.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 10:36:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LXHwFYwF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-37521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 833B8286835 for ; Wed, 24 Jan 2024 18:36:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2F6A131E4E; Wed, 24 Jan 2024 18:35:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LXHwFYwF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MKXd64+n" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7F157131728; Wed, 24 Jan 2024 18:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706121325; cv=none; b=qdi5qhwjSilHAjkX2+amJ0OuU9dH6z6NcPi29mmnZhUFZKSpj4IVFNOku0y11uPIGkKj/E6KeLQkwdT9DG1++09ZUVys+cHs/nSSeWyYVt7trNd0WB0Sg/k74PUPEAqhlNhNKoo0gx7sQt73z+nTWf4MYDAx42P8qCwwlK06wpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706121325; c=relaxed/simple; bh=t/SDAdtQsUVJ2+bCF1Iita5JWi+Ctt7SsR2X2lNgxGI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=bIkpBNa4meyzLj6J8liEb079qaBPyr1B526QoWA/1nNsMnwa7iQdWh6F6PptF1bK7PKD3PHN97bcpYX1oqOgtCJuo3iNGdVwMeBM6fRqeQuOjk5VC6GCk1gXAfQr2fs/dzbLrGQNqTMMo8Lcl6boUNSC8uGcg8zc4Rl4oNRnf8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=LXHwFYwF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=MKXd64+n; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 24 Jan 2024 18:35:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1706121321; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mOprUGS9zKn8QM34ojdM+ZY2ATHviEv2z/2ZMLoiCis=; b=LXHwFYwFZkLeCSnN2NGheb5HJhmox8wd4ZH0HqIcClL8cXprfWOOY57wadqUGTZfoZ+TBK zZTsKYW8ZlmrEMKw+A3p1B4zCVx9NpedO3V6+lQCPfn6VLrU7pdwhsvds2OelD+Ue/L2Wb DbDsTIJdgMnl1x6IYKZqLQT4k2fVodKiS2UI0kjcLEW+DuNdswdk+HV4ko1KVIaRaXq4jM BaacsGY5qV3vRTMxUvzLcUcRyONyAZHF3qeVqSiSBdvMJEffOHd2frGevWK7Y0UphJTtmB B92bzC64PKi+I8Bdbc53b/a8F/HaalJ6eNp8gRoHfOeBW0a7jG2MhLY5LphqDw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1706121321; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mOprUGS9zKn8QM34ojdM+ZY2ATHviEv2z/2ZMLoiCis=; b=MKXd64+nsUK2wnu4UlSRgWWsbneQ1gJH/TuzupfcYXTrRFxEBZYt2OaXgBvXTCBMvYL000 c0EyzNaoOekNOtDA== From: "tip-bot2 for Dawei Li" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] genirq: Initialize resend_node hlist for all interrupt descriptors Cc: Dawei Li , Thomas Gleixner , Marc Zyngier , stable@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240122085716.2999875-5-dawei.li@shingroup.cn> References: <20240122085716.2999875-5-dawei.li@shingroup.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170612132097.398.7552255144385279476.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the irq/core branch of tip: Commit-ID: b184c8c2889ceef0a137c7d0567ef9fe3d92276e Gitweb: https://git.kernel.org/tip/b184c8c2889ceef0a137c7d0567ef9fe3d92276e Author: Dawei Li AuthorDate: Mon, 22 Jan 2024 16:57:15 +08:00 Committer: Thomas Gleixner CommitterDate: Wed, 24 Jan 2024 14:15:41 +01:00 genirq: Initialize resend_node hlist for all interrupt descriptors For a CONFIG_SPARSE_IRQ=n kernel, early_irq_init() is supposed to initialize all interrupt descriptors. It does except for irq_desc::resend_node, which ia only initialized for the first descriptor. Use the indexed decriptor and not the base pointer to address that. Fixes: bc06a9e08742 ("genirq: Use hlist for managing resend handlers") Signed-off-by: Dawei Li Signed-off-by: Thomas Gleixner Acked-by: Marc Zyngier Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240122085716.2999875-5-dawei.li@shingroup.cn --- 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 27ca1c8..371eb17 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(); }