OrangePi_CM5/arch/powerpc/platforms/powernv
Anders Roxell 031547f4c6 powerpc: Fix build errors with newer binutils
commit 8667d0d64dd1f84fd41b5897fd87fa9113ae05e3 upstream.

Building tinyconfig with gcc (Debian 11.2.0-16) and assembler (Debian
2.37.90.20220207) the following build error shows up:

  {standard input}: Assembler messages:
  {standard input}:1190: Error: unrecognized opcode: `stbcix'
  {standard input}:1433: Error: unrecognized opcode: `lwzcix'
  {standard input}:1453: Error: unrecognized opcode: `stbcix'
  {standard input}:1460: Error: unrecognized opcode: `stwcix'
  {standard input}:1596: Error: unrecognized opcode: `stbcix'
  ...

Rework to add assembler directives [1] around the instruction. Going
through them one by one shows that the changes should be safe.  Like
__get_user_atomic_128_aligned() is only called in p9_hmi_special_emu(),
which according to the name is specific to power9.  And __raw_rm_read*()
are only called in things that are powernv or book3s_hv specific.

[1] https://sourceware.org/binutils/docs/as/PowerPC_002dPseudo.html#PowerPC_002dPseudo

Cc: stable@vger.kernel.org
Co-developed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
[mpe: Make commit subject more descriptive]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220224162215.3406642-2-anders.roxell@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-08 14:40:37 +02:00
..
Kconfig
…
Makefile
…
copy-paste.h
…
eeh-powernv.c
…
idle.c
…
memtrace.c powerpc/powernv/memtrace: Fix crashing the kernel when enabling concurrently 2020-12-30 11:54:16 +01:00
npu-dma.c powerpc/powernv/npu: Do not attempt NPU2 setup on POWER8NVL NPU 2020-12-30 11:54:16 +01:00
ocxl.c
…
opal-async.c
…
opal-call.c
…
opal-core.c
…
opal-dump.c
…
opal-elog.c
…
opal-fadump.c
…
opal-fadump.h
…
opal-flash.c
…
opal-hmi.c
…
opal-imc.c
…
opal-irqchip.c
…
opal-kmsg.c
…
opal-lpc.c powerpc/powernv: add missing of_node_put 2022-01-27 10:54:21 +01:00
opal-memory-errors.c
…
opal-msglog.c
…
opal-nvram.c
…
opal-power.c
…
opal-powercap.c
…
opal-prd.c powerpc/powernv/prd: Unregister OPAL_MSG_PRD2 notifier during module unload 2021-11-18 14:04:31 +01:00
opal-psr.c
…
opal-rtc.c
…
opal-secvar.c
…
opal-sensor-groups.c
…
opal-sensor.c
…
opal-sysparam.c
…
opal-tracepoints.c
…
opal-wrappers.S
…
opal-xscom.c
…
opal.c powerpc/64: irq replay remove decrementer overflow check 2021-01-06 14:56:54 +01:00
pci-cxl.c
…
pci-ioda-tce.c
…
pci-ioda.c
…
pci-sriov.c powerpc/powernv/sriov: fix unsigned int win compared to less than zero 2020-12-30 11:53:16 +01:00
pci.c
…
pci.h
…
powernv.h
…
rng.c powerpc: Fix build errors with newer binutils 2022-04-08 14:40:37 +02:00
setup.c powerpc/64s/powernv: Fix memory corruption when saving SLB entries on MCE 2020-12-02 23:16:40 +11:00
smp.c powerpc/64s: Trim offlined CPUs from mm_cpumasks 2020-11-27 00:10:39 +11:00
subcore-asm.S
…
subcore.c
…
subcore.h
…
ultravisor.c
…
vas-api.c
…
vas-debug.c
…
vas-fault.c
…
vas-trace.h
…
vas-window.c powerpc/powernv/vas: Release reference to tgid during window close 2021-07-19 09:44:56 +02:00
vas.c
…
vas.h
…