From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v7 3/8] arm64: introduce is_device_dma_coherent Date: Fri, 7 Nov 2014 11:11:28 +0000 Message-ID: <20141107111126.GB21875@localhost> References: <1414422568-19103-3-git-send-email-stefano.stabellini@eu.citrix.com> <20141103105716.GC23162@arm.com> <20141105165646.GN32700@e104818-lin.cambridge.arm.com> <20141106103337.GA19702@e104818-lin.cambridge.arm.com> <20141107110524.GA21875@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20141107110524.GA21875@localhost> Sender: linux-kernel-owner@vger.kernel.org To: Stefano Stabellini Cc: Will Deacon , "xen-devel@lists.xensource.com" , "konrad.wilk@oracle.com" , "Ian.Campbell@citrix.com" , "david.vrabel@citrix.com" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" List-Id: xen-devel@lists.xenproject.org On Fri, Nov 07, 2014 at 11:05:25AM +0000, Catalin Marinas wrote: > BTW, drivers/xen/swiotlb-xen.c needs something like: > > dma_addr_t dev_addr = xen_phys_to_bus(phys_to_dma(phys)); > > phys != bus address. Wrong place, what I meant is when calling: xen_dma_unmap_page(hwdev, phys_to_dma(paddr), size, dir, attrs); -- Catalin