Skip to content

parisc: fixes for CONFIG_PREEMPT

Sven Schnelle linux-parisc 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- also fix flush_cache_range(), also extend the preemption-disabled region to the end of the function, as there's also a tlb flush in the last for loop
- add patch to deduplicate code a bit

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5parisc: disable preemption during local tlb flusharch/parisc/kernel/cache.c+6 -00 replies
2/5parisc: deduplicate code in flush_cache_mm() and flush_cache_range()arch/parisc/kernel/cache.c+30 -511 reply
3/5parisc: fix preempt_count() check in entry.Sarch/parisc/kernel/entry.S+2 -20 replies
4/5parisc: disable preemption in send_IPI_allbutself()arch/parisc/kernel/smp.c+3 -10 replies
5/5parisc: fix warning in flush_tlb_allarch/parisc/mm/init.c+2 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/5] parisc: fixes for CONFIG_PREEMPT

Out of curiosity i enabled CONFIG_PREEMPT on my c8000. The kernel didn't even compile. After fixing compilation i noticed a lot of segmentation faults - usually a few processes crashed already at boot, with sshd the most notable one. Most of the time the processes where crashing with a DTLB or ITLB miss.

With these fixes, i was able to compile a linux kernel on the c8000 with preemption enabled without crashes.

Changes in v2:
- also fix flush_cache_range(), also extend the preemption-disabled region to the end of the function, as there's also a tlb flush in the last for loop
- add patch to deduplicate code a bit

Sven Schnelle (5):
parisc: disable preemption during local tlb flush
parisc: deduplicate code in flush_cache_mm() and flush_cache_range()
parisc: fix preempt_count() check in entry.S
parisc: disable preemption in send_IPI_allbutself()
parisc: fix warning in flush_tlb_all

 arch/parisc/kernel/cache.c | 87 ++++++++++++++++----------------------
 arch/parisc/kernel/entry.S |  4 +-
 arch/parisc/kernel/smp.c   |  4 +-
 arch/parisc/mm/init.c      |  4 +-
 4 files changed, 43 insertions(+), 56 deletions(-)
Signature · 1 line
2.33.0