Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1084728ybe; Mon, 2 Sep 2019 14:12:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIYfrLMTSs4AuywCJz534M+hEEVQueeRpmGGn0RijvtsejXqTcdwC0sAH0qnhQmukTZwto X-Received: by 2002:a17:902:e686:: with SMTP id cn6mr32107879plb.12.1567458728343; Mon, 02 Sep 2019 14:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567458728; cv=none; d=google.com; s=arc-20160816; b=KaQIj6FT/twGnySVFTzfJP8hwHsnDuv8uh1MhmrmXW9D3R+nRUa5hgjwa/oeyIzYGm /bDWZwHCW62cnPGdI9hsjDT82Z6xZy/ntjFtAqYCwtW8bNRi7YptIT+yH+1rJlzUuULQ pndcUAIfMR43ZMbDYxvd0W5BnHR2SKsWSqgS+rurl/m0qC6ngl960l4pUBq7IdRwSiAf oxb11XE11zFHi2sip22KoWESgO029xTpFJVcM9Mp3zYcWuXbRA4f1V7rZMhM6NYYk6c4 /U2W3Rx8MNQMckZdyz0r1ehDP2eJBZd+F4Y+XESyDoXseY4CD9/fzMJ8Pg9LvHE7MqlF AoNw== 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=iUtkTvt9AzmknH1gOpdEoaQCiyXZLli5i26U2YULhhs=; b=n0c0rcgRQ+cn0lLpVj+sNRmYs+FxOmbWU8tLG+b2ekHQwTAyNiPC3P0gYNNbbRZVC5 l8MgYQwUkbjKzELTOt626R3+YEVXcFi7v/lLFF3MT1o9T05RTUTR8/+j1oGdUgQqqFn4 qaM3db4WJYylESsEQ/HtqNLNaa9rUyv0+vVoaBejiizYRLk+n7fCEsniMpiATTLkRFRA VW81ubwzqmvzs1SP8Qd3wPvmnRdNyGED3d6Xi8dybKJfNgmE85iO5R4T2WEy61eyhLfD ESaEU8Fa9JGwLvGM3lCwiiQpVUhiYN6t45jbK1xfp7pVMTDC8A8CbA5DxG+RrfYsVwPT hNyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AD5eFMS4; 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 y11si2422976pjp.77.2019.09.02.14.11.51; Mon, 02 Sep 2019 14:12:08 -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=AD5eFMS4; 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 S1727415AbfIBVLE (ORCPT + 99 others); Mon, 2 Sep 2019 17:11:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:35392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726979AbfIBVLE (ORCPT ); Mon, 2 Sep 2019 17:11:04 -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 EE26E20870; Mon, 2 Sep 2019 21:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567458663; bh=qX20IVLvUSWOzNkJj+sBxx54B1HMotDbCAEmajym6B4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AD5eFMS4HiX4X1/0G9Dh521nWKDrI33a0LGJ0QWlqf8kqJtJGwk+ofVyNT7IeCGfl Im9W9rMBG81wLTIm2kTSbYoxtjkXIiRrPWYKaSy4KyVxMQEWteJ9LBElPao4m4VEYW tpe6XC5372WqFaPwj4r+5pjb3N8k7cK0+9491v18= Date: Mon, 2 Sep 2019 16:11:00 -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 Subject: Re: [PATCH] PCI: Move ATS declarations to linux/pci.h Message-ID: <20190902211100.GH7013@google.com> References: <20190830150756.21305-1-kw@linux.com> <20190830161840.GA9733@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190830161840.GA9733@infradead.org> 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 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. There's also a useless "struct pci_ats" forward declaration in linux/pci.h that I should have removed with d544d75ac96a ("PCI: Embed ATS info directly into struct pci_dev"). Bjorn