Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp968564lqj; Mon, 3 Jun 2024 06:36:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV84CQkn6gmnqRyN5mlgyXRkdUwsWp82lzWPIL0B05jdmPb0/xUy0ncVQeflMSVaVvIg5cOGlRHsWyPtLwMuUUHNVeLCUrG2j4JnO9bgw== X-Google-Smtp-Source: AGHT+IGvZSGjXrNxCxlsVt4Fjf8RkUWQprNIcvj5n7SzAnIQK4gYwS3q7pgrwixzW0pZt1dKoubb X-Received: by 2002:a81:af0d:0:b0:61a:b038:6d34 with SMTP id 00721157ae682-62c797252e7mr98212317b3.24.1717421761006; Mon, 03 Jun 2024 06:36:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717421760; cv=pass; d=google.com; s=arc-20160816; b=Vgjl4UMvdURQknRHLLuZEMTY/D4oG2YHXerYHJ+NdBG9O7+HdtLe3XwEaUJ1EvdOqr HmZjEuCB6f4gDDsJqCAiGeoQJZIgm2VhcVN4nMq3Iwb1PHa8EmrecT31Qozwqx84RSTC mcRi4NKVr2NId0XmcpyABr+CwByK3pMm8lo0sYZbVOLlijO55wPoiVBbcXoGYSEycDlS clliuUANv4bMHYib6KWKx3Je5flOJCQHkik8gumJGkcn+S04wRJ+daA76fkAi6VQxO68 SMI/oFTunR6w591S7Q3XdboT7vwenL2ckjwDlBo60baJDuy+bEoSsZRWiTLje9qZRzd2 K0cQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dpQgkoNkKgb0seCNmhxhfzV1gHyMbT/I1OQXluiQxwc=; fh=+uL0Pu3ULw+vsdKu7BXViiJK5HR/B0arlgmTa0a/oZ8=; b=x8HBRZWHbmDo/m1I+CC4S0NLa9oFl1Fs6W3MVddDBFFTq/s7DL4Lj+qBIjya41FeD2 EKGqnaVIfb7KUKWoWvyX2OlhcNiXfAqKPNDyL/larvWOh40q4NBktcoQpf6DZPzHgwdj vv0h5oDnr+yA1ywj4P1/wiwwiyLL8u7n/VrtzlSShz9XrUnVw7zOfh7PPqfVjJGgWuZE g4LtC8jIRKswCWh6Tz/FRpA8BuQoARgc/j1Kga7Dr6vMSbdOLZYnsMdoNTfezbTjjgri DCeXZXy8Ty2vf/3R9LpVM5ds76PjpBVH7/EYTAcA36gb6hkmpMU67X1e/r5G98dN+b9r vjTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="Hv+/H2aM"; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-199223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199223-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a1e0cc1a2514c-80adee9330bsi1075903241.161.2024.06.03.06.36.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 06:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199223-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=@ziepe.ca header.s=google header.b="Hv+/H2aM"; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-199223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199223-linux.lists.archive=gmail.com@vger.kernel.org" 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 2D6A91C21DB4 for ; Mon, 3 Jun 2024 13:35:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D3D612D76B; Mon, 3 Jun 2024 13:35:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="Hv+/H2aM" Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D51D52209B for ; Mon, 3 Jun 2024 13:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717421754; cv=none; b=NgXYiOg4X77WNCk6C8wcxqmh4zjs9lgV8vOUJVmoGdomj8mX6ktGTyZslu+SoK7PTwmaVjd3XREhYwcjMFsPQ0l4mBATpGQ+fbzNtI2tAfUQEE0HqxCk9jrYyPek5YLsByZZILYT0m9FZWEh2HE7v+G8BpHzikmC2QDrtjPtlM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717421754; c=relaxed/simple; bh=5vkjRRpZm+wtBgmWH3raHLW2cMefR+vkRLLw6ojp6zQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NPUtfG2p4ogLBrvJHwUz7IQ2LHbqHR6IFvPoPtHoWIgkt6MVKo3fRJLK1kKksQ7lfTHe5mwcVXx0Fpt8ZU14kNoSf+BY6qom5DFGYlqc7FCKv6bFIJgq42n6yH6l6jkmpieo40vHiOvnlJ8RXnaxkWZTXOhDw2StND8PeOBHYAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=Hv+/H2aM; arc=none smtp.client-ip=209.85.210.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-6f9234e4261so949713a34.2 for ; Mon, 03 Jun 2024 06:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1717421752; x=1718026552; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=dpQgkoNkKgb0seCNmhxhfzV1gHyMbT/I1OQXluiQxwc=; b=Hv+/H2aMA+zzZaFolCVdhJ2X291EPbk2IjoSmwbmNwau7IPgIZ1uGoQBGpWCLDUNrb CgSbnY2pmoyX7RgXyXJnaAKFQ0ilRYJBVEFYrVzZdyiZUFu13U8TIfhDXR3AvTGTFNM6 LXY7H4bMVj9zhh5eXz5s+t9yzeTss9HRDdVchd4gwRyoPStlCVhi8ZqaPdzPnKjYfDQr dvQrOmNYs2O5ErVC3xhRsCdVEXPj598rep7FMh5F6zDJTPhvzaWGVHxNoX4PsJ+j53xj tLc/x5ECEyFKwDYiNK/P/rxf9nqNTiblEamNT8IgQQaG6seqhLG6JzPZoSeGAjHdakAl MMdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717421752; x=1718026552; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dpQgkoNkKgb0seCNmhxhfzV1gHyMbT/I1OQXluiQxwc=; b=nWRDwEXR78i5ZnZUpL4GukOXklPFSfFiqSOSTspqyljmTjINFGcR06icknL0rCCUoG GW2oFbqKMNWdGs6O+AM93cLxgb3OHC/cRN8/scxoLR4N4hLNBI+E3TEG+TBwVgMC46N8 gVMBpZik5GK+IHaRAg9HbanEKg15CBR92oGFACpW2zOw9v1fCBziDkgR7EXQwLG78r1P US1hb7PfSgAbFGEYIh6ShABOWmy5X7Kf5rFQzP9RwV43yqzuPKeNa+nE7nPXXu50AhQ1 ZuwkuWgAluX1tJ6ipDN7qgaOEtNHXivvJO34Ck8XOB9EdPGNrgGV45wCxzYj/iKiPKEN 49sg== X-Forwarded-Encrypted: i=1; AJvYcCXSjKtjZ+odyN9QnvPG2UmdArlWeEe56ar2mJw9Vo+RNsm0LWlTVJaeRpQ/R2R+MxWsj2JKv4z7zLbAjtGWtblSSNz0grf2/yRW4Rfl X-Gm-Message-State: AOJu0YyHKgO/9/SeU3krs7BP5aDiuYH9rFE41qPs39YC5E5JnN380lQ2 o5dhGq4kZfcnLbzZt7Kmk78y3Ra/B7WWNMoaX3jR2I4HWB855PLzidV5fvQi11c= X-Received: by 2002:a05:6870:c1cc:b0:24c:ae57:b4b9 with SMTP id 586e51a60fabf-2508b7e469cmr11967214fac.14.1717421751641; Mon, 03 Jun 2024 06:35:51 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id af79cd13be357-794f3172d05sm283188385a.113.2024.06.03.06.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 06:35:51 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sE7qo-000Eba-Az; Mon, 03 Jun 2024 10:35:50 -0300 Date: Mon, 3 Jun 2024 10:35:50 -0300 From: Jason Gunthorpe To: Baolu Lu Cc: 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 Message-ID: <20240603133550.GA21513@ziepe.ca> References: <20240529053250.91284-1-baolu.lu@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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? Jason