Skip to contentSkip to conversation

v5.16-rc6-rt12

ANNOUNCE Sebastian Andrzej Siewior 4 participants 7 messages Dec 23, 2021 – Jan 25, 2022

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

Dear RT folks!

I'm pleased to announce the v5.16-rc6-rt12 patch set.

Changes since v5.16-rc6-rt11:

- The timer_threads struct has been made static. Reported by kernel test robot.

- The networking patches have been redone. They look different now and hopefully more attractive to upstream.

- The "Memory controller" (CONFIG_MEMCG) can be enabled again.

Known issues
- netconsole triggers WARN.

- Valentin Schneider reported a few splats on ARM64, see
https://lkml.kernel.org/r/[email protected]

The delta patch against v5.16-rc6-rt11 is appended below and can be found here:

     https://cdn.kernel.org/pub/linux/kernel/projects/rt/5.16/incr/patch-5.16-rc6-rt11-rt12.patch.xz

You can get this release via the git tree at:

    git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git v5.16-rc6-rt12

The RT patch against v5.16-rc6 can be found here:

    https://cdn.kernel.org/pub/linux/kernel/projects/rt/5.16/older/patch-5.16-rc6-rt12.patch.xz

The split quilt queue is available at:

    https://cdn.kernel.org/pub/linux/kernel/projects/rt/5.16/older/patches-5.16-rc6-rt12.tar.xz

Sebastian

include/linux/netdevice.h +11 -2
index be5cb3360b944..5566dbc7eacd6 100644
@@ -4003,8 +4003,17 @@ u32 bpf_prog_run_generic_xdp(struct sk_buff *skb, struct xdp_buff *xdp,
 void generic_xdp_tx(struct sk_buff *skb, struct bpf_prog *xdp_prog);
 int do_xdp_generic(struct bpf_prog *xdp_prog, struct sk_buff *skb);
 int netif_rx(struct sk_buff *skb);
-int netif_rx_ni(struct sk_buff *skb);
-int netif_rx_any_context(struct sk_buff *skb);
+
+static inline int netif_rx_ni(struct sk_buff *skb)
+{
+	return netif_rx(skb);
+}
+
+static inline int netif_rx_any_context(struct sk_buff *skb)
+{
+	return netif_rx(skb);
+}
+
 int netif_receive_skb(struct sk_buff *skb);
 int netif_receive_skb_core(struct sk_buff *skb);
 void netif_receive_skb_list(struct list_head *head);
include/linux/skbuff.h +0 -7
index cb011f4d0b5dc..c8cb7e697d479 100644
@@ -297,7 +297,6 @@ struct sk_buff_head {
 
 	__u32		qlen;
 	spinlock_t	lock;
-	raw_spinlock_t	raw_lock;
 };
 
 struct sk_buff;
@@ -1954,12 +1953,6 @@ static inline void skb_queue_head_init(struct sk_buff_head *list)
 	__skb_queue_head_init(list);
 }
 
-static inline void skb_queue_head_init_raw(struct sk_buff_head *list)
-{
-	raw_spin_lock_init(&list->raw_lock);
-	__skb_queue_head_init(list);
-}
-
 static inline void skb_queue_head_init_class(struct sk_buff_head *list,
 		struct lock_class_key *class)
 {
include/trace/events/net.h +0 -14
index 78c448c6ab4c5..032b431b987b6 100644
@@ -260,13 +260,6 @@ DEFINE_EVENT(net_dev_rx_verbose_template, netif_rx_entry,
 	TP_ARGS(skb)
 );
 
-DEFINE_EVENT(net_dev_rx_verbose_template, netif_rx_ni_entry,
-
-	TP_PROTO(const struct sk_buff *skb),
-
-	TP_ARGS(skb)
-);
-
 DECLARE_EVENT_CLASS(net_dev_rx_exit_template,
 
 	TP_PROTO(int ret),
@@ -312,13 +305,6 @@ DEFINE_EVENT(net_dev_rx_exit_template, netif_rx_exit,
 	TP_ARGS(ret)
 );
 
-DEFINE_EVENT(net_dev_rx_exit_template, netif_rx_ni_exit,
-
-	TP_PROTO(int ret),
-
-	TP_ARGS(ret)
-);
-
 DEFINE_EVENT(net_dev_rx_exit_template, netif_receive_skb_list_exit,
 
 	TP_PROTO(int ret),
init/Kconfig +0 -1
index d671799c5f377..4b7bac10c72d3 100644
@@ -943,7 +943,6 @@ config PAGE_COUNTER
 
 config MEMCG
 	bool "Memory controller"
-	depends on !PREEMPT_RT
 	select PAGE_COUNTER
 	select EVENTFD
 	help
kernel/softirq.c +1 -1
index d685519962e5a..22948c2109f5b 100644
@@ -1029,7 +1029,7 @@ void raise_timer_softirq(void)
 }
 #endif
 
-struct smp_hotplug_thread timer_threads = {
+static struct smp_hotplug_thread timer_threads = {
         .store                  = &timersd,
         .setup                  = timersd_setup,
         .thread_should_run      = timersd_should_run,
localversion-rt +1 -1
index 05c35cb580779..6e44e540b927b 100644
@@ -1 +1 @@
--rt11
+-rt12
mm/memcontrol.c +172 -73

566 lines not on this page · raw message

net/core/dev.c +49 -65

231 lines not on this page · raw message

#1 lore raw
Quoted 5 lines · Sebastian Andrzej Siewior

Dear RT folks!

I'm pleased to announce the v5.16-rc6-rt12 patch set.

Changes since v5.16-rc6-rt11:

...

Quoted 1 line

  - The "Memory controller" (CONFIG_MEMCG) can be enabled again.

FWIW, LTP testcases pass on rpi4 and x86_64 boxen with no gripeage. Full LTP with maximally bloated config was as uninteresting as one can hope for.

#2 lore raw
Quoted 5 lines · Mike Galbraith
Quoted 4 lines · Sebastian Andrzej Siewior

Dear RT folks!

I'm pleased to announce the v5.16-rc6-rt12 patch set.

Quoted 7 lines
Quoted 1 line

Changes since v5.16-rc6-rt11:

...

Quoted 1 line

  - The "Memory controller" (CONFIG_MEMCG) can be enabled again.

FWIW, LTP testcases pass on rpi4 and x86_64 boxen with no gripeage. Full LTP with maximally bloated config was as uninteresting as one can hope for.

Okay, thank you. I'm going to add an reference to your mail in case someone asks.

Sebastian

#3 lore raw
In reply to Mike Galbraith
Quoted 6 lines · EST you
Quoted 5 lines · Sebastian Andrzej Siewior

Dear RT folks!

I'm pleased to announce the v5.16-rc6-rt12 patch set.

Changes since v5.16-rc6-rt11:

Quoted 8 lines

...

Quoted 1 line

- The "Memory controller" (CONFIG_MEMCG) can be enabled again.

FWIW, LTP testcases pass on rpi4 and x86_64 boxen with no gripeage. Full LTP with maximally bloated config was as uninteresting as one can hope for.
.

Unforch and after many try's, I can't get it to reboot when installed, sorta, on an rpi4b.

I say sorta, because no matter how many times I rebuild it, the build does not generate an arch/arm/boot/dts/overlays directory. The build itself is error free.

The raspi kernel build instructions from their somewhat dated wiki also say to use the bcm2711_defconfig, but it does not now exist in a git clone. And a hwinfo of the rpi4b says I should use the bcm2835_defconfig for a starter .config.

Is there any hope of making this work?

I have been using a 4.19 rt-preempt I built on a rpi4 running buster, driving 3/4 ton of 75 yo Sheldon lathe, and now I'm trying to help a guy at the west end of the country rig an rpi4b to run a good sized cinci mill. The pi4 has more than enough power to run LinuxCNC.

Thanks for any guidance.

Cheers, Gene Heskett.

Signature · 6 lines
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
#4 lore raw
Quoted 23 lines · gene heskett
Quoted 6 lines · EST you
Quoted 5 lines · Sebastian Andrzej Siewior

Dear RT folks!

I'm pleased to announce the v5.16-rc6-rt12 patch set.

Changes since v5.16-rc6-rt11:

Quoted 8 lines

...

Quoted 1 line

  - The "Memory controller" (CONFIG_MEMCG) can be enabled again.

FWIW, LTP testcases pass on rpi4 and x86_64 boxen with no gripeage. Full LTP with maximally bloated config was as uninteresting as one can hope for.
.

Unforch and after many try's, I can't get it to reboot when installed, sorta, on an rpi4b.

I say sorta, because no matter how many times I rebuild it, the build does not generate an arch/arm/boot/dts/overlays directory.  The build itself is error free.

Quoted 6 lines

The raspi kernel build instructions from their somewhat dated wiki also say to use the bcm2711_defconfig, but it does not now exist in a git clone. And a hwinfo of the rpi4b says I should use the bcm2835_defconfig for a starter .config.

Is there any hope of making this work?

Sure. Given bcm2711_defconfig is missing, sounds like you're trying to build patched up kernel.org source. You can do that, works fine for me, and I know jack diddly spit about cute little arm gizmos ;-) but you're better off patching up source from...

git clone https://github.com/raspberrypi/linux.git

...instead, which has a large pile of not yet upstreamed rpi patches. Just checkout the rpi-5.16.y branch and apply the 5.16-rt patch set. There you'll find that bcm2711_defconfig you were looking for.

I build on my desktop box, rpi4 being every bit as fast as you'd expect something that dinky to be, then nfs mount from rpi4 and sudo make modules_install dtbs_install install. Edit /boot/config.txt, reboot, and presto, you too will be ready to have any unrealistic x86_64 based expectations you may have thoroughly dashed by cyclictest numbers :)

-Mike

#5 lore raw
Quoted 43 lines · Mike Galbraith
Quoted 23 lines · gene heskett
Quoted 6 lines · EST you
Quoted 5 lines · Sebastian Andrzej Siewior

Dear RT folks!

I'm pleased to announce the v5.16-rc6-rt12 patch set.

Changes since v5.16-rc6-rt11:

Quoted 8 lines

...

Quoted 1 line

- The "Memory controller" (CONFIG_MEMCG) can be enabled again.

FWIW, LTP testcases pass on rpi4 and x86_64 boxen with no gripeage. Full LTP with maximally bloated config was as uninteresting as one can hope for.
.

Unforch and after many try's, I can't get it to reboot when installed, sorta, on an rpi4b.

I say sorta, because no matter how many times I rebuild it, the build does not generate an arch/arm/boot/dts/overlays directory. The build itself is error free.

Quoted 6 lines

The raspi kernel build instructions from their somewhat dated wiki also say to use the bcm2711_defconfig, but it does not now exist in a git clone. And a hwinfo of the rpi4b says I should use the bcm2835_defconfig for a starter .config.

Is there any hope of making this work?

Sure. Given bcm2711_defconfig is missing, sounds like you're trying to build patched up kernel.org source. You can do that, works fine for me, and I know jack diddly spit about cute little arm gizmos ;-) but you're better off patching up source from...

git clone https://github.com/raspberrypi/linux.git

...instead, which has a large pile of not yet upstreamed rpi patches. Just checkout the rpi-5.16.y branch and apply the 5.16-rt patch set. There you'll find that bcm2711_defconfig you were looking for.

Quoted 7 lines

I build on my desktop box, rpi4 being every bit as fast as you'd expect something that dinky to be, then nfs mount from rpi4 and sudo make modules_install dtbs_install install. Edit /boot/config.txt, reboot, and presto, you too will be ready to have any unrealistic x86_64 based expectations you may have thoroughly dashed by cyclictest numbers :)

-Mike

Based on Mike's excellent advice earlier this month, I got 5.10 running nicely on a pi 4 with the RT patchset.
https://github.com/frc971/linux/tree/frc971-5.10-pi4-rt is our tree. We are using it for running 2 khz estimation algorithms for robots. I picked the current stable kernel version in the released rootfs instead of being as adventurous as Mike and running a newer kernel.

There's a pretty good howto from the raspberry pi folks about how to build a kernel which I used to deploy it.
https://www.raspberrypi.com/documentation/computers/linux_kernel.html#cross-compiling-the-kernel

Austin

#6 lore raw
In reply to Mike Galbraith
Quoted 44 lines · EST you
Quoted 25 lines · gene heskett
Quoted 8 lines · EST you
Quoted 5 lines · Sebastian Andrzej Siewior

Dear RT folks!

I'm pleased to announce the v5.16-rc6-rt12 patch set.

Changes since v5.16-rc6-rt11:

...

Quoted 7 lines
Quoted 1 line

- The "Memory controller" (CONFIG_MEMCG) can be enabled again.

FWIW, LTP testcases pass on rpi4 and x86_64 boxen with no gripeage. Full LTP with maximally bloated config was as uninteresting as one can
hope for.
.

Unforch and after many try's, I can't get it to reboot when installed,
sorta, on an rpi4b.

I say sorta, because no matter how many times I rebuild it, the build does not generate an arch/arm/boot/dts/overlays directory. The build itself is error free.

Quoted 6 lines

The raspi kernel build instructions from their somewhat dated wiki also say to use the bcm2711_defconfig, but it does not now exist in a git clone. And a hwinfo of the rpi4b says I should use the bcm2835_defconfig for a starter .config.

Is there any hope of making this work?

Sure. Given bcm2711_defconfig is missing, sounds like you're trying to build patched up kernel.org source. You can do that, works fine for me, and I know jack diddly spit about cute little arm gizmos ;-) but you're better off patching up source from...

git clone https://github.com/raspberrypi/linux.git

...instead, which has a large pile of not yet upstreamed rpi patches. Just checkout the rpi-5.16.y branch and apply the 5.16-rt patch set. There you'll find that bcm2711_defconfig you were looking for.

Quoted 5 lines

I build on my desktop box, rpi4 being every bit as fast as you'd expect something that dinky to be, then nfs mount from rpi4 and sudo make modules_install dtbs_install install. Edit /boot/config.txt, reboot, and presto, you too will be ready to have any unrealistic x86_64 based expectations you may have thoroughly dashed by cyclictest numbers :)

And after the reboot, its still running the old kernel, so I must have edited config.txt wrong. Or the bare install miss-fired. IDK.

And I can't ssh into it, sshd isn't running, and raspi-config has disappeared. That is normally where I start it once and forever. But I did find it in the gui menu. Started ssh, rebooted.
ssh -y pi@rpi4, figure out the keys, log in, mkdir /mnt/sdb1 mount it, cp arm.src/apt-stf/linux/arch/arm/boot/zImage to boot/kernel7l- rt, edit /boot/config.txt to spec that name, reboot.

log back in and a uname -a now says:
Linux rpi4 5.16.2-rt19-rt19-v7l+ #3 SMP PREEMPT_RT Tue Jan 25 01:14:16 EST 2022 armv7l GNU/Linux

I think I've hit a lick!

So thank you very much Mike. Now to do it 2x more for Dave Engvall, 3000 miles west of me, out in the puckerbrush of Wash state. He has a cinci mill he wants to run with a rpi4b.

But first, since this is my card, not his, recover the /home/pi/linuxcnc directory and install the 4 debs of master I built earlier this after noon and see how linuxcnc runs now. At this point my grin is so wide I'll need a bigger brain bucket to go riding...

Quoted 2 lines

-Mike
.

Cheers, Gene Heskett.

Signature · 6 lines
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>