Re: [PATCH] swiotlb: fix dma_alloc_coherent allocation failures with swiotlb

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: FUJITA Tomonori
Date: Wednesday, September 3, 2008 - 9:11 pm

On Wed, 3 Sep 2008 21:54:15 +0200
Joerg Roedel <joro@8bytes.org> wrote:


You try to bring back the tricks used in arch/x86/kernel/pci-dma.c to
lib/swiotlb.c. I believe that they should be in
arch/x86/kernel/pci-swiotlb.c.



I don't think so. device x86_dma_fallback_dev is defined as (in
tip/master):

struct device x86_dma_fallback_dev = {
       .bus_id = "fallback device",
       .coherent_dma_mask = DMA_32BIT_MASK,
       .dma_mask = &x86_dma_fallback_dev.coherent_dma_mask,
};
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] fix swiotlb allocation gfp flag, FUJITA Tomonori, (Wed Sep 3, 11:04 am)
Re: [PATCH] swiotlb: fix dma_alloc_coherent allocation fai ..., FUJITA Tomonori, (Wed Sep 3, 9:11 pm)