Re: [BUG] Bisected Problem with LSI PCI FC Adapter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yinghai Lu <yinghai@xxxxxxxxxx> writes:

> On Fri, Sep 12, 2014 at 1:05 PM, Dirk Gouders <dirk@xxxxxxxxxxx> wrote:
>> Dirk Gouders <dirk@xxxxxxxxxxx> writes:
>>
>> I now applied your patches and tested them:
>>
>> echo 1 > /sys/bus/pci/devices/0000\:00\:0a.0/pcie_link_disable
>> echo 0 > /sys/bus/pci/devices/0000\:00\:0a.0/pcie_link_disable
>>
>> The FC Adapter did not show up, this is the dmesg output (I also tested
>> with 0b.0):
>>
>> [  143.294168] pcieport 0000:00:0a.0: pcie_link_disable_set: lnk_ctrl = 18
>> [  148.284456] pcieport 0000:00:0a.0: pcie_link_disable_set: lnk_ctrl = 8
>> [  304.065942] pcieport 0000:00:0b.0: pcie_link_disable_set: lnk_ctrl = 18
>> [  309.035278] pcieport 0000:00:0b.0: pcie_link_disable_set: lnk_ctrl = 8
>>
>> So, probably my test environment does not work as expected and I have to
>> test it on the failing machine.
>
> You need to rescan the pci devices.
> like
>
> echo 1 >  /sys/bus/pci/rescan

Thank you (all) for your suggestions.

I tried both: the plain rescan and Bjorn's suggestion but the FC adapter
seems to be very shy:

[  143.294168] pcieport 0000:00:0a.0: pcie_link_disable_set: lnk_ctrl = 18
[  148.284456] pcieport 0000:00:0a.0: pcie_link_disable_set: lnk_ctrl = 8
[  304.065942] pcieport 0000:00:0b.0: pcie_link_disable_set: lnk_ctrl = 18
[  309.035278] pcieport 0000:00:0b.0: pcie_link_disable_set: lnk_ctrl = 8
[ 2514.440442] pcieport 0000:00:0a.0: pcie_link_disable_set: lnk_ctrl = 18
[ 2554.819381] pcieport 0000:00:0a.0: pcie_link_disable_set: lnk_ctrl = 8
[ 3339.722154] pci_scan_child_bus: pci_bus 0000:00: scanning bus
[ 3339.722215] pci_scan_bridge: pci 0000:00:01.0: scanning [bus 01-02] behind bridge, pass 0
[ 3339.722222] pci_scan_child_bus: pci_bus 0000:01: scanning bus
[ 3339.722251] pci_scan_bridge: pci 0000:01:0d.0: scanning [bus 02-02] behind bridge, pass 0
[ 3339.722256] pci_scan_child_bus: pci_bus 0000:02: scanning bus
[ 3339.722287] pci_scan_child_bus: pci_bus 0000:02: bus scan returning with max=02
[ 3339.722292] pci_scan_bridge: pci 0000:01:0d.0: scanning [bus 02-02] behind bridge, pass 1
[ 3339.722297] pci_scan_child_bus: pci_bus 0000:01: bus scan returning with max=02
[ 3339.722302] pci_scan_bridge: pci 0000:00:06.0: scanning [bus 03-03] behind bridge, pass 0
[ 3339.722307] pci_scan_child_bus: pci_bus 0000:03: scanning bus
[ 3339.722332] pci_scan_child_bus: pci_bus 0000:03: bus scan returning with max=03
[ 3339.722337] pci_scan_bridge: pci 0000:00:07.0: scanning [bus 04-04] behind bridge, pass 0
[ 3339.722341] pci_scan_child_bus: pci_bus 0000:04: scanning bus
[ 3339.722364] pci_scan_child_bus: pci_bus 0000:04: bus scan returning with max=04
[ 3339.722369] pci_scan_bridge: pcieport 0000:00:0a.0: scanning [bus 05-05] behind bridge, pass 0
[ 3339.722373] pci_scan_child_bus: pci_bus 0000:05: scanning bus
[ 3339.722377] pci_scan_child_bus: pci_bus 0000:05: bus scan returning with max=05
[ 3339.722381] pci_scan_bridge: pcieport 0000:00:0b.0: scanning [bus 06-06] behind bridge, pass 0
[ 3339.722386] pci_scan_child_bus: pci_bus 0000:06: scanning bus
[ 3339.722389] pci_scan_child_bus: pci_bus 0000:06: bus scan returning with max=06
[ 3339.722394] pci_scan_bridge: pci 0000:00:01.0: scanning [bus 01-02] behind bridge, pass 1
[ 3339.722400] pci_scan_bridge: pci 0000:00:06.0: scanning [bus 03-03] behind bridge, pass 1
[ 3339.722404] pci_scan_bridge: pci 0000:00:07.0: scanning [bus 04-04] behind bridge, pass 1
[ 3339.722409] pci_scan_bridge: pcieport 0000:00:0a.0: scanning [bus 05-05] behind bridge, pass 1
[ 3339.722414] pci_scan_bridge: pcieport 0000:00:0b.0: scanning [bus 06-06] behind bridge, pass 1
[ 3339.722418] pci_scan_child_bus: pci_bus 0000:00: bus scan returning with max=06
[ 3339.722455] pci 0000:01:0d.0: PCI bridge to [bus 02]
[ 3339.722466] pci 0000:00:06.0: PCI bridge to [bus 03]
[ 3583.321906] pci_scan_child_bus: pci_bus 0000:00: scanning bus
[ 3583.321974] pci_scan_bridge: pci 0000:00:01.0: scanning [bus 01-02] behind bridge, pass 0
[ 3583.321982] pci_scan_child_bus: pci_bus 0000:01: scanning bus
[ 3583.322032] pci_scan_bridge: pci 0000:01:0d.0: scanning [bus 02-02] behind bridge, pass 0
[ 3583.322037] pci_scan_child_bus: pci_bus 0000:02: scanning bus
[ 3583.322070] pci_scan_child_bus: pci_bus 0000:02: bus scan returning with max=02
[ 3583.322076] pci_scan_bridge: pci 0000:01:0d.0: scanning [bus 02-02] behind bridge, pass 1
[ 3583.322081] pci_scan_child_bus: pci_bus 0000:01: bus scan returning with max=02
[ 3583.322087] pci_scan_bridge: pci 0000:00:06.0: scanning [bus 03-03] behind bridge, pass 0
[ 3583.322092] pci_scan_child_bus: pci_bus 0000:03: scanning bus
[ 3583.322121] pci_scan_child_bus: pci_bus 0000:03: bus scan returning with max=03
[ 3583.322126] pci_scan_bridge: pci 0000:00:07.0: scanning [bus 04-04] behind bridge, pass 0
[ 3583.322130] pci_scan_child_bus: pci_bus 0000:04: scanning bus
[ 3583.322155] pci_scan_child_bus: pci_bus 0000:04: bus scan returning with max=04
[ 3583.322160] pci_scan_bridge: pcieport 0000:00:0a.0: scanning [bus 05-05] behind bridge, pass 0
[ 3583.322164] pci_scan_child_bus: pci_bus 0000:05: scanning bus
[ 3583.322168] pci_scan_child_bus: pci_bus 0000:05: bus scan returning with max=05
[ 3583.322177] pci_scan_bridge: pcieport 0000:00:0b.0: scanning [bus 06-06] behind bridge, pass 0
[ 3583.322182] pci_scan_child_bus: pci_bus 0000:06: scanning bus
[ 3583.322185] pci_scan_child_bus: pci_bus 0000:06: bus scan returning with max=06
[ 3583.322191] pci_scan_bridge: pci 0000:00:01.0: scanning [bus 01-02] behind bridge, pass 1
[ 3583.322196] pci_scan_bridge: pci 0000:00:06.0: scanning [bus 03-03] behind bridge, pass 1
[ 3583.322202] pci_scan_bridge: pci 0000:00:07.0: scanning [bus 04-04] behind bridge, pass 1
[ 3583.322207] pci_scan_bridge: pcieport 0000:00:0a.0: scanning [bus 05-05] behind bridge, pass 1
[ 3583.322212] pci_scan_bridge: pcieport 0000:00:0b.0: scanning [bus 06-06] behind bridge, pass 1
[ 3583.322216] pci_scan_child_bus: pci_bus 0000:00: bus scan returning with max=06
[ 3583.322262] pci 0000:01:0d.0: PCI bridge to [bus 02]
[ 3583.322273] pci 0000:00:06.0: PCI bridge to [bus 03]

# lspci -tv
-[0000:00]-+-01.0-[01-02]--+-0d.0-[02]--
           |               +-0e.0  Broadcom BCM5785 [HT1000] SATA (PATA/IDE Mode)
           |               \-0e.1  Broadcom BCM5785 [HT1000] SATA (PATA/IDE Mode)
           +-02.0  Broadcom BCM5785 [HT1000] Legacy South Bridge
           +-02.1  Broadcom BCM5785 [HT1000] IDE
           +-02.2  Broadcom BCM5785 [HT1000] LPC
           +-03.0  Broadcom BCM5785 [HT1000] USB
           +-03.1  Broadcom BCM5785 [HT1000] USB
           +-03.2  Broadcom BCM5785 [HT1000] USB
           +-06.0-[03]--
           +-07.0-[04]--+-04.0  Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet
           |            \-04.1  Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet
           +-0a.0-[05]--
           +-0b.0-[06]--
           +-0c.0  Advanced Micro Devices, Inc. [AMD/ATI] ES1000
           +-18.0  Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
           +-18.1  Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
           +-18.2  Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
           +-18.3  Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
           +-19.0  Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
           +-19.1  Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
           +-19.2  Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
           \-19.3  Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux