Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/riscv-imsic: Fix boot time update effective affinity warning

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 interrupt 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>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240413065210.315896-1-apatel@ventanamicro.com

authored by

Anup Patel and committed by
Thomas Gleixner
35d77eb7 e9a9292e

+1
+1
drivers/irqchip/irq-riscv-imsic-platform.c
··· 157 157 handle_simple_irq, NULL, NULL); 158 158 irq_set_noprobe(virq); 159 159 irq_set_affinity(virq, cpu_online_mask); 160 + irq_data_update_effective_affinity(irq_get_irq_data(virq), cpumask_of(vec->cpu)); 160 161 161 162 return 0; 162 163 }