Fix issues with ARMv6+v6k+v7 kernels
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 5 repliesIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
24 of 35 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Nicolas Pitre | Tony Lindgren | Will Deacon | Sourav Poddar | Dave Martin |
|---|---|---|---|---|---|
| Series | A-b | A-b | |||
| 1/14 | T-b | ||||
| 1/14 | T-b | ||||
| 2/14 | R-b | T-b | T-b T-b | T-b | |
| 2/14 | R-b | T-b | T-b T-b | T-b | |
| 2/14 | R-b | T-b | T-b T-b | T-b | |
| 2/14 | R-b | T-b | T-b T-b | T-b | |
| 2/14 | R-b | T-b | T-b T-b | T-b | |
| 2/14 | R-b | T-b | T-b T-b | T-b | |
| 2/14 | R-b | T-b | T-b T-b | T-b | |
| 3/14 | T-b | T-b | |||
| 3/14 | T-b | T-b | |||
| 3/14 | T-b | T-b | |||
| 3/14 | T-b | T-b | |||
| 3/14 | T-b | T-b | |||
| 4/14 | A-b | A-b A-b | |||
| 4/14 | A-b | A-b A-b | |||
| 4/14 | A-b | A-b A-b | |||
| 5/14 | |||||
| 6/14 | T-b | ||||
| 7/14 | A-b | ||||
| 8/14 | A-b | ||||
| 9/14 | A-b | A-b A-b | |||
| 10/14 | A-b | A-b | |||
| 10/14 | A-b | A-b | |||
| 10/14 | A-b | A-b | |||
| 11/14 | A-b | A-b | |||
| 11/14 | A-b | A-b | |||
| 11/14 | A-b | A-b | |||
| 11/14 | A-b | A-b | |||
| 11/14 | A-b | A-b | |||
| 11/14 | A-b | A-b | |||
| 11/14 | A-b | A-b | |||
| 12/14 | T-b | ||||
| 13/14 | T-b | ||||
| 14/14 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH 00/14] Fix issues with ARMv6+v6k+v7 kernels
This patch series reworks the ARMv6/ARMv6K support options, code selection, and bit operations such that it's possible to safely build a kernel which supports ARMv6, ARMv6K, ARMv7 and ARMv7 SMP in one image.
Currently, we use CPU_V6 for both ARMv6 and ARMv6K, setting CPU_32v6K if we have the K extensions. CPU_32v6K directly controlled whether we should include the ARMv6K instructions (clrex, load/store exclusive byte, half-word, double). As the bitops code uses the load/store exclusive byte operations, unsetting CPU_32v6K results in these falling back to their non-SMP local-irq-disabling variants. These are only safe in uniprocessor environments.
So, the first two patches convert the bitops to use the ARMv6 load/store exclusive word operations - and ensuring correctness by ensuring that the pointer passed in is word-aligned.
We then introduce a new CPU_V6K which indicates that we're including an ARMv6K CPU in the build, which frees up CPU_V6 to mean that we're including an ARMv6 non-K CPU.
We can then use CPU_V6 to ensure that the non-v6K code paths which are still SMP safe are selected.
Without this patch set, such a kernel will be unsafe when run on SMP platforms as it omits necessary SMP code to ensure that bit operations are safe.