mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Mokrejs <mmokrejs@fold.natur.cuni.cz>
To: Yinghai Lu <yinghai@kernel.org>
Cc: linux-pci@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 3.2.11: PCI Express card cannot be re-detected withing cca 60sec timeframe
Date: Wed, 18 Apr 2012 19:53:39 +0200	[thread overview]
Message-ID: <4F8EFFA3.3050705@fold.natur.cuni.cz> (raw)
In-Reply-To: <CAE9FiQUxoHvUWFXv5LLcBT9vVGnQKp1-Tg7M3XPPULWwtX1iUw@mail.gmail.com>



Yinghai Lu wrote:
> On Tue, Apr 17, 2012 at 10:07 AM, Yinghai Lu <yinghai@kernel.org> wrote:
>> On Tue, Apr 17, 2012 at 2:34 AM, Martin Mokrejs
>> <mmokrejs@fold.natur.cuni.cz> wrote:
>>> Yinghai Lu wrote:
>>>> On Tue, Apr 17, 2012 at 1:46 AM, Yinghai Lu <yinghai@kernel.org> wrote:
>>>>> On Tue, Apr 17, 2012 at 12:27 AM, Martin Mokrejs
>>>>> <mmokrejs@fold.natur.cuni.cz> wrote:
>>>>>>>
>>>>>>> can you send out lspci -vvxxxx -s 00:1c.7 after removing USB 3.0 express card?
>>>>>>
>>>>>> No, that did not help (tried on 3.4-rc3). First I plugged in the NEC uPD720200 USB3.0 card
>>>>>> and unplugged it (card removal not reported :(), saved the lspci output.
>>>>>> Then I inserted the FireWire card, unplugged, again saved the lspci output.
>>>>>> Finally, saved the dmesg. All three files are attached.
>>>>>
>>>>> for USB 3.0:
>>>>>                SltSta: Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet+ Interlock-
>>>>>                        Changed: MRL- PresDet- LinkState+
>>>>
>>>> LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive+
>>>> BWMgmt+ ABWMgmt-
>>>>
>>>> link still active even that card get removed, that looks like chipset
>>>> have problem.
>>>
>>> Yinghai,
>>>  so what should I ask Dell for? To fix BIOS of the laptop? What exactly? Or do you think
>>> this is a hardware issue with the chipset?
>>
>> after the expresscard get removed, that root port socket status bits
>> still report Data Link Active, and
>> the card still present.
>>
>> Better check with Dell at first, and ask them to talk with intel if
>> there is silicon bug with that chipset that report wrong status.
>>
>> Let me check if i could rebase one my local patch do reset pcie link
>> to prove that problem it silicon related.
> 
> Rebase patches about pcie link disable/enable in /sys. please check them at
> 
>  git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git
> for-pci-test
> 
>   PCI, sysfs: merge dev and bus cpuaffinity show handling
>   PCI, sys: Use is_visable() with boot_vga attribute for pci_dev
>   PCI, sysfs: Put resource_alignment info pci_bus_attrs array
>   PCI: Move pcie_link_disable to pcie-link.c
>   PCI, sysfs: Add pcie attrs for pcie device under pci dev dir.
>   PCI: Add link_disable in /sysfs for pcie device
> 
> it is based on for-pci-root-bus-hotplug branch
> 
> Or you can just master branch like
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git
> 
> After you remove USB3 expresscard, you need to
> 
> echo 1 > /sys/devices/pci0000\:00/0000\:00\:1c.7/pcie_link_disable
> then
> echo 0 > /sys/devices/pci0000\:00/0000\:00\:1c.7/pcie_link_disable

So without these two echo commands the is no improvement/fix.

[  686.701306] pciehp 0000:00:1c.7:pcie04: pcie_isr: intr_loc 8
[  686.701316] pciehp 0000:00:1c.7:pcie04: Presence/Notify input change
[  686.701319] pciehp 0000:00:1c.7:pcie04: Card present on Slot(7)
[  686.701357] pciehp 0000:00:1c.7:pcie04: Surprise Removal
[  686.701390] pciehp 0000:00:1c.7:pcie04: check_link_active: lnk_status = 7011
[  686.809763] pciehp 0000:00:1c.7:pcie04: pciehp_check_link_status: lnk_status = 7011
[  686.809864] pci 0000:11:00.0: [1033:0194] type 00 class 0x0c0330
[  686.809914] pci 0000:11:00.0: reg 10: [mem 0x00000000-0x00001fff 64bit]
[  686.810166] pci 0000:11:00.0: PME# supported from D0 D3hot
[  686.829795] pci 0000:11:00.0: BAR 0: assigned [mem 0xf6c00000-0xf6c01fff 64bit]
[  686.829840] pcieport 0000:00:1c.7: PCI bridge to [bus 11-16]
[  686.829843] pcieport 0000:00:1c.7:   bridge window [io  0xc000-0xdfff]
[  686.829848] pcieport 0000:00:1c.7:   bridge window [mem 0xf6c00000-0xf7cfffff]
[  686.829852] pcieport 0000:00:1c.7:   bridge window [mem 0xf0000000-0xf10fffff 64bit pref]
[  686.829991] xhci_hcd 0000:11:00.0: enabling device (0100 -> 0102)
[  686.830048] xhci_hcd 0000:11:00.0: xHCI Host Controller
[  686.830054] xhci_hcd 0000:11:00.0: new USB bus registered, assigned bus number 5
[  686.830348] xhci_hcd 0000:11:00.0: irq 19, io mem 0xf6c00000
[  686.830466] xhci_hcd 0000:11:00.0: irq 54 for MSI/MSI-X
[  686.830473] xhci_hcd 0000:11:00.0: irq 55 for MSI/MSI-X
[  686.830479] xhci_hcd 0000:11:00.0: irq 56 for MSI/MSI-X
[  686.830485] xhci_hcd 0000:11:00.0: irq 57 for MSI/MSI-X
[  686.830492] xhci_hcd 0000:11:00.0: irq 58 for MSI/MSI-X
[  686.830654] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[  686.830656] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  686.830657] usb usb5: Product: xHCI Host Controller
[  686.830658] usb usb5: Manufacturer: Linux 3.4.0-rc3-default xhci_hcd
[  686.830660] usb usb5: SerialNumber: 0000:11:00.0
[  686.830782] xHCI xhci_add_endpoint called for root hub
[  686.830784] xHCI xhci_check_bandwidth called for root hub
[  686.830807] hub 5-0:1.0: USB hub found
[  686.830819] hub 5-0:1.0: 2 ports detected
[  686.830921] xhci_hcd 0000:11:00.0: xHCI Host Controller
[  686.830925] xhci_hcd 0000:11:00.0: new USB bus registered, assigned bus number 6
[  686.833581] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
[  686.833583] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  686.833585] usb usb6: Product: xHCI Host Controller
[  686.833586] usb usb6: Manufacturer: Linux 3.4.0-rc3-default xhci_hcd
[  686.833587] usb usb6: SerialNumber: 0000:11:00.0
[  686.833639] xHCI xhci_add_endpoint called for root hub
[  686.833641] xHCI xhci_check_bandwidth called for root hub
[  686.833666] hub 6-0:1.0: USB hub found
[  686.833678] hub 6-0:1.0: 2 ports detected

echo 1 > /sys/devices/pci0000\:00/0000\:00\:1c.7/pcie_link_disable

[  716.999938] pcieport 0000:00:1c.7: pcie_link_disable_set: lnk_ctrl = 53
[  717.024647] pciehp 0000:00:1c.7:pcie04: pcie_isr: intr_loc 8
[  717.024657] pciehp 0000:00:1c.7:pcie04: Presence/Notify input change
[  717.024665] pciehp 0000:00:1c.7:pcie04: Card not present on Slot(7)
[  717.024723] pciehp 0000:00:1c.7:pcie04: Surprise Removal
[  717.024753] pciehp 0000:00:1c.7:pcie04: Disabling domain:bus:device=0000:11:00
[  717.024756] pciehp 0000:00:1c.7:pcie04: pciehp_unconfigure_device: domain:bus:dev = 0000:11:00
[  717.044828] xhci_hcd 0000:11:00.0: remove, state 4
[  717.044834] usb usb6: USB disconnect, device number 1
[  717.044877] xHCI xhci_drop_endpoint called for root hub
[  717.044885] xHCI xhci_check_bandwidth called for root hub
[  717.044964] xhci_hcd 0000:11:00.0: Host not halted after 16000 microseconds.
[  717.044967] xhci_hcd 0000:11:00.0: USB bus 6 deregistered
[  717.044971] xhci_hcd 0000:11:00.0: remove, state 4
[  717.044974] usb usb5: USB disconnect, device number 1
[  717.045000] xHCI xhci_drop_endpoint called for root hub
[  717.045001] xHCI xhci_check_bandwidth called for root hub
[  717.045053] xhci_hcd 0000:11:00.0: Host not halted after 16000 microseconds.
[  717.045138] xhci_hcd 0000:11:00.0: USB bus 5 deregistered
[  717.045197] pci 0000:11:00.0: freeing pci_dev info

echo 0 > /sys/devices/pci0000\:00/0000\:00\:1c.7/pcie_link_disable

[  748.456914] pcieport 0000:00:1c.7: pcie_link_disable_set: lnk_ctrl = 40


Martin

  reply	other threads:[~2012-04-18 17:53 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4F6A483D.50702@fold.natur.cuni.cz>
     [not found] ` <CAE9FiQVnErU-cska4gpinyj-LOup-U+3vsEG2z_-7h6kyREYtw@mail.gmail.com>
     [not found]   ` <4F6A5A53.305@fold.natur.cuni.cz>
     [not found]     ` <CAE9FiQXP7fO9OGN557jdofFFiFj96wL--ZA8X3UPEJ6o9JLvBw@mail.gmail.com>
     [not found]       ` <4F8BEB1D.9080903@fold.natur.cuni.cz>
     [not found]         ` <CAE9FiQXoX3J6P_9Tun_XbkK3egvSeBZxAtC13HacFDO0fwmZaA@mail.gmail.com>
     [not found]           ` <4F8C6E4E.1000205@fold.natur.cuni.cz>
2012-04-16 20:53             ` Yinghai Lu
2012-04-17  1:42               ` Yinghai Lu
2012-04-17  2:48                 ` Yinghai Lu
2012-04-17  7:27                   ` Martin Mokrejs
2012-04-17  8:46                     ` Yinghai Lu
2012-04-17  8:58                       ` Yinghai Lu
2012-04-17  9:34                         ` Martin Mokrejs
2012-04-17 17:07                           ` Yinghai Lu
2012-04-17 19:02                             ` Yinghai Lu
2012-04-18 17:53                               ` Martin Mokrejs [this message]
2012-04-18 19:48                                 ` Yinghai Lu
2012-04-18 20:29                                   ` Martin Mokrejs
2012-04-18 20:58                                     ` Yinghai Lu
2012-04-18 22:55                                       ` Martin Mokrejs
2012-04-19  1:57                                         ` Yinghai Lu
2012-04-19  3:16                                           ` Mark Lord
2012-04-19 23:16                                       ` Martin Mokrejs
2012-04-19 21:48                                         ` Yinghai Lu
2012-04-20  2:06                                           ` Yinghai Lu
2012-04-20 11:23                                             ` Martin Mokrejs
2012-04-20 16:01                                               ` Yinghai Lu
2012-04-20 17:25                                                 ` Martin Mokrejs
2012-04-20 17:28                                                   ` Martin Mokrejs
2012-04-20 18:47                                                     ` Yinghai Lu
2012-04-20 23:17                                                       ` Sarah Sharp
2012-04-21  0:09                                                         ` Yinghai Lu
2012-04-21  4:46                                                           ` Yinghai Lu
2012-04-21  9:01                                                             ` Martin Mokrejs
2012-04-21  9:12                                                               ` Martin Mokrejs
2012-04-21 13:25                                                           ` Sarah Sharp
2012-04-21 18:46                                                             ` Yinghai Lu
2012-04-24 20:47                                                               ` Martin Mokrejs
2012-04-24 20:48                                                               ` Martin Mokrejs
2012-04-26 16:08                                                                 ` Yinghai Lu
2012-04-26 22:08                                                                   ` Martin Mokrejs
2012-04-26 22:44                                                                     ` Yinghai Lu
2012-04-26 23:26                                                                       ` Martin Mokrejs
2012-04-27  3:51                                                                         ` Yinghai Lu
2012-04-20 23:50                                                       ` Martin Mokrejs
2012-04-21  0:04                                                         ` Yinghai Lu
2012-05-04 16:16                                                       ` Martin Mokrejs
2012-04-19 17:32                                   ` Martin Mokrejs
2012-04-19 18:13                                     ` Yinghai Lu
2012-05-04 15:58                                   ` Martin Mokrejs
2012-05-04 20:43                                     ` 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=4F8EFFA3.3050705@fold.natur.cuni.cz \
    --to=mmokrejs@fold.natur.cuni.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®