Skip to content

riscv/barrier: tidying up barrier-related macro

Eric Chan linux-riscv lkml 4 versions – Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 2 repliesApplied 4/4
  2. v54 patches 3 repliesSuperseded
  3. v44 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v34 patches3 repliesSuperseded

Patches in v6 All 4 applied

#Subject and filesSizeRepliesApplied
1/4riscv/barrier: Define __{mb,rmb,wmb}arch/riscv/include/asm/barrier.h+3 -30 repliesApplied
2/4riscv/barrier: Define RISCV_FULL_BARRIERarch/riscv/include/asm/atomic.h arch/riscv/include/asm/cmpxchg.h arch/riscv/include/asm/fence.h+12 -100 repliesApplied
3/4riscv/barrier: Consolidate fence definitionsarch/riscv/include/asm/atomic.h arch/riscv/include/asm/barrier.h arch/riscv/include/asm/cmpxchg.h +4 more+16 -140 repliesApplied
4/4riscv/barrier: Add missing space after ','arch/riscv/include/asm/barrier.h+6 -60 repliesApplied

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndrea ParriSamuel Holland
SeriesR-b R-b T-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/4] riscv/barrier: tidying up barrier-related macro

This series makes barrier-related macro more neat and clear. This is a follow-up to [0-3], change to multiple patches, for readability, create new message thread.

v5 -> v6: [PATCH 1/4] let this change to pass review by checkpatch.pl instead of overwriting again in [PATCH 4/4]. for [PATCH 4/4] change the error message example in commit message to make it more relevant

v4 -> v5: [PATCH 3/4] __atomic_acquire_fence and __atomic_release_fence omit-the-fence-on-uniprocessor optimization, and fix the typo of RISCV_RELEASE_BARRIER when spliting the patch in v3.

v3 -> v4: fix [PATCH 1/4] commit message weird line breaks and let [PATCH 3/4] fix the form that can pass the checking of checkpatch.pl.

v2 -> v3: split the patch into multiple patches for one problem per patch. Also review the changelog to make the description more precise.

v1 -> v2: makes compilation pass with allyesconfig instead of defconfig only, also satisfy scripts/checkpatch.pl.
- (__asm__ __volatile__ (RISCV_FENCE_ASM(p, s) : : : "memory"))
+ ({ __asm__ __volatile__ (RISCV_FENCE_ASM(p, s) : : : "memory"); })

[0](v1/v2) https://lore.kernel.org/lkml/[email protected]/
[1] (v3) https://lore.kernel.org/lkml/[email protected]/
[2] (v4) https://lore.kernel.org/lkml/[email protected]/
[4] (v5) https://lore.kernel.org/lkml/[email protected]/

Eric Chan (4):
riscv/barrier: Define __{mb,rmb,wmb}
riscv/barrier: Define RISCV_FULL_BARRIER
riscv/barrier: Consolidate fence definitions
riscv/barrier: Resolve checkpatch.pl error

 arch/riscv/include/asm/atomic.h  | 17 ++++++++---------
 arch/riscv/include/asm/barrier.h | 21 ++++++++++-----------
 arch/riscv/include/asm/cmpxchg.h |  5 ++---
 arch/riscv/include/asm/fence.h   | 10 ++++++++--
 arch/riscv/include/asm/io.h      |  8 ++++----
 arch/riscv/include/asm/mmio.h    |  5 +++--
 arch/riscv/include/asm/mmiowb.h  |  2 +-
 7 files changed, 36 insertions(+), 32 deletions(-)

--
2.44.0.rc0.258.g7320e95886-goog