Re: [PATCH 3/3] x86: restore old GART alloc_coherent behavior

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joerg Roedel
Date: Wednesday, September 24, 2008 - 5:11 am

On Wed, Sep 24, 2008 at 08:48:37PM +0900, FUJITA Tomonori wrote:

Patchset looks good in principle. But I have a small question, see
below.


Can't we check if a mapping is required before calling dma_map_area?
Your recently introduced IOMMU helper functions should make that easy
and GART address space is a rare resource. AFAIR this is also the
behaviour of the old generic dma_alloc_coherent function.


This should depend on need_flush.


-- 
           |           AMD Saxony Limited Liability Company & Co. KG
 Operating |         Wilschdorfer Landstr. 101, 01109 Dresden, Germany
 System    |                  Register Court Dresden: HRA 4896
 Research  |              General Partner authorized to represent:
 Center    |             AMD Saxony LLC (Wilmington, Delaware, US)
           | General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] x86: restore old GART alloc_coherent, FUJITA Tomonori, (Wed Sep 24, 4:48 am)
[PATCH 1/3] x86: export pci-nommu's alloc_coherent, FUJITA Tomonori, (Wed Sep 24, 4:48 am)
[PATCH 3/3] x86: restore old GART alloc_coherent behavior, FUJITA Tomonori, (Wed Sep 24, 4:48 am)
Re: [PATCH 3/3] x86: restore old GART alloc_coherent behavior, Joerg Roedel, (Wed Sep 24, 5:11 am)
Re: [PATCH 0/3] x86: restore old GART alloc_coherent, Joerg Roedel, (Wed Sep 24, 5:58 am)
Re: [PATCH 0/3] x86: restore old GART alloc_coherent, Ingo Molnar, (Thu Sep 25, 2:04 am)