Skip to contentSkip to conversation

Preemptive Kernel and MPC8xx ???

DISCUSSION Steven Scholz 3 participants 11 messages Nov 23, 2003 – Nov 26, 2003

lore
Share & tools
lore
#1 lore raw

Hi,

Yes I do on 2.4.20 and 2.4.22 from kernel.org. So far all seems to work but didn't do any measurements on it.
(I both use the preempt and low-latency patches)

Jaap-Jan

Quoted 8 lines · Steven Scholz

Hi there,

is somebody actually using the preemptive kernel patches that can be found at

http://www.kernel.org/pub/linux/kernel/people/rml/preempt-kernel/v2.4/

Quoted 9 lines

on MPC8xx boards?

If so which kernel version?

Thanks a million!

Steven

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw

Hi,

Quoted 4 lines
Quoted 2 lines

is somebody actually using the preemptive kernel patches ...

Yes I do on 2.4.20 and 2.4.22 from kernel.org. So far all seems to work but didn't do any measurements on it.

So you're using vanilla 2.4.22 on your MPC8xx board!?

Quoted 1 line

(I both use the preempt and low-latency patches)

Sound interessting.
Could you please give me a link to find the mentioned "low-latency patches".

Thanks,

Steven

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 7 lines · Steven Scholz

Hi,

Quoted 4 lines
Quoted 2 lines

is somebody actually using the preemptive kernel patches ...

Yes I do on 2.4.20 and 2.4.22 from kernel.org. So far all seems to work but didn't do any measurements on it.

So you're using vanilla 2.4.22 on your MPC8xx board!?

yes, am I stupid?

Currently I use smc uart, scc ethernet and a modified cpm_spi driver (from the great Denx) with interrupt handling, my 850 board boots ok from nfsroot

Quoted 4 lines
Quoted 2 lines

(I both use the preempt and low-latency patches)

Sound interessting.
Could you please give me a link to find the mentioned "low-latency patches".

it comes from Andrew Morton's page
http://www.zip.com.au/~akpm/linux/schedlat.html

I you have to enable this by hand in arch/ppc/config.in (look at arch/i386/config.in) with

bool 'Low latency scheduling' CONFIG_LOLAT
dep_bool 'Control low latency with sysctl' CONFIG_LOLAT_SYSCTL $CONFIG_LOLAT

Quoted 4 lines

Thanks,

Steven

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#4 lore raw

Hi,m

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

is somebody actually using the preemptive kernel patches ...

Yes I do on 2.4.20 and 2.4.22 from kernel.org. So far all seems to work but didn't do any measurements on it.

So you're using vanilla 2.4.22 on your MPC8xx board!?

yes, am I stupid?

NO! I nerver said that!
I just didn't know that vanilla 2.4.22 from kernel.org is now stable enough w.r.t. MPC8xx.

Quoted 4 lines
Quoted 1 line

Could you please give me a link to find the mentioned "low-latency patches".

it comes from Andrew Morton's page
http://www.zip.com.au/~akpm/linux/schedlat.html

Thanks a million.

Good luck,

Steven

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#5 lore raw
In reply to Jaap-Jan Boor
Quoted 3 lines · Jaap-Jan Boor

Yes I do on 2.4.20 and 2.4.22 from kernel.org. So far all seems to work but didn't do any measurements on it.
(I both use the preempt and low-latency patches)

AFAIK, you can pretty much drop the low-latency patch in favor of using the lock-breaking patch. It is also available from Robert Love at the cited home page.

Marius

--
Marius Groeger <[email protected]>
Project Manager

SYSGO Real-Time Solutions AG | Embedded and Real-Time Software Am Pfaffenstein 14
55270 Klein-Winternheim, Germany

Voice: +49-6136-9948-0 | FAX: +49-6136-9948-10
www.sysgo.de | www.elinos.com | www.osek.de

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#6 lore raw
Quoted 10 lines · Marius Groeger
Quoted 3 lines · Jaap-Jan Boor

Yes I do on 2.4.20 and 2.4.22 from kernel.org. So far all seems to work but didn't do any measurements on it.
(I both use the preempt and low-latency patches)

AFAIK, you can pretty much drop the low-latency patch in favor of using the lock-breaking patch. It is also available from Robert Love at the cited home page.

Yes, thanks, I know.
Is it better? I thought both low-latency and lock-break do more or less the same.

Jaap-Jan

Quoted 7 lines

Marius

--
Marius Groeger <[email protected]>
Project Manager

Quoted 7 lines

SYSGO Real-Time Solutions AG | Embedded and Real-Time Software Am Pfaffenstein 14
55270 Klein-Winternheim, Germany

Voice: +49-6136-9948-0 | FAX: +49-6136-9948-10
www.sysgo.de | www.elinos.com | www.osek.de

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#7 lore raw
In reply to Marius Groeger

Hi,

Quoted 5 lines · Jaap-Jan Boor
Quoted 4 lines

Yes I do on 2.4.20 and 2.4.22 from kernel.org. So far all seems to work but didn't do any measurements on it.
(I both use the preempt and low-latency patches)

Have you writting your own device drivers?
How did you make them preemptable?

Quoted 3 lines · Marius Groeger

AFAIK, you can pretty much drop the low-latency patch in favor of using the lock-breaking patch. It is also available from Robert Love at the cited home page.

How about homemade device drivers when using the lock-breaking patch?

Thanks!

--
Steven Scholz

imc Measurement & Control               imc Meßsysteme GmbH
Voltastr. 5                             Voltastr. 5
13355 Berlin                            13355 Berlin
Germany                                 Deutschland
fon: +49 30 467090-0                    Tel: 030 / 467090-0
fax: +49 30 4631576                     fax: 030 / 4631576

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#8 lore raw
Quoted 9 lines · Steven Scholz

Hi,

Quoted 5 lines · Jaap-Jan Boor
Quoted 4 lines

Yes I do on 2.4.20 and 2.4.22 from kernel.org. So far all seems to work but didn't do any measurements on it.
(I both use the preempt and low-latency patches)

Have you writting your own device drivers?
How did you make them preemptable?

I didn't... I still assume the kernel will lock
e.g. the same SIU irq

Quoted 12 lines
Quoted 3 lines · Marius Groeger

AFAIK, you can pretty much drop the low-latency patch in favor of using the lock-breaking patch. It is also available from Robert Love at the cited home page.

How about homemade device drivers when using the lock-breaking patch?

Thanks!

--
Steven Scholz

Quoted 8 lines
imc Measurement & Control               imc Meßsysteme GmbH
Voltastr. 5                             Voltastr. 5
13355 Berlin                            13355 Berlin
Germany                                 Deutschland
fon: +49 30 467090-0                    Tel: 030 / 467090-0
fax: +49 30 4631576                     fax: 030 / 4631576

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#9 lore raw
In reply to Marius Groeger
Quoted 3 lines · Marius Groeger

AFAIK, you can pretty much drop the low-latency patch in favor of using the lock-breaking patch. It is also available from Robert Love at the cited home page.

Rob Love wrote me:

Quoted 8 lines
Quoted 2 lines

Is it correct that your lock-break does basicly the same as Andrew Morton's low-latency patches? Where is the big difference?

Yes, basically the same thing. Lock-break is a version of low-latency that is "optimized" for use with the preemptive kernel.

You might as well just use low-latency, as Andrew is keeping that more up to date.

And that's what I noticed when looking and the download pages...

That leaves three options:

Quoted 3 lines

(a) Use only preempt-kernel
(b) Use only low-latency
(c) Use preempt-kernel + low-latency

Right?

--
Steven Scholz

imc Measurement & Control               imc Meßsysteme GmbH
Voltastr. 5                             Voltastr. 5
13355 Berlin                            13355 Berlin
Germany                                 Deutschland
fon: +49 30 467090-0                    Tel: 030 / 467090-0
fax: +49 30 4631576                     fax: 030 / 4631576

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#10 lore raw
Quoted 19 lines · Steven Scholz
Quoted 3 lines · Marius Groeger

AFAIK, you can pretty much drop the low-latency patch in favor of using the lock-breaking patch. It is also available from Robert Love at the cited home page.

Rob Love wrote me:

Quoted 8 lines
Quoted 2 lines

Is it correct that your lock-break does basicly the same as Andrew Morton's low-latency patches? Where is the big difference?

Yes, basically the same thing. Lock-break is a version of low-latency that is "optimized" for use with the preemptive kernel.

You might as well just use low-latency, as Andrew is keeping that more up to date.

And that's what I noticed when looking and the download pages...

Quoted 7 lines

That leaves three options:

Quoted 3 lines

(a) Use only preempt-kernel
(b) Use only low-latency
(c) Use preempt-kernel + low-latency

Right?

Yes, I use (c)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/