Re: [PATCH] swiotlb: use coherent_dma_mask in alloc_coherent

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: FUJITA Tomonori
Date: Monday, November 17, 2008 - 2:25 am

On Mon, 17 Nov 2008 10:02:59 +0100
Ingo Molnar <mingo@elte.hu> wrote:


Ah, I see. I misunderstood what you meant.



Yes, you are right. But it's pretty hard to hit this bug since x86_64
rarely uses swiotlb_alloc_coherent. pci-swiotlb_64.c tries
dma_generic_alloc_coherent first and then, only if it fails, it uses
swiotlb_alloc_coherent. dma_generic_alloc_coherent usually succeeds.

Before removing the GFP_DMA hack (the dma_alloc_coherent rewrite),
x86_64 rarely used swiotlb_alloc_coherent too because
swiotlb_alloc_coherent was used only if dma_alloc_coherent fails.
This issue was hidden by dma_alloc_coherent and GFP_DMA hack.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] swiotlb: use coherent_dma_mask in alloc_coherent, FUJITA Tomonori, (Mon Nov 17, 12:24 am)
Re: [PATCH] swiotlb: use coherent_dma_mask in alloc_coherent, FUJITA Tomonori, (Mon Nov 17, 1:47 am)
Re: [PATCH] swiotlb: use coherent_dma_mask in alloc_coherent, FUJITA Tomonori, (Mon Nov 17, 2:25 am)