Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp668457ybz; Wed, 15 Apr 2020 16:17:25 -0700 (PDT) X-Google-Smtp-Source: APiQypIHVMBywTfp4yu5IpYkvWklW9wTOtW/qekSIc6o0F98hCh4ZQRwLy1l0j0sWWRWeavcR7nY X-Received: by 2002:a17:907:2107:: with SMTP id qn7mr4953910ejb.316.1586992644857; Wed, 15 Apr 2020 16:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586992644; cv=none; d=google.com; s=arc-20160816; b=sYfmfLQpgemVvkiazydxEkC2/zTOD2A5/I8sbwpEi7qvAlBWS1R2qz9AgyIUTLrMzF JMkMh0Wm4poXMeecO47GIxMmJC28c0jqNPngy4SNrGkNToD+vey/zXWm1rSPHBJw2IJn ij2SpdLmk+K7yDv0ci5aKZ1E0R2zaLWx/pBE/c391DJJnQB65loB6mPxewA7VNGAaZr9 2w8pVUptsfAcUYkY0NLgY993NbO0xwC48x+XCbH6eyliOHv/XraeCvIoeazw5atwwjmU QZQl5H1rYdzgR7R1NyYmivz/7Qt5MiQKYljKQfTMYgMwcamLUbNulmXRvWbjnZTpdXzn 3nPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=cOZwkyq7qAY5FrRePAXNWo+hEuG19d8bsRtQqUnwGa0=; b=u/T0n+jP2lYwSg5VQQzbLWXJwrFtlYTHAJ7oRTxYUEKO0+NRDRmfuRUuMX4fqyNV9Z pF5IS5BF1E5NGQbWno+qnsbbSUMnRVFjVIdzMiBsmIWdZYdAW7fqLxRE/NlH3WKmClhv NRG4uD28oglxxPdUwozuTGnc9TzQT8RoP88T9f45ioiLziyxUquYXCMdOkG1TruV/0et p5I1L7jVV1ZRvRZgIKu7fuSDJZgIl7JiB670fXDsEjBIzzjc/gYrBjiMGhRn3A0u9oZJ qVYSq+KkoXs4nw7cEA1rsKHTdxil0iXmCLucy3ol57S8RixVRj+ilkJu/kSif19PPTzE FBig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si10899325ejh.81.2020.04.15.16.17.01; Wed, 15 Apr 2020 16:17:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S369593AbgDOMb7 (ORCPT + 99 others); Wed, 15 Apr 2020 08:31:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:53368 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S369595AbgDOMbp (ORCPT ); Wed, 15 Apr 2020 08:31:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C7A69AC11; Wed, 15 Apr 2020 12:31:41 +0000 (UTC) Date: Wed, 15 Apr 2020 14:31:40 +0200 From: Joerg Roedel To: Lu Baolu Cc: Joerg Roedel , Will Deacon , Robin Murphy , Marek Szyprowski , Kukjin Kim , Krzysztof Kozlowski , David Woodhouse , Andy Gross , Bjorn Andersson , Matthias Brugger , Rob Clark , Heiko Stuebner , Gerald Schaefer , Thierry Reding , Jonathan Hunter , Jean-Philippe Brucker , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v2 07/33] iommu: Add probe_device() and remove_device() call-backs Message-ID: <20200415123140.GC21899@suse.de> References: <20200414131542.25608-1-joro@8bytes.org> <20200414131542.25608-8-joro@8bytes.org> <0ad37581-b464-30ac-c503-4c0daaf43867@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ad37581-b464-30ac-c503-4c0daaf43867@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 02:36:20PM +0800, Lu Baolu wrote: > On 2020/4/14 21:15, Joerg Roedel wrote: > > From: Joerg Roedel > > > > Add call-backs to 'struct iommu_ops' as an alternative to the > > add_device() and remove_device() call-backs, which will be removed when > > all drivers are converted. > > > > The new call-backs will not setupt IOMMU groups and domains anymore, > > so also add a probe_finalize() call-back where the IOMMU driver can do > > per-device setup work which require the device to be set up with a > > group and a domain. > > The subject is inaccurate. probe_device() and release_device() are > added to replace the add and remove pair. This patch does not replace them yet, it just adds the new call-backs. The removal of add_device()/remove_device() happens later in the patch-set when all drivers are converted. Regards, Joerg