Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1106653ybe; Mon, 2 Sep 2019 14:39:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjU+GBJgyZxZn90ZNHu/W5vmGBWfmuD47c93ZITydQwDvXgfHsaMlzhHD1EoPlr1pMKNyA X-Received: by 2002:a63:fc09:: with SMTP id j9mr25899320pgi.377.1567460381557; Mon, 02 Sep 2019 14:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567460381; cv=none; d=google.com; s=arc-20160816; b=SEKYA4Piq8eNIDWk1f/qWyJaMqtg8y708JxGNYbs939Fq/KX4uqhIqmJYZ1fkq3iF/ Md5kH2UKuFCvtKmwmAzb3z/38FV97yjDJ+el/wT9nVR2WHDUfz5tnpfrAG3wyC6oNhfB 7tJTb9Fgd7MAn8HC07r9V3QYTYk85DwpaLTUjwQYkZypNgdiWggbxB4T/LUCnchKhPCt bZ8DBaViItPhj0f8SuIEVch8NwbyjEF8zRORe5FjPz+EiME59AWGVUaVqxfSU+GUEZyV iYhK7BLFfrC4Sujbh+lqva9wjvkmYK4pm7QuIAShN+kgqqHgXVlxgEmXYk0hauAiG6Cm qcwA== 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:dkim-signature; bh=cgcQFpFd/yKyw9LdrUY34tTGAK9a54Znxy2YqBzX/9o=; b=A968AVxSe51qrgaSky+/UQ8lijVlnSfF2YB2HVbm4ieCa5HvUNYOmXfp5YvtS+zDwa stpEvDrx48NTt7Yi8596rk/6RfcPFuY3ODTescfz/ygClUK5TekP59USl+3lLmieuwP7 LorYtaDMxQBFxz1iwNjtl5/pZmCp/dTNyBQVb0r6/HWTnseBzr61l9fgHPuPV+qGnLnx WmhlbKbPM8Lc+wwWAzblrz93Vmr0LvB9+UlIBfzb6j6FGGP1loahkaC4asQ0cKWvdIl5 zV0Zs9d903c9pZDJBx7fXrtQyqm3jflzfLCRMFJt44r89Tn4zLxLeLV31ghaPUKyOhAD nrtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zWpp0ekw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si59180pjo.33.2019.09.02.14.39.26; Mon, 02 Sep 2019 14:39:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zWpp0ekw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727749AbfIBVia (ORCPT + 99 others); Mon, 2 Sep 2019 17:38:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:49356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727318AbfIBVi3 (ORCPT ); Mon, 2 Sep 2019 17:38:29 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CABC520828; Mon, 2 Sep 2019 21:38:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567460308; bh=kaaq401nmBdTSHu/XiUBD70JNneEb8DIrs7hzf+jJHc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zWpp0ekwFLO9mEtnMHUAEc17a8bDcIff1Kozu6gDr4uXN3F9z04i1GNSj/QOZ5rKe FuHpA83H1qV8KrwcFIOyzgWaTfrOqG2VvFNMund6t/JQJRgqCUafDAKfxyeOndoZtF quD/TKjyWIqOB1/QEOmWDfYieCsTGdVxuxScOlfE= Date: Mon, 2 Sep 2019 16:38:26 -0500 From: Bjorn Helgaas To: Christoph Hellwig Cc: Krzysztof Wilczynski , Will Deacon , Joerg Roedel , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-pci@vger.kernel.org, Robin Murphy , David Woodhouse , linux-arm-kernel@lists.infradead.org, Kelsey Skunberg Subject: Re: [PATCH] PCI: Move ATS declarations to linux/pci.h Message-ID: <20190902213826.GI7013@google.com> References: <20190830150756.21305-1-kw@linux.com> <20190830161840.GA9733@infradead.org> <20190902211100.GH7013@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190902211100.GH7013@google.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 [+cc Kelsey] On Mon, Sep 02, 2019 at 04:11:00PM -0500, Bjorn Helgaas wrote: > On Fri, Aug 30, 2019 at 09:18:40AM -0700, Christoph Hellwig wrote: > > On Fri, Aug 30, 2019 at 05:07:56PM +0200, Krzysztof Wilczynski wrote: > > > Move ATS function prototypes from include/linux/pci-ats.h to > > > include/linux/pci.h so users only need to include : > > > > Why is that so important? Very few PCI(e) device drivers use ATS, > > so keeping it out of everyones include hell doesn't seem all bad. > > This was my idea, and it wasn't a good one, sorry. > > The ATS, PRI, and PASID interfaces are all sort of related and are > used only by the IOMMU drivers, so it probably makes sense to put them > all together. Right now the ATS stuff is in linux/pci.h and PRI/PASID > stuff is in linux/pci-ats.h. Maybe the right thing would be to move > the ATS stuff to pci-ats.h. > > I previously moved it from pci-ats.h to pci.h with ff9bee895c4d ("PCI: > Move ATS declarations to linux/pci.h so they're all together") with > the excuse of putting the external ATS interfaces next to > pci_ats_init(). But that really looks like it was a mistake because > pci_ats_init() is a PCI-internal thing and its declaration should > probably be in drivers/pci/pci.h instead. Never mind the pci_ats_init() part; Kelsey has already moved that: https://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/commit/?id=b92b512a435d