4.0.8-rt6
Subsystems (6)
Dear RT folks!
I'm pleased to announce the v4.0.8-rt6 patch set.
Changes since v4.0.8-rt5
- No more "spin_do_trylock" in timer code. This is a functional regression vs. [FULL_]NOHZ. The trylock is wrong and should have never been added. We have a patch upstream which explicitely forbids the trylock usage in hard interrupt or idle context.
There is no simple solution for this problem and it has to wait until the timer wheel rework has been finished.
- The delayed kmem_cache constructor caused problems. Steven Rostedt reported problems versus the signal handling code and Koehrer Mathias reported the same. The patch in question has been reverted and a patch currently sitting in -mm has been added which provides the same functionality (running the constructor with enabled interrupts). Patch provided by Thomas Gleixner.
- Jump labels are now only disabled on ARM. It was disabled because the arch-specific implementation used stop_machine() while patching the opcode(s) which led to large latencies. x86, powerpc and mips do not use stop_machine anymore (at least in v4.0) so we can leave it enabled. It is however disabled on ARM because it still uses stop_machine().
- The per-cpu rwsem implementation for -RT was missing an up primitive. This was properly fixed up by Thomas Gleixner.
Known issues:
- My AMD box throws a lot of "cpufreq_stat_notifier_trans: No policy found" warnings after boot. It is gone after manually setting the policy (to something else than reported).
- bcache is disabled.
- CPU hotplug works in general. Steven's test script however deadlocks usually on the second invocation.
- xor / raid_pq
I had max latency jumping up to 67563us on one CPU while the next lower max was 58us. I tracked it down to module's init code of xor and raid_pq. Both disable preemption while measuring the performance of the individual implementation.
The delta patch against 4.0.8-rt5 is appended below and can be found here:
https://www.kernel.org/pub/linux/kernel/projects/rt/4.0/incr/patch-4.0.8-rt5-rt6.patch.xz
The RT patch against 4.0.8 can be found here:
https://www.kernel.org/pub/linux/kernel/projects/rt/4.0/patch-4.0.8-rt6.patch.xz
The split quilt queue is available at:
https://www.kernel.org/pub/linux/kernel/projects/rt/4.0/patches-4.0.8-rt6.tar.xz
Sebastian
arch/arm/Kconfig +1 -1
@@ -30,7 +30,7 @@ config ARM select HARDIRQS_SW_RESEND select HAVE_ARCH_AUDITSYSCALL if (AEABI && !OABI_COMPAT) select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6 - select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL + select HAVE_ARCH_JUMP_LABEL if (!XIP_KERNEL && !PREEMPT_RT_BASE) select HAVE_ARCH_KGDB select HAVE_ARCH_SECCOMP_FILTER if (AEABI && !OABI_COMPAT) select HAVE_ARCH_TRACEHOOK
include/linux/jump_label.h +1 -2
@@ -55,8 +55,7 @@ extern bool static_key_initialized; "%s used before call to jump_label_init", \ __func__) -#if defined(CC_HAVE_ASM_GOTO) && defined(CONFIG_JUMP_LABEL) && \ - !defined(CONFIG_PREEMPT_BASE) +#if defined(CC_HAVE_ASM_GOTO) && defined(CONFIG_JUMP_LABEL) struct static_key { atomic_t enabled;
include/linux/rwsem_rt.h +6 -0
@@ -59,6 +59,7 @@ extern void rt_down_write_nested_lock(struct rw_semaphore *rwsem,extern void rt_down_read (struct rw_semaphore *rwsem);extern int rt_down_write_trylock (struct rw_semaphore *rwsem);extern int rt_down_read_trylock (struct rw_semaphore *rwsem); +extern void __rt_up_read (struct rw_semaphore *rwsem);extern void rt_up_read (struct rw_semaphore *rwsem);extern void rt_up_write (struct rw_semaphore *rwsem);extern void rt_downgrade_write (struct rw_semaphore *rwsem);
@@ -92,6 +93,11 @@ static inline int down_write_trylock(struct rw_semaphore *sem)return rt_down_write_trylock (sem); } +static inline void __up_read (struct rw_semaphore *sem) +{ +__rt_up_read (sem); +} +static inline void up_read (struct rw_semaphore *sem) {rt_up_read (sem);
kernel/locking/percpu-rwsem.c +0 -4
@@ -84,12 +84,8 @@ void percpu_down_read(struct percpu_rw_semaphore *brw)down_read (&brw->rw_sem);atomic_inc (&brw->slow_read_ctr); -#ifdef CONFIG_PREEMPT_RT_FULL -up_read (&brw->rw_sem); -#else /* avoid up_read()->rwsem_release() */ __up_read (&brw->rw_sem); -#endif }void percpu_up_read (struct percpu_rw_semaphore *brw)
kernel/locking/rt.c +8 -2
@@ -319,12 +319,18 @@ void rt_up_write(struct rw_semaphore *rwsem) }EXPORT_SYMBOL (rt_up_write); -void rt_up_read (struct rw_semaphore *rwsem) + +void __rt_up_read (struct rw_semaphore *rwsem) { -rwsem_release (&rwsem->dep_map,1 , _RET_IP_);if (--rwsem->read_depth ==0 )rt_mutex_unlock (&rwsem->lock); } + +void rt_up_read (struct rw_semaphore *rwsem) +{ +rwsem_release (&rwsem->dep_map,1 , _RET_IP_); +__rt_up_read (rwsem); +}EXPORT_SYMBOL (rt_up_read);/*
kernel/time/timer.c +4 -10
@@ -1409,13 +1409,11 @@ unsigned long get_next_timer_interrupt(unsigned long now)#ifdef CONFIG_PREEMPT_RT_FULL /* -* On PREEMPT_RT we cannot sleep here. If the trylock does not -* succeed then we return the worst-case 'expires in 1 tick' -* value. We use the rt functions here directly to avoid a -* migrate_disable() call. +* On PREEMPT_RT we cannot sleep here. As a result we can't take +* the base lock to check when the next timer is pending and so +* we assume the next jiffy. */ -if (!spin_do_trylock (&base->lock)) -return now +1 ; +return now +1 ;#else spin_lock (&base->lock);#endif
@@ -1424,11 +1422,7 @@ unsigned long get_next_timer_interrupt(unsigned long now) base->next_timer =__next_timer_interrupt (base); expires = base->next_timer; } -#ifdef CONFIG_PREEMPT_RT_FULL -rt_spin_unlock_after_trylock_in_irq (&base->lock); -#else spin_unlock (&base->lock); -#endif if (time_before_eq (expires, now))return now;
localversion-rt +1 -1
@@ -1 +1 @@ --rt5 +-rt6
mm/slub.c +42 -56
143 lines not on this page · raw message