[PATCH] SB600 for the Nemo board has non-zero devices on non-root bus
Christian Zigotzky
chzigotzky at xenosoft.de
Fri Dec 22 21:22:01 AEDT 2017
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
> >
> >
>
More information about the Linuxppc-dev
mailing list