Re: 3.9-rc1: pciehp and eSATA card SiI 3132, no XHCI

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

 



Hi Ying,
  would you please tell me how this report relate to this patch?

[PATCH] PCI / ACPI: Always resume devices on ACPI wakeup notifications

  Could you tell me why this PME was being flipped back and forth now?
Actually, does that make finally some sense to you, pci/acpi devs?


  Does is help to say that on the SandyBridge chip I have the following root ports
hooked to the following end devices?:

1.c1 -> rtl8169 05:00.0
1.c3 -> iwlwifi 09:00.0
1.c4 -> xhci_hcd 0b:00.0
1.c7 -> 00:11: express card slot


  Why didn't I see interleraved lines with 1.c7 *and* 00:11? See the interleaving
happening with the network card on 3.7.10 kernel (not broken kernel):

[138268.870070] r8169 0000:05:00.0 eth0: link down
[138270.809811] r8169 0000:05:00.0 eth0: link up
[138365.599744] r8169 0000:05:00.0 eth0: link down
[138370.594343] r8169 0000:05:00.0: PME# enabled
[138370.623852] pcieport 0000:00:1c.1: PME# enabled
[169885.247386] pcieport 0000:00:1c.1: PME# disabled
[169885.267374] r8169 0000:05:00.0: PME# disabled
[169885.330160] r8169 0000:05:00.0 eth0: link down
[169886.992531] r8169 0000:05:00.0 eth0: link up
[169904.405769] r8169 0000:05:00.0 eth0: link down
[169909.401237] r8169 0000:05:00.0: PME# enabled
[169909.430782] pcieport 0000:00:1c.1: PME# enabled
[170090.538980] pcieport 0000:00:1c.1: PME# disabled
[170090.559088] r8169 0000:05:00.0: PME# disabled
[170090.640494] r8169 0000:05:00.0: PME# enabled
[170090.678425] pcieport 0000:00:1c.1: PME# enabled
[170090.829959] pcieport 0000:00:1c.1: PME# disabled
[170090.848479] r8169 0000:05:00.0: PME# disabled
[170090.892011] r8169 0000:05:00.0 eth0: link down
[170090.892134] r8169 0000:05:00.0 eth0: link down
[170090.930998] r8169 0000:05:00.0 eth0: link down
[170092.554553] r8169 0000:05:00.0 eth0: link up


Thank you,
Martin

Yijing Wang wrote:
> +CC Huang Ying <ying.huang@xxxxxxxxx>
>>> 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@xxxxxxxxx> to cc list, Rafael and Huang Ying.
> Both of them are familiar with PM. Obviously, this is an unnormal phenomenon.
> 
> 
> 
--
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