Re: smp.c && barriers (Was: [PATCH 1/4] generic-smp: remove singleipi fallback for smp_call_function_many())

From: Ingo Molnar
Date: Fri Feb 20 2009 - 14:41:52 EST



* Suresh Siddha <suresh.b.siddha@xxxxxxxxx> wrote:

> > So the question is, is an SFENCE there enough to serialize
> > the WRMSR with previous memory-writes? It's not specified in
> > the x2apic docs as far as i could see.
>
> No. sfence is not enough (wrmsr to x2apic regs was still
> passing ahead). We have done a small experiment to demonstrate
> the issue and adding mfence fixes the issue but not sfence. We
> need a serializing instruction or mfence. I will try to get
> the SDM updated.

Fair enough!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/