lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 12 Sep 2014 18:59:23 -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 5:11 PM, Dirk Gouders <dirk@...ders.net> wrote:
> Yinghai Lu <yinghai@...nel.org> writes:
>
> Yes, I skip them in pci_scan_device() to get the unused bus number space
> that 0a.0 and 0b.0 then can use when reconfiguration is triggered.

That is not right. Can not let two bridges use same bus num.

>
>> 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
>
> OK, I did that (with 3.16) but the reconfiguration code doesn't
> get triggered.  Here is what dmesg and lspci -tv say:

2 should be
   setpci -s 00:0a.0 0x18.l=0x00101000
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ