Re: [PATCH] MIPS: Loongson64: Switch to SYNC_R4K

From: Jiaxun Yang
Date: Sat Jul 13 2024 - 23:00:57 EST




在2024年7月14日七月 上午10:54,Huacai Chen写道:
> On Sun, Jul 14, 2024 at 10:41 AM Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> wrote:
>>
>> Nowadays SYNC_R4K is performing better than Loongson64's
>> custom sync mechanism.
> Loongson64's preciseness is significantly better than SYNC_R4K.

My updated implementation[1] uses a multi-pass regression methodology
which can compensite communication overhead. I had measured delta
with EJTAG DINT on Loongson-2K and it can be reduced to as low as 4
cycles while ASK_C0_COUNT has ~50 cycles delta.

[1]: https://lore.kernel.org/linux-mips/20240511-mips-clks-v1-0-ddb4a10ee9f9@xxxxxxxxxxx/

Thanks
- Jiaxun

>
> Huacai


--
- Jiaxun