Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1014084lqb; Wed, 29 May 2024 19:01:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVuAlyhS3yUwTIo47pQma8cDvXaJDSAu/ppfB4zggqUZNkTu0TMtVRotDhhLBH4gzWeF7nZek1EJBZso2nb3SmAlhAtah666I19NBM3g== X-Google-Smtp-Source: AGHT+IH8CwSApgFwfNv/1fgoZKq5wxdVB30R2dQuX8TUOQGN8YsCLycE1xDMotkfOn4ihjQ14VOR X-Received: by 2002:a05:6122:21ac:b0:4dc:fbc5:d47 with SMTP id 71dfb90a1353d-4eaf248dcb6mr913752e0c.16.1717034517951; Wed, 29 May 2024 19:01:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717034517; cv=pass; d=google.com; s=arc-20160816; b=CmkvlUP/4F2mq5S2PAOyb8IjUfJp3AYwPvs+Gc4AxU4th0awf2ACSpU3IDNDK/mY6k 57oRxEjgej+vBpJpsWoXh62+B7XGbvkc/JUtImLAGTF7jrnf+3fM+NrFDZ/F37pWdSGd sdWyCTxS/m1PfakNPQ/z1C79bMrnett1506EqEfYE4/UohvUQvYQssPEn1RCwzBvJ0Im 3fhmnzMY7liEBmkyEWyUR1ZFkE+FJNGdhoLYrooq1dyFkKSfjnq/iPsXmWxxzGdevQDJ N8U7+coDvb619g8XnSvgbn9LqQdXppbCXAB8334bTZIPLHiLBZrcSQdjpAOB6AUam6WS 68nA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VYfGsjwIJ85C1zegxErtSHTP2MHtQWCF4/LFKQfP6+o=; fh=nBgjHH8zp1vFX69aJLdYlgP555nTnI/jA+2imT6oIts=; b=l/T7wx7WbA0ZRcPlBjH2H1EvQ01+227aSuNMTwDtMEs0ronFfXk+/VgD4dxG0VlHpD g4rMHjJuBDQTDXIAFOq+b+MxRJWrujhjkj3D8JE6Rei0sPRfOekQOT3Z7RXRXPtR0EHz aqAwE3QZSJd/cYSMr3qy76KmXaeaixisjVKigwaqy48PFbKogJ2VI5V2fpHZqhSFzSBP wuQUMBQ0njYnnFKkE+0svFPyrHbKv4wGPkEbvd1holXZc5WOSlO2YkfOHctb51Tvhh/I BKvpUO3OqM6CnHpvvv6U5NYLZiBFK3slZAYxSi13/Jnw25xvCvLtEcIl5KgC4vKSj5jN FI8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eQloIB07; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-194867-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abd0b203si1364491285a.308.2024.05.29.19.01.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 19:01:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194867-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eQloIB07; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-194867-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9EC8F1C23293 for ; Thu, 30 May 2024 02:01:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB65F182DF; Thu, 30 May 2024 02:01:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eQloIB07" 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 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