* [PATCH] Added a 5ms wait after a msi-irq is masked
@ 2016-03-22 10:45 Philippe Bergheaud
2016-03-22 10:49 ` Philippe Bergheaud
0 siblings, 1 reply; 2+ messages in thread
From: Philippe Bergheaud @ 2016-03-22 10:45 UTC (permalink / raw)
To: linuxppc-dev; +Cc: stewart, imunsie, mikey, Vaibhav Jain
From: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Adds a 5ms wait to phb3_msi_set_xive after the interrupt is masked so
that the kernel delays cleanup until an irq if its in-flight is
handled. The value 5ms is the worst case time needed by an irq to be
presented to the host after its generated.
Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
---
This patch requires the following patches:
https://patchwork.ozlabs.org/patch/581764/
https://patchwork.ozlabs.org/patch/581765/
hw/phb3.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/phb3.c b/hw/phb3.c
index fbdcb9e..e5d49b2 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -1751,6 +1751,8 @@ static int64_t phb3_msi_set_xive(void *data,
PHB_IVC_UPDATE_ENABLE_Q |
PHB_IVC_UPDATE_ENABLE_GEN;
out_be64(p->regs + PHB_IVC_UPDATE, ivc);
+ /* wait for 5ms before signalling the interrupt is masked */
+ time_wait_ms(5);
}
return OPAL_SUCCESS;
--
2.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Added a 5ms wait after a msi-irq is masked
2016-03-22 10:45 [PATCH] Added a 5ms wait after a msi-irq is masked Philippe Bergheaud
@ 2016-03-22 10:49 ` Philippe Bergheaud
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Bergheaud @ 2016-03-22 10:49 UTC (permalink / raw)
To: Philippe Bergheaud; +Cc: linuxppc-dev, stewart, mikey, imunsie, Vaibhav Jain
Sorry, I've sent this to the wrong list.
Philippe
Philippe Bergheaud wrote:
> From: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
>
> Adds a 5ms wait to phb3_msi_set_xive after the interrupt is masked so
> that the kernel delays cleanup until an irq if its in-flight is
> handled. The value 5ms is the worst case time needed by an irq to be
> presented to the host after its generated.
>
> Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
> ---
> This patch requires the following patches:
> https://patchwork.ozlabs.org/patch/581764/
> https://patchwork.ozlabs.org/patch/581765/
>
> hw/phb3.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/phb3.c b/hw/phb3.c
> index fbdcb9e..e5d49b2 100644
> --- a/hw/phb3.c
> +++ b/hw/phb3.c
> @@ -1751,6 +1751,8 @@ static int64_t phb3_msi_set_xive(void *data,
> PHB_IVC_UPDATE_ENABLE_Q |
> PHB_IVC_UPDATE_ENABLE_GEN;
> out_be64(p->regs + PHB_IVC_UPDATE, ivc);
> + /* wait for 5ms before signalling the interrupt is masked */
> + time_wait_ms(5);
> }
>
> return OPAL_SUCCESS;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-22 10:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 10:45 [PATCH] Added a 5ms wait after a msi-irq is masked Philippe Bergheaud
2016-03-22 10:49 ` Philippe Bergheaud
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).