Skip to contentSkip to conversation

Pc-freeze with kernel 2.6.26.5 under Ubuntu

Xenomai-help Fritschek Rick 2 participants 3 messages Oct 15, 2008 – Oct 16, 2008 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello

Like the topic, i am using Kernel 2.6.26.5(vanilla kernel) with the patch: adeos-ipipe-2.6.26-x86-2.0-13 and xenomai version 2.4.5. I followed the HowTo : http://www.xenomai.org/index.php/Xenomai_quick_build_quide .
Os is Ubuntu 8.04.

i've disabled this in .config
CONFIG_CPU_FREQ: This allows the CPU frequency to be modulated with workload, but many CPUs change the TSC counting frequency also, which makes it useless for accurate timing when the CPU clock can change. Also some CPUs can take several milliseconds to ramp up to full speed. CONFIG_APM: The APM model assigns power management control to the BIOS, and BIOS code is never written with RT-latency in mind. If configured, APM routines are invoked with SMI priority, which breaks the rule that adeos-ipipe must be in charge of such things. CONFIG_XENO_HW_SMI_WORKAROUND_* doesn't help here. CONFIG_ACPI_PROCESSOR: For systems with ACPI support in the BIOS, this ACPI sub-option installs an 'idle' handler that uses ACPI C2 and C3 processor states to save power. The CPU must 'warm-up' from these sleep states, increasing latency in ways dependent upon both the BIOS's ACPI tables and code. You may be able to suppress the sleeping with 'idle=poll' boot-arg, test to find out. With recents versions of Linux (probably starting around Linux 2.6.21), the acpi processor module disables the local APIC when loaded. This will cause Xenomai timer initialization to fail. This makes a second reason for disabling this option. CONFIG_INPUT_PCSPKR (only if i386 && kernel 2.6 && no TSC available): Collides with Xenomai's TSC emulation on oldish x86 systems. I've tried it with and without mtrr. (because i found something about freezes in xenomai with mtrr and xserver) but there are no changes.
My PC boot correct, but freezes randomly when the x-server ist started .
Sometimes in GDM when i want to login, sometimes in browser or when i just compile a new kernel.
It seems that there is no specific action , that causes the freeze.
And i dont know, how i can find out.
kern.log messages gave me no hint about the problem.

My question ist now, if there is any known problem, that causes such freezes with my configuration(kernel-xenomai-adeos versions). And if anybody maybe had something similar and knows already a solution for the problem.
Maybe ubuntu makes problems associated with vanilla kernel and xenomai.

I can post dmesg or .config  if you want.

regards

Rick

#1 lore raw
Quoted 40 lines · Fritschek Rick

Hello

Like the topic, i am using Kernel 2.6.26.5(vanilla kernel) with the patch:
adeos-ipipe-2.6.26-x86-2.0-13 and xenomai version 2.4.5.
I followed the HowTo : http://www.xenomai.org/index.php/Xenomai_quick_build_quide . Os is Ubuntu 8.04.

i've disabled this in .config

* CONFIG_CPU_FREQ: This allows the CPU frequency to be modulated with workload, but many CPUs change the TSC counting frequency also, which makes it useless for accurate timing when the CPU clock can change. Also some CPUs can take several milliseconds to ramp up to full speed.
* CONFIG_APM: The APM model assigns power management control to the BIOS, and BIOS code is never written with RT-latency in mind. If configured, APM routines are invoked with SMI priority, which breaks the rule that adeos-ipipe must be in charge of such things. CONFIG_XENO_HW_SMI_WORKAROUND_* doesn't help here.
* CONFIG_ACPI_PROCESSOR: For systems with ACPI support in the BIOS, this ACPI sub-option installs an 'idle' handler that uses ACPI C2 and C3 processor states to save power. The CPU must 'warm-up' from these sleep states, increasing latency in ways dependent upon both the BIOS's ACPI tables and code. You may be able to suppress the sleeping with 'idle=poll' boot-arg, test to find out. With recents versions of Linux (probably starting around Linux 2.6.21), the acpi processor module disables the local APIC when loaded. This will cause Xenomai timer initialization to fail. This makes a second reason for disabling this option.
* CONFIG_INPUT_PCSPKR (/only/ if i386 && kernel 2.6 && no TSC available):
Collides with Xenomai's TSC emulation on oldish x86 systems.

I've tried it with and without mtrr. (because i found something about freezes in xenomai with mtrr and xserver)
but there are no changes.
My PC boot correct, but freezes randomly when the x-server ist started . Sometimes in GDM when i want to login, sometimes in browser or when i just compile a new kernel.
It seems that there is no specific action , that causes the freeze. And i dont know, how i can find out.
kern.log messages gave me no hint about the problem.

Quoted 7 lines

My question ist now, if there is any known problem, that causes such freezes with my configuration(kernel-xenomai-adeos versions).
And if anybody maybe had something similar and knows already a solution for the problem.
Maybe ubuntu makes problems associated with vanilla kernel and xenomai.

I can post dmesg or .config if you want.

Both would help, ideally also a kernel log captured via serial console (in case there is some oops around the lock-up). Also, can you confirm that your system is not tained, only GPL drivers are involved? I'm specifically thinking of graphic drivers...

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

On Thu, 16 Oct 2008 15:16:54 +0200, Jan Kiszka wrote

Quoted 76 lines
Quoted 75 lines · Fritschek Rick

*Hello Jan

On Wed, 15 Oct 2008 16:44:58 +0200, Jan Kiszka wrote*
 > Fritschek Rick wrote:
 > > Hello
 > >
 > > Like the topic, i am using Kernel 2.6.26.5(vanilla kernel) with the patch:
 > > adeos-ipipe-2.6.26-x86-2.0-13 and xenomai version 2.4.5.
 > > I followed the HowTo :
http://www.xenomai.org/index.php/Xenomai_quick_build_quide .
 > > Os is Ubuntu 8.04.
 > >
 > > i've disabled this in .config
 > >
 > >     * CONFIG_CPU_FREQ: This allows the CPU frequency to be modulated with > >       workload, but many CPUs change the TSC counting frequency also, which > >       makes it useless for accurate timing when the CPU clock can change. Also > >       some CPUs can take several milliseconds to ramp up to full speed. > >     * CONFIG_APM: The APM model assigns power management control to the BIOS, > >       and BIOS code is never written with RT-latency in mind. If configured, APM
 > >       routines are invoked with SMI priority, which breaks the rule that > >       adeos-ipipe must be in charge of such things.
 > >       CONFIG_XENO_HW_SMI_WORKAROUND_* doesn't help here.
 > >     * CONFIG_ACPI_PROCESSOR: For systems with ACPI support in the BIOS, this > >       ACPI sub-option installs an 'idle' handler that uses ACPI C2 and C3 > >       processor states to save power. The CPU must 'warm-up' from these sleep > >       states, increasing latency in ways dependent upon both the BIOS's ACPI > >       tables and code. You may be able to suppress the sleeping with 'idle=poll'
 > >       boot-arg, test to find out. With recents versions of Linux (probably > >       starting around Linux 2.6.21), the acpi processor module disables the > >       local APIC when loaded. This will cause Xenomai timer initialization to > >       fail. This makes a second reason for disabling this option. > >     * CONFIG_INPUT_PCSPKR (/only/ if i386 && kernel 2.6 && no TSC available):
 > >       Collides with Xenomai's TSC emulation on oldish x86 systems. > >
 > > I've tried it with and without mtrr. (because i found something about freezes in
 > > xenomai with mtrr and xserver)
 > > but there are no changes.
 > > My PC boot correct, but freezes randomly when the x-server ist started . > > Sometimes in GDM when i want to login, sometimes in browser or when i just > > compile a new kernel.
 > > It seems that there is no specific action , that causes the freeze. > > And i dont know, how i can find out.
 > > kern.log messages gave me no hint about the problem.
 > >
 > > My question ist now, if there is any known problem, that causes such freezes > > with my configuration(kernel-xenomai-adeos versions).
 > > And if anybody maybe had something similar and knows already a solution for the
 > > problem.
 > > Maybe ubuntu makes problems associated with vanilla kernel and xenomai. > >
 > > I can post dmesg or .config  if you want.
 >
 > Both would help, ideally also a kernel log captured via serial console > (in case there is some oops around the lock-up). Also, can you confirm > that your system is not tained, only GPL drivers are involved? I'm > specifically thinking of graphic drivers...
 >
 > Jan
 >
 > --
 > Siemens AG, Corporate Technology, CT SE 2
 > Corporate Competence Center Embedded Linux

my .config :
http://webuser.hs-furtwangen.de/~rfrit/config.txt
my dmesg after systemstart:
http://webuser.hs-furtwangen.de/~rfrit/dmesg.txt
cat /proc/cpuinfo :
http://webuser.hs-furtwangen.de/~rfrit/cpuinfo.txt

Quoted 8 lines
Quoted 6 lines

i hope this helps :/

and xfce said, that im not using  proprietary drivers :/

dont know if i can check this :/

Absichtlich oder versehentlich off-list?

sorry , war versehentlich :/

Quoted 8 lines

However, danke soweit, sehe noch nichts. Bliebe die Frage, ob Du eine serielle Verbindung zur Kernel-Konsole aufbauen und ggf. die Meldungen beim Lockup einfangen kannst => linux/Documentation/serial-console.txt.

Weitere Testmechanismen: CONFIG_XENOMAI=n (nur IPIPE), CONFIG_IPIPE_DEBUG_CONTEXT, XENO_HW_NMI_DEBUG_LATENCY.

Quoted 8 lines

Antwort dann bitte wieder mit CC an die Liste.

Gruß,
Jan

--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

ok, i tried a few things...and now it seems, that there are no freezes anymore ( 2 hours no freeze )
there is one funny thing...in xfce ...the program for propritary drivers(under system->hardware drivers) says, that i'm using 'scsi low-level driver for ATA in ACPI mode' ...i deaktivated it(no tick in the box under aktive)  but it still says that it is in use . However..it seems , that the system is stable since i made this change.

so thanks for your advice with the drivers :D

regards

Rick