mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
xen/events: Fix interrupt lost during irq_disable and irq_enable
Here is a device has xen-pirq-MSI interrupt. Dom0 might lost interrupt
during driver irq_disable/irq_enable. Here is the scenario,
1. irq_disable -> disable_dynirq -> mask_evtchn(irq channel)
2. dev interrupt raised by HW and Xen mark its evtchn as pending
3. irq_enable -> startup_pirq -> eoi_pirq ->
clear_evtchn(channel of irq) -> clear pending status
4. consume_one_event process the irq event without pending bit assert
which result in interrupt lost once
5. No HW interrupt raising anymore.
Now use enable_dynirq for enable_pirq of xen_pirq_chip to remove
eoi_pirq when irq_enable.
Signed-off-by: Liu Shuo <[email protected]>
Reviewed-by: Boris Ostrovsky <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
This commit is contained in:
parent
529871bb3c
commit
020db9d3c1
1 changed files with 1 additions and 1 deletions
|
|
@ -574,7 +574,7 @@ static void shutdown_pirq(struct irq_data *data)
|
|||
|
||||
static void enable_pirq(struct irq_data *data)
|
||||
{
|
||||
startup_pirq(data);
|
||||
enable_dynirq(data);
|
||||
}
|
||||
|
||||
static void disable_pirq(struct irq_data *data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue