Skip to contentSkip to conversation

PREEMPT_RT support

DISCUSSION Darren Hart 3 participants 5 messages Dec 6, 2010 – Dec 7, 2010

lore
Share & tools
lore
#0 lore raw

I'm looking at how to best support PREEMPT_RT. We have a few things in the works which prevent the ideal scenario (which is just a new recipe using the preempt_rt branch in linux-yocto).

2.6.34 never had an -rt patch. The WR folks created one that builds and is undergoing review from tglx - but that doesn't appear to be near the top of his stack. 2.6.37 is still pending an -rt patch, also blocked on -tglx.

I'm thinking of creating a meta-rt layer which would provide a latest -rt kernel and the rt-tests suite along with a non-graphical image definition that facilitates latency detection and rt performance measurement. poky-image-rt-test or something along those lines.

Any objection to this approach? As we will eventually move these recipes into the core poky recipes, I'd suggest we put this in an "experimental/meta_rt" git repository.

Thoughts?

Signature · 2 lines
Darren Hart
Yocto Linux Kernel
#1 lore raw
Quoted 8 lines · Darren Hart

I'm looking at how to best support PREEMPT_RT. We have a few things in the works which prevent the ideal scenario (which is just a new recipe using the preempt_rt branch in linux-yocto).

2.6.34 never had an -rt patch. The WR folks created one that builds and is undergoing review from tglx - but that doesn't appear to be near the top of his stack. 2.6.37 is still pending an -rt patch, also blocked on -tglx.

We'll be doing one at WR eventually, so it will exist in one form or another for version > 2.6.34.

Quoted 9 lines

I'm thinking of creating a meta-rt layer which would provide a latest -rt kernel and the rt-tests suite along with a non-graphical image definition that facilitates latency detection and rt performance measurement. poky-image-rt-test or something along those lines.

Any objection to this approach? As we will eventually move these recipes into the core poky recipes, I'd suggest we put this in an "experimental/meta_rt" git repository.

I'm worrying about this muddying the water with respect to the -rt branches in the linux-yocto repositories. In particular if we go *backward* from the 2.6.34 variant that we already have (remember, that -rt kernel has been heavily abused for 9 months now and is just as stable (probably more so for non-x86) as anything else you'll find).

Why can't we continue to consolidate these into fewer kernels and recipes ? We can't share fixes and BSPs easily if everything is kept separate. We can obviously pair the tests/utilities along with the linux-yocto -rt branches, so I'd prefer that approach and continue to work on improving the base that we already have.

Cheers,

Bruce

Quoted 3 lines

Thoughts?

#2 lore raw
Quoted 30 lines · Bruce Ashfield
Quoted 8 lines · Darren Hart

I'm looking at how to best support PREEMPT_RT. We have a few things in the works which prevent the ideal scenario (which is just a new recipe using the preempt_rt branch in linux-yocto).

2.6.34 never had an -rt patch. The WR folks created one that builds and is undergoing review from tglx - but that doesn't appear to be near the top of his stack. 2.6.37 is still pending an -rt patch, also blocked on -tglx.

We'll be doing one at WR eventually, so it will exist in one form or another for version> 2.6.34.

Quoted 9 lines

I'm thinking of creating a meta-rt layer which would provide a latest -rt kernel and the rt-tests suite along with a non-graphical image definition that facilitates latency detection and rt performance measurement. poky-image-rt-test or something along those lines.

Any objection to this approach? As we will eventually move these recipes into the core poky recipes, I'd suggest we put this in an "experimental/meta_rt" git repository.

I'm worrying about this muddying the water with respect to the -rt branches in the linux-yocto repositories. In particular if we go *backward* from the 2.6.34 variant that we already have (remember, that -rt kernel has been heavily abused for 9 months now and is just as stable (probably more so for non-x86) as anything else you'll find).

Quoted 6 lines

Why can't we continue to consolidate these into fewer kernels and recipes ? We can't share fixes and BSPs easily if everything is kept separate. We can obviously pair the tests/utilities along with the linux-yocto -rt branches, so I'd prefer that approach and continue to work on improving the base that we already have.

I re-read this and my message really isn't clear. I like the approach. As we agreed before, that we need a separate recipe that highlights the -rt and builds from a known base. The tests and surrounding infrastructure are great, and we can have multiple sources for -rt goodness. I'm just suggesting that we use the 2.6.34 variant at least on a level playing field with the 2.6.33-rt, since our 2.6.34 can support all the official BSPs and features that have merged into the 0.9 kernel.

Cheers,

Bruce

Quoted 13 lines

Cheers,

Bruce

Quoted 3 lines

Thoughts?

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#3 lore raw
In reply to Bruce Ashfield
Quoted 5 lines · Bruce Ashfield
Quoted 4 lines · Darren Hart

I'm looking at how to best support PREEMPT_RT. We have a few things in the works which prevent the ideal scenario (which is just a new recipe using the preempt_rt branch in linux-yocto).

Quoted 7 lines
Quoted 4 lines

2.6.34 never had an -rt patch. The WR folks created one that builds and is undergoing review from tglx - but that doesn't appear to be near the top of his stack. 2.6.37 is still pending an -rt patch, also blocked on -tglx.

We'll be doing one at WR eventually, so it will exist in one form or another for version > 2.6.34.

My wording above wasn't quite right. tglx will be releasing a 2.6.37 -rt tree, that is committed. We're just waiting for it to emerge. There are a handful of reworks that will begin with 2.6.37 and may delay things some, but it will emerge.

Quoted 18 lines
Quoted 10 lines

I'm thinking of creating a meta-rt layer which would provide a latest -rt kernel and the rt-tests suite along with a non-graphical image definition that facilitates latency detection and rt performance measurement. poky-image-rt-test or something along those lines.

Any objection to this approach? As we will eventually move these recipes into the core poky recipes, I'd suggest we put this in an "experimental/meta_rt" git repository.

I'm worrying about this muddying the water with respect to the -rt branches in the linux-yocto repositories. In particular if we go *backward* from the 2.6.34 variant that we already have (remember, that -rt kernel has been heavily abused for 9 months now and is just as stable (probably more so for non-x86) as anything else you'll find).

Quoted 6 lines

Why can't we continue to consolidate these into fewer kernels and recipes ? We can't share fixes and BSPs easily if everything is kept separate. We can obviously pair the tests/utilities along with the linux-yocto -rt branches, so I'd prefer that approach and continue to work on improving the base that we already have.

Hrm. Perhaps my perception of the 2.6.34 kernel is flawed. I wasn't aware that this particular version of the patch had seen so much runtime. If that is the case, instead of an rt-layer, I'll just prepare an rt kernel recipe (as we discussed) using the linux-yocto kernel and add rt-tests. Both to the core poky meta dir.

I think it would still make sense to have a linux-rt_tip.bb, which builds from linux-2.6-tip.git/rt/head as a sort of developers kernel. Perhaps this would work well with the other dev recipes you have simmering?

Signature · 2 lines
Darren Hart
Yocto Linux Kernel
#4 lore raw
Quoted 13 lines · Darren Hart
Quoted 12 lines · Bruce Ashfield
Quoted 9 lines · Darren Hart

I'm looking at how to best support PREEMPT_RT. We have a few things in the works which prevent the ideal scenario (which is just a new recipe using the preempt_rt branch in linux-yocto).

2.6.34 never had an -rt patch. The WR folks created one that builds and is undergoing review from tglx - but that doesn't appear to be near the top of his stack. 2.6.37 is still pending an -rt patch, also blocked on -tglx.

Quoted 7 lines
Quoted 2 lines

We'll be doing one at WR eventually, so it will exist in one form or another for version > 2.6.34.

My wording above wasn't quite right. tglx will be releasing a 2.6.37 -rt tree, that is committed. We're just waiting for it to emerge. There are a handful of reworks that will begin with 2.6.37 and may delay things some, but it will emerge.

Right, I recall hearing that at the plumbers conference as well. I'd like to 'abstract' my statement such that, we can always consider doing ports if for some reason the upstream tree doesn't move or match the cadence. We've had to do a 2.6.27 and .34 custom -rt inside Wind River for just this reason.

Quoted 26 lines
Quoted 19 lines
Quoted 11 lines

I'm thinking of creating a meta-rt layer which would provide a latest -rt kernel and the rt-tests suite along with a non-graphical image definition that facilitates latency detection and rt performance measurement. poky-image-rt-test or something along those lines.

Any objection to this approach? As we will eventually move these recipes into the core poky recipes, I'd suggest we put this in an "experimental/meta_rt" git repository.

I'm worrying about this muddying the water with respect to the -rt branches in the linux-yocto repositories. In particular if we go *backward* from the 2.6.34 variant that we already have (remember, that -rt kernel has been heavily abused for 9 months now and is just as stable (probably more so for non-x86) as anything else you'll find).

Quoted 6 lines

Why can't we continue to consolidate these into fewer kernels and recipes ? We can't share fixes and BSPs easily if everything is kept separate. We can obviously pair the tests/utilities along with the linux-yocto -rt branches, so I'd prefer that approach and continue to work on improving the base that we already have.

Quoted 2 lines

Hrm. Perhaps my perception of the 2.6.34 kernel is flawed. I wasn't aware that this particular version of the patch had seen so much runtime. If that

It has been used a lot, even deployed in products, the stabilization was long running on about 15 or 20 targets. I'm confident that it has seen enough burn time

Quoted 3 lines

is the case, instead of an rt-layer, I'll just prepare an rt kernel recipe (as we discussed) using the linux-yocto kernel and add rt-tests. Both to the core poky meta dir.

This works, and we can update the -rt branches in the 2.6.34 based kernel to suit.

Cheers,

Bruce

Quoted 14 lines

I think it would still make sense to have a linux-rt_tip.bb, which builds from linux-2.6-tip.git/rt/head as a sort of developers kernel. Perhaps this would work well with the other dev recipes you have simmering?

--
Darren Hart
Yocto Linux Kernel
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"