From: Maarten Ghijsen <maarten.ghijsen@planet.nl>
To: linux-kernel@vger.kernel.org
Subject: system hangs on wake_up call from IRQ handler
Date: Tue, 18 Mar 2003 15:25:24 +0100 [thread overview]
Message-ID: <001301c2ed5a$37133380$0400000a@mdomain.local> (raw)
Hello,
I am busy on writing a driver for a PCI Card. Amongst others my driver
includes an IOCTL command for starting a DMA transfer (user-->PCI card or
PCI card-->user). In my handler for this command I instruct the PciCard to
start a DMA transfer and than wait (sleep) for the DMA to complete. I wait
using the wait_event function, which waits for an event that is 'fired'
(wake_up) from the DMA done interrupt handler. As soon as I make the call to
wake_up, from the DMA done interrupt handler, my system hangs completely.
Does anyone have any idea why the system hangs on the wake-up from the
interrupt handler?
Below you will find some pseudo code for with the wait_event and the
wake_up:
// wait from DMA IOCTL handler
void Dta1xxTxIoCtlDma()
{
startdma();
wait_event(my_wait_queue, ( 1==dma_done_flag) );
return;
}
// wake_up from interrupt handler
void Dta1xxIRQ()
{
if ( IsDmaDoneInterruptSet() ) {
dma_done_flag = 1;
wake_up(&my_wait_queue);
}
}
I am using linux kernel version 2.4.18.
Regards,
Maarten
reply other threads:[~2003-03-18 14:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001301c2ed5a$37133380$0400000a@mdomain.local' \
--to=maarten.ghijsen@planet.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®