loongson-community / discussions

Cross-community issue tracker & discussions / 跨社区工单追踪 & 讨论场所
11 stars 0 forks source link

[Linux] Leverage LoongArch v1.10 new instructions #32

Open xen0n opened 11 months ago

xen0n commented 11 months ago

It is expected that amcas and sub-word atomic instructions would bring us large performance improvements for the atomic primitives. These alternatives would have to be probed and chosen at run-time.

xen0n commented 11 months ago

I have a work-in-progress branch right now, that I hope to finish in early January.

xry111 commented 8 months ago

I'd like a "Processor family" menu like x86, with entries like "Generic LoongArch processor", "LA464 (3A5000, 3C5000)", "LA664 (3A6000)". So we can also take the advantage of unaligned access (currently unaligned access is hidden behind CONFIG_EXPERT but I really don't want to enable CONFIG_EXPERT for a "production" kernel).

MingcongBai commented 6 months ago

@xen0n Any progress on this...?

xen0n commented 6 months ago

My main workstation broke and wasn't fully recovered until recently (I only physically carried it home yesterday night). I hope to refresh the patchset during the following 1 or 2 weeks. I would have to finish some benchmarking before I could post it to the mailing list though.