Re: [RFC PATCH 7/7 v2] ppc: add dynamic dma window support

2010-12-09 Thread Nishanth Aravamudan
On 09.12.2010 [15:17:06 +1100], Benjamin Herrenschmidt wrote: On Tue, 2010-10-26 at 20:35 -0700, Nishanth Aravamudan wrote: No much comments... I'm amazed how complex he firmware folks managed to make this ... static int iommu_reconfig_notifier(struct notifier_block *nb, unsigned

Re: [RFC PATCH 7/7 v2] ppc: add dynamic dma window support

2010-12-09 Thread Nishanth Aravamudan
On 26.10.2010 [20:35:17 -0700], Nishanth Aravamudan wrote: If firmware allows us to map all of a partition's memory for DMA on a particular bridge, create a 1:1 mapping of that memory. Add hooks for dealing with hotplug events. Dyanmic DMA windows can use larger than the default page size, and

Re: [RFC PATCH 7/7 v2] ppc: add dynamic dma window support

2010-12-08 Thread Benjamin Herrenschmidt
On Tue, 2010-10-26 at 20:35 -0700, Nishanth Aravamudan wrote: No much comments... I'm amazed how complex he firmware folks managed to make this ... static int iommu_reconfig_notifier(struct notifier_block *nb, unsigned long action, void *node) { int err = NOTIFY_OK; struct