[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE9FiQUk-sAHnjfBvNeHQWibJRqbPE1V0UtDtARtwxmS=7aQrw@mail.gmail.com>
Date: Fri, 12 Sep 2014 16:09:14 -0700
From: Yinghai Lu <yinghai@...nel.org>
To: Dirk Gouders <dirk@...ders.net>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andreas Noever <andreas.noever@...il.com>,
Linux Kernel <linux-kernel@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>
Subject: Re: [BUG] Bisected Problem with LSI PCI FC Adapter
On Fri, Sep 12, 2014 at 3:05 PM, Dirk Gouders <dirk@...ders.net> wrote:
> Yinghai Lu <yinghai@...nel.org> writes:
>
>> On Fri, Sep 12, 2014 at 1:54 PM, Dirk Gouders <dirk@...ders.net> wrote:
>>> Yinghai Lu <yinghai@...nel.org> writes:
>>>
>>>> On Fri, Sep 12, 2014 at 1:05 PM, Dirk Gouders <dirk@...ders.net> wrote:
>>>>> Dirk Gouders <dirk@...ders.net> writes:
>>> -[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]--
>>
>> what is "lspci -tv" and "lspci -vvxxx" look like before your patch that cut down
>> end bus to 07 ...?
>
> Rebooted with 3.16 kernel:
>
> # 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
> +-08.0-[05]--
> +-09.0-[06]--
> +-0a.0-[07]----00.0 LSI Logic / Symbios Logic FC949ES Fibre Channel Adapter
> +-0b.0-[08]--
where are 00:08.0 and 00:09.0 going? Did you just skip them in "cut
end bus patch" ?
Proper simulation could be:
1. remove 07:00.0
echo 1 > /sys/bus/pci/devices/0000:07:00.0/remove
2. change bus range in 00:0a.0 bus
setpci -s 00:0a.0 0x1c.l=0x00101000
3. remove 00:0a.0
echo 1 > /sys/bus/pci/devices/0000:00:0a.0/remove
4. rescan pci
echo 1 > /sys/bus/pci/rescan
5. reset pcie link from 00:0a.0
setpci -s 00:0a.0 0xc0.b=0x18
sleep 1s
setpci -s 00:0a.0 0xc0.b=0x08
6. rescan pci bus
echo 1 > /sys/bus/pci/rescan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists