Re: How to control IRQ thread priority from inside the driver

2007-08-10 Thread Steven Rostedt
-- When I'm asked what language is my mother tongue, I simply answer C. On Fri, 10 Aug 2007, Remy Bohmer wrote: Hello Darren, Juergen and Ingo, Maybe Ingo can look at it, and find a way to implement it more generic? (In the softirq_info struct we could default set all prios back to 50, and

[PATCH 0/2] RT: Enhance PREEMPT_TRACE with deeper stacks

2007-08-10 Thread Gregory Haskins
This series changes the PREEMPT-TRACE behavior for reporting critical sections. The previous code reported 2 frames per section. The new code uses the save_stack_trace facility to save an arbitrary number of frames (currently set to 5 via a #define) For what its worth, these patches assisted me

megaraid_sas problems on rt

2007-08-10 Thread Arnaldo Carvalho de Melo
Hi, I've been experiencing problems with the megaraid_sas driver under some simple stress testing when using the rt patch. Simply running: cat /dev/sda /dev/null will after a while make the driver start sending this to the logs: sd 0:2:0:0: [sda] megasas: RESET -285224 cmd=28 retries=0

Re: How to control IRQ thread priority from inside the driver

2007-08-10 Thread Remy Bohmer
Hello Steven, Actually, the handler thread runs _all_ register interrupt handlers. So there's no way to make one a higher priority than the other. This is a tough problem. If you have two shared handlers on the same irq line, and think you can make one a higher priority than the other, you

Re: How to control IRQ thread priority from inside the driver

2007-08-10 Thread Remy Bohmer
Hello Steven, Perhaps adding in a new command line interface (We may need to extend the command line size limit). Where one could do irq_priority_map=10-51,21-40,... Where the first number is the irq number followed by the irq priority. We can also do something similar to softirqs. Would

Re: How to control IRQ thread priority from inside the driver

2007-08-10 Thread Remy Bohmer
Hello Darren, Juergen and Ingo, All I need is one IRQ at priority 51, all other can still run at 50. And I don't want to search at system's runtime for the right PID of driver's thread to set its priority via chrt. There is no user at this system, its an embedded one. It seems

[PATCH 1/2] Adds full stack to critical-section tracing

2007-08-10 Thread Gregory Haskins
--- include/linux/sched.h |7 +-- kernel/latency_trace.c | 18 +++--- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 8ebb43c..233d26c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@

Re: How to control IRQ thread priority from inside the driver

2007-08-10 Thread Steven Rostedt
-- On Fri, 10 Aug 2007, Remy Bohmer wrote: Hello Steven, Perhaps adding in a new command line interface (We may need to extend the command line size limit). Where one could do irq_priority_map=10-51,21-40,... Where the first number is the irq number followed by the irq priority. We