Re: irq6: nobody cared mystery interrupt in embedded kernel running on ARM9

2008-05-23 Thread Peter Teoh
On Fri, May 23, 2008 at 2:15 AM, ilya [EMAIL PROTECTED] wrote: Hello everyone, I am fairly new to kernel development and definitely very new to embedded kernel development; if this question does not belong on this list maybe you can direct me to the appropriate one... I have ARM

Re: irq6: nobody cared mystery interrupt in embedded kernel running on ARM9

2008-05-23 Thread Peter Teoh
not sure if useful or nothere is a list many different spurious interrupts and how it is handled: http://water.cse.unsw.edu.au/esdk/lpc2/spurious-irq.html -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL PROTECTED] Please read the FAQ at

Re: Effect of strace

2008-05-23 Thread Anupam Kapoor
Peerless Deepak [EMAIL PROTECTED] wrote: , | So I started the application with strace and captured the output using | a serial output. | But now the application which was frequently crashing without strace | , is not crashing. ` heisenbug anupam -- To unsubscribe from this list: send

NMI broadcast causes divide error?

2008-05-23 Thread Vegard Nossum
Hi, I am trying to broadcast an NMI like this: send_IPI_allbutself(NMI_VECTOR); But when I do this, I get a divide error: ... CPU: L1 I cache: 8K CPU: L2 cache: 128K CPU1: Intel Pentium II (Klamath) stepping 03 checking TSC synchronization [CPU#0 - CPU#1]: passed. Brought up 2 CPUs

Re: NMI broadcast causes divide error?

2008-05-23 Thread Vegard Nossum
On Fri, May 23, 2008 at 1:26 PM, Vegard Nossum [EMAIL PROTECTED] wrote: On Fri, May 23, 2008 at 12:43 PM, Vegard Nossum [EMAIL PROTECTED] wrote: Hi, I am trying to broadcast an NMI like this: send_IPI_allbutself(NMI_VECTOR); But when I do this, I get a divide error: ... CPU: L1 I

floating point used in kernel

2008-05-23 Thread Roberto A. Foglietta
Hi to all, I made a simple driver in which llseek go trough static loff_t my_lseek (struct file *file, loff_t offset, int orig) { switch (orig) { case SEEK_SET: break; case SEEK_CUR: offset += file-f_pos; break;

Re: floating point used in kernel

2008-05-23 Thread Carlo Bertoldi
Roberto A. Foglietta wrote, on the 23/05/2008 14.43: Hi to all, [...] floating point used in kernel I am developing in PPC arch and I would know why I fall in this trap and if I have be worried about it. Thanks in advance, This could help:

Re: floating point used in kernel

2008-05-23 Thread Roberto A. Foglietta
2008/5/23 Carlo Bertoldi [EMAIL PROTECTED]: Roberto A. Foglietta wrote, on the 23/05/2008 14.43: Hi to all, [...] floating point used in kernel I am developing in PPC arch and I would know why I fall in this trap and if I have be worried about it. Thanks in advance, This could

Re: floating point used in kernel

2008-05-23 Thread Roberto A. Foglietta
2008/5/23 Roberto A. Foglietta [EMAIL PROTECTED]: 2008/5/23 Carlo Bertoldi [EMAIL PROTECTED]: Roberto A. Foglietta wrote, on the 23/05/2008 14.43: Hi to all, [...] floating point used in kernel I am developing in PPC arch and I would know why I fall in this trap and if I have be

Re: NMI broadcast causes divide error?

2008-05-23 Thread Peter Teoh
It is not spamming, it is educationthank for the info. BTW...I think u gave me an idea now.. Currently your kmemcheck is restricted to only one CPU. Why not ALWAYS enable all the CPU to run at the same timeBUT WHEN AND ONLY WHEN read operation is detected on one

Re: any performance drawback to using mmap()?

2008-05-23 Thread Michael Blizek
Hi! On 09:45 Fri 23 May , Robert P. J. Day wrote: the scenario: a single-board computer (SBC) running linux, limited RAM, which opens a potentially very large regular or device file, then possibly hops all over the place processing the contents. currently, this processing uses

Re: NMI broadcast causes divide error?

2008-05-23 Thread Vegard Nossum
On Fri, May 23, 2008 at 4:55 PM, Peter Teoh [EMAIL PROTECTED] wrote: It is not spamming, it is educationthank for the info. BTW...I think u gave me an idea now.. Currently your kmemcheck is restricted to only one CPU. Why not ALWAYS enable all the CPU to run at the same

Fwd: Jumping to IA-32e / Long mode

2008-05-23 Thread tejas khatiwala
Hello, I'm working on a 32-bit BIOS program for some embedded system with 64-bit CPU and I'm trying to test 64-bit mode. The BIOS normally runs in 32-bit mode. It, however, needs to performs some test for the 64-bit mode. So the drill is to jump to Long mode, perform some test (for now, I just

Re: irq6: nobody cared mystery interrupt in embedded kernel running on ARM9

2008-05-23 Thread ilya
Hello, thank you for the information. The stack trace starts here: ./drivers/usb/gadget/file_storage.c: static int fsg_main_thread(void *fsg_) fsg-thread_task = kthread_create(fsg_main_thread, fsg, Looking at this: kernel/irq/spurious.c:int noirqdebug_setup(char *str)

Re: Jumping to IA-32e / Long mode

2008-05-23 Thread Peter Teoh
Does Linux made the transition from 16bit at bootup to 64bit? Or does it first go into 16bit-32bit-64bit? I am not sure On Sat, May 24, 2008 at 7:41 AM, tejas khatiwala [EMAIL PROTECTED] wrote: Hello, I'm working on a 32-bit BIOS program for some embedded system with 64-bit CPU and

Re: Effect of strace

2008-05-23 Thread Peter Teoh
mulyadi may be right..but anothere possibility was that the stracing introduced delays which made all the problem go away.ie, asynchronous operation between reader and writer..which appear as missing interrupt (check internet for this - many causes) bottomline is why not introduce

Re: Effect of strace

2008-05-23 Thread Peerless Deepak
On Sat, May 24, 2008 at 6:09 AM, Peter Teoh On Fri, May 23, 2008 at 10:09 PM, Peter Teoh [EMAIL PROTECTED] wrote: I like this joke! it is funny ahem ! i was kind of serious: http://en.wikipedia.org/wiki/Heisenbug anupam Ha ha ...Thanks for that link..Its real fun to know that. Its

Re: Install kernel headers

2008-05-23 Thread Peter Teoh
personally i think it should glibc header files, and anything userspace header files.kernel header files are for kernel modules and all things kerneland when u build userspace stuffit should not access anything kernel vice versacorrect me if wrong please :-) thanks... On Wed, May

Re: What do the noapic/nolapic kernel arguments do?

2008-05-23 Thread Peter Teoh
On Thu, May 22, 2008 at 1:43 AM, Mayank Kaushik [EMAIL PROTECTED] wrote: Hi everyone, I have been reading Chapter 9 of the Intel Processor Manuals, Vol 3A (System Programming Guide), which details the APIC. I have noticed that we often have to add the noapic and nolapic arguments to the

Re: What do the noapic/nolapic kernel arguments do?

2008-05-23 Thread Peter Teoh
On Sat, May 24, 2008 at 11:06 AM, Peter Teoh [EMAIL PROTECTED] wrote: On Thu, May 22, 2008 at 1:43 AM, Mayank Kaushik [EMAIL PROTECTED] wrote: Hi everyone, I have been reading Chapter 9 of the Intel Processor Manuals, Vol 3A (System Programming Guide), which details the APIC. I have noticed

Re: What do the noapic/nolapic kernel arguments do?

2008-05-23 Thread Peter Teoh
On Sat, May 24, 2008 at 11:12 AM, Peter Teoh [EMAIL PROTECTED] wrote: On Sat, May 24, 2008 at 11:06 AM, Peter Teoh [EMAIL PROTECTED] wrote: On Thu, May 22, 2008 at 1:43 AM, Mayank Kaushik [EMAIL PROTECTED] wrote: Hi everyone, I have been reading Chapter 9 of the Intel Processor Manuals, Vol