kdump kernel with SMP

2014-05-28 Thread Luong Ngo
Hello, I need advises with a problem of kdump kernel in SMP machine. The problem I see is when panic happens, if the panic occurs on core 0, kdump kernel would receive interrups, specifically the sata disk driver works fine, but if panic happens on any other core, kdump kernel seems to not get

kdump kernel with SMP

2014-05-28 Thread Luong Ngo
Hello, I need advises with a problem of kdump kernel in SMP machine. The problem I see is when panic happens, if the panic occurs on core 0, kdump kernel would receive interrups, specifically the sata disk driver works fine, but if panic happens on any other core, kdump kernel seems to not get

Re: Sleeping thread not receive signal until it wakes up

2007-03-10 Thread Luong Ngo
On 3/10/07, Sergey Vlasov <[EMAIL PROTECTED]> wrote: On Fri, 9 Mar 2007 16:10:29 -0800 Luong Ngo wrote: > Thanks Parav, adding singal_allow(SIGALRM) wakeup the blocking > interruptible_sleep_on and checking the signal_pending would return > true now. This means that there is als

Re: Sleeping thread not receive signal until it wakes up

2007-03-10 Thread Luong Ngo
On 3/10/07, Sergey Vlasov [EMAIL PROTECTED] wrote: On Fri, 9 Mar 2007 16:10:29 -0800 Luong Ngo wrote: Thanks Parav, adding singal_allow(SIGALRM) wakeup the blocking interruptible_sleep_on and checking the signal_pending would return true now. This means that there is also a bug in your

Re: Sleeping thread not receive signal until it wakes up

2007-03-09 Thread Luong Ngo
On 3/8/07, Parav K Pandit <[EMAIL PROTECTED]> wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luong Ngo Sent: Friday, March 09, 2007 8:54 AM To: Robert Hancock Cc: linux-kernel; [EMAIL PROTECTED] Subject: Re: Sleeping thread not receive

Re: Sleeping thread not receive signal until it wakes up

2007-03-09 Thread Luong Ngo
On 3/9/07, Sergey Vlasov <[EMAIL PROTECTED]> wrote: On Thu, 8 Mar 2007 14:52:07 -0800 Luong Ngo wrote: [...] > static irqreturn board_isr(int irq, void *dev_id, struct pt_regs* regs) > { > spin_lock(>lock); >if (dev->irqMask & (1 << irqBit)) { >

Re: Sleeping thread not receive signal until it wakes up

2007-03-09 Thread Luong Ngo
On 3/9/07, Sergey Vlasov [EMAIL PROTECTED] wrote: On Thu, 8 Mar 2007 14:52:07 -0800 Luong Ngo wrote: [...] static irqreturn board_isr(int irq, void *dev_id, struct pt_regs* regs) { spin_lock(dev-lock); if (dev-irqMask (1 irqBit)) { // Set the interrupt event mask dev

Re: Sleeping thread not receive signal until it wakes up

2007-03-09 Thread Luong Ngo
On 3/8/07, Parav K Pandit [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luong Ngo Sent: Friday, March 09, 2007 8:54 AM To: Robert Hancock Cc: linux-kernel; [EMAIL PROTECTED] Subject: Re: Sleeping thread not receive signal until

Re: Sleeping thread not receive signal until it wakes up

2007-03-08 Thread Luong Ngo
On 3/8/07, Robert Hancock <[EMAIL PROTECTED]> wrote: Luong Ngo wrote: > Hi Thomas and Dick, > I appreciate all the responses. They are very good information to me. > Actually, it wasn't me working on the driver but it's been there long > time. I thought I just need to add the

Re: Sleeping thread not receive signal until it wakes up

2007-03-08 Thread Luong Ngo
On 3/8/07, Thomas Gleixner <[EMAIL PROTECTED]> wrote: On Thu, 2007-03-08 at 08:01 -0500, linux-os (Dick Johnson) wrote: > > Anything kernel configuration I need to be aware of to enable > > preemption in kernel? > > > > > > Thank you, > > LNgo > > > > First, in the ioctl, if you need spin-locks,

Re: Sleeping thread not receive signal until it wakes up

2007-03-08 Thread Luong Ngo
On 3/8/07, Thomas Gleixner [EMAIL PROTECTED] wrote: On Thu, 2007-03-08 at 08:01 -0500, linux-os (Dick Johnson) wrote: Anything kernel configuration I need to be aware of to enable preemption in kernel? Thank you, LNgo First, in the ioctl, if you need spin-locks, you need to use

Re: Sleeping thread not receive signal until it wakes up

2007-03-08 Thread Luong Ngo
On 3/8/07, Robert Hancock [EMAIL PROTECTED] wrote: Luong Ngo wrote: Hi Thomas and Dick, I appreciate all the responses. They are very good information to me. Actually, it wasn't me working on the driver but it's been there long time. I thought I just need to add the signal and signal

Re: Sleeping thread not receive signal until it wakes up

2007-03-07 Thread Luong Ngo
On 3/7/07, Lee Revell <[EMAIL PROTECTED]> wrote: On 3/7/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: > Interruptible_sleep_on is interruptible, but for your task to > actually be awakened and your alarm handler to get some CPU, > it needs to be scheduled. If the BKL (big kernel lock)

Re: Sleeping thread not receive signal until it wakes up

2007-03-07 Thread Luong Ngo
On 3/7/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: > > On 3/7/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >> >> On Wed, 7 Mar 2007, Luong Ngo wrote: >> >>> Hi all, >>> >>> I am having this problem. I have a

Re: Sleeping thread not receive signal until it wakes up

2007-03-07 Thread Luong Ngo
, LNgo On 3/7/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: On Wed, 7 Mar 2007, Luong Ngo wrote: > Hi all, > > I am having this problem. I have a process with 2 threads created. One > of the thread will keep calling IOCTL to get information from the > kerne

Re: Sleeping thread not receive signal until it wakes up

2007-03-07 Thread Luong Ngo
, LNgo On 3/7/07, linux-os (Dick Johnson) [EMAIL PROTECTED] wrote: On Wed, 7 Mar 2007, Luong Ngo wrote: Hi all, I am having this problem. I have a process with 2 threads created. One of the thread will keep calling IOCTL to get information from the kernel and will be blocked

Re: Sleeping thread not receive signal until it wakes up

2007-03-07 Thread Luong Ngo
On 3/7/07, linux-os (Dick Johnson) [EMAIL PROTECTED] wrote: On 3/7/07, linux-os (Dick Johnson) [EMAIL PROTECTED] wrote: On Wed, 7 Mar 2007, Luong Ngo wrote: Hi all, I am having this problem. I have a process with 2 threads created. One of the thread will keep calling IOCTL to get

Re: Sleeping thread not receive signal until it wakes up

2007-03-07 Thread Luong Ngo
On 3/7/07, Lee Revell [EMAIL PROTECTED] wrote: On 3/7/07, linux-os (Dick Johnson) [EMAIL PROTECTED] wrote: Interruptible_sleep_on is interruptible, but for your task to actually be awakened and your alarm handler to get some CPU, it needs to be scheduled. If the BKL (big kernel lock) is

Sleeping thread not receive signal until it wakes up

2007-03-06 Thread Luong Ngo
Hi all, I am having this problem. I have a process with 2 threads created. One of the thread will keep calling IOCTL to get information from the kernel and will be blocked if there is no new information. If there is information retured, the thread will be checked to see if any error happens and

Sleeping thread not receive signal until it wakes up

2007-03-06 Thread Luong Ngo
Hi all, I am having this problem. I have a process with 2 threads created. One of the thread will keep calling IOCTL to get information from the kernel and will be blocked if there is no new information. If there is information retured, the thread will be checked to see if any error happens and