linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor
@ 2018-10-25  8:53 Z.q. Hou
  2018-10-25 13:45 ` Bjorn Helgaas
  0 siblings, 1 reply; 5+ messages in thread
From: Z.q. Hou @ 2018-10-25  8:53 UTC (permalink / raw)
  To: linux-pci, linux-kernel, bhelgaas, lorenzo.pieralisi
  Cc: Roy Zang, M.h. Lian, Z.q. Hou

From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>

This issue is introduced by commit 4a2745d760fac ("PCI: layerscape: Disable
outbound windows configured by bootloader").

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
---
 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor
  2018-10-25  8:53 [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor Z.q. Hou
@ 2018-10-25 13:45 ` Bjorn Helgaas
  2018-10-26  2:20   ` Z.q. Hou
  0 siblings, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2018-10-25 13:45 UTC (permalink / raw)
  To: Z.q. Hou
  Cc: linux-pci, linux-kernel, bhelgaas, lorenzo.pieralisi, Roy Zang,
	M.h. Lian

  $ 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 <Zhiqiang.Hou@nxp.com>
> 
> 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 <Zhiqiang.Hou@nxp.com>
> ---
>  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
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor
  2018-10-25 13:45 ` Bjorn Helgaas
@ 2018-10-26  2:20   ` Z.q. Hou
  2018-10-29 16:31     ` Bjorn Helgaas
  0 siblings, 1 reply; 5+ messages in thread
From: Z.q. Hou @ 2018-10-26  2:20 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: linux-pci, linux-kernel, bhelgaas, lorenzo.pieralisi, Roy Zang,
	M.h. Lian

Hi Bjorn,

Thanks a lot for your comments!

> -----Original Message-----
> From: Bjorn Helgaas <helgaas@kernel.org>
> Sent: 2018年10月25日 21:45
> To: Z.q. Hou <zhiqiang.hou@nxp.com>
> Cc: linux-pci@vger.kernel.org; linux-kernel@vger.kernel.org;
> bhelgaas@google.com; lorenzo.pieralisi@arm.com; Roy Zang
> <roy.zang@nxp.com>; M.h. Lian <minghuan.lian@nxp.com>
> Subject: Re: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound
> window disable accessor
> 
>   $ 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"
> 

Yes, will uniform the subject in v2.

> On Thu, Oct 25, 2018 at 08:53:37AM +0000, Z.q. Hou wrote:
> > From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
> >
> > 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")
> 

Will correct the commit ID length.

> Holy cow, this has been broken since v4.14.  If fixing this makes a difference,
> you might want to tag it for stable.
> 

How can I tag it for stable?

> > Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
> > ---
> >  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
> >

Thanks,
Zhiqiang

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor
  2018-10-26  2:20   ` Z.q. Hou
@ 2018-10-29 16:31     ` Bjorn Helgaas
  2018-11-07  4:41       ` Z.q. Hou
  0 siblings, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2018-10-29 16:31 UTC (permalink / raw)
  To: Z.q. Hou
  Cc: linux-pci, linux-kernel, bhelgaas, lorenzo.pieralisi, Roy Zang,
	M.h. Lian

On Fri, Oct 26, 2018 at 02:20:21AM +0000, Z.q. Hou wrote:
> > From: Bjorn Helgaas <helgaas@kernel.org>

> > Holy cow, this has been broken since v4.14.  If fixing this makes
> > a difference, you might want to tag it for stable.
> 
> How can I tag it for stable?

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor
  2018-10-29 16:31     ` Bjorn Helgaas
@ 2018-11-07  4:41       ` Z.q. Hou
  0 siblings, 0 replies; 5+ messages in thread
From: Z.q. Hou @ 2018-11-07  4:41 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: linux-pci, linux-kernel, bhelgaas, lorenzo.pieralisi, Roy Zang,
	M.h. Lian

Hi Bjorn,

Thanks a lot for your guide!
I'll tag it for stable in v2.

Thanks,
Zhiqiang

> -----Original Message-----
> From: Bjorn Helgaas <helgaas@kernel.org>
> Sent: 2018年10月30日 0:31
> To: Z.q. Hou <zhiqiang.hou@nxp.com>
> Cc: linux-pci@vger.kernel.org; linux-kernel@vger.kernel.org;
> bhelgaas@google.com; lorenzo.pieralisi@arm.com; Roy Zang
> <roy.zang@nxp.com>; M.h. Lian <minghuan.lian@nxp.com>
> Subject: Re: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound
> window disable accessor
> 
> On Fri, Oct 26, 2018 at 02:20:21AM +0000, Z.q. Hou wrote:
> > > From: Bjorn Helgaas <helgaas@kernel.org>
> 
> > > Holy cow, this has been broken since v4.14.  If fixing this makes a
> > > difference, you might want to tag it for stable.
> >
> > How can I tag it for stable?
> 
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.k
> ernel.org%2Fcgit%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%2Ftree%
> 2FDocumentation%2Fprocess%2Fstable-kernel-rules.rst&amp;data=02%7C01
> %7Czhiqiang.hou%40nxp.com%7Cd3bb6e26e2bd4dc06c6808d63dbbee06%7
> C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63676427469732183
> 0&amp;sdata=k6DF2U2P%2Fx5iayl29qhC3llqIEo%2BnOq1dNdhRgFlAsg%3D&
> amp;reserved=0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-07  4:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-25  8:53 [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor Z.q. Hou
2018-10-25 13:45 ` Bjorn Helgaas
2018-10-26  2:20   ` Z.q. Hou
2018-10-29 16:31     ` Bjorn Helgaas
2018-11-07  4:41       ` Z.q. Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).