From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752428AbbJFIHa (ORCPT ); Tue, 6 Oct 2015 04:07:30 -0400 Received: from mga01.intel.com ([192.55.52.88]:56010 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751797AbbJFIHT (ORCPT ); Tue, 6 Oct 2015 04:07:19 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,643,1437462000"; d="scan'208";a="658689424" Subject: Re: [PATCH char-misc-next v2 04/22] iommu: Allow iova to be used without requiring IOMMU_SUPPORT From: Sudeep Dutt To: "gregkh@linuxfoundation.org" Cc: Sudeep Dutt , "Woodhouse, David" , "Dixit, Ashutosh" , "linux-kernel@vger.kernel.org" , "Rao, Nikhil" , "joro@8bytes.org" , "sakari.ailus@linux.intel.com" , "iommu@lists.linux-foundation.org" In-Reply-To: <20151006075610.GB18449@kroah.com> References: <1444042224.4674.149.camel@intel.com> <1444066723.93285.146.camel@localhost> <20151006051240.GA23487@kroah.com> <20151006052029.GA7959@kroah.com> <1444109018.93285.176.camel@localhost> <20151006075610.GB18449@kroah.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 06 Oct 2015 01:05:27 -0700 Message-ID: <1444118727.93285.187.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-30.el6) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2015-10-06 at 08:56 +0100, gregkh@linuxfoundation.org wrote: > On Mon, Oct 05, 2015 at 10:23:38PM -0700, Sudeep Dutt wrote: > > On Tue, 2015-10-06 at 06:20 +0100, gregkh@linuxfoundation.org wrote: > > > On Tue, Oct 06, 2015 at 06:12:40AM +0100, gregkh@linuxfoundation.org wrote: > > > > On Mon, Oct 05, 2015 at 10:38:43AM -0700, Sudeep Dutt wrote: > > > > > On Mon, 2015-10-05 at 03:50 -0700, Woodhouse, David wrote: > > > > > > On Tue, 2015-09-29 at 18:09 -0700, Ashutosh Dixit wrote: > > > > > > > From: Sudeep Dutt > > > > > > > > > > > > > > iova is a library which can be built without IOMMU_SUPPORT > > > > > > > > > > > > > > Signed-off-by: Sudeep Dutt > > > > > > > > > > > > The first three of these patches are in 4.3-rc4 already. Apologies for > > > > > > the delay in pushing them out. > > > > > > > > > > > > This one looks sane enough too, but perhaps in that case we should move > > > > > > the code *out* of drivers/iommu/ and into lib/iova/ ? > > > > > > > > > > > > > > > > Yes, moving the code into lib/iova is the correct long term solution. I > > > > > have sent Greg a patch which reverts this commit since it is no longer > > > > > required and will create a merge conflict for him unnecessarily as well > > > > > with 4.3-rc4. > > > > > > > > I can handle merge issues, that's trivial. Reverting the patch > > > > shoulnd't really be needed, right? Let me see what happens when I merge > > > > to see if your patch is necessary... > > > > > > Ok, I don't think it is needed, the merge was pretty trivial. > > > > > > Can you test out my char-misc-testing branch right now to see if it's > > > all ok with the merge? If so, I'll move it all over to the "real" place > > > for it to start showing up in linux-next, i.e. my char-misc-next branch. > > > > > > > Hi Greg, > > > > I think it is best to revert this patch as it is incorrect. The iommu > > folder gets compiled only if IOMMU_SUPPORT is enabled so IOMMU_IOVA > > should indeed be included only when IOMMU_SUPPORT is enabled. > > > > Sincere apologies for the mess here but I believe it will all get fixed > > up if you accept the revert of 353649e5da I sent across earlier today. > > Again, look at the merge, I think I already handled this in that manner. > If not, let me know. > Hi Greg, I took a look at your latest char-misc-testing tree and it needs to be fixed up. IOMMU_IOVA should be inside the "if IOMMU_SUPPORT" block instead of above it. git revert 353649e5da in the char-misc-testing tree will fix everything up or you could also apply the patch I sent earlier today which has the same revert. Thanks, Sudeep Dutt