Skip to contentSkip to conversation

Blacklist megaraid_sas driver driven irqs in irqbalance - Longterm kernel solution thought about?

DISCUSSION Thomas Renninger 1 participant 1 message Mar 14, 2025 SCSI

lore
Share & tools
lore
#0 lore raw

Hi,

I have a request to blacklist megaraid_sas driver in irqbalance.

According to some developers it's known that megaraid (sas?) does have issues with migrating IRQs at runtime which could lead to Null pointer dereferences when handling IRQs (an example backtrace pasted at the end).

I understand the problem like:
- These cards can initialize on any (or at least on affinity hint pointing) irqs without problems. The issue/freeze rises when those IRQs are migrated while the card is operating.
- If smp_affinity_enable=0 is passed the PCI/platform irq affinity hints will/ might be ignore which could lead to a dramatically performance regression
- A longterm mainline solution might be to split smp_affinity (hint) initialization feature and IRQ migration feature for PCI drivers and disable the latter by default for affected cards.

Does that make sense?

A confirmation from developers working on these drivers/HW would be very much appreciated. I'd like to submit the blacklisting to mainline irqbalance project as well if it makes sense if it cannot be handled in the kernel yet.

Thanks,

Thomas

Call Trace:
 <IRQ>
 megasas_isr_fusion+0x84/0x90 [megaraid_sas 
d7ec7902299b887bdbcf4651784a30e2e26d5c22]
 __handle_irq_event_percpu+0x36/0x1a0
 handle_irq_event_percpu+0x30/0x70
 handle_irq_event+0x34/0x60
 handle_edge_irq+0x7e/0x1a0
 __common_interrupt+0x3b/0xb0
 common_interrupt+0x58/0xa0
 </IRQ>