Re: [Xen-devel] [PATCH 2/3] x86: allow dma_get_required_mask() to be overridden

2014-11-14 Thread Stefano Stabellini
On Wed, 12 Nov 2014, David Vrabel wrote: > Use dma_ops->get_required_mask() if provided, defaulting to > dma_get_requried_mask_from_max_pfn(). > > This is needed on systems (such as Xen PV guests) where the DMA > address and the physical address are not equal. > > Signed-off-by: David Vrabel Re

Re: [Xen-devel] [PATCH 2/3] x86: allow dma_get_required_mask() to be overridden

2014-11-13 Thread Jan Beulich
>>> On 13.11.14 at 11:25, wrote: On 12.11.14 at 16:25, wrote: >> --- a/arch/x86/include/asm/device.h >> +++ b/arch/x86/include/asm/device.h >> @@ -13,4 +13,6 @@ struct dev_archdata { >> struct pdev_archdata { >> }; >> >> +#define ARCH_HAS_DMA_GET_REQUIRED_MASK > > Is there a particular

Re: [Xen-devel] [PATCH 2/3] x86: allow dma_get_required_mask() to be overridden

2014-11-13 Thread David Vrabel
On 13/11/14 10:25, Jan Beulich wrote: On 12.11.14 at 16:25, wrote: >> --- a/arch/x86/include/asm/device.h >> +++ b/arch/x86/include/asm/device.h >> @@ -13,4 +13,6 @@ struct dev_archdata { >> struct pdev_archdata { >> }; >> >> +#define ARCH_HAS_DMA_GET_REQUIRED_MASK > > Is there a particu

Re: [Xen-devel] [PATCH 2/3] x86: allow dma_get_required_mask() to be overridden

2014-11-13 Thread Jan Beulich
>>> On 12.11.14 at 16:25, wrote: > --- a/arch/x86/include/asm/device.h > +++ b/arch/x86/include/asm/device.h > @@ -13,4 +13,6 @@ struct dev_archdata { > struct pdev_archdata { > }; > > +#define ARCH_HAS_DMA_GET_REQUIRED_MASK Is there a particular reason you put this here rather than in dma-ma

[Xen-devel] [PATCH 2/3] x86: allow dma_get_required_mask() to be overridden

2014-11-12 Thread David Vrabel
Use dma_ops->get_required_mask() if provided, defaulting to dma_get_requried_mask_from_max_pfn(). This is needed on systems (such as Xen PV guests) where the DMA address and the physical address are not equal. Signed-off-by: David Vrabel --- arch/x86/include/asm/device.h |2 ++ arch/x86/ker