lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 11 Apr 2022 22:51:44 +0800
From:   guoren@...nel.org
To:     guoren@...nel.org, arnd@...db.de, mark.rutland@....com
Cc:     linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-csky@...r.kernel.org, Guo Ren <guoren@...ux.alibaba.com>
Subject: [PATCH V2 0/2] csky: Optimize with acquire & release for atomic & cmpxchg

From: Guo Ren <guoren@...ux.alibaba.com>

Optimize arch_xchg|cmpxchg|cmpxchg_local with ASM acquire|release
instructions instead of previous C based.

The generic atomic.h used cmpxchg to implement the atomic
operations, it will cause daul loop to reduce the forward
guarantee. The patch implement csky custom atomic operations with
ldex/stex instructions for the best performance.

Important reference comment by Rutland:
8e86f0b409a4 ("arm64: atomics: fix use of acquire + release for
full barrier semantics")

Changes in V2:
 - Fixup use of acquire + release for barrier semantics by Rutland.

Guo Ren (2):
  csky: cmpxchg: Optimize with acquire & release
  csky: atomic: Add custom atomic.h implementation

 arch/csky/include/asm/atomic.h  | 130 ++++++++++++++++++++++++++++++++
 arch/csky/include/asm/barrier.h |   8 +-
 arch/csky/include/asm/cmpxchg.h |  61 +++++++++++++--
 3 files changed, 190 insertions(+), 9 deletions(-)
 create mode 100644 arch/csky/include/asm/atomic.h

-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ