Commit 9705d683 authored by Philippe Gerum's avatar Philippe Gerum

genirq: ipipe: detect pipeline-unsafe MSI handlers

parent a24a1f5b
......@@ -251,6 +251,9 @@ static void msi_domain_update_chip_ops(struct msi_domain_info *info)
struct irq_chip *chip = info->chip;
BUG_ON(!chip || !chip->irq_mask || !chip->irq_unmask);
WARN_ONCE(IS_ENABLED(CONFIG_IPIPE) &&
(chip->flags & IRQCHIP_PIPELINE_SAFE) == 0,
"MSI domain irqchip %s is not pipeline-safe!", chip->name);
if (!chip->irq_set_affinity)
chip->irq_set_affinity = msi_domain_set_affinity;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment