[Skiboot] [PATCH 4/6] xive: Use io_complete() when changing the ESB mask bits
Oliver
oohall at gmail.com
Thu Dec 7 12:47:38 AEDT 2017
On Thu, Dec 7, 2017 at 4:39 AM, Benjamin Herrenschmidt
<benh at kernel.crashing.org> wrote:
> Thus ensuring that the load has completed before anything else
> is done (ie, the interrupt is actually masked).
>
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---
> hw/xive.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/xive.c b/hw/xive.c
> index 76939b79..104e1e85 100644
> --- a/hw/xive.c
> +++ b/hw/xive.c
> @@ -2451,7 +2451,7 @@ static void xive_update_irq_mask(struct xive_src *s, uint32_t idx, bool masked)
> if (s->flags & XIVE_SRC_SHIFT_BUG)
> offset <<= 4;
>
> - in_be64(mmio_base + offset);
> + in_complete(in_be64(mmio_base + offset));
Can you elaborate a bit of what this is doing an why it needs to be done?
> }
>
> static int64_t xive_sync(struct xive *x)
> --
> 2.14.3
>
> _______________________________________________
> Skiboot mailing list
> Skiboot at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/skiboot
Tested-by: Oliver O'Halloran <oohall at gmail.com>
More information about the Skiboot
mailing list