Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700068

Re: [PATCH] xen/events: Fix interrupt lost during irq_disable and irq_enable

From Boris Ostrovsky <boris.ostrovsky@oracle.com>
Newsgroups linux.kernel
Subject Re: [PATCH] xen/events: Fix interrupt lost during irq_disable and irq_enable
Date 2017-07-31 16:00 +0200
Message-ID <u9joK-6Xr-11@gated-at.bofh.it> (permalink)
References <u8Dpv-5iP-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 07/29/2017 12:59 PM, Liu Shuo wrote:
> 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 <shuo.a.liu@intel.com>

Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] xen/events: Fix interrupt lost during irq_disable and irq_enable Liu Shuo <shuo.a.liu@intel.com> - 2017-07-29 19:10 +0200
  Re: [PATCH] xen/events: Fix interrupt lost during irq_disable and  irq_enable Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2017-07-31 16:00 +0200
  Re: [PATCH] xen/events: Fix interrupt lost during irq_disable and  irq_enable Juergen Gross <jgross@suse.com> - 2017-08-11 17:00 +0200

csiph-web