# Re: \[PATCH 17/19\] LoongArch: Add multi-processor (SMP) support

- From: Peter Zijlstra \<peterz@infradead.org\>
- Date: 2021-07-06 15:17:57 
- List: linux-arch
- Page: https://ratatoskr.run/linux-arch/2021/07/13337068
- Thread: https://ratatoskr.run/linux-arch/2021/07/13337006/t.md

```text
On Tue, Jul 06, 2021 at 12:18:18PM +0800, Huacai Chen wrote:
> +/*
> + * Loongson-3's SFB (Store-Fill-Buffer) may buffer writes indefinitely when a
> + * tight read loop is executed, because reads take priority over writes & the
> + * hardware (incorrectly) doesn't ensure that writes will eventually occur.
> + *
> + * Since spin loops of any kind should have a cpu_relax() in them, force an SFB
> + * flush from cpu_relax() such that any pending writes will become visible as
> + * expected.
> + */
> +#define cpu_relax()	smp_mb()

Guys! You've not fixed that utter trainwreck ?!? You've taped out a
whole new architecture and you're keeping this?
```
