All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yijing Wang <wangyijing@huawei.com>
To: Martin Mokrejs <mmokrejs@fold.natur.cuni.cz>
Cc: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	Yinghai Lu <yinghai@kernel.org>,
	Huang Ying <ying.huang@intel.com>
Subject: Re: 3.9-rc1: pciehp and eSATA card SiI 3132, no XHCI
Date: Fri, 15 Mar 2013 10:41:54 +0800	[thread overview]
Message-ID: <51428A72.2060602@huawei.com> (raw)
In-Reply-To: <5141C9D7.9040706@fold.natur.cuni.cz>

+CC Huang Ying <ying.huang@intel.com>
>> As you mentioned before
>> cold boot 0040 -> eject 0100 hotplug insert -> 0140 eject -> 0100 hotplug insert -> 0140 eject -> 0100
>> cold boot(PCIe card detected in slot)-->eject(Data Link state changed detected)-->.....
>> detail info reference at PCIe Spec 3.0  7.8.11
> 
> So doesn't pciehp/acpiphp complain when values 0000, 0108, 0138, 0148 appear?

I think the slot status changes is ok. The most important bit here is Presence Detect state
and Presence Detect Changed bits. And as your diff info, it seems ok.

> 
>>
>>>
>> I guess these memory ranges disabled because the original MMIO(coldplug boot) is still in system after eject device,
>> the new device insert cannot get the needed MMIO in system.

Sorry, my fault. I scan the lspci source code, and found the "[disable]" means memory/ioport decoding disabled.
This shows that the device maybe not enabled by driver.

[virtual] meaning /* Reported by the OS, but not by the device */
I also doubt this comment.

> 
> But then some driver is stupid and should loudly complain. Looks nobody even knows
> why lspci prints those "[disabled]" and "[virtual]" strings in its output.
> What are the normal cases of "virtual" ROMs and "disabled" ranges? What *functional*
> devices have them and why are they disabled? Is this like a disabled BOOT ROM on a network
> card or what?
> 


> # diff -u -w iomem.txt iomem_ejected.txt 
> # diff -u -w dmesg_ejected.txt dmesg_ejected_rmmod_sata_sil24.txt 
> --- dmesg_ejected.txt   2013-03-14 11:03:42.000000000 +0100
> +++ dmesg_ejected_rmmod_sata_sil24.txt  2013-03-14 11:05:00.000000000 +0100
> @@ -824,3 +824,173 @@
>  [   38.223082] r8169 0000:05:00.0 eth0: link up
>  [   39.471099] r8169 0000:05:00.0 eth0: link down
>  [   41.857999] r8169 0000:05:00.0 eth0: link up
> +[  270.090796] sata_sil24: IRQ status == 0xffffffff, PCI fault or device removal?
> +[  270.091728] pcieport 0000:00:1c.7: PME# enabled
> +[  270.972562] pcieport 0000:00:1c.7: PME# disabled
> +[  270.982338] pcieport 0000:00:1c.7: PME# enabled
> +[  271.022611] pcieport 0000:00:1c.7: PME# disabled
> +[  271.032560] pcieport 0000:00:1c.7: PME# enabled
> +[  272.053850] pcieport 0000:00:1c.7: PME# disabled
> +[  272.063619] pcieport 0000:00:1c.7: PME# enabled
> +[  272.103916] pcieport 0000:00:1c.7: PME# disabled
> +[  272.113838] pcieport 0000:00:1c.7: PME# enabled
> +[  273.145186] pcieport 0000:00:1c.7: PME# disabled
> +[  273.156282] pcieport 0000:00:1c.7: PME# enabled
> +[  273.195718] pcieport 0000:00:1c.7: PME# disabled
> +[  273.205228] pcieport 0000:00:1c.7: PME# enabled
> +[  274.226918] pcieport 0000:00:1c.7: PME# disabled
> [cut] repeated forever
> 

I added Huang Ying <ying.huang@intel.com> to cc list, Rafael and Huang Ying.
Both of them are familiar with PM. Obviously, this is an unnormal phenomenon.



-- 
Thanks!
Yijing


  reply	other threads:[~2013-03-15  2:42 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-12  1:00 3.9-rc1: pciehp and eSATA card SiI 3132, no XHCI Martin Mokrejs
2013-03-12  2:51 ` Yijing Wang
2013-03-12  9:57   ` Martin Mokrejs
2013-03-13  2:42 ` Yijing Wang
2013-03-14  0:05   ` Martin Mokrejs
2013-03-14  0:16     ` Martin Mokrejs
2013-03-14  8:38     ` Yijing Wang
     [not found]     ` <51417C28.40402@huawei.com>
2013-03-14 13:00       ` Martin Mokrejs
2013-03-15  2:41         ` Yijing Wang [this message]
2013-03-28 18:38           ` Martin Mokrejs
2013-03-29  8:20             ` Huang Ying
2013-03-29 13:08               ` Martin Mokrejs
2013-03-29 14:38                 ` Huang Ying
2013-03-29 15:12                   ` Martin Mokrejs
2013-03-29 14:11               ` Martin Mokrejs
2013-03-29 16:45                 ` Martin Mokrejs
2013-03-29 21:31                 ` Rafael J. Wysocki
2013-03-30  1:17                   ` Martin Mokrejs
2013-03-30  1:48                     ` Rafael J. Wysocki
2013-03-30  1:53                       ` Martin Mokrejs
2013-03-30 17:49                         ` Martin Mokrejs
2013-03-30 22:18                           ` Rafael J. Wysocki
2013-03-30 23:12                             ` Martin Mokrejs
2013-03-31  1:51                               ` Rafael J. Wysocki
2013-03-30 22:17                         ` Rafael J. Wysocki
2013-03-30 22:39                           ` Martin Mokrejs
2013-03-30 10:54                 ` Huang Ying
2013-03-31 10:35                   ` Martin Mokrejs
2013-03-31 14:12                     ` Huang Ying
2013-03-31 15:04                       ` Martin Mokrejs
2013-04-01  7:33                         ` Huang Ying
2013-04-01 17:23                           ` Martin Mokrejs
2013-04-30 21:09                             ` Martin Mokrejs
2013-05-01  0:20                               ` Martin Mokrejs
     [not found]                     ` <515813CB.8020001@fold.natur.cuni.cz>
2013-03-31 23:17                       ` Martin Mokrejs
2013-04-01  0:14                         ` Rafael J. Wysocki
2013-04-01 12:06                           ` Martin Mokrejs
2013-03-31 18:48               ` Martin Mokrejs
2013-03-14 15:18       ` Martin Mokrejs
2013-03-14 15:20       ` Martin Mokrejs
2013-03-14 17:54       ` Martin Mokrejs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51428A72.2060602@huawei.com \
    --to=wangyijing@huawei.com \
    --cc=bhelgaas@google.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=mmokrejs@fold.natur.cuni.cz \
    --cc=rjw@sisk.pl \
    --cc=ying.huang@intel.com \
    --cc=yinghai@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.