Re: struct page to 36 (or 64) bit bus address?

David S. Miller (davem@redhat.com)
Mon, 13 Aug 2001 07:21:57 -0700 (PDT)


From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Mon, 13 Aug 2001 15:09:31 +0100 (BST)

> To make sure we're on the same wave length, are you suggesting
> this is the kind of thing we'd call in a callback from the PCI
> DMA support layer?

Well that would be an ugly layer violation, but how about

scsi_retry_command_waitq(SCpnt, &dma_waitq)

?

I don't mean "PCI DMA support layer knows scsi routines to
call", rather I mean:

... register_new_scsi_host() ...

add_notifier(&pci_dma_freespace_notifier, &host->dma_notifier_block);

And net drivers would do something similar, registering something
that will do "netdev_wake_queue();" etc.

Also, the DMA support layer must either:

1) require users of it to provide a kernel thread in which
to execute these things in the correct context

2) have a kernel thread of it's own to do this

3) or somehow else be able to accept this notification
from any kind of execution context

The notifier is capable of happening anywhere, anytime.
Right?

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/