* Blocking functions and interrupt protection
@ 2002-01-28 18:29 gguevel
0 siblings, 0 replies; only message in thread
From: gguevel @ 2002-01-28 18:29 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
I works on an embedded linux ppc pci target board in a linux PC.
I have a process on the PC which sends ioctl commands to the target via a
write
in a pci doorbell register then sleeps on. The target must reply with a pci
interrupt.
The problem is that the target replies so fast that if the process is
interrupted between the
doorbell write function and the sleep function, the interrupt event from the
target may try to
awake a process which is not sleeping. The event is lost and the ioctl
command is locked
forever.
How can I protect the process to be interrupted between the start of the
doorbell write
function and the end of the sleep function.
This problem is a general case, not specific to my driver. It may happen in
all drivers wich
communicates with fast board which generates asynchronous interrupt events.
Any help would be welcome.
Thanks
Sorry for my poor english language.
Gérard Guével
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-01-28 18:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-28 18:29 Blocking functions and interrupt protection gguevel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).