Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1306594lqj; Mon, 3 Jun 2024 18:05:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0pqQ7tR3O1sNX8k7bcSWoVPYJrd5U8g+cwQmbelIi1Zo+qxzkFl1Py0skEZSltVgXxWg5/DbBTeUyrf4v/Z5Ei2nP/9tR9V3pE4/hJQ== X-Google-Smtp-Source: AGHT+IGI4zPfcPXvPEEnvCwfrA+Odhkker0uArSHqchQfr67AgLPdtnhXYs3swMKUW+nr43P7oVl X-Received: by 2002:aca:1801:0:b0:3d1:cb32:32e6 with SMTP id 5614622812f47-3d1e35c4d8amr10205021b6e.56.1717463105951; Mon, 03 Jun 2024 18:05:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717463105; cv=pass; d=google.com; s=arc-20160816; b=PmPxrYdz1n9wndp5bi0gObv/O7j8gEfWJc4Pu55Af2oyrIqliKhamaTnMj367e1+cL D+7k0EAJGVg6vkpR1TkM3COmGuKLZW2HDEU4lg+Uv8SHFYconQdqGCkm9rLVP7bPzQTg mXT5B7/Y23qiVxvR4Yw2CodAUIa3VozLVqXcJB1Uu/KLH1blUQUhuR9LspgoO0ZOLcrP murraz0UnFbM7vxCtf+JPpMq/hPQ0AAisYO7q25vT7joZwfssx+Lnvl85qOICPc44ZoX kPfgTigCEqzv/HfVsF5vqChnZDb72mr7kBCt3lCD7A3hxxEpcDChDEPicH3GNGGMcnO2 UoEg== 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=fDfElrIUXmCQSgY5J8yYm3Oy0oXLao8Xd/nsOmUfo+s=; fh=6vUJ7QwCcwJKtmOg/XQ5ksmI+G1YZac6pZxxsslyitw=; b=ugjxJaIMSI3WSp3X2SzBEgNdjWMDuHR8ts3U2ZJYp5gz/i2OXiDhWvUeE3JJDPv86S PsoznFhe1bbofgnhGUIE5ILTVuf6FMB0FxzZcnnzmia1CYX7dF49Qc+yWZL5enNu6tmQ svIQzIoh/m5EV8WeMd868rtfAtzmHbBPQuoHNcgeVTgQGyicLLsEmumGoLwNigdCEvGq hU8vTdpgeLUDm1QjSe0knXVvMV/WTN4ny25J/1UGib7oxXOshjWmA7sL6FQSeeBfskAt bR4eO/1v2CpcvurYTlDZypAi9v7HX/7r6yS1Cfn39jS26PZ8oIMDGZcC3EkFT+wibfhB FlTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G89tGdnv; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-199890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199890-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 6a1803df08f44-6ae4b41532fsi94428586d6.358.2024.06.03.18.05.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 18:05:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199890-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=G89tGdnv; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-199890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199890-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 A60EB1C219DA for ; Tue, 4 Jun 2024 01:05:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5DDC8C1F; Tue, 4 Jun 2024 01:05:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="G89tGdnv" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 D1E55811 for ; Tue, 4 Jun 2024 01:04:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717463100; cv=none; b=ecth8U5BIFAJ8v8FxMNMAiwp4QBHgE8dXw1kiXyI1zqw46sdUHCtxjuaoOzw/ODo61RVBKQ8WvrAyqFLxjWtFFVc4syUXZGc6ehZBIABIFvKbi8LADWsucvYgAamUo0uUUaONazYR6ZNmkxwKQ9bBVikBtsBBgLedlhz8RM2EMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717463100; c=relaxed/simple; bh=P8eBB5Cc87RKZAf0H78uJjnNtiqeWTjcR7eQmw+/CFE=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=fSODjT9uFXFnfrDjPC1Q4r87goN8MfE6afLtFYYqevbeLbpMPBzlWN+4PYcdgYGMxbH8HF7UCLrsJCWoB7WDOccDzeQpML0qKoFvMCeX0PaC8xEUFHPqzaP2xeVVIYWaWhq3xxVSSvmcMremk7V6xmiDH4y7FgA5iTQEibsjR/I= 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=G89tGdnv; arc=none smtp.client-ip=198.175.65.11 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=1717463099; x=1748999099; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=P8eBB5Cc87RKZAf0H78uJjnNtiqeWTjcR7eQmw+/CFE=; b=G89tGdnvKkjrw1wT5Zi2yHImxJuF9c3Ulokfu5rAoiPNvOMNMXt5js1J cG3MuOPt1DZD45xkjrRFWC/HqHxSREgNGoJpbvmNusi6Z9vj/5d0Mw1Wa e1Q/SVGKRqFQXRoqJDQv6FALbwZ/jcJcYEryvK68A+ewfo/GJuPzIovMU JBAxQ2jUxv7KXxhJ9TgYeMK5lchQ9QTKKv0F0KsgBx38kvSjCo44oAZhz NqRfoEZhFHkbDeeRcONOu2bexVljBk2roWHjYLqKdJzZvjJSemllzv1MC Xz/vruUhyL906v0Ci6arlEjbUIb3cvfuUrTc7ByzTc6JffFWEGnF4LpVW A==; X-CSE-ConnectionGUID: aSnBZA82QpqHxC7q49FNoA== X-CSE-MsgGUID: QwdIANBoSG+3MBxFDim1Gg== X-IronPort-AV: E=McAfee;i="6600,9927,11092"; a="24562720" X-IronPort-AV: E=Sophos;i="6.08,212,1712646000"; d="scan'208";a="24562720" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 18:04:58 -0700 X-CSE-ConnectionGUID: qKwXtPxHQDygtcPp8UG2/A== X-CSE-MsgGUID: SRYksvRpTWSuBkLTIBhSlQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,212,1712646000"; d="scan'208";a="67883645" Received: from unknown (HELO [10.239.159.127]) ([10.239.159.127]) by orviesa002.jf.intel.com with ESMTP; 03 Jun 2024 18:04:54 -0700 Message-ID: <05211393-84dd-4a59-b627-1fc5ab9b1b3d@linux.intel.com> Date: Tue, 4 Jun 2024 09:02:40 +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, Yi Liu , Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , 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 00/20] iommu: Refactoring domain allocation interface To: Jason Gunthorpe References: <20240529053250.91284-1-baolu.lu@linux.intel.com> <20240603133550.GA21513@ziepe.ca> Content-Language: en-US From: Baolu Lu In-Reply-To: <20240603133550.GA21513@ziepe.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 6/3/24 9:35 PM, Jason Gunthorpe wrote: > On Wed, May 29, 2024 at 08:02:12PM +0800, Baolu Lu wrote: >>>> drivers/infiniband/hw/usnic/usnic_uiom.c:       pd->domain = domain >>>> = iommu_domain_alloc(dev->bus); >>>> >>>> This series leave those cases unchanged and keep iommu_domain_alloc() >>>> for their usage. But new drivers should not use it anymore. >>> >>> does it mean there is still domains allocated via iommu_domain_alloc() >>> on VT-d platform? >> >> I think the drivers mentioned above do not run on x86 platforms, or do >> they? > > usnic does.. What was preventing converting it? Nothing, just because it wasn't that obvious. :-) I will convert it in the next version. Best regards, baolu