Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1411540

Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack overflow"

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack overflow"
Date 2016-06-01 23:10 +0200
Message-ID <rFlyN-5kw-7@gated-at.bofh.it> (permalink)
References <rEZRE-82d-9@gated-at.bofh.it> <rFcc9-7Eu-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wednesday, June 1, 2016 1:08:59 PM CEST Krzysztof Hałasa wrote:
> Bjorn Helgaas <bhelgaas@google.com> writes:
> 
> > This reverts commit 498a92d42596a7a32c042319eb62a4c3d8081cf1.
> >
> > Krzysztof reported that this change broke Cavium CNS3xxx, ARMv6 (Laguna
> > GW-2388) because the MRRS setting is never written to the hardware.
> >
> > Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> > CC: Arnd Bergmann <arnd@arndb.de>
> > CC: Krzysztof Hałasa <khalasa@piap.pl>
> > ---
> >  arch/arm/mach-cns3xxx/pcie.c |   71 ++++++++++++++++++++++++------------------
> >  1 file changed, 41 insertions(+), 30 deletions(-)
> 
> This, applied to v4.7-rc1, fixes the problem on my Laguna boards.
> 
> Tested-by: Krzysztof Hałasa <khalasa@piap.pl>
> 
> And as well
> 
> Acked-by: Krzysztof Hałasa <khalasa@piap.pl>

Thank!

Obviously, I'd rather not bring back the gcc warning or the potential
stack overflow (however unlikely).

What exactly is the problem we are seeing, and is there a way to fix
it on top of my patch? Are we perhaps just missing a call to
pcie_bus_configure_settings()?

Note that cns3xxx is in a bit of an odd state, as only half of the
platform code is even present in the kernel, and there is no effort
to change that. As far as I know, the board that this was tested on
is not present in the mainline kernel, and the board we support
is a development system that few people even own at this point.

	Arnd

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack overflow" Bjorn Helgaas <bhelgaas@google.com> - 2016-06-01 00:00 +0200
  Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack  overflow" Bjorn Helgaas <helgaas@kernel.org> - 2016-06-01 00:10 +0200
  Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack overflow" khalasa@piap.pl (Krzysztof Hałasa) - 2016-06-01 13:10 +0200
    Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack overflow" Arnd Bergmann <arnd@arndb.de> - 2016-06-01 23:10 +0200
      Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack overflow" khalasa@piap.pl (Krzysztof Hałasa) - 2016-06-09 07:50 +0200
        Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack overflow" Arnd Bergmann <arnd@arndb.de> - 2016-06-09 16:50 +0200
          Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack overflow" khalasa@piap.pl (Krzysztof Hałasa) - 2016-06-10 12:20 +0200
            Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack overflow" Arnd Bergmann <arnd@arndb.de> - 2016-06-11 00:00 +0200
      Re: [PATCH] Revert "ARM: cns3xxx: pci: avoid potential stack  overflow" Bjorn Helgaas <helgaas@kernel.org> - 2016-06-09 19:10 +0200

csiph-web