Re: Finding the interrupt vector of a given IRQ

2012-10-19 Thread Arun KS
Hi Anish, On Sat, Oct 20, 2012 at 9:38 AM, anish kumar wrote: > On Fri, 2012-10-19 at 10:34 +0530, Arun KS wrote: > > Hi Anish, > > > > On Mon, May 28, 2012 at 9:16 AM, anish singh > > wrote: > > On Mon, May 28, 2012 at 2:57 AM, richard -rw- weinberger > > wrote: > > > O

Re: Finding the interrupt vector of a given IRQ

2012-10-19 Thread anish kumar
On Fri, 2012-10-19 at 10:34 +0530, Arun KS wrote: > Hi Anish, > > On Mon, May 28, 2012 at 9:16 AM, anish singh > wrote: > On Mon, May 28, 2012 at 2:57 AM, richard -rw- weinberger > wrote: > > On Sun, May 27, 2012 at 2:02 AM, Mark Farnell > wrote: > >> In

Re: where are the bug ?

2012-10-19 Thread Fan Yang
2012/10/19 Rohan Puri > > > On Fri, Oct 19, 2012 at 7:38 PM, Anuz Pratap Singh Tomar < > chambilketha...@gmail.com> wrote: > >> >> >> On Fri, Oct 19, 2012 at 2:46 PM, Fan Yang wrote: >> >>> >>> >>> 2012/10/19 Arun KS >>> > >>> > Hi Fan, >>> > >>> > On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang >>>

Re: where are the bug ?

2012-10-19 Thread Fan Yang
2012/10/19 Anuz Pratap Singh Tomar > > > On Fri, Oct 19, 2012 at 2:46 PM, Fan Yang wrote: > >> >> >> 2012/10/19 Arun KS >> > >> > Hi Fan, >> > >> > On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang wrote: >> >> >> >> HI ALL: >> >> I just run a module on my machine, but it can't work. When the >>

Re: if flush_scheduled_work() is allegedly overkill, why do drivers use it?

2012-10-19 Thread Robert P. J. Day
On Fri, 19 Oct 2012, Greg Freemyer wrote: > I saw a thread about disk i/o that may relate. At least with disk > buffers in the block layer, it appeared it was an all or nothing > situation for flushing the queues. So if a upper level wanted to > ensure write A completed prior to write B, the onl

Re: What rationale behind physical and virtual kernel memory layout ?

2012-10-19 Thread telenn barz
Hello Arun, Thanks for answering. On Fri, Oct 19, 2012 at 3:33 PM, Arun KS wrote: > > On Fri, Oct 19, 2012 at 3:03 PM, telenn barz wrote: > >> >> Q: In the 4G/4G split case, I don't see why we have to necessarily flush >> the TLB when switching from user-space to kernel-space ? Why the TLB >> c

Re: Query on CodingStyle: indentation

2012-10-19 Thread Greg Freemyer
On Fri, Oct 19, 2012 at 5:00 AM, Kumar amit mehta wrote: > On Fri, Oct 19, 2012 at 03:03:28PM +0800, Adam Lee wrote: >> On Thu, Oct 18, 2012 at 10:31:29PM -0700, Kumar amit mehta wrote: >> > Hi, >> > >> > I've a query regarding the coding style for Linux Kernel code. I'm >> > reading the CodingSty

Re: if flush_scheduled_work() is allegedly overkill, why do drivers use it?

2012-10-19 Thread Greg Freemyer
On Fri, Oct 19, 2012 at 10:12 AM, Robert P. J. Day wrote: > > working my way through work queues and read this in workqueue.h: > > /** > * flush_scheduled_work - ensure that any scheduled work has run to > completion. > * > * Forces execution of the kernel-global workqueue and blocks until i

Re: where are the bug ?

2012-10-19 Thread Rohan Puri
On Fri, Oct 19, 2012 at 7:38 PM, Anuz Pratap Singh Tomar < chambilketha...@gmail.com> wrote: > > > On Fri, Oct 19, 2012 at 2:46 PM, Fan Yang wrote: > >> >> >> 2012/10/19 Arun KS >> > >> > Hi Fan, >> > >> > On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang wrote: >> >> >> >> HI ALL: >> >> I just run

if flush_scheduled_work() is allegedly overkill, why do drivers use it?

2012-10-19 Thread Robert P. J. Day
working my way through work queues and read this in workqueue.h: /** * flush_scheduled_work - ensure that any scheduled work has run to completion. * * Forces execution of the kernel-global workqueue and blocks until its * completion. * * Think twice before calling this function! It's ve

Re: where are the bug ?

2012-10-19 Thread Anuz Pratap Singh Tomar
On Fri, Oct 19, 2012 at 2:46 PM, Fan Yang wrote: > > > 2012/10/19 Arun KS > > > > Hi Fan, > > > > On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang wrote: > >> > >> HI ALL: > >> I just run a module on my machine, but it can't work. When the > module run the kernel will painc. I don't know where is

Re: where are the bug ?

2012-10-19 Thread Fan Yang
2012/10/19 Fan Yang > > > 2012/10/19 Arun KS > > > > Hi Fan, > > > > On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang wrote: > >> > >> HI ALL: > >> I just run a module on my machine, but it can't work. When the > module run the kernel will painc. I don't know where is wrong. This is my > code: >

Re: where are the bug ?

2012-10-19 Thread Fan Yang
2012/10/19 Arun KS > > Hi Fan, > > On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang wrote: >> >> HI ALL: >> I just run a module on my machine, but it can't work. When the module run the kernel will painc. I don't know where is wrong. This is my code: >> >> 1 #include >> 2 #include >> 3 #includ

Re: where are the bug ?

2012-10-19 Thread Arun KS
Hi Fan, On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang wrote: > HI ALL: > I just run a module on my machine, but it can't work. When the module > run the kernel will painc. I don't know where is wrong. This is my code: > > 1 #include > 2 #include > 3 #include > 4 #include > 5 > 6 int

Re: What rationale behind physical and virtual kernel memory layout ?

2012-10-19 Thread Arun KS
Hi Telenn, On Fri, Oct 19, 2012 at 3:03 PM, telenn barz wrote: > Hi all, > > This a vast topic. But I believe it's worthwhile exposing in greater > detail the "Why this design has been chosen ?", before the "How this design > has been implemented ?". And I think this is a common lack (or at leas

Re: some weird redundancy with a workqueue?

2012-10-19 Thread Sannu K
On Fri, Oct 19, 2012 at 6:42 PM, Robert P. J. Day wrote: > > is there something i'm missing about the following snippet of code > in drivers/acpi/osl.c? > > if (queue == kacpi_hotplug_wq) > INIT_WORK(&dpc->work, acpi_os_execute_deferred); > else if (queue == kacpi

where are the bug ?

2012-10-19 Thread Fan Yang
HI ALL: I just run a module on my machine, but it can't work. When the module run the kernel will painc. I don't know where is wrong. This is my code: 1 #include 2 #include 3 #include 4 #include 5 6 int input = 1; 7 module_param (input, int, S_IRUGO); 8 9 static int __init pr

some weird redundancy with a workqueue?

2012-10-19 Thread Robert P. J. Day
is there something i'm missing about the following snippet of code in drivers/acpi/osl.c? if (queue == kacpi_hotplug_wq) INIT_WORK(&dpc->work, acpi_os_execute_deferred); else if (queue == kacpi_notify_wq) INIT_WORK(&dpc->work, acpi_os_execute_defe

Query on kernel module Makefile

2012-10-19 Thread Kumar amit mehta
I came across the following information in ~Documentation/kbuild/makefiles.txt --- 3.7 Compilation flags ccflags-y, asflags-y and ldflags-y These three flags apply only to the kbuild makefile in which they are assigned. They are used for all the normal cc, as and ld i

Re: Regarding KGDB setup over serial cable

2012-10-19 Thread Vivek Panwar
Hi Mulyadi, I resolved the file system error and now i am able to boot my machine with 3.4.9 Kernel. But still i am facing issues while setting up KGDB,below is the issues i am facing on both development and test machine: 1) Development machine (This machine have KERNEL to be debugged): i have a

What rationale behind physical and virtual kernel memory layout ?

2012-10-19 Thread telenn barz
Hi all, This a vast topic. But I believe it's worthwhile exposing in greater detail the "Why this design has been chosen ?", before the "How this design has been implemented ?". And I think this is a common lack (or at least not enough developed) in documentations, even in the more outstanding of

Re: Query on CodingStyle: indentation

2012-10-19 Thread Kumar amit mehta
On Fri, Oct 19, 2012 at 03:03:28PM +0800, Adam Lee wrote: > On Thu, Oct 18, 2012 at 10:31:29PM -0700, Kumar amit mehta wrote: > > Hi, > > > > I've a query regarding the coding style for Linux Kernel code. I'm > > reading the CodingStyle under Documentation and what I've understood is > > that I sh

another kernel tutorial: tasklets

2012-10-19 Thread Robert P. J. Day
http://www.crashcourse.ca/wiki/index.php/Tasklets next up ... work queues. rday -- Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter:

Re: Query on CodingStyle: indentation

2012-10-19 Thread Adam Lee
On Thu, Oct 18, 2012 at 10:31:29PM -0700, Kumar amit mehta wrote: > Hi, > > I've a query regarding the coding style for Linux Kernel code. I'm > reading the CodingStyle under Documentation and what I've understood is > that I shouldn't be using spaces for indentation purposes and should use > tabs