Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1060298lqb; Wed, 29 May 2024 21:27:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIYwWLscrlQuESPhVhHUhF5l9Eyxk8Vs1C+J3Hy/hapjT6Sz9TotZwoAZ0F8M/Bn/ZXRbiY9cXEOFIhgQ5thRYGGAQXtLjQ7ZRbKUU6A== X-Google-Smtp-Source: AGHT+IH5OimhD12P7p6yVSveUIbVqgoW5LOYyIASDfEgPFHcGsd/qAivka5H0IFkdEpNSmN5Ct75 X-Received: by 2002:a17:906:e47:b0:a65:9c76:d0c3 with SMTP id a640c23a62f3a-a65e910a4cemr51930166b.74.1717043268261; Wed, 29 May 2024 21:27:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717043268; cv=pass; d=google.com; s=arc-20160816; b=nGbiQZLBGrA8o3/tJ5oyvu+TWWE5oV2FofBkeIjxx9cI8iWpdkA6L08wygFi4FOSm/ 8u8VfOXJjAQq72Wa/PucfyuTVxHJhs0joR7cNaViq5WLg/M3bQ+/tARTurODdkcrnTMX z0r+ckatS2JY3T78QJn3+hGEoGMKm9RR+4o1dvnTSOQendVqxKlYLdsd1fj5hQHtbbbG gJQ6RPklEtCd/4zKUy50HlfNYxwT8HVUfsLfOq++7i7pvO9FSGPF6YIjHrMXGKEarH/4 WQz5of8MyPOjSTPcC0mapwGVYXg3mAC81AJInnhOUJ82ZweOadwbpBrG2bj60YvOb8VX v3kg== 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=n0oe+AP55SymnRas6YLAmQPht/GiseGqX+uev4STrpw=; fh=nBgjHH8zp1vFX69aJLdYlgP555nTnI/jA+2imT6oIts=; b=Rhnlr2hxTFU9DrdQd1dwVrapGBLxLbaJitfuifTKNFyufPcBwyX0MbbSabgMZQllEQ QedjSah3Ho2NofAgZJFuv9FuNkczUXqMOABoskhVyqm4XOjfG0h5q0dqrYvTe8Lqt+1C MXuIAfSYLDI91g60CCbS+MmK9NN8qVfB9Kxg7YNbZAJVN+V/k9gA4zN+gN8r3IPfLfCz QvYTQZmzQYEnLWWRk4cuO4+yNM+fkaEcMrldTwiiKKSszP2xpDIwNQXqI8R6J2G0s6Ol q06oMoSR2R698RYiWGwJx/6AiW+XzQStZal4W3e5pPYTYhDNgxixeRJuuUV+XoDsUD0d pCzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K7fp5sSH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-194905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd954dasi699887466b.830.2024.05.29.21.27.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 21:27:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K7fp5sSH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-194905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194905-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A28231F23914 for ; Thu, 30 May 2024 03:12:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3E9B1CD2C; Thu, 30 May 2024 03:11:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="K7fp5sSH" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 C762E1C698 for ; Thu, 30 May 2024 03:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717038718; cv=none; b=J6EJjiwYx03zAbwtrzATI3lmzski0OHEh+d3u+BnnV8oUiWcfNwd3ur/Lrhcan0UKRBSHHwX+hj550GXBQl4yD+Frcx5IlOUaXgUA0FGBja0WgTCmMMMHYRQErt+J75zt++LUzxUMnO0fu4EtZUZCKWjE1soOmKw6DjniNk3g0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717038718; c=relaxed/simple; bh=AtVs/mAUfq0zsyGVzKlFt9Vs7GAGvhJdHEZppaw/M7Y=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=hlA0+m7GO4PidCK3Fgdi+VxHMtfR3/oPZtLx+jbN9vaqxpLsNAMVVYjibPXyJWG9dbuKUg7adjFeGfz/MGE7XQiR99lAg/GjxtQ1DvfXAZc55Sa/Tj+8ObtRiP/N+DCdBtmPc9zhgWeuzSDe+km351TcpvoZOmYjjX9KzbRLytc= 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=K7fp5sSH; arc=none smtp.client-ip=198.175.65.19 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=1717038717; x=1748574717; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=AtVs/mAUfq0zsyGVzKlFt9Vs7GAGvhJdHEZppaw/M7Y=; b=K7fp5sSHdCKwaEkkdntLkjarBcuWcavq72747J61ven4MDTL8GR8+H/A +hKgGFNnB9LSNtqDt6EjTK5LiYMwuLLyZ7QvBX5uN86YqNhz6r1WEbNgo 1gsOV4h67d5bcXo6kq2mqkm6iWRFs1bE/RoadEMU1Ll6VpukaIDzN78w0 hU/g0v3G+zqddaQK/q0KAc+knLtZq1GU1/zwuVvBX8S080lH3mnyk9q0y 8wkrUipmUW207OXBE7DSycwn9MWg2EQM1duWePnZCoc/y9byhAnCbHXns xOOIKxyzx0jFOADNPecORvxkIB27Ve3wUwnT8wqBiUBPGkhi1JdH8bFWm Q==; X-CSE-ConnectionGUID: bqMs3QsdRDevKOhhq3snPw== X-CSE-MsgGUID: RV/RPRpiRuCzgMgtBIh5eg== X-IronPort-AV: E=McAfee;i="6600,9927,11087"; a="13334706" X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="13334706" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2024 20:11:57 -0700 X-CSE-ConnectionGUID: o/wZ19gZRkKu+qUIFx0MAQ== X-CSE-MsgGUID: ASzVpoGHRkiecU00cNHKxA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="40093824" Received: from unknown (HELO [10.239.159.127]) ([10.239.159.127]) by fmviesa005.fm.intel.com with ESMTP; 29 May 2024 20:11:51 -0700 Message-ID: Date: Thu, 30 May 2024 11:09:45 +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/30/24 9:59 AM, Baolu Lu wrote: > 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? I see. The commit subject is misleading. It should be "vfio/type1: Use iommu_user_domain_alloc()". Best regards, baolu