[PATCH RT v2 0/3] riscv: add PREEMPT_RT support

Jisheng Zhang
2023-10-31T14:47:50Z

This series is to add PREEMPT_RT support to riscv. Compared with last
year's try[1], there are two major changes:

1. riscv has been converted to Generic Entry. And RT maintainers has
introduced PREEMPT_AUTO, so its support for riscv as well.

2. three preparation patches(patch1/2/3 in [1]) has been merged in
mainline.

Link: https://lore.kernel.org/linux-riscv/20220831175920.2806-1-jszhang@kernel.org/ [1]

Hi @Conor,

IIRC, you reported warnings with LOCKDEP(and DEBUG_ATOMIC_SLEEP?) with
previous version RT patch, but I tried on c906, c910 platforms and
can't reproduce the warnings. And Schaffner also tried them and
didn't reproduce warnings either. So could you please help try
v6.6-RT + this series again?

Thanks

Since v1:
- rebase on v6.6-rt
- support the new PREEMPT_AUTO instead of Lazy preempt

Jisheng Zhang (2):
riscv: add PREEMPT_AUTO support
riscv: allow to enable RT

arch/riscv/Kconfig | 2 ++
arch/riscv/include/asm/thread_info.h | 2 ++
2 files changed, 4 insertions(+)

--
2.40.1