From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25A2C17ABB; Sat, 22 Jul 2023 14:02:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690034528; x=1721570528; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=SqJ+O+atMOXabuGL4Lbq05LADBIKGyitXrMQM1qr5Ho=; b=cRNHyiH3vRI+45lSfgTlfrWJNr2ztH+DrP7L5fvqrN2HievMyNBY7AQ+ iR/UPJOJnwh8JEipEeJYURydyroSHWXEgsmNI61xvAwnOS5wrK3D1VB3w kArDLbY6ceyQLp8U1QxwgA7/rG8ceV7cgmBTpBNZcVtxGObgyQbRS+fta dXKs5gjuqjmPqST0ezrfOFQZc8yDt0aMUlR4N/aCfufxqBfiiDE1cm5A+ yX76HwNVH+OHeWWn2WDVNkWhFBwjihV4bmkHw37zpc1Mzy5elzZ1K/I2A jGH0ZElIkXfre7s5/AWKghBPaR6nlIpEHYOEd70c9CVQEc/XErmIgCKJB A==; X-IronPort-AV: E=McAfee;i="6600,9927,10779"; a="398090058" X-IronPort-AV: E=Sophos;i="6.01,224,1684825200"; d="scan'208";a="398090058" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2023 07:02:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10779"; a="760278822" X-IronPort-AV: E=Sophos;i="6.01,224,1684825200"; d="scan'208";a="760278822" Received: from blu2-mobl.ccr.corp.intel.com (HELO [10.249.173.108]) ([10.249.173.108]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2023 07:02:02 -0700 Message-ID: <218edab7-ea1f-8629-4270-046e8b7c7fcc@linux.intel.com> Date: Sat, 22 Jul 2023 22:02:00 +0800 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: baolu.lu@linux.intel.com, Alex Williamson Subject: Re: [PATCH 03/10] iommu: Add generic_single_device_group() Content-Language: en-US To: Jason Gunthorpe , Baolin Wang , David Woodhouse , Heiko Stuebner , iommu@lists.linux.dev, Jernej Skrabec , Joerg Roedel , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, Orson Zhai , Robin Murphy , Samuel Holland , Chen-Yu Tsai , Will Deacon , Chunyan Zhang References: <3-v1-3c8177327a47+256-iommu_group_locking_jgg@nvidia.com> From: Baolu Lu In-Reply-To: <3-v1-3c8177327a47+256-iommu_group_locking_jgg@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023/7/19 3:05, Jason Gunthorpe wrote: > This implements the common pattern seen in drivers of a single > iommu_group for the entire iommu driver. Implement this in core code > so the drivers that want this can select it from their ops. > > Signed-off-by: Jason Gunthorpe > --- > drivers/iommu/iommu.c | 25 +++++++++++++++++++++++++ > include/linux/iommu.h | 3 +++ > 2 files changed, 28 insertions(+) Reviewed-by: Lu Baolu Best regards, baolu