Skip to contentSkip to conversation

3.10.10-rt7

ANNOUNCE Sebastian Andrzej Siewior 3 participants 8 messages Aug 29, 2013 – Oct 4, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Dear RT folks!

I'm pleased to announce the v3.10.10-rt7 patch set.

Changes since v3.10.10-rt6
- hwlat compiles on 32bit (again). Reported by Fernando Lopez-Lezcano.
- bcache is disabled due to usage of anon semaphores. Anyone interrested in using it?
- "genirq affinity callback" are fixed. Reported by Joe Korty. There are two nics using this feature.
- Paul Gortmaker's swait rename patch has been included.

Known issues:

- SLAB support not working

- The cpsw network driver shows some issues.

- bcache is disabled.

- an ancient race (since we got sleeping spinlocks) where the TASK_TRACED state is temporary replaced while waiting on a rw lock and the task can't be traced.

The delta patch against v3.10.10-rt6 is appended below and can be found here:
https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/incr/patch-3.10.10-rt6-rt7.patch.xz

The RT patch against 3.10.10 can be found here:

https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/patch-3.10.10-rt7.patch.xz

The split quilt queue is available at:

https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/patches-3.10.10-rt7.tar.xz

Sebastian

drivers/md/bcache/Kconfig +1 -0
index f950c9d..5eb76dd 100644
@@ -1,6 +1,7 @@
 
 config BCACHE
 	tristate "Block device as cache"
+	depends on !PREEMPT_RT_FULL
 	---help---
 	Allows a block device to be used as cache for other devices; uses
 	a btree for indexing and the layout is optimized for SSDs.
drivers/misc/hwlat_detector.c +1 -1
index 0bfa40d..6f61d5f 100644
@@ -220,7 +220,7 @@ static struct sample *buffer_get_sample(struct sample *sample)
 #else
 #define time_type	u64
 #define time_get()	trace_clock_local()
-#define time_to_us(x)	((x) / 1000)
+#define time_to_us(x)	div_u64(x, 1000)
 #define time_sub(a, b)	((a) - (b))
 #define init_time(a, b)	a = b
 #define time_u64(a)	a
include/linux/interrupt.h +1 -0
index 11bdb1e..838d4bd 100644
@@ -263,6 +263,7 @@ struct irq_affinity_notify {
 	unsigned int irq;
 	struct kref kref;
 	struct work_struct work;
+	struct list_head list;
 	void (*notify)(struct irq_affinity_notify *, const cpumask_t *mask);
 	void (*release)(struct kref *ref);
 };
include/linux/wait-simple.h +8 -0
index 4efba4d..f86bca2 100644
@@ -47,6 +47,14 @@ extern void swait_prepare(struct swait_head *head, struct swaiter *w, int state)
 extern void swait_finish_locked(struct swait_head *head, struct swaiter *w);
 extern void swait_finish(struct swait_head *head, struct swaiter *w);
 
+/* Check whether a head has waiters enqueued */
+static inline bool swaitqueue_active(struct swait_head *h)
+{
+	/* Make sure the condition is visible before checking list_empty() */
+	smp_mb();
+	return !list_empty(&h->list);
+}
+
 /*
  * Wakeup functions
  */
kernel/irq/manage.c +76 -3

111 lines not on this page · raw message

kernel/wait-simple.c +1 -9
index 2c85626..7dfa86d 100644
@@ -26,14 +26,6 @@ static inline void __swait_dequeue(struct swaiter *w)
 	list_del_init(&w->node);
 }
 
-/* Check whether a head has waiters enqueued */
-static inline bool swait_head_has_waiters(struct swait_head *h)
-{
-	/* Make sure the condition is visible before checking list_empty() */
-	smp_mb();
-	return !list_empty(&h->list);
-}
-
 void __init_swait_head(struct swait_head *head, struct lock_class_key *key)
 {
 	raw_spin_lock_init(&head->lock);
@@ -112,7 +104,7 @@ __swait_wake(struct swait_head *head, unsigned int state, unsigned int num)
 	unsigned long flags;
 	int woken;
 
-	if (!swait_head_has_waiters(head))
+	if (!swaitqueue_active(head))
 		return 0;
 
 	raw_spin_lock_irqsave(&head->lock, flags);
localversion-rt +1 -1
index 8fc605d..0454789 100644
@@ -1 +1 @@
--rt6
+-rt7
#1 lore raw
Quoted 36 lines

Dear RT folks!

I'm pleased to announce the v3.10.10-rt7 patch set.

Changes since v3.10.10-rt6
- hwlat compiles on 32bit (again). Reported by Fernando Lopez-Lezcano.
- bcache is disabled due to usage of anon semaphores. Anyone interrested in using it?
- "genirq affinity callback" are fixed. Reported by Joe Korty. There are two nics using this feature.
- Paul Gortmaker's swait rename patch has been included.

Known issues:

- SLAB support not working

- The cpsw network driver shows some issues.

- bcache is disabled.

- an ancient race (since we got sleeping spinlocks) where the TASK_TRACED state is temporary replaced while waiting on a rw lock and the task can't be traced.

The delta patch against v3.10.10-rt6 is appended below and can be found here:

https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/incr/patch-3.10.10
-rt6-rt7.patch.xz

The RT patch against 3.10.10 can be found here:

https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/patch-3.10.10-rt7.
patch.xz

Quoted 7 lines

The split quilt queue is available at:

https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/patches-3.10.10-rt
7.tar.xz

Sebastian

Just for the records:

older, but recent rt-kernels (3.10.*, rt [1,3]) stopped booting here indicating some problems with initialisation of the nouveau drm driver. (might also be a PCI-E problem)

This was not the case with 3.8.*-rt*.
The problem gone with 3.10.10-rt7 tested today.

A lot of thanks!

Bernhard

PS:
Would it be much work to activate netconsole with rt-kernels? (I was ready to send some "real screenshots" of the probelm next days, but the problem gone :-) )

#2 lore raw
Quoted 8 lines · * Bernhard Schiffner | 2013-08-30 12:32:48 [+0200]:

Just for the records:

older, but recent rt-kernels (3.10.*, rt [1,3]) stopped booting here indicating some problems with initialisation of the nouveau drm driver. (might also be a PCI-E problem)

This was not the case with 3.8.*-rt*.
The problem gone with 3.10.10-rt7 tested today.

In that case it was probably fixed by the stable series.

Quoted 9 lines

A lot of thanks!

Bernhard

PS:
Would it be much work to activate netconsole with rt-kernels? (I was ready to send some "real screenshots" of the probelm next days, but the problem gone :-) )

You could enable and check what explodes. I would assume the problem is somewhere around write_msg() :)

Sebastian

#3 lore raw
In reply to Sebastian Andrzej Siewior

29.08.2013, 22:42, "Sebastian Andrzej Siewior" <[email protected]>:

Quoted 11 lines

Dear RT folks!

I'm pleased to announce the v3.10.10-rt7 patch set.

Changes since v3.10.10-rt6
- hwlat compiles on 32bit (again). Reported by Fernando Lopez-Lezcano.
- bcache is disabled due to usage of anon semaphores. Anyone interrested in using it?
- "genirq affinity callback" are fixed. Reported by Joe Korty. There are two nics using this feature.
- Paul Gortmaker's swait rename patch has been included.

sparc does not have CONFIG_EARLY_PRINTK option.

So early-printk-consolidate.patch breaks compilation:

arch/sparc/built-in.o: In function `setup_arch':
(.init.text+0x15e4): undefined reference to early_console' arch/sparc/built-in.o: In function setup_arch':
(.init.text+0x15ec): undefined reference to `early_console'

The below addition fixes that.

---
 arch/sparc/Kconfig |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/sparc/Kconfig +4 -0
index 9ac9f16..6787bd3 100644
@@ -521,6 +521,10 @@ menu "Executable file formats"
 
 source "fs/Kconfig.binfmt"
 
+config EARLY_PRINTK
+	bool
+	default y
+
 config COMPAT
 	bool
 	depends on SPARC64

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 8 lines · * Kirill Tkhai | 2013-08-30 21:16:08 [+0400]:

sparc does not have CONFIG_EARLY_PRINTK option.

So early-printk-consolidate.patch breaks compilation:

arch/sparc/built-in.o: In function `setup_arch':
(.init.text+0x15e4): undefined reference to early_console' arch/sparc/built-in.o: In function setup_arch':
(.init.text+0x15ec): undefined reference to `early_console'

that is true and I applied that patch, thanks.
However with this alone you do not have a working RT on Sparc because you can't select "Fully Preemptible Kernel (RT)" only the "basic" system is available.

Sebastian

#5 lore raw

04.10.2013, 16:27, "Sebastian Andrzej Siewior" <[email protected]>:

Quoted 11 lines · * Kirill Tkhai | 2013-08-30 21:16:08 [+0400]:
Quoted 9 lines

sparc does not have CONFIG_EARLY_PRINTK option.

So early-printk-consolidate.patch breaks compilation:

arch/sparc/built-in.o: In function `setup_arch':
(.init.text+0x15e4): undefined reference to early_console' arch/sparc/built-in.o: In function setup_arch':
(.init.text+0x15ec): undefined reference to `early_console'

Quoted 4 lines

that is true and I applied that patch, thanks.
However with this alone you do not have a working RT on Sparc because you can't select "Fully Preemptible Kernel (RT)" only the "basic" system is available.

Yes, I now. I added IRQ_FORCED_THREADING to Kconfig. My hardware requires additional changes at arch/sparc and it's in a process of porting on 3.10 so I can't say if everything works on sparc or not yet.

The other required fix to make sparc64 compilable is deletion of rwsem leftovers. I sent it to mainline sparc:

https://git.kernel.org/cgit/linux/kernel/git/davem/sparc.git/commit/arch/sparc?id=61d9b9355b0d427bd1e732bd54628ff9103e496f

It seems it's resonable to add it to the patch too.

#6 lore raw
Quoted 3 lines · Kirill Tkhai

Yes, I now. I added IRQ_FORCED_THREADING to Kconfig. My hardware requires additional changes at arch/sparc and it's in a process of porting on 3.10 so I can't say if everything works on sparc or not yet.

So if you marked NMIs and so as non-threaded you can send this patch to Dave, too :)

Quoted 6 lines

The other required fix to make sparc64 compilable is deletion of rwsem leftovers. I sent it to mainline sparc:

https://git.kernel.org/cgit/linux/kernel/git/davem/sparc.git/commit/arch/sparc?id=61d9b9355b0d427bd1e732bd54628ff9103e496f

It seems it's resonable to add it to the patch too.

Since it is queued for mainline let me make your life easier and pick it up for -RT, too.

Sebastian

#7 lore raw

04.10.2013, 17:05, "Sebastian Andrzej Siewior" <[email protected]>:

Quoted 8 lines · Kirill Tkhai
Quoted 4 lines

 Yes, I now. I added IRQ_FORCED_THREADING to Kconfig. My hardware requires additional changes at arch/sparc and it's in a process of porting on 3.10 so I can't say if everything works on sparc or not yet.

So if you marked NMIs and so as non-threaded you can send this patch to Dave, too :)

It's not standard interrupt controller, so it's useless for mainline. It maybe, later we'll go to upstream, not ready for now.

Quoted 9 lines
Quoted 6 lines

 The other required fix to make sparc64 compilable is deletion of rwsem leftovers. I sent it to mainline sparc:

 https://git.kernel.org/cgit/linux/kernel/git/davem/sparc.git/commit/arch/sparc?id=61d9b9355b0d427bd1e732bd54628ff9103e496f

 It seems it's resonable to add it to the patch too.

Since it is queued for mainline let me make your life easier and pick it up for -RT, too.

Ok, thanks :)
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html