Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1164158pxx; Fri, 30 Oct 2020 03:52:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2TRx1y2BDOU719mmw2MEU8xDR9Q+4V2YMtDfk9eAPYiF2kuW3XTTw3lgmOzF8UhmuOo2p X-Received: by 2002:aa7:c717:: with SMTP id i23mr1558424edq.250.1604055146089; Fri, 30 Oct 2020 03:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604055146; cv=none; d=google.com; s=arc-20160816; b=kL8fguF2IpfLUjDc/mHP8au9ELpGEFhxXO3p/1RTqiJXgmFkJ8qqRqqjut8h4/Riqi y82SsSX+W9CzGIm+QAsqp9op+6iOqYtpVR1Ar+trBls9QEHKv55F+a+HTdn5yQoBLK7r HqV9WdFHQjkGl3PbuDSBcceJXxpRaiHtTbndXAyebCZkkXdmfzzAqSiRZViEKJl/Mfuo XVIS9NzF0pp8N/ZrC28kmjw68aEP8E9Mc6C+LasNQ6mzkGnb3U5jXfKbxAR289T1ihX7 jc9/LfZm6SdVQO2UDkaHeUtKjLeOtWIEmMD+XDY5BgqJeLiQMHAYn1ZmGEM2YQxnI7TV AQsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jQiudrT92RoT4MnO8l4PixRWHyCh7YwN2t6t0NWCl8I=; b=KcutZKC6TBp9Aat2ASbrs7hPnJ8yP/lXL5CyYaUCqK6JzBkMn4IrZDDEeCYOvuY9kt ySen5qwJLsYwbl01PusvhsDwVEtei0GsmW4sqpslDbTxMCQLta4J2uS3sZwqpeZlZOvK kF19Gs/wnSA0v+/N9yyu1LfphbzI8TRhemU2FqgzI8lRg63w0Q18ElFjkibDyohz5Q/V 89yhszpZAwJ+skL2FK6v6c7LGpXERvzWr62eam6159yykkdfT3dI61L2odFnI3V5SEMA RvBwx2SRBVkXaEDw+KC/qP7JhsfQZSjtBffl35p+NTm3cmFdHmiIZu0ZEfEvpedI/NT/ 5N9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VFde5+mz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t26si3776491ejr.336.2020.10.30.03.52.02; Fri, 30 Oct 2020 03:52:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VFde5+mz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726472AbgJ3Krp (ORCPT + 99 others); Fri, 30 Oct 2020 06:47:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726402AbgJ3Kro (ORCPT ); Fri, 30 Oct 2020 06:47:44 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3B68C0613D2 for ; Fri, 30 Oct 2020 03:47:42 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id w14so5911986wrs.9 for ; Fri, 30 Oct 2020 03:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jQiudrT92RoT4MnO8l4PixRWHyCh7YwN2t6t0NWCl8I=; b=VFde5+mzL3XrpwutQuptYgGfpVk1egIssR+s26ty3ekZpYibBDTiuQV5zFapNyE8xz 6v3A8xMfNiFzLTb2cZNXwVhfFARk+bgSkdGbO1edAjpGrdx5RQU69IAKu6NNVcwyG0PF womXcacbz9uNGUZOOgJZcSMSXlgQGCd9OLAmd/A0MLaIjmlAyAXznwmASzALVIyF50wC 84Aa6i3GxiZKW4MuYqFzR9Synue4zXdlcG6itsZ2CxWa7iREgT0xl/I6wTenPtbWqOAZ 9u++nR0d94pEaUBIH7tjNuyvVXlbrmkmFI2i4mOunI1OiwJyZvA9yxzHRXONpj+854wX DXcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jQiudrT92RoT4MnO8l4PixRWHyCh7YwN2t6t0NWCl8I=; b=CCd3FwvBi1OUswk9sLk5y23oviR8l26vB0VTBt5/3ZJintjGt4AQWfoO0l60LNx0EY 08NpfLMDSgbbAJmXJVWf0y9SLQWHy7baYeCes90yadHS3TxZJbeIlJEWS/YzIxN76ahJ +eckO0yNQzK/HxL3+hIIEuscnWQe4Og2AfpXV5SG6q5Rmm98hJl1V0wCEZ7u5mDQ0Rx5 Sa9NlcDsuBT7xBNtnnrjgLYUh3i6BfyxSqJgE02GIf2zxvZYXoYHODF3EYHrYat66N1j THxqBzpb8qJEM9dww8u5d2hIfWyHbDNDHWMeWr6D29SL8caKaFORPnayFT0tWxW0xdcW n3Mg== X-Gm-Message-State: AOAM53186eB8vOWOAt87vnnseJmXYM/npOndJPDPSqQYfCtBA64QTdbV N4cL2+vhqyp+5OwnVPbXhqUkEA== X-Received: by 2002:adf:df02:: with SMTP id y2mr2428311wrl.403.1604054861343; Fri, 30 Oct 2020 03:47:41 -0700 (PDT) Received: from myrica ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id y201sm4495303wmd.27.2020.10.30.03.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Oct 2020 03:47:40 -0700 (PDT) Date: Fri, 30 Oct 2020 11:47:20 +0100 From: Jean-Philippe Brucker To: "Tian, Kevin" Cc: Lu Baolu , Joerg Roedel , Alex Williamson , Robin Murphy , Cornelia Huck , "Raj, Ashok" , "Jiang, Dave" , "Liu, Yi L" , "Zeng, Xin" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , Jordan Crouse Subject: Re: [PATCH v6 2/5] iommu: Use bus iommu ops for aux related callback Message-ID: <20201030104720.GA294997@myrica> References: <20201030045809.957927-1-baolu.lu@linux.intel.com> <20201030045809.957927-3-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 30, 2020 at 05:55:53AM +0000, Tian, Kevin wrote: > > From: Lu Baolu > > Sent: Friday, October 30, 2020 12:58 PM > > > > The aux-domain apis were designed for macro driver where the subdevices > > are created and used inside a device driver. Use the device's bus iommu > > ops instead of that in iommu domain for various callbacks. > > IIRC there are only two users on these apis. One is VFIO, and the other > is on the ARM side (not checked in yet). Jean, can you help confirm > whether ARM-side usage still relies on aux apis even with this change? No, I have something out of tree but no plan to upstream it anymore, and the SMMUv2 implementation is out as well: https://lore.kernel.org/linux-iommu/20200713173556.GC3815@jcrouse1-lnx.qualcomm.com/ > If no, possibly they can be removed completely? No objection from me. They can be added back later (I still belive adding PASID to the DMA API would be nice to have once more HW implements it). Thanks, Jean