Skip to contentSkip to conversation

hard irq + threaded irq

DISCUSSION yosi yarchi 2 participants 2 messages Mar 12, 2023 – Mar 13, 2023

lore
Share & tools
lore
#0 lore raw

Hi

If using 'request_irq' API with IRQF_NO_THREAD, then the provided handler is invoked as hard irq, and no threaded irq is launched.

If using 'request_threaded_irq' API with 2 handlers, then two threaded irq are launched.

Is there a way to configure irq so that one handler is invoked as hard irq, and the second handler is launched as threaded irq?

With best regards

Yosi Yarchi

#1 lore raw
Quoted 1 line · yosi yarchi

Hi

Hi,

Quoted 5 lines

If using 'request_irq' API with IRQF_NO_THREAD, then the provided handler is invoked as hard irq, and no threaded irq is launched.

If using 'request_threaded_irq' API with 2 handlers, then two threaded irq are launched.

This is done because quite some of the driver were using sleeping locks in the primary handler.

Quoted 2 lines

Is there a way to configure irq so that one handler is invoked as hard irq, and the second handler is launched as threaded irq?

Isn't

	request_threaded_irq(,, IRQF_NO_THREAD, , );

doing this?

Quoted 3 lines

With best regards

Yosi Yarchi

Sebastian