Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1901226ima; Thu, 25 Oct 2018 06:47:42 -0700 (PDT) X-Google-Smtp-Source: AJdET5f6j+8l+vrVuXNAqsZtoOuV5fOYZCgBmOq8ymdXfG8BmhBhoSZzmeBLigmEqD47b0D9MSix X-Received: by 2002:a63:7cf:: with SMTP id 198mr1577718pgh.129.1540475262835; Thu, 25 Oct 2018 06:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540475262; cv=none; d=google.com; s=arc-20160816; b=BbAv5+qfLwmQjm69PondBCsPX15eg1vdW6rfQLsZs/rrV2ATts15IvDTDiUQhuvtBG Px1zVCMPoYYvriu9XEScPqJcAJgHkJY8rdCGFJkkLr9Fur1mAUWc1P0Kf4IRMwBKZ7yg 8jkc7NePaXgacIqok14TtrR5iF7HICUSdxy8f+cvMyUELeFc2I3pj18JfylFYrnmP4LX 7a8kAqjUUzUO6yYDg+dne7iOpdSZWTwfpAZWsiOHzyh+51WmdfbUpK1LUmf1X2K4gJZ4 V8dyv/CXP8l5Sl/XDgikRYx+sy7qSMeysWnuad7O8+jT1y99a9Od5BWFwKnhOPHyQ7mV QF+g== 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=D7IPeKmEPN5r5Okoua8qbnYx+qVBZuLD1XccneE/ObI=; b=xCr8F28Mh59wXhLifFLSdyLrMmu7WYzOcyZApz67jcAsQGe0a/kBkFuz/6+b/mchsx pwZmMRqX85QiEjAabyK/5Kf52OZJyRGzdh9xSEp8W6ViM+H2Jj/SlL5Pa/iHWfX6HYQY b47KWeU501XzP7iBk5p6K4a2mwHynaAdu0QRO3CnH7Gas47yIWy+aABdLZ3gwpkcy+ND dctdcqbEWQ/86Kutr2WDch9jrz2pX6rYKguua2ow6dn7Z7CQBzXOBFCudZ0JLqZLR+4l TSNj4hI55xpE1WKMCBmtQUOClvsHnrblCYuLWtR5u7pv/OjCD/xG/OkguhwYC0DDskKl +clA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SBGS+OUh; 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 s8-v6si9212612pgn.390.2018.10.25.06.47.26; Thu, 25 Oct 2018 06:47:42 -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=SBGS+OUh; 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 S1727430AbeJYWSP (ORCPT + 99 others); Thu, 25 Oct 2018 18:18:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:44580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbeJYWSP (ORCPT ); Thu, 25 Oct 2018 18:18:15 -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 339C920831; Thu, 25 Oct 2018 13:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540475125; bh=9IRKv4QjckEAESzxZFcqmCetyj/ofEetZojH9TZmEAI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SBGS+OUhF8ZhaVSBiuZZfiyWn2KAMhjcskRNeLSBraE5jwozxspdrBnPAr9OBwKE5 ga6Q7wj6RvPlTQ4/v2taRkYCp4DfG/Uscrkh46OhhH+FoOQCK4JNYUxIm3P4m0ME/C /wVGyfBamO/6BFTr36YmQJyLxfzUjaTqKbQf33Es= Date: Thu, 25 Oct 2018 08:45:22 -0500 From: Bjorn Helgaas To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" , Roy Zang , "M.h. Lian" Subject: Re: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor Message-ID: <20181025134522.GE214775@bhelgaas-glaptop.roam.corp.google.com> References: <20181025085323.8819-1-Zhiqiang.Hou@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181025085323.8819-1-Zhiqiang.Hou@nxp.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 $ git log --oneline --follow drivers/pci/controller/dwc/pci-layerscape.c | head 6e0832fa432e PCI: Collect all native drivers under drivers/pci/controller/ 3f43ccc4ea1b PCI: dwc: Remove old MSI IRQs API 8cfab3cf63cf PCI: Add SPDX GPL-2.0 to replace GPL v2 boilerplate 84d897d69938 PCI: layerscape: Change default error response behavior a335b122ba27 PCI: layerscape: Add support for ls1012a 03fc6134c260 PCI: layerscape: Add support for ls1088a 8f89357094e6 PCI: layerscape: Add support for ls2088a c3f909398827 PCI: layerscape: Remove unnecessary class code fixup e44abfed6fcb PCI: dwc: Add accessors for write permission of DBI read-only registers 4a2745d760fa PCI: layerscape: Disable outbound windows configured by bootloader Make yours match, e.g., "PCI: layerscape: Call dw_pcie_disable_atu() correctly" On Thu, Oct 25, 2018 at 08:53:37AM +0000, Z.q. Hou wrote: > From: Hou Zhiqiang > > This issue is introduced by commit 4a2745d760fac ("PCI: layerscape: Disable > outbound windows configured by bootloader"). Conventional commit reference: $ git --no-pager show -s --abbrev-commit --abbrev=12 --pretty=format:"%h (\"%s\")%n" 4a2745d760fac 4a2745d760fa ("PCI: layerscape: Disable outbound windows configured by bootloader") Holy cow, this has been broken since v4.14. If fixing this makes a difference, you might want to tag it for stable. > Signed-off-by: Hou Zhiqiang > --- > drivers/pci/controller/dwc/pci-layerscape.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c > index 69f3f1a5a782..b2085988dbee 100644 > --- a/drivers/pci/controller/dwc/pci-layerscape.c > +++ b/drivers/pci/controller/dwc/pci-layerscape.c > @@ -88,7 +88,7 @@ static void ls_pcie_disable_outbound_atus(struct ls_pcie *pcie) > int i; > > for (i = 0; i < PCIE_IATU_NUM; i++) > - dw_pcie_disable_atu(pcie->pci, DW_PCIE_REGION_OUTBOUND, i); > + dw_pcie_disable_atu(pcie->pci, i, DW_PCIE_REGION_OUTBOUND); > } > > static int ls1021_pcie_link_up(struct dw_pcie *pci) > -- > 2.17.1 >