From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 C6E4F18036 for ; Thu, 30 May 2024 02:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034476; cv=none; b=HsibG+qWx/ezxOkq8v6A0I7LCipof+XJGuEwmCdeEJTpkoojYHAPWCeng5py66EMz+ST/WcbTQ0MGrupwtVHngrYgaPJT+HuYkVEOccg/nuVandErWhyZSq3K+vLY4zng3x1KxwL8jv0N1q/pSwrfIumieVT2nKAe0UHIR3+TV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034476; c=relaxed/simple; bh=z8p2Fbv7q51FsTbE9Q6ou8CNMBaz3vo4l9U9rPdC/fQ=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=JmsrClx11ZpQbGDf+3tcD/WgMm7yEQ72dvMN0/NQuu48kDsnwd/qxlU4ihOo5lXd6Jsx1FeSh1gx1qoZ9pKe178n/Rnnsp58RBiPcvb0xI9BO4BMtioXj8Ujv6bF0tJ/uJEU+IsUAGBJqzRprJZEtLYEMseBp3lX/NU1Yuqnv8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eQloIB07; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eQloIB07" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717034475; x=1748570475; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=z8p2Fbv7q51FsTbE9Q6ou8CNMBaz3vo4l9U9rPdC/fQ=; b=eQloIB07xk7bWidVKWBLmJKM+f7L8p5yH0sPXC0AsUkN0d0XhcjQmDBL CAmEoaz5WAv0KfE1sceese5arqQZvd8hlG+H85R4fhtggMqS2xFVlicBK lNfsIoHRbqsL0qkklC3xfOUxpJmQLES4itvdrbpUTOk6U5g9TomNoB4Ji YmyOYTup+0fY0n1fLD403SYelfL/xUe1u7s34dE4kUp6SJ2ciPDAxb9VH wcT4Jwgzc+hI6nq7Qygh2X4srf0xPmnlqO1wtSHq1rURUuQqnx+UbieLU 9Vkfdmj/eUnBf5q88B0uPxNWbMC62zrF4xyMWx+JfFPRqiiYrn7+daJfV A==; X-CSE-ConnectionGUID: PyAbSVyFRImQ1sCQjXFIiA== X-CSE-MsgGUID: HwjKXVkNRPGq0UHP5Ktb1A== X-IronPort-AV: E=McAfee;i="6600,9927,11087"; a="13604237" X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="13604237" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2024 19:01:15 -0700 X-CSE-ConnectionGUID: TQJC9/b/QlCc2uUz6FLNVg== X-CSE-MsgGUID: bbMexaIEQZisW9zr+4pHDA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="35737900" Received: from unknown (HELO [10.239.159.127]) ([10.239.159.127]) by fmviesa010.fm.intel.com with ESMTP; 29 May 2024 19:01:11 -0700 Message-ID: Date: Thu, 30 May 2024 09:59:03 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, David Airlie , Daniel Vetter , Kalle Valo , Bjorn Andersson , Mathieu Poirier , Alex Williamson , mst@redhat.com, Jason Wang , Thierry Reding , Jonathan Hunter , Mikko Perttunen , iommu@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/20] iommu: Add iommu_paging_domain_alloc() interface To: Yi Liu , Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe , Kevin Tian References: <20240529053250.91284-1-baolu.lu@linux.intel.com> <20240529053250.91284-6-baolu.lu@linux.intel.com> Content-Language: en-US From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/29/24 5:04 PM, Yi Liu wrote: > On 2024/5/29 13:32, Lu Baolu wrote: >> Commit <17de3f5fdd35> ("iommu: Retire bus ops") removes iommu ops from >> bus. The iommu subsystem no longer relies on bus for operations. So the >> bus parameter in iommu_domain_alloc() is no longer relevant. >> >> Add a new interface named iommu_paging_domain_alloc(), which explicitly >> indicates the allocation of a paging domain for DMA managed by a kernel >> driver. The new interface takes a device pointer as its parameter, that >> better aligns with the current iommu subsystem. > > you may want to move this patch before patch 03/04. Emm, why? Best regards, baolu