Re: SB600 for the Nemo board has non-zero devices on non-root bus

2018-06-04 Thread Michael Ellerman
On Wed, 2017-12-06 at 11:03:52 UTC, Christian Zigotzky wrote: > On 06 December 2017 at 09:37AM, Christian Zigotzky wrote: > > On 03 December 2017 at 10:43AM, Christian Zigotzky wrote: > > > > > > On 3. Dec 2017, at 00:02, Olof Johansson wrote: > > >> > > >> Typo, should be ';', not ':'. I

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-22 Thread Christian Zigotzky
Hi Michael, Thanks a lot for your reply! :-) I have found two interesting lines in the device tree: compatible   "pasemi,nemo" model    "pasemi,nemo" What do you think? Please find attached the output of `lsprop /proc/device-tree`. Thanks, Christian On 22.12.2017 12:19,

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-22 Thread Michael Ellerman
Christian Zigotzky writes: > Hi Bjorn, > > Sorry I'm bothering you again. Is this small out of tree init routine in > the Nemo patch? I haven't get an answer from Darren yet and I didn't > found the small out of tree init routine in the Nemo patch. Please find >

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-22 Thread Christian Zigotzky
I mean: I haven't gotten an answer from Darren yet. Sorry because of my English. I am still learning. -- Christian On 22 December 2017 at 10:57AM, Christian Zigotzky wrote: > Hi Bjorn, > > Sorry I'm bothering you again. Is this small out of tree init routine in the Nemo patch? I haven't get

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-22 Thread Christian Zigotzky
Hi Bjorn, Sorry I'm bothering you again. Is this small out of tree init routine in the Nemo patch? I haven't get an answer from Darren yet and I didn't found the small out of tree init routine in the Nemo patch. Please find attached the Nemo patch. Maybe you can find this small out of tree

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-15 Thread Christian Zigotzky
On 04 December 2017 at 12:40PM, Darren Stevens wrote: > Hello Bjorn > > Firstly sorry for not being able to join in this discussion, I have been > moving house and only got my X1000 set up again yesterday.. > > On 30/11/2017, Bjorn Helgaas wrote: >> I *think* something like the patch below should

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-15 Thread Bjorn Helgaas
On Fri, Dec 15, 2017 at 09:04:51AM +0100, Christian Zigotzky wrote: > On 09 December 2017 at 7:03PM, Christian Zigotzky wrote: > > On 08 December 2017 at 12:59PM, Michael Ellerman wrote: > > > > > >> Darren's idea of doing it at the same time you tweak the SB600 "relax > > >> pci-e" bit is ideal

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-15 Thread Christian Zigotzky
On 09 December 2017 at 7:03PM, Christian Zigotzky wrote: > On 08 December 2017 at 12:59PM, Michael Ellerman wrote: > > > >> Darren's idea of doing it at the same time you tweak the SB600 "relax > >> pci-e" bit is ideal because then the two pieces are obviously > >> connected and it wouldn't

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-09 Thread Christian Zigotzky
On 08 December 2017 at 12:59PM, Michael Ellerman wrote: > >> Darren's idea of doing it at the same time you tweak the SB600 "relax >> pci-e" bit is ideal because then the two pieces are obviously >> connected and it wouldn't affect any other systems at all. > > Yes that would be ideal. That patch

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-08 Thread Michael Ellerman
Bjorn Helgaas writes: > On Wed, Dec 06, 2017 at 11:57:03PM +1100, Michael Ellerman wrote: >> Christian Zigotzky writes: >> ... >> > >> > Hi Olof, >> > >> > Many thanks for your patch! :-) The RC2 of kernel 4.15 boots without any >> > problems on my

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-08 Thread Michael Ellerman
Olof Johansson writes: > On Wed, Dec 6, 2017 at 4:44 AM, Michael Ellerman wrote: >> Olof Johansson writes: >>> >>> The below patch, together with Bjorn's, should do it. Christian, can you >>> test >>> and report back? >>> >>> I'm guessing it

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-06 Thread Bjorn Helgaas
On Wed, Dec 06, 2017 at 11:57:03PM +1100, Michael Ellerman wrote: > Christian Zigotzky writes: > ... > > > > Hi Olof, > > > > Many thanks for your patch! :-) The RC2 of kernel 4.15 boots without any > > problems on my P.A. Semi Nemo board (A-EON AmigaOne X1000). I don’t

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-06 Thread Olof Johansson
On Wed, Dec 6, 2017 at 4:44 AM, Michael Ellerman wrote: > Olof Johansson writes: > >> On Sat, Dec 02, 2017 at 01:54:41PM +0100, Christian Zigotzky wrote: >>> On 02 December 2017 at 00:27AM, Bjorn Helgaas wrote: >>> > >>> > Thanks for testing that. I'll merge

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-06 Thread Michael Ellerman
Christian Zigotzky writes: ... > > Hi Olof, > > Many thanks for your patch! :-) The RC2 of kernel 4.15 boots without any > problems on my P.A. Semi Nemo board (A-EON AmigaOne X1000). I don’t need > the additional boot argument 'pci=pcie_scan_all' anymore. > > Is it

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-06 Thread Michael Ellerman
Olof Johansson writes: > On Sat, Dec 02, 2017 at 01:54:41PM +0100, Christian Zigotzky wrote: >> On 02 December 2017 at 00:27AM, Bjorn Helgaas wrote: >> > >> > Thanks for testing that. I'll merge a similar patch for v4.16. >> > >> > I don't think using "pci=pcie_scan_all" is

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-06 Thread Christian Zigotzky
On 06 December 2017 at 09:37AM, Christian Zigotzky wrote: > On 03 December 2017 at 10:43AM, Christian Zigotzky wrote: > > > > On 3. Dec 2017, at 00:02, Olof Johansson wrote: > >> > >> Typo, should be ';', not ':'. I obviously didn't even try compiling this. :) > >> > >> > >>

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-06 Thread Christian Zigotzky
On 03 December 2017 10:43AM, Christian Zigotzky wrote: > > On 3. Dec 2017, at 00:02, Olof Johansson wrote: >> >>> On Sat, Dec 2, 2017 at 3:00 PM, Olof Johansson wrote: >>> >>> The below patch, together with Bjorn's, should do it. Christian, can you test >>> and

SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-04 Thread Christian Zigotzky
Darren, What do you think about Olof’s solution? Link: http://forum.hyperion-entertainment.biz/viewtopic.php?f=35=3891=43206#p43201 Thanks, Christian Sent from my iPhone > On 4. Dec 2017, at 12:40, Darren Stevens wrote: > > Hello Bjorn > > Firstly sorry for not

Re: SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-04 Thread Darren Stevens
Hello Bjorn Firstly sorry for not being able to join in this discussion, I have been moving house and only got my X1000 set up again yesterday.. On 30/11/2017, Bjorn Helgaas wrote: > I *think* something like the patch below should make this work if you > use the "pci=pcie_scan_all" parameter.

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-03 Thread Christian Zigotzky
On 3. Dec 2017, at 00:02, Olof Johansson wrote: > >> On Sat, Dec 2, 2017 at 3:00 PM, Olof Johansson wrote: >> >> The below patch, together with Bjorn's, should do it. Christian, can you test >> and report back? >> >> I'm guessing it won't do any harm to set

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-02 Thread Olof Johansson
On Sat, Dec 2, 2017 at 3:00 PM, Olof Johansson wrote: > On Sat, Dec 02, 2017 at 01:54:41PM +0100, Christian Zigotzky wrote: >> On 02 December 2017 at 00:27AM, Bjorn Helgaas wrote: >> > >> > Thanks for testing that. I'll merge a similar patch for v4.16. >> > >> > I don't think

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-02 Thread Olof Johansson
On Sat, Dec 02, 2017 at 01:54:41PM +0100, Christian Zigotzky wrote: > On 02 December 2017 at 00:27AM, Bjorn Helgaas wrote: > > > > Thanks for testing that. I'll merge a similar patch for v4.16. > > > > I don't think using "pci=pcie_scan_all" is really an acceptable > > long-term answer for you,

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-02 Thread Christian Zigotzky
On 02 December 2017 at 00:27AM, Bjorn Helgaas wrote: Thanks for testing that. I'll merge a similar patch for v4.16. I don't think using "pci=pcie_scan_all" is really an acceptable long-term answer for you, though. Is there some way we can identify at run-time whether we're on a Nemo system?

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-01 Thread Bjorn Helgaas
On Fri, Dec 01, 2017 at 11:08:46PM +0100, Christian Zigotzky wrote: > On 30.11.2017 23:42, Bjorn Helgaas wrote: > > > > 00:11.0 claims to be a PCIe Root Port leading to [bus 05-06]. That > > means there's a Link (presumably this A-Link II Express thing), and the > > downstream end of the Link

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-12-01 Thread Christian Zigotzky
On 30.11.2017 23:42, Bjorn Helgaas wrote: > > 00:11.0 claims to be a PCIe Root Port leading to [bus 05-06]. That > means there's a Link (presumably this A-Link II Express thing), and the > downstream end of the Link *should* be a PCIe Upstream Port on bus 05, > but no such device is visible.  I

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-11-30 Thread Bjorn Helgaas
On Thu, Nov 30, 2017 at 12:39:36AM +0100, Christian Zigotzky wrote: > On 29 November 2017 at 11:34PM, Bjorn Helgaas wrote: > > On Wed, Nov 29, 2017 at 2:45 PM, Christian Zigotzky > >> Thank you for your answer. I have tried to boot the kernel 4.15 > >> RC1 (built without the patch above) with the

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-11-29 Thread Christian Zigotzky
On 29 November 2017 at 11:34PM, Bjorn Helgaas wrote: > On Wed, Nov 29, 2017 at 2:45 PM, Christian Zigotzky >> Hi Bjorn, >> >> Thank you for your answer. I have tried to boot the kernel 4.15 RC1 (built >> without the patch above) with the boot argument "pci=pcie_scan_all" but >> without any

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-11-29 Thread Bjorn Helgaas
8:40.504012010 +0100 >>>>> +++ b/drivers/pci/probe.c2017-11-16 08:17:22.044368405 +0100 >>>>> @@ -2219,6 +2219,8 @@ static int only_one_child(struct pci_bus >>>> >>>> As this is a patch to the PCI code I can't merge it via th

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-11-29 Thread Christian Zigotzky
child(struct pci_bus As this is a patch to the PCI code I can't merge it via the powerpc tree. You would need to send it to linux-...@vger.kernel.org. if (!parent || !pci_is_pcie(parent)) return 0; +#ifndef CONFIG_PPC_PASEMI_NEMO +// SB600 for the Nemo board has non-zero de

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-11-29 Thread Bjorn Helgaas
kernel.org. >> >>>if (!parent || !pci_is_pcie(parent)) >>>return 0; >>> +#ifndef CONFIG_PPC_PASEMI_NEMO >>> +// SB600 for the Nemo board has non-zero devices on non-root bus. >>>if (pci_pcie_type(parent)

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-11-29 Thread Christian Zigotzky
el.org. if (!parent || !pci_is_pcie(parent))     return 0; +    #ifndef CONFIG_PPC_PASEMI_NEMO +    // SB600 for the Nemo board has non-zero devices on non-root bus. if (pci_pcie_type(parent) == PCI_EXP_TYPE_ROOT_PORT)     return 1; @@ -2231,6 +2233,7 @@ static int only_one

Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-11-23 Thread Michael Ellerman
; if (!parent || !pci_is_pcie(parent)) >     return 0; > +    #ifndef CONFIG_PPC_PASEMI_NEMO > +    // SB600 for the Nemo board has non-zero devices on non-root bus. > if (pci_pcie_type(parent) == PCI_EXP_TYPE_ROOT_PORT) >     return 1; > >

[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

2017-11-15 Thread Christian Zigotzky
only_one_child(struct pci_bus if (!parent || !pci_is_pcie(parent))     return 0; +    #ifndef CONFIG_PPC_PASEMI_NEMO +    // SB600 for the Nemo board has non-zero devices on non-root bus. if (pci_pcie_type(parent) == PCI_EXP_TYPE_ROOT_PORT)     return 1; @@ -2231,6 +2233,7 @@ static int