<br><br><div class="gmail_quote">2012/9/21 Davide Viti <span dir="ltr"><<a href="mailto:zinosat@tiscali.it" target="_blank">zinosat@tiscali.it</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I mean there are two controllers and both of them have a device "subtended" (both 0x1b65:0xabba).</div><div>u-boot can see both devices, linux detects only the device attached to the first controller.</div>
<div>
<br></div><div>Here's the output of lspci and /proc/iomem :</div><div><br></div><div><div><div class="h5"><p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">root@(none):/# lspci
-v</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">0000:00:00.0 Class 0604: Device
1957:0100 (rev 11)</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Flags: bus master, fast
devsel, latency 0</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Memory at <ignored>
(32-bit, non-prefetchable)</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Bus: primary=00,
secondary=01, subordinate=01, sec-latency=0</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> I/O behind bridge:
00000000-00000fff</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Memory behind bridge:
a0000000-afffffff</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [44] Power
Management version 2</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [4c]
Express
Root Port (Slot-), MSI
00</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [100] Advanced
Error Reporting</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> </span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">0000:01:00.0 Class 0280: Device
1b65:abba (rev 01)</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Flags: bus master, fast
devsel, latency 0, IRQ 16</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Memory at a0000000 (32-bit,
non-prefetchable) [size=1K]</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Memory at a0010000 (32-bit,
non-prefetchable) [size=64K]</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [50] MSI:
Enable- Count=1/1 Maskable- 64bit+</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [78] Power
Management version 3</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [80] Express
Endpoint, MSI 00</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [100] Virtual
Channel <?></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [800] Advanced
Error Reporting</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> </span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">0001:02:00.0 Class 0604: Device
1957:0100 (rev 11)</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Flags: bus master, fast
devsel, latency 0</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Memory at <ignored>
(32-bit, non-prefetchable)</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Bus: primary=00,
secondary=03, subordinate=03, sec-latency=0</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> I/O behind bridge:
00000000-00000fff</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Memory behind bridge:
b0000000-bfffffff</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [44] Power
Management version 2</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [4c]
Express
Root Port (Slot-), MSI
00</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> Capabilities: [100] Advanced
Error Reporting</span></font></p><p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"><br></span></font></p><p class="MsoNormal"></p><p class="MsoNormal"><font face="Arial"><span lang="PL" style="font-size:10pt">root@(none):/# cat
/proc/iomem</span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="PL" style="font-size:10pt">a0000000-afffffff :
/pcie@ffe09000</span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="PL" style="font-size:10pt"> </span></font><font face="Arial"><span style="font-size:10pt">a0000000-afffffff : PCI
Bus 0000:01</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> a0000000-a00003ff :
0000:01:00.0</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> a0010000-a001ffff :
0000:01:00.0</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">b0000000-bfffffff :
/pcie@ffe0a000</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"> b0000000-bfffffff : PCI Bus
0001:03</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">ef000000-efffffff :
ef000000.nor</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">ffe04500-ffe04507 :
serial</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">ffe04600-ffe04607 :
serial</span></font></p><p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"><br></span></font></p></div></div><p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">thanx for your help,</span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10pt">Davide</span></font></p><p class="MsoNormal"><font face="Arial"><span style="font-size:10pt"><br></span></font></p><p></p></div>I mean that the kernel detects the first controller and the device attached to it, plus the second controller: the device on the second controller is not detected (same device as the one detected on the first controller)<div class="HOEnZb">
<div class="h5"><br>
<div class="gmail_quote">2012/9/21 Kumar Gala <span dir="ltr"><<a href="mailto:galak@kernel.crashing.org" target="_blank">galak@kernel.crashing.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
On Sep 21, 2012, at 6:33 AM, Davide Viti wrote:<br>
<br>
> Hi,<br>
> I'm working on a custom board based on P1020 with two (identical) PCI devices attached;<br>
> The work is derived from another board with a single instance of that device.<br>
> The system is based on u-boot-2009.11 and Linux 2.6.34.6<br>
><br>
> The "pci" command on u-boot, shows me both the PCI controllers and<br>
> the attached devices:<br>
><br>
> Scanning PCI devices on bus 0<br>
> BusDevFun VendorId DeviceId Device Class Sub-Class<br>
> _____________________________________________________________<br>
> 00.00.00 0x1957 0x0100 Processor 0x20<br>
><br>
> Scanning PCI devices on bus 1<br>
> BusDevFun VendorId DeviceId Device Class Sub-Class<br>
> _____________________________________________________________<br>
> 01.00.00 0x1b65 0xabba Network controller 0x80<br>
><br>
> Scanning PCI devices on bus 2<br>
> BusDevFun VendorId DeviceId Device Class Sub-Class<br>
> _____________________________________________________________<br>
> 02.00.00 0x1957 0x0100 Processor 0x20<br>
><br>
> Scanning PCI devices on bus 3<br>
> BusDevFun VendorId DeviceId Device Class Sub-Class<br>
> _____________________________________________________________<br>
> 03.00.00 0x1b65 0xabba Network controller 0x80<br>
><br>
> The kernel detects only the first instance of the device.<br>
<br>
</div>What do you mean by first instance of the device ?<br>
<div><br>
> Didn't get very far while looking at dts file and kernel logs, so I'm<br>
> asking for some help on narrowing down the problem.<br>
><br>
> I'm wondering if I can assume that the problem is restricted to<br>
> kernel/dts and avoid concentrating on uboot.<br>
> I can provide any log (didn't want to post tons of details on the first<br>
> message)<br>
<br>
</div>Probably a dts issue.<br>
<br>
What does lspci in linux say?<br>
<span><font color="#888888"><br>
- k<br>
<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br>