RE: interrupt/tasklet issue in custom driver on recent kernels

2009-09-29 Thread Kodel Oleg
: kernelnewbies@nl.linux.org Subject: Re: interrupt/tasklet issue in custom driver on recent kernels For posterity, I've finally solved this issue. It ended up having nothing to do with the interrupts/tasklets themselves. The driver uses ioremap() to get hold of some reserved memory, and it seems

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-28 Thread Peter Teoh
On Mon, Sep 28, 2009 at 11:10 AM, Mulyadi Santosa wrote: > On Mon, Sep 28, 2009 at 2:32 PM, Jason Nymble wrote: >> 2.6.25 Changelog : >> commit 9af993a92623e022c176459fa6607a564b9a7eaf >> Author: Ingo Molnar >> Date:   Wed Jan 30 13:34:09 2008 +0100 >> >>    x86: make ioremap() UC by default >>

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-28 Thread Mulyadi Santosa
On Mon, Sep 28, 2009 at 2:32 PM, Jason Nymble wrote: > 2.6.25 Changelog : > commit 9af993a92623e022c176459fa6607a564b9a7eaf > Author: Ingo Molnar > Date:   Wed Jan 30 13:34:09 2008 +0100 > >    x86: make ioremap() UC by default > >    Yes! A mere 120 c_p_a() fixing and rewriting patches later, >

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-28 Thread Jason Nymble
2.6.25 Changelog : commit 9af993a92623e022c176459fa6607a564b9a7eaf Author: Ingo Molnar Date: Wed Jan 30 13:34:09 2008 +0100 x86: make ioremap() UC by default Yes! A mere 120 c_p_a() fixing and rewriting patches later, we are now confident that we can enable UC by default for i

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-27 Thread Peter Teoh
just learned something new: cacheline ping pong. http://everything2.com/index.pl?node_id=1382347 http://lwn.net/Articles/176024/ and the details is perhaps best described here: http://www.patentstorm.us/patents/5713004/claims.html what happened is the write-back/through cacheline control is i

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-26 Thread Peter Teoh
On Sun, Sep 27, 2009 at 1:48 AM, Mulyadi Santosa wrote: > Hi > > On 9/26/09, Peter Teoh wrote: >> sorry for being a busy body:-)but hope i can contribute my 2cts... >> >> On Fri, Sep 25, 2009 at 12:54 PM, Mulyadi Santosa >> wrote: >>> On 9/25/09, Jason Nymble wrote: For posteri

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-26 Thread Mulyadi Santosa
Hi On 9/26/09, Peter Teoh wrote: > sorry for being a busy body:-)but hope i can contribute my 2cts... > > On Fri, Sep 25, 2009 at 12:54 PM, Mulyadi Santosa > wrote: >> On 9/25/09, Jason Nymble wrote: >>> For posterity, I've finally solved this issue. It ended up having >>> nothing t

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-25 Thread Peter Teoh
sorry for being a busy body:-)but hope i can contribute my 2cts... On Fri, Sep 25, 2009 at 12:54 PM, Mulyadi Santosa wrote: > On 9/25/09, Jason Nymble wrote: >> For posterity, I've finally solved this issue. It ended up having >> nothing to do with the interrupts/tasklets themselves. The

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-25 Thread Mulyadi Santosa
On 9/25/09, Jason Nymble wrote: > For posterity, I've finally solved this issue. It ended up having > nothing to do with the interrupts/tasklets themselves. The driver uses > ioremap() to get hold of some reserved memory, and it seems from about > 2.6.25 onwards or so this defaults to ioremap_noca

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-25 Thread Jason Nymble
For posterity, I've finally solved this issue. It ended up having nothing to do with the interrupts/tasklets themselves. The driver uses ioremap() to get hold of some reserved memory, and it seems from about 2.6.25 onwards or so this defaults to ioremap_nocache(), so our driver was doing me

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-09 Thread Peter Teoh
How about this: use "top" to confirm which process is the one causing the 100% CPU utilization? Then enter "echo t > /proc/sysrq-trigger" to generate a stack trace dump of all the kernel threads. It should overflow your dmesg buffer, so look into /var/log/messages for the complete trace. And i

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-09 Thread Jason Nymble
On 09 Sep 2009, at 3:47 PM, Mulyadi Santosa wrote: Hi Jason... On Wed, Sep 9, 2009 at 3:39 PM, Jason Nymble wrote: Hi, Background: We use a custom kernel driver module for our PCIe device which processes bulk data between the host and the card. The card issues MSI interrupts at up to 2

Re: interrupt/tasklet issue in custom driver on recent kernels

2009-09-09 Thread Mulyadi Santosa
Hi Jason... On Wed, Sep 9, 2009 at 3:39 PM, Jason Nymble wrote: > Hi, > > Background: We use a custom kernel driver module for our PCIe device which > processes bulk data between the host and the card. The card issues MSI > interrupts at up to 20kHz to the host, and the driver interrupt routine >