From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Subject: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus From: Christian Zigotzky To: Bjorn Helgaas , Michael Ellerman , Darren Stevens , "linux-pci@vger.kernel.org" , Bjorn Helgaas , Olof Johansson , linuxppc-dev References: <20171202230052.34y2ivxgpgr3osct@localhost> <4CEE49CE-68F3-457F-B302-54BA8550F36A@xenosoft.de> <1d5276c3-1d29-114a-c868-6f022eee58e7@xenosoft.de> <99f78122-cd53-100f-4f58-be5bf7927d4e@xenosoft.de> <87fu8odnfk.fsf@concordia.ellerman.id.au> <20171206210637.GO23510@bhelgaas-glaptop.roam.corp.google.com> <877etxh1lf.fsf@concordia.ellerman.id.au> <98c7e034-b523-a703-e637-957e2857ab32@xenosoft.de> <20171215202509.GZ30595@bhelgaas-glaptop.roam.corp.google.com> <6326d79e-405b-2ae8-5295-97bf11219b81@xenosoft.de> Message-ID: <37306c17-816c-23fe-d03b-fb8ee98c03b0@xenosoft.de> Date: Fri, 22 Dec 2017 11:22:01 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed List-ID: 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 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 init routine. > > What do you think of this following code? > > if (sb600_bus == -1) > +       { > +               busp = pci_find_bus(0, 0); > +               pa_pxp_read_config(busp, PCI_DEVFN(17,0), PCI_SECONDARY_BUS, 1, &val); > + > +               sb600_bus = val; > + > +               printk(KERN_CRIT "NEMO SB600 on bus %d.\n",sb600_bus); > +       } > > Thanks, > Christian > > > 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 make this work if you > >> use the "pci=pcie_scan_all" parameter.  We have some x86 DMI quirks > >> that set PCI_SCAN_ALL_PCIE_DEVS automatically.  I don't know how to do > >> something similar on powerpc, but maybe you do? > > > > Actually the root ports on the Nemo's PA6T processor don't respond to the > > SB600 unless we turn on a special 'relax pci-e' bit in one of its control > > registers. We use a small out of tree init routine to do this, and there > > would be the ideal place to put a call to > > pci_set_flag(PCI_SCAN_ALL_PCIE_DEVS). > > > > This patch fixes the last major hurdle to getting the X1000 fully supported in > > the linux kernel, so thanks very much for that. > > > > Regards > > Darren > > > > >