From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjorn Helgaas Subject: Re: [PATCH v3 2/9] PCI: Add a stub for pci_ats_disabled() Date: Wed, 17 Apr 2019 14:48:16 -0500 Message-ID: <20190417194816.GB18308@google.com> References: <20190417182448.12382-1-jean-philippe.brucker@arm.com> <20190417182448.12382-3-jean-philippe.brucker@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20190417182448.12382-3-jean-philippe.brucker-5wv7dgnIgG8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Jean-Philippe Brucker Cc: zhongmiao-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org, rjw-LthD3rsA81gm4RdzfppkhA@public.gmane.org, will.deacon-5wv7dgnIgG8@public.gmane.org, linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, sudeep.holla-5wv7dgnIgG8@public.gmane.org, okaya-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, robin.murphy-5wv7dgnIgG8@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, lenb-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org List-Id: linux-acpi@vger.kernel.org On Wed, Apr 17, 2019 at 07:24:41PM +0100, Jean-Philippe Brucker wrote: > Currently pci_ats_disabled() is only defined when CONFIG_PCI is enabled. > Since we're about to use the function in the Arm SMMUv3 driver, which > could be built with CONFIG_PCI disabled, add a definition of > pci_ats_disabled() for !CONFIG_PCI. > > Signed-off-by: Jean-Philippe Brucker Acked-by: Bjorn Helgaas > --- > include/linux/pci.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 169c6a18d0b0..61d7cd888bad 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1713,6 +1713,7 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d, > static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, > struct pci_dev *dev) > { return NULL; } > +static inline bool pci_ats_disabled(void) { return true; } > #endif /* CONFIG_PCI */ > > #ifdef CONFIG_PCI_ATS > -- > 2.21.0 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D5D0C282DA for ; Wed, 17 Apr 2019 19:48:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1A1DC2173C for ; Wed, 17 Apr 2019 19:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555530499; bh=eGZIH1j5aHLmXDg/L+dky5LAU15lpR120g+KfFXu1Zw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=R+dHuMdHgEWCFIPg27q6oc7WD8ljRTka8daom9x2+pD2qRihotHKyvMKP1m8LX9KF SWiwMsA64YEiR/h9H7eU1BHESkUEPzn2x59al5DrtgtFMLHDaPSCfZ7dVeaSZ3lHqr o3pe/Uthl+l2zDn0xYkSjJ9ntF96wqlwVtV7wxPs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732750AbfDQTsS (ORCPT ); Wed, 17 Apr 2019 15:48:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:49370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729779AbfDQTsS (ORCPT ); Wed, 17 Apr 2019 15:48:18 -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 8B636205C9; Wed, 17 Apr 2019 19:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555530497; bh=eGZIH1j5aHLmXDg/L+dky5LAU15lpR120g+KfFXu1Zw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1HiLnkNh0eFB3sALCNyGZ3En7o4R97MLBoKHqM6WapogYTEaRZXExR2tuajTfA6oB nV9NapbSYmCuuF6+fkZJVhei9hqnQ2JahFVdSmXNquU+odAWz9MvNuKXPuKqnMou+H 1N6aYcZqiqjALTei2cNkfqnowwRCVrRBWduA5XA0= Date: Wed, 17 Apr 2019 14:48:16 -0500 From: Bjorn Helgaas To: Jean-Philippe Brucker Cc: will.deacon@arm.com, lorenzo.pieralisi@arm.com, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, robin.murphy@arm.com, joro@8bytes.org, hanjun.guo@linaro.org, sudeep.holla@arm.com, rjw@rjwysocki.net, lenb@kernel.org, okaya@kernel.org, zhongmiao@hisilicon.com, eric.auger@redhat.com, linux-pci@vger.kernel.org Subject: Re: [PATCH v3 2/9] PCI: Add a stub for pci_ats_disabled() Message-ID: <20190417194816.GB18308@google.com> References: <20190417182448.12382-1-jean-philippe.brucker@arm.com> <20190417182448.12382-3-jean-philippe.brucker@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline In-Reply-To: <20190417182448.12382-3-jean-philippe.brucker@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Message-ID: <20190417194816.o3d7zTkXVu3FHdd7j4-0zjBYvHxLc2llbueWOapLtaw@z> On Wed, Apr 17, 2019 at 07:24:41PM +0100, Jean-Philippe Brucker wrote: > Currently pci_ats_disabled() is only defined when CONFIG_PCI is enabled. > Since we're about to use the function in the Arm SMMUv3 driver, which > could be built with CONFIG_PCI disabled, add a definition of > pci_ats_disabled() for !CONFIG_PCI. > > Signed-off-by: Jean-Philippe Brucker Acked-by: Bjorn Helgaas > --- > include/linux/pci.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 169c6a18d0b0..61d7cd888bad 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1713,6 +1713,7 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d, > static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, > struct pci_dev *dev) > { return NULL; } > +static inline bool pci_ats_disabled(void) { return true; } > #endif /* CONFIG_PCI */ > > #ifdef CONFIG_PCI_ATS > -- > 2.21.0 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAE5DC282DD for ; Wed, 17 Apr 2019 19:48:19 +0000 (UTC) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 76E2A206BA for ; Wed, 17 Apr 2019 19:48:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="1HiLnkNh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 76E2A206BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 4CD6FCA6; Wed, 17 Apr 2019 19:48:19 +0000 (UTC) Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 551ABC8B for ; Wed, 17 Apr 2019 19:48:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 0EBD687F for ; Wed, 17 Apr 2019 19:48:17 +0000 (UTC) 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 8B636205C9; Wed, 17 Apr 2019 19:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555530497; bh=eGZIH1j5aHLmXDg/L+dky5LAU15lpR120g+KfFXu1Zw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1HiLnkNh0eFB3sALCNyGZ3En7o4R97MLBoKHqM6WapogYTEaRZXExR2tuajTfA6oB nV9NapbSYmCuuF6+fkZJVhei9hqnQ2JahFVdSmXNquU+odAWz9MvNuKXPuKqnMou+H 1N6aYcZqiqjALTei2cNkfqnowwRCVrRBWduA5XA0= Date: Wed, 17 Apr 2019 14:48:16 -0500 From: Bjorn Helgaas To: Jean-Philippe Brucker Subject: Re: [PATCH v3 2/9] PCI: Add a stub for pci_ats_disabled() Message-ID: <20190417194816.GB18308@google.com> References: <20190417182448.12382-1-jean-philippe.brucker@arm.com> <20190417182448.12382-3-jean-philippe.brucker@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190417182448.12382-3-jean-philippe.brucker@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Cc: zhongmiao@hisilicon.com, rjw@rjwysocki.net, will.deacon@arm.com, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, iommu@lists.linux-foundation.org, sudeep.holla@arm.com, okaya@kernel.org, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org, lenb@kernel.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Sender: iommu-bounces@lists.linux-foundation.org Errors-To: iommu-bounces@lists.linux-foundation.org Message-ID: <20190417194816.O3gWzPCc9Yx_syndcdkmw1sb1fZuAfPkp46upLOMg1I@z> On Wed, Apr 17, 2019 at 07:24:41PM +0100, Jean-Philippe Brucker wrote: > Currently pci_ats_disabled() is only defined when CONFIG_PCI is enabled. > Since we're about to use the function in the Arm SMMUv3 driver, which > could be built with CONFIG_PCI disabled, add a definition of > pci_ats_disabled() for !CONFIG_PCI. > > Signed-off-by: Jean-Philippe Brucker Acked-by: Bjorn Helgaas > --- > include/linux/pci.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 169c6a18d0b0..61d7cd888bad 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1713,6 +1713,7 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d, > static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, > struct pci_dev *dev) > { return NULL; } > +static inline bool pci_ats_disabled(void) { return true; } > #endif /* CONFIG_PCI */ > > #ifdef CONFIG_PCI_ATS > -- > 2.21.0 > _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A07CC282DA for ; Wed, 17 Apr 2019 19:48:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 56C04205C9 for ; Wed, 17 Apr 2019 19:48:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jiXWsBZ+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="1HiLnkNh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56C04205C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nsftxdTFKhK1D24TmhfWUg+LwXWCER0G9wSAVP8PrZ4=; b=jiXWsBZ+HZnQtp 7K0wjhkMto3N0FA5NvPp4hQJldTcnCmxgrVRfznJw4XQgBVEwXsgvvolYCGiSM1rAb5E7JzAnR6cH p+Lp278531u1lRofFtybk+1SryMrWbmMItMTQMVVpMI3BMReJtF7Ec8+BksDB79Gt9ph9vreA5QI6 TdX7wBp3lMHtj2+nGtDEBRJLW1Bc1dAulX8Pzyrm0BV16JwcC5dsyfFlBhY1wuhgZcO3otTiC1jCR 85eRbnt9oz6lxTQkRQRtVB4eM8BKUkh/6bNCMaPHoVfD6/VONuPoBb+opf1z17Cx692ZHdkQmcRoq /GygqwEVOeIM+kqhzPLQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGqXd-0001WB-87; Wed, 17 Apr 2019 19:48:21 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGqXa-0001Va-3g for linux-arm-kernel@lists.infradead.org; Wed, 17 Apr 2019 19:48:19 +0000 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 8B636205C9; Wed, 17 Apr 2019 19:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555530497; bh=eGZIH1j5aHLmXDg/L+dky5LAU15lpR120g+KfFXu1Zw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1HiLnkNh0eFB3sALCNyGZ3En7o4R97MLBoKHqM6WapogYTEaRZXExR2tuajTfA6oB nV9NapbSYmCuuF6+fkZJVhei9hqnQ2JahFVdSmXNquU+odAWz9MvNuKXPuKqnMou+H 1N6aYcZqiqjALTei2cNkfqnowwRCVrRBWduA5XA0= Date: Wed, 17 Apr 2019 14:48:16 -0500 From: Bjorn Helgaas To: Jean-Philippe Brucker Subject: Re: [PATCH v3 2/9] PCI: Add a stub for pci_ats_disabled() Message-ID: <20190417194816.GB18308@google.com> References: <20190417182448.12382-1-jean-philippe.brucker@arm.com> <20190417182448.12382-3-jean-philippe.brucker@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190417182448.12382-3-jean-philippe.brucker@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190417_124818_161898_220C14E1 X-CRM114-Status: GOOD ( 15.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lorenzo.pieralisi@arm.com, eric.auger@redhat.com, zhongmiao@hisilicon.com, rjw@rjwysocki.net, joro@8bytes.org, will.deacon@arm.com, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, iommu@lists.linux-foundation.org, hanjun.guo@linaro.org, sudeep.holla@arm.com, okaya@kernel.org, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org, lenb@kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Apr 17, 2019 at 07:24:41PM +0100, Jean-Philippe Brucker wrote: > Currently pci_ats_disabled() is only defined when CONFIG_PCI is enabled. > Since we're about to use the function in the Arm SMMUv3 driver, which > could be built with CONFIG_PCI disabled, add a definition of > pci_ats_disabled() for !CONFIG_PCI. > > Signed-off-by: Jean-Philippe Brucker Acked-by: Bjorn Helgaas > --- > include/linux/pci.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 169c6a18d0b0..61d7cd888bad 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1713,6 +1713,7 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d, > static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, > struct pci_dev *dev) > { return NULL; } > +static inline bool pci_ats_disabled(void) { return true; } > #endif /* CONFIG_PCI */ > > #ifdef CONFIG_PCI_ATS > -- > 2.21.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel