Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751973AbaKGLLq (ORCPT ); Fri, 7 Nov 2014 06:11:46 -0500 Received: from foss-mx-na.foss.arm.com ([217.140.108.86]:54422 "EHLO foss-mx-na.foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751547AbaKGLLo (ORCPT ); Fri, 7 Nov 2014 06:11:44 -0500 Date: Fri, 7 Nov 2014 11:11:28 +0000 From: Catalin Marinas 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" Subject: Re: [PATCH v7 3/8] arm64: introduce is_device_dma_coherent 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 Content-Disposition: inline In-Reply-To: <20141107110524.GA21875@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/