From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-da0-f54.google.com ([209.85.210.54]:56991 "EHLO mail-da0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932342Ab3DTQRM (ORCPT ); Sat, 20 Apr 2013 12:17:12 -0400 Received: by mail-da0-f54.google.com with SMTP id p1so2402579dad.13 for ; Sat, 20 Apr 2013 09:17:12 -0700 (PDT) Message-ID: <5172BF84.9090307@gmail.com> Date: Sun, 21 Apr 2013 00:17:08 +0800 From: Jiang Liu MIME-Version: 1.0 To: Frank Rizzo CC: Yijing Wang , Bjorn Helgaas , "linux-pci@vger.kernel.org" Subject: Re: Rescan PCIE bus to find recently powered on device. References: <5170B9BD.6040408@huawei.com> <5171F610.80001@huawei.com> <517204AE.9030907@huawei.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 Sender: linux-pci-owner@vger.kernel.org List-ID: On 04/20/2013 11:26 AM, Frank Rizzo wrote: > On Fri, 19 Apr 2013 19:59:58 -0700, Yijing Wang wrote: > >> On 2013/4/20 10:22, Frank Rizzo wrote: >>> (with device powered on AFTER boot) >>> >>> root@frank-System-Product-Name:~# echo 1 > /sys/bus/pci/rescan >> >> Hi Frank, >> When you do rescan here, any new message info will print in dmesg? >> Compare the two lspci info, it seems like your external device is >> 02.0-[02]----00.0 Device 1a39:0004, which include a pci bridge and a pci endpoint device. >> But let me confused is that after you rescan (with device powered on AFTER boot), >> there is no any new device found, normally, at least we should found the bridge device. >> Maybe the link between host bridge and your external device got some problems? I am not sure. > > > Yijing, when powered on, the device works fine. I can talk to all the registers, and do everything that I need to do. This "late power-on issue" is the only thing holding me back. > > This is what I get in dmesg. (Cleared first) > > root@frank-System-Product-Name:~# dmesg -c > (SNIP!) > root@frank-System-Product-Name:~# echo 1 > /sys/bus/pci/rescan > root@frank-System-Product-Name:~# dmesg > [ 1180.917841] fglrx_pci 0000:01:05.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment > root@frank-System-Product-Name:~# > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Hi Frank, Message from "sudo lspci -vvv" gives more information, including PCIe capabilities, so please help to send out "sudo lspci -vvv" instead of "lspci -v". Thanks!