linux-mips
[Top] [All Lists]

Re: [PATCH 2/2] Set of fixes for DMA when dma_addr_t != physical

To: David VomLehn <dvomlehn@cisco.com>
Subject: Re: [PATCH 2/2] Set of fixes for DMA when dma_addr_t != physical address
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Date: Thu, 26 Nov 2009 00:10:06 +0100
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
In-reply-to: <20091125200027.GA13748@dvomlehn-lnx2.corp.sa.net>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20091125200027.GA13748@dvomlehn-lnx2.corp.sa.net>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.18 (2008-05-17)
On Wed, Nov 25, 2009 at 03:00:28PM -0500, David VomLehn wrote:
> Fixes for using DMA on systems where the DMA address and the physical address
> differ.

what's the problem ? Even the old Olivetti M700 has an iommu, so dma
address and physical address are always different... and it works without
changes. You just need to tweak the plat_dma_XXX() macros/functions.

And I don't see a reason for the KSEG0 checks in your other patch,
but maybe I'm missing something...

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea.                                                [ RFC1925, 2.3 ]

<Prev in Thread] Current Thread [Next in Thread>