Re: [never mind] kiobufs and highmem

Benjamin LaHaise (bcrl@redhat.com)
Fri, 19 Jul 2002 11:32:58 -0400


On Fri, Jul 19, 2002 at 08:00:00AM -0700, William D Waddington wrote:
> Looks like three (?) options: go back to copying to a kernel DMA
> buffer for all cases (swell for performance), split the code path into
> map_user and copy_user branches (not that fond of spaghetti),
> or - in the highmem case - copy to a local buffer and populate the
> kiobuf with those pages and feed that to pci_map_sg().

Or use the PCI-DMA API function pci_map_single() that's documented in
Documentation/DMA-mapping.txt to get a 64 bit pointer? Don't forget to
do a pci_set_dma_mask too, but that's mentioned in DMA-mapping.txt.

-ben

-- 
"You will be reincarnated as a toad; and you will be much happier."
-
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/