[PATCH rc v6 3/7] iommu/arm-smmu-v3: Do not enable EVTQ/PRIQ interrupts in kdump kernel

Nicolin Chen nicolinc at nvidia.com
Mon Jun 29 22:36:18 PDT 2026


On Tue, Jun 30, 2026 at 04:58:14AM +0000, Pranjal Shrivastava wrote:
> is_kdump_kernel() ? 0 : IRQF_ONESHOT, note that devm_request_irq is just:
> 
> static inline int __must_check
> devm_request_irq(struct device *dev, unsigned int irq, irq_handler_t handler,
> 		 unsigned long irqflags, const char *devname, void *dev_id)
> {
> 	return devm_request_threaded_irq(dev, irq, handler, NULL, irqflags | IRQF_COND_ONESHOT,
> 					 devname, dev_id);
> }
> 
> Not a strong opinion though, just suggesting a way to remove the if.

I've thought about that but kept the if-else on purpose:
 - Using two ternaries doesn't seem a common practice to me.
 - request_threaded_irq doesn't read as clean as request_irq
   for GERROR to use -- one could wonder why "threaded".

Thanks
Nicolin



More information about the linux-arm-kernel mailing list