From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sowmini Varadhan Date: Fri, 19 Dec 2014 20:06:51 +0000 Subject: Re: [PATCH RFC sparc] Break up iommu from monolithic lock for the map to multiple pools/locks Message-Id: <20141219200651.GK4294@oracle.com> List-Id: References: <20141219151616.GB25248@oracle.com> In-Reply-To: <20141219151616.GB25248@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org On (12/19/14 14:57), David Miller wrote: > > The core operation is the range allocation. So if you just put the > powerpc alloc/free code (basically, the bulk of your patch) into > lib/iommu-common.c or similar, that ought to be a good starting point. sounds good, I'll do this and get back over the next week. (Some things like the demap function pointer may need to be generalized a bit, e.g., pass the iommu_pool * to the callback for other archs) > > The patch set would look like: > > 1) move powerpc iommu range alloc/free into lib/iommu-common.c > > 2) make sparc64 use it