From: Jean-Philippe Brucker Subject: Re: [PATCH v2 06/19] drivers core: Add I/O ASID allocator Date: Wed, 1 May 2019 18:40:34 +0100 Message-ID: References: <1556062279-64135-1-git-send-email-jacob.jun.pan@linux.intel.com> <1556062279-64135-7-git-send-email-jacob.jun.pan@linux.intel.com> <4550408f-39ff-7bf9-0072-a0898c6c2f60@redhat.com> <20190430132405.62902350@jacob-builder> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190430132405.62902350@jacob-builder> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Jacob Pan Cc: Auger Eric , "iommu@lists.linux-foundation.org" , LKML , Joerg Roedel , David Woodhouse , Alex Williamson , "Tian, Kevin" , Raj Ashok , Andriy Shevchenko List-Id: iommu@lists.linux-foundation.org On 30/04/2019 21:24, Jacob Pan wrote: > On Thu, 25 Apr 2019 11:41:05 +0100 > Jean-Philippe Brucker wrote: > >> On 25/04/2019 11:17, Auger Eric wrote: >>>> +/** >>>> + * ioasid_alloc - Allocate an IOASID >>>> + * @set: the IOASID set >>>> + * @min: the minimum ID (inclusive) >>>> + * @max: the maximum ID (exclusive) >>>> + * @private: data private to the caller >>>> + * >>>> + * Allocate an ID between @min and @max (or %0 and %INT_MAX). >>>> Return the >>> I would remove "(or %0 and %INT_MAX)". >> >> Agreed, those where the default values of idr, but the xarray doesn't >> define a default max value. By the way, I do think squashing patches 6 >> and 7 would be better (keeping my SOB but you can change the author). >> > I will squash 6 and 7 in v3. I will just add my SOB but keep the > author if that is OK. Sure, that works Thanks, Jean