From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2.shareable.org ([80.68.89.115]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1NuzSI-0000QQ-Ux for linux-mtd@lists.infradead.org; Fri, 26 Mar 2010 02:39:31 +0000 Date: Fri, 26 Mar 2010 02:39:22 +0000 From: Jamie Lokier To: Joakim Tjernlund Subject: Re: Enabling D-cache for OneNAND bufferram Message-ID: <20100326023922.GM19308@shareable.org> References: <4BAA11DF.3060306@algotrim.com> <4BAB4186.5080805@algotrim.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: linux-mtd@lists.infradead.org, Leo Barnes List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Joakim Tjernlund wrote: > ioremap returns a *second* mapping to the same RAM so you first > original mapping should be fine. Note that having two mappings with different attributes to the same address is architecturally prohibited on (at least) some ARMs. I.e. it may not behave correctly. Then again, dma_alloc_coherent has to do it. But be careful! Remember to flush the cache before unmapping the cached area if the driver has an exit function. -- Jamie