Skip to content

microblaze: Define SMP safe operations

Michal Simek lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7microblaze: timer: Don't use cpu timer settingarch/microblaze/kernel/timer.c+1 -10 replies
2/7microblaze: Make cpuinfo structure SMP awarearch/microblaze/include/asm/cpuinfo.h arch/microblaze/kernel/cpu/cache.c arch/microblaze/kernel/cpu/cpuinfo.c +2 more+236 -1731 reply
3/7microblaze: Define SMP safe bit operationsarch/microblaze/include/asm/Kbuild arch/microblaze/include/asm/bitops.h+189 -15 replies
4/7microblaze: Add SMP implementation of xchg and cmpxchgarch/microblaze/include/asm/cmpxchg.h+87 -00 replies
5/7microblaze: Remove disabling IRQ while pte_update() runarch/microblaze/include/asm/pgtable.h+9 -100 replies
6/7microblaze: Implement architecture spinlockarch/microblaze/include/asm/spinlock.h arch/microblaze/include/asm/spinlock_types.h+265 -03 replies
7/7microblaze: Do atomic operations by using exclusive opsarch/microblaze/include/asm/atomic.h+253 -1212 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchStefan Asserhall
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7

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

Read the v1 thread

Cover letter [PATCH 0/7] microblaze: Define SMP safe operations

Hi,

This is follow up series on the top of cleanup series available here.
https://lkml.org/lkml/2020/2/12/215
There are two things together.
1. Changes in cpuinfo structure in patches 1 and 2
2. Defining SMP safe operations instead of IRQ disabling

Microblaze has 32bit exclusive load/store instructions which should be used instead of irq enable/disable. For more information take a look at
https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_2/ug984-vivado-microblaze-ref.pdf
starting from page 25.

Thanks,
Michal

Michal Simek (1):
microblaze: timer: Don't use cpu timer setting

Stefan Asserhall (5):
microblaze: Make cpuinfo structure SMP aware
microblaze: Define SMP safe bit operations
microblaze: Add SMP implementation of xchg and cmpxchg
microblaze: Remove disabling IRQ while pte_update() run
microblaze: Implement architecture spinlock

Stefan Asserhall load and store (1):
microblaze: Do atomic operations by using exclusive ops

 arch/microblaze/include/asm/Kbuild           |   1 -
 arch/microblaze/include/asm/atomic.h         | 265 ++++++++++++++++++-
 arch/microblaze/include/asm/bitops.h         | 189 +++++++++++++
 arch/microblaze/include/asm/cmpxchg.h        |  87 ++++++
 arch/microblaze/include/asm/cpuinfo.h        |   2 +-
 arch/microblaze/include/asm/pgtable.h        |  19 +-
 arch/microblaze/include/asm/spinlock.h       | 240 +++++++++++++++++
 arch/microblaze/include/asm/spinlock_types.h |  25 ++
 arch/microblaze/kernel/cpu/cache.c           | 154 ++++++-----
 arch/microblaze/kernel/cpu/cpuinfo.c         |  38 ++-
 arch/microblaze/kernel/cpu/mb.c              | 207 ++++++++-------
 arch/microblaze/kernel/timer.c               |   2 +-
 arch/microblaze/mm/consistent.c              |   8 +-
 13 files changed, 1040 insertions(+), 197 deletions(-)
 create mode 100644 arch/microblaze/include/asm/bitops.h
 create mode 100644 arch/microblaze/include/asm/spinlock.h
 create mode 100644 arch/microblaze/include/asm/spinlock_types.h
Signature · 1 line
2.25.0