[PATCH 4/5] powerpc: Add support for swiotlb on 32-bit

2009-04-20 Thread Becky Bruce
This patch includes the basic infrastructure to use swiotlb bounce buffering on 32-bit powerpc. It is not yet enabled on any platforms. Signed-off-by: Becky Bruce --- arch/powerpc/Kconfig |2 +- arch/powerpc/include/asm/dma-mapping.h | 11 ++ arch/powerpc/include/asm/swi

Re: [PATCH 4/5] powerpc: Add support for swiotlb on 32-bit

2009-04-20 Thread Kumar Gala
On Apr 20, 2009, at 11:26 AM, Becky Bruce wrote: This patch includes the basic infrastructure to use swiotlb bounce buffering on 32-bit powerpc. It is not yet enabled on any platforms. Signed-off-by: Becky Bruce --- arch/powerpc/Kconfig |2 +- arch/powerpc/include/asm/dm

Re: [PATCH 4/5] powerpc: Add support for swiotlb on 32-bit

2009-04-20 Thread Becky Bruce
On Apr 20, 2009, at 11:57 AM, Kumar Gala wrote: On Apr 20, 2009, at 11:26 AM, Becky Bruce wrote: This patch includes the basic infrastructure to use swiotlb bounce buffering on 32-bit powerpc. It is not yet enabled on any platforms. Signed-off-by: Becky Bruce --- arch/powerpc/Kconfig

Re: [PATCH 4/5] powerpc: Add support for swiotlb on 32-bit

2009-04-20 Thread Kumar Gala
On Apr 20, 2009, at 11:26 AM, Becky Bruce wrote: +static int ppc_swiotlb_bus_notify(struct notifier_block *nb, + unsigned long action, void *data) +{ + struct device *dev = data; + + /* We are only intereted in device addition */ + if (action !=

Re: [PATCH 4/5] powerpc: Add support for swiotlb on 32-bit

2009-04-20 Thread Becky Bruce
On Apr 20, 2009, at 1:31 PM, Kumar Gala wrote: On Apr 20, 2009, at 11:26 AM, Becky Bruce wrote: +static int ppc_swiotlb_bus_notify(struct notifier_block *nb, + unsigned long action, void *data) +{ + struct device *dev = data; + + /* We are only int

Re: [PATCH 4/5] powerpc: Add support for swiotlb on 32-bit

2009-04-20 Thread Kumar Gala
On Apr 20, 2009, at 2:06 PM, Becky Bruce wrote: On Apr 20, 2009, at 1:31 PM, Kumar Gala wrote: On Apr 20, 2009, at 11:26 AM, Becky Bruce wrote: +static int ppc_swiotlb_bus_notify(struct notifier_block *nb, + unsigned long action, void *data) +{ + stru

Re: [PATCH 4/5] powerpc: Add support for swiotlb on 32-bit

2009-04-20 Thread Scott Wood
Kumar Gala wrote: I'm suggesting we do it one for FSL in fsl_soc.c, the 4xx guys can do it once, etc. Since the behavior desired is going to be a bit unique to SoCs/chipsets. Perhaps we should have a dma_mask in platform/of_platform device structs? The driver knows best how many bits it can

Re: [PATCH 4/5] powerpc: Add support for swiotlb on 32-bit

2009-04-20 Thread FUJITA Tomonori
On Mon, 20 Apr 2009 13:03:20 -0500 Becky Bruce wrote: > > On Apr 20, 2009, at 11:57 AM, Kumar Gala wrote: > > > > > On Apr 20, 2009, at 11:26 AM, Becky Bruce wrote: > > > >> This patch includes the basic infrastructure to use swiotlb > >> bounce buffering on 32-bit powerpc. It is not yet enabl