Received: by 10.223.176.5 with SMTP id f5csp2625450wra; Thu, 1 Feb 2018 03:31:14 -0800 (PST) X-Google-Smtp-Source: AH8x225nFwYcfYquJzjKft76k0ASulrtXZO36ZTUljdeTbFzw1nvGOMJSPkBPqCfh3YW6K7gRN6H X-Received: by 10.99.126.22 with SMTP id z22mr28666133pgc.231.1517484674083; Thu, 01 Feb 2018 03:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517484674; cv=none; d=google.com; s=arc-20160816; b=Gr11rCga9Tsx0HxWirRwMwjDkInWhKuv+s675AfOOPuDF5qH9q4W8UOU45hpzODQBm ROFbG1ex9YmlW8Ocjm9/ZZ/aHX2SmoUgYYXTXqcTHLvqMSDelm1uhK2rAKd1GYnQkZKN tW17HcndKvErNlkD9MKYGET8OZA9WNAZG6Yqj1wWaW8n87w0otn76ziEB1F3CLHZ/1En l3ndBpgSLhdjJ/42zzHLUj8kCM9nO1mPDsDkb/6aMB4Ebn0BhaYjtAoQZVkVjiUWeuw3 0f/ldpiXsSA0Bkga7wd0TBwMJbdtV2syYCCXW/o9QYbPS+EZoXJSOp6U0lKsL64ozM4L 5f5g== 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:arc-authentication-results; bh=3Ym7hORHPkhsMnLYNtmsUu1GYU1/W70kXDzcfjnjJps=; b=fgJXYkas3yy3rGxVsadwXU+7l6Xej5RwMtLlCl0EM9Ci4r1d6BloUDQbFbV33iXVLA Ikwt/tlGwgJzR5c/D2RZu3aeabDymABoUt1d8ekl1uzm3k8h1PnTKPjlW7XKOo01VM+U LgWNnjazSEhZkH2+ZPZUkOQg09GoJAzPoI4DuEgKWyfKUx9RNLXlQ7P/kNR79TqacNES Ee13rpkRE0d3zwyXdVOYJlwNxF7VPGzdIDzyigILlzkK0JSci9Cmi6zXUa6TbhbMIvj+ vjMHzekvRimcYYPMX1Mt5u+9fI6d33UOLUn2S4hn88aU9wWOwoww8104wpXnaMKOrfga 8+GQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u32si1289081pgn.770.2018.02.01.03.30.59; Thu, 01 Feb 2018 03:31:14 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752350AbeBAL36 (ORCPT + 99 others); Thu, 1 Feb 2018 06:29:58 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:56460 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752323AbeBAL3y (ORCPT ); Thu, 1 Feb 2018 06:29:54 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id BD02B18781; Thu, 1 Feb 2018 12:29:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3es-PdQ2eqPw; Thu, 1 Feb 2018 12:29:51 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id 58949187BD; Thu, 1 Feb 2018 12:29:51 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3A3F61A077; Thu, 1 Feb 2018 12:29:51 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2ECC91A067; Thu, 1 Feb 2018 12:29:51 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder02.se.axis.com (Postfix) with ESMTP; Thu, 1 Feb 2018 12:29:51 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by seth.se.axis.com (Postfix) with ESMTP id 22BA42545; Thu, 1 Feb 2018 12:29:51 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 18403401AF; Thu, 1 Feb 2018 12:29:51 +0100 (CET) Date: Thu, 1 Feb 2018 12:29:51 +0100 From: Niklas Cassel To: Kishon Vijay Abraham I Cc: Lorenzo Pieralisi , Stephen Rothwell , Bjorn Helgaas , Linux-Next Mailing List , Linux Kernel Mailing List , Cyrille Pitchen Subject: Re: linux-next: build failure after merge of the pci tree Message-ID: <20180201112950.GA14515@axis.com> References: <20180201105114.562aef46@canb.auug.org.au> <20180201085608.GA22568@axis.com> <20180201111054.GA3983@e107981-ln.cambridge.arm.com> <20180201111617.GA8396@axis.com> <30c8c87f-bba9-d71e-b8d5-4b547711bab2@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30c8c87f-bba9-d71e-b8d5-4b547711bab2@ti.com> User-Agent: Mutt/1.9.1+16 (8a41d1c2f267) (2017-09-22) X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 01, 2018 at 04:52:01PM +0530, Kishon Vijay Abraham I wrote: > Hi Niklas, > > On Thursday 01 February 2018 04:46 PM, Niklas Cassel wrote: > > On Thu, Feb 01, 2018 at 11:10:54AM +0000, Lorenzo Pieralisi wrote: > >> On Thu, Feb 01, 2018 at 09:56:09AM +0100, Niklas Cassel wrote: > >>> On Thu, Feb 01, 2018 at 10:51:14AM +1100, Stephen Rothwell wrote: > >>>> Hi Bjorn, > >>>> > >>>> After merging the pci tree, today's linux-next build (arm > >>>> multi_v7_defconfig) failed like this: > >>>> > >>>> drivers/pci/dwc/pcie-designware-ep.c: In function 'dw_pcie_ep_raise_msi_irq': > >>>> drivers/pci/dwc/pcie-designware-ep.c:293:8: error: too few arguments to function 'dw_pcie_ep_map_addr' > >>>> ret = dw_pcie_ep_map_addr(epc, ep->msi_mem_phys, msg_addr, > >>>> ^~~~~~~~~~~~~~~~~~~ > >>>> drivers/pci/dwc/pcie-designware-ep.c:177:12: note: declared here > >>>> static int dw_pcie_ep_map_addr(struct pci_epc *epc, u8 func_no, > >>>> ^~~~~~~~~~~~~~~~~~~ > >>>> drivers/pci/dwc/pcie-designware-ep.c:300:2: error: too few arguments to function 'dw_pcie_ep_unmap_addr' > >>>> dw_pcie_ep_unmap_addr(epc, ep->msi_mem_phys); > >>>> ^~~~~~~~~~~~~~~~~~~~~ > >>>> drivers/pci/dwc/pcie-designware-ep.c:161:13: note: declared here > >>>> static void dw_pcie_ep_unmap_addr(struct pci_epc *epc, u8 func_no, > >>>> ^~~~~~~~~~~~~~~~~~~~~ > >>>> > >>>> Caused by commit > >>>> > >>>> 4494738de0d9 ("PCI: endpoint: Add the function number as argument to EPC ops") > >>>> > >>>> interacting with commit > >>>> > >>>> 6f6d7873711c ("PCI: designware-ep: Add generic function for raising MSI irq") > >>>> > >>>> This should have been fixed up in commit > >>>> > >>>> 26b259ab4fe8 ("Merge remote-tracking branch 'lorenzo/pci/dwc' into next") > >>>> > >>>> I have used the pci tree from next-20180131 for today. > >>> > >>> Hello, > >>> > >>> A suggested merge resolution included as an attachment. > >> > >> The resolution is OK to me - we have not spotted it since > >> PCI_ENDPOINT is being turned on in the config file in question only > >> in -next, it is not on by default in current mainline, apologies. > >> > >> Lorenzo > > > > Adding Kishon to CC, he should probably have a look. > > > > https://marc.info/?l=linux-kernel&m=151747537928327&w=2 > > > > If Kishon approves the suggested merge resolution, > > perhaps it can be squashed with Cyrille's patch. > > The patch looks good to me. Since dw_pcie_ep_map_addr()/dw_pcie_ep_unmap_addr() ignores func_no, I guess another merge resoluton would be: --- a/drivers/pci/dwc/pcie-designware-ep.c +++ b/drivers/pci/dwc/pcie-designware-ep.c @@ -290,14 +290,14 @@ int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, msg_data = dw_pcie_readw_dbi(pci, MSI_MESSAGE_DATA_32); } msg_addr = ((u64) msg_addr_upper) << 32 | msg_addr_lower; - ret = dw_pcie_ep_map_addr(epc, ep->msi_mem_phys, msg_addr, + ret = dw_pcie_ep_map_addr(epc, 0, ep->msi_mem_phys, msg_addr, epc->mem->page_size); if (ret) return ret; writel(msg_data | (interrupt_num - 1), ep->msi_mem); - dw_pcie_ep_unmap_addr(epc, ep->msi_mem_phys); + dw_pcie_ep_unmap_addr(epc, 0, ep->msi_mem_phys); return 0; } But in case pcie-designware-ep.c is ever going to support multi-function devices (will it? will it not?), perhaps the first merge resolution is prefered. Regards, Niklas