Messages in this thread | | | Date | Thu, 04 Sep 2008 17:53:19 -0600 | From | Robert Hancock <> | Subject | Re: [PATCH 1/3] x86: remove the NULL device hack in dma-mapping.h |
| |
FUJITA Tomonori wrote: > On Wed, 3 Sep 2008 22:01:14 +0200 > Joerg Roedel <joro@8bytes.org> wrote: > >> On Thu, Sep 04, 2008 at 03:04:23AM +0900, FUJITA Tomonori wrote: >>> +static void *x86_swiotlb_alloc_coherent(struct device *dev, size_t size, >>> + dma_addr_t *dma_handle, gfp_t gfp) >>> +{ >>> + if (!dev) { >>> + dev = &x86_dma_fallback_dev; >>> + gfp |= GFP_DMA; >>> + } >> This really should be checked in the generic x86 dma_alloc_coherent >> function. > > I don't think so. Any motherboards with the recent IOMMUs support ISA?
Probably some LPC devices on those boards..
| |