The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] irqchip/riscv-imsic: Fix boot time update effective affinity warning
@ 2024-04-13  6:52 Anup Patel
  2024-04-14 11:37 ` [tip: irq/core] " tip-bot2 for Anup Patel
  0 siblings, 1 reply; 2+ messages in thread
From: Anup Patel @ 2024-04-13  6:52 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Palmer Dabbelt, Paul Walmsley, Atish Patra, Andrew Jones,
	Sunil V L, Anup Patel, linux-riscv, linux-kernel, Anup Patel

Currently, the following warning is observed on the QEMU virt machine:
genirq: irq_chip APLIC-MSI-d000000.aplic did not update eff. affinity mask of irq 12

The above warning is because the IMSIC driver does not set the initial
value of effective affinity in the irq descriptor. To address this,
initialize the effective affinity in imsic_irq_domain_alloc().

Fixes: 027e125acdba ("irqchip/riscv-imsic: Add device MSI domain support for platform devices")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
---
 drivers/irqchip/irq-riscv-imsic-platform.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/irqchip/irq-riscv-imsic-platform.c b/drivers/irqchip/irq-riscv-imsic-platform.c
index 1e6dddfd3046..11723a763c10 100644
--- a/drivers/irqchip/irq-riscv-imsic-platform.c
+++ b/drivers/irqchip/irq-riscv-imsic-platform.c
@@ -157,6 +157,7 @@ static int imsic_irq_domain_alloc(struct irq_domain *domain, unsigned int virq,
 			    handle_simple_irq, NULL, NULL);
 	irq_set_noprobe(virq);
 	irq_set_affinity(virq, cpu_online_mask);
+	irq_data_update_effective_affinity(irq_get_irq_data(virq), cpumask_of(vec->cpu));
 
 	return 0;
 }
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-14 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-13  6:52 [PATCH] irqchip/riscv-imsic: Fix boot time update effective affinity warning Anup Patel
2024-04-14 11:37 ` [tip: irq/core] " tip-bot2 for Anup Patel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox