From: "tip-bot2 for Dawei Li" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Dawei Li <dawei.li@shingroup.cn>,
Thomas Gleixner <tglx@linutronix.de>,
Marc Zyngier <maz@kernel.org>,
stable@vger.kernel.org, x86@kernel.org,
linux-kernel@vger.kernel.org
Subject: [tip: irq/core] genirq: Initialize resend_node hlist for all interrupt descriptors
Date: Wed, 24 Jan 2024 18:35:20 -0000 [thread overview]
Message-ID: <170612132097.398.7552255144385279476.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20240122085716.2999875-5-dawei.li@shingroup.cn>
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 <dawei.li@shingroup.cn>
AuthorDate: Mon, 22 Jan 2024 16:57:15 +08:00
Committer: Thomas Gleixner <tglx@linutronix.de>
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 <dawei.li@shingroup.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Marc Zyngier <maz@kernel.org>
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();
}
next prev parent reply other threads:[~2024-01-24 18:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-22 8:57 [PATCH v2 0/5] Minor cleanup on gic(v3) and genirq Dawei Li
2024-01-22 8:57 ` [PATCH v2 1/5] irqchip/gic-v3: Implement read polling with dedicated API Dawei Li
2024-01-24 18:35 ` [tip: irq/core] irqchip/gic-v3: Use readl_relaxed_poll_timeout_atomic() tip-bot2 for Dawei Li
2024-01-22 8:57 ` [PATCH v2 2/5] irqchip/gic(v3): Replace gic_irq() with irqd_to_hwirq() Dawei Li
2024-01-24 18:35 ` [tip: irq/core] " tip-bot2 for Dawei Li
2024-01-22 8:57 ` [PATCH v2 3/5] genirq: Remove unneeded forward declaration Dawei Li
2024-01-24 18:35 ` [tip: irq/core] " tip-bot2 for Dawei Li
2024-01-22 8:57 ` [PATCH v2 4/5] genirq: Initialize resend_node hlist for all irq_desc Dawei Li
2024-01-24 18:35 ` tip-bot2 for Dawei Li [this message]
2024-01-22 8:57 ` [PATCH v2 5/5] genirq: Introduce generic init_desc() Dawei Li
2024-01-24 18:35 ` [tip: irq/core] genirq: Deduplicate interrupt descriptor initialization tip-bot2 for Dawei Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170612132097.398.7552255144385279476.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=dawei.li@shingroup.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=maz@kernel.org \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®