Skip to content

MIPS: memset: Fix `noreorder' issues

Maciej W. Rozycki linux-mips lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2MIPS: memset: Fix CPU_DADDI_WORKAROUNDS `small_fixup' regressionarch/mips/lib/memset.S+3 -10 replies
2/2MIPS: memset: Limit excessive `noreorder' assembly mode usearch/mips/lib/memset.S+24 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] MIPS: memset: Fix `noreorder' issues

Hi,

A recent change broke CPU_DADDI_WORKAROUNDS support in memset.S, due to a
delay-slot instruction expanding to multiple hardware operations for the affected configurations.

The underlying cause is the excessive use of the `noreorder' assembly
mode, while it is only needed in couple of places where either there is a data dependency between a branch and its delay slot instruction, or there is a section switch involved that would prevent automatic delay slot scheduling.

These changes address both problems and for clarity, not to mix multiple
conceptually separate changes and to make backporting easier I made them a small patch series. See individual change descriptions for details.

This has been build-time and run-time verified with 32-bit and 64-bit
DECstation configurations, build-time verified with big-endian and little-endian 64-bit SWARM configurations. Build-time verification was made by running `objdump -d arch/mips/lib/memset.o' with a pristine and and a patched build to make sure there has been no change in machine code generation, except for the delay-slot multiple instruction with the 64-bit CPU_DADDI_WORKAROUNDS DECstation configuration.

Please apply.

Maciej