Re: [PATCH 1/3] x86: remove the NULL device hack in dma-mapping.h

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joerg Roedel
Date: Wednesday, September 3, 2008 - 1:01 pm

On Thu, Sep 04, 2008 at 03:04:23AM +0900, FUJITA Tomonori wrote:

I don't think its the right way to work around shortcomings of the
generic code in the architecture specific implementations. Especially
when the generic code can be easily fixed like in this case.


This really should be checked in the generic x86 dma_alloc_coherent
function.


Why do you move this check to swiotlb implemenation? This will break
existing IOMMU implementations which don't check for a valid dev
pointer?

--
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 1/3] x86: remove the NULL device hack in dma-ma ..., Joerg Roedel, (Wed Sep 3, 1:01 pm)