Re: can device drivers return non-ram via vm_ops->nopage?

From: Benjamin Herrenschmidt
Date: Mon Mar 22 2004 - 00:02:02 EST



> Doesn't DRI also suffer from the same issues?

Well, it depends. Most of the time, DRI uses AGP which is a different
story altogether.

DRI suffers from similar issue when using PCI GART, but then, it also
doesn't use the consistent alloc routines, it gets pages with GFP,
mmap those into userland, and does pci_map_single in the kernel on
each individual page to obtain the bus addresses. This will not be
pretty on non-coherent architectures though.

Ben.


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