All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yinghai Lu <yinghai@kernel.org>
To: Martin Mokrejs <mmokrejs@fold.natur.cuni.cz>,
	Thomas Gleixner <tglx@linutronix.de>
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: Mon, 16 Apr 2012 13:53:37 -0700	[thread overview]
Message-ID: <CAE9FiQXikqikMw_LYGqAUsWqFqL-tLiresPhpkpDhb+AxwundQ@mail.gmail.com> (raw)
In-Reply-To: <4F8C6E4E.1000205@fold.natur.cuni.cz>

On Mon, Apr 16, 2012 at 12:09 PM, Martin Mokrejs
<mmokrejs@fold.natur.cuni.cz> wrote:
> Yinghai Lu wrote:
>> On Mon, Apr 16, 2012 at 2:49 AM, Martin Mokrejs
>> <mmokrejs@fold.natur.cuni.cz> wrote:
>>> Hi Yinghai,
>>>
>>> Yinghai Lu wrote:
>>>> On Wed, Mar 21, 2012 at 3:46 PM, Martin Mokrejs
>>>   I had some Ooopses with 3.4-rc2 but now I have tested 3.4-rc3. Still, linux
>>> does NOT realize that I have removed an ExpressCard from the slot. It realizes
>>> that only when I pluging the card back again. Actually, this is a case of a
>>> NEC chipset base USB3.0 card.
>>>
>>>  In contrast, kernel DOES recognize that I unplugged a FireWire card from the
>>> same slot.
>>>
>>>  This is a Dell Vostro 3550 laptop. Below is what syslog logged with my comment.
>>> Empty lines between the log entries are inserted whe I either inserted or removed
>>> a card. Probably a bit more will be in the attached dmesg file.
>>>
>
> [cut]
>
>>
>> please check boot with pciehp.pciehp_debug=1
>>
>> also you could use tail -f /var/log/messages to get more timely outputs.
>
>
> I do not see anything extra logged during those INSERT/REMOVE attempts. Yes, there is somethiung
> in dmesg logged in addition when the machine booted up.
>
>
> INSERTING THE USB3.0 CARD FOR THE FIRST TIME AFTER BOOTUP
>
> Apr 16 20:40:32 vostro kernel: [  419.776551] pciehp 0000:00:1c.7:pcie04: Card present on Slot(7)
> Apr 16 20:40:33 vostro kernel: [  420.798623] pci 0000:11:00.0: BAR 0: assigned [mem 0xf6c00000-0xf6c01fff 64bit]
> Apr 16 20:40:33 vostro kernel: [  420.798657] pcieport 0000:00:1c.7: PCI bridge to [bus 11-16]
> Apr 16 20:40:33 vostro kernel: [  420.798666] pcieport 0000:00:1c.7:   bridge window [io  0xc000-0xdfff]
> Apr 16 20:40:33 vostro kernel: [  420.798678] pcieport 0000:00:1c.7:   bridge window [mem 0xf6c00000-0xf7cfffff]
> Apr 16 20:40:33 vostro kernel: [  420.798689] pcieport 0000:00:1c.7:   bridge window [mem 0xf0000000-0xf10fffff 64bit pref]
> Apr 16 20:40:33 vostro kernel: [  420.798827] xhci_hcd 0000:11:00.0: enabling device (0100 -> 0102)
> Apr 16 20:40:33 vostro kernel: [  420.798882] xhci_hcd 0000:11:00.0: xHCI Host Controller
> Apr 16 20:40:33 vostro kernel: [  420.798930] xhci_hcd 0000:11:00.0: new USB bus registered, assigned bus number 5
> Apr 16 20:40:33 vostro kernel: [  420.799256] xhci_hcd 0000:11:00.0: irq 19, io mem 0xf6c00000
> Apr 16 20:40:33 vostro kernel: [  420.799547] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
> Apr 16 20:40:33 vostro kernel: [  420.799548] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> Apr 16 20:40:33 vostro kernel: [  420.799549] usb usb5: Product: xHCI Host Controller
> Apr 16 20:40:33 vostro kernel: [  420.799551] usb usb5: Manufacturer: Linux 3.3.2-default xhci_hcd
> Apr 16 20:40:33 vostro kernel: [  420.799552] usb usb5: SerialNumber: 0000:11:00.0
> Apr 16 20:40:33 vostro kernel: [  420.799654] hub 5-0:1.0: USB hub found
> Apr 16 20:40:33 vostro kernel: [  420.799666] hub 5-0:1.0: 2 ports detected
> Apr 16 20:40:33 vostro kernel: [  420.799726] xhci_hcd 0000:11:00.0: xHCI Host Controller
> Apr 16 20:40:33 vostro kernel: [  420.799757] xhci_hcd 0000:11:00.0: new USB bus registered, assigned bus number 6
> Apr 16 20:40:33 vostro kernel: [  420.802464] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
> Apr 16 20:40:33 vostro kernel: [  420.802466] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> Apr 16 20:40:33 vostro kernel: [  420.802468] usb usb6: Product: xHCI Host Controller
> Apr 16 20:40:33 vostro kernel: [  420.802470] usb usb6: Manufacturer: Linux 3.3.2-default xhci_hcd
> Apr 16 20:40:33 vostro kernel: [  420.802471] usb usb6: SerialNumber: 0000:11:00.0
> Apr 16 20:40:33 vostro kernel: [  420.802632] hub 6-0:1.0: USB hub found
> Apr 16 20:40:33 vostro kernel: [  420.802651] hub 6-0:1.0: 2 ports detected
>
> REMOVED THE USB3.0 CARD
>
> RE-INSERTING THE USB3.0 CARD
>
> Apr 16 20:40:44 vostro kernel: [  431.946895] pciehp 0000:00:1c.7:pcie04: Card not present on Slot(7)
> Apr 16 20:40:44 vostro kernel: [  431.947148] xhci_hcd 0000:11:00.0: remove, state 4
> Apr 16 20:40:44 vostro kernel: [  431.947152] usb usb6: USB disconnect, device number 1
> Apr 16 20:40:44 vostro kernel: [  431.947331] xhci_hcd 0000:11:00.0: USB bus 6 deregistered
> Apr 16 20:40:44 vostro kernel: [  431.947398] xhci_hcd 0000:11:00.0: remove, state 4
> Apr 16 20:40:44 vostro kernel: [  431.947402] usb usb5: USB disconnect, device number 1
> Apr 16 20:40:44 vostro kernel: [  431.947642] xhci_hcd 0000:11:00.0: USB bus 5 deregistered
> Apr 16 20:40:44 vostro kernel: [  431.968146] pciehp 0000:00:1c.7:pcie04: Card present on Slot(7)
> Apr 16 20:40:45 vostro kernel: [  432.990453] pci 0000:11:00.0: BAR 0: assigned [mem 0xf6c00000-0xf6c01fff 64bit]
> Apr 16 20:40:45 vostro kernel: [  432.990487] pcieport 0000:00:1c.7: PCI bridge to [bus 11-16]
> Apr 16 20:40:45 vostro kernel: [  432.990496] pcieport 0000:00:1c.7:   bridge window [io  0xc000-0xdfff]
> Apr 16 20:40:45 vostro kernel: [  432.990509] pcieport 0000:00:1c.7:   bridge window [mem 0xf6c00000-0xf7cfffff]
> Apr 16 20:40:45 vostro kernel: [  432.990520] pcieport 0000:00:1c.7:   bridge window [mem 0xf0000000-0xf10fffff 64bit pref]
> Apr 16 20:40:45 vostro kernel: [  432.990649] xhci_hcd 0000:11:00.0: enabling device (0100 -> 0102)
> Apr 16 20:40:45 vostro kernel: [  432.990685] xhci_hcd 0000:11:00.0: xHCI Host Controller
> Apr 16 20:40:45 vostro kernel: [  432.990723] xhci_hcd 0000:11:00.0: new USB bus registered, assigned bus number 5
> Apr 16 20:40:45 vostro kernel: [  432.991014] xhci_hcd 0000:11:00.0: irq 19, io mem 0xf6c00000
> Apr 16 20:40:45 vostro kernel: [  432.991354] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
> Apr 16 20:40:45 vostro kernel: [  432.991357] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> Apr 16 20:40:45 vostro kernel: [  432.991359] usb usb5: Product: xHCI Host Controller
> Apr 16 20:40:45 vostro kernel: [  432.991360] usb usb5: Manufacturer: Linux 3.3.2-default xhci_hcd
> Apr 16 20:40:45 vostro kernel: [  432.991362] usb usb5: SerialNumber: 0000:11:00.0
> Apr 16 20:40:45 vostro kernel: [  432.991511] hub 5-0:1.0: USB hub found
> Apr 16 20:40:45 vostro kernel: [  432.991523] hub 5-0:1.0: 2 ports detected
> Apr 16 20:40:45 vostro kernel: [  432.991604] xhci_hcd 0000:11:00.0: xHCI Host Controller
> Apr 16 20:40:45 vostro kernel: [  432.991678] xhci_hcd 0000:11:00.0: new USB bus registered, assigned bus number 6
> Apr 16 20:40:45 vostro kernel: [  432.994264] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
> Apr 16 20:40:45 vostro kernel: [  432.994266] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> Apr 16 20:40:45 vostro kernel: [  432.994268] usb usb6: Product: xHCI Host Controller
> Apr 16 20:40:45 vostro kernel: [  432.994269] usb usb6: Manufacturer: Linux 3.3.2-default xhci_hcd
> Apr 16 20:40:45 vostro kernel: [  432.994270] usb usb6: SerialNumber: 0000:11:00.0
> Apr 16 20:40:45 vostro kernel: [  432.994431] hub 6-0:1.0: USB hub found
> Apr 16 20:40:45 vostro kernel: [  432.994449] hub 6-0:1.0: 2 ports detected
>

so the interrupt for removal get generated, but pcie_isr() is delayed
when another surprise is generated...

could be threaded_irq changes related.  Thomas ?

>
> INSERTING THE FireWire CARD
>
> Apr 16 20:41:27 vostro kernel: [  474.869403] pciehp 0000:00:1c.7:pcie04: Card not present on Slot(7)
> Apr 16 20:41:27 vostro kernel: [  474.869657] xhci_hcd 0000:11:00.0: remove, state 4
> Apr 16 20:41:27 vostro kernel: [  474.869661] usb usb6: USB disconnect, device number 1
> Apr 16 20:41:27 vostro kernel: [  474.869809] xhci_hcd 0000:11:00.0: USB bus 6 deregistered
> Apr 16 20:41:27 vostro kernel: [  474.869852] xhci_hcd 0000:11:00.0: remove, state 4
> Apr 16 20:41:27 vostro kernel: [  474.869857] usb usb5: USB disconnect, device number 1
> Apr 16 20:41:27 vostro kernel: [  474.870049] xhci_hcd 0000:11:00.0: USB bus 5 deregistered
> Apr 16 20:41:27 vostro kernel: [  474.878567] pciehp 0000:00:1c.7:pcie04: Card present on Slot(7)
> Apr 16 20:41:28 vostro kernel: [  475.906546] pci 0000:11:00.0: BAR 0: assigned [mem 0xf6c00000-0xf6c007ff 64bit]
> Apr 16 20:41:28 vostro kernel: [  475.906570] pci 0000:11:00.0: BAR 2: assigned [io  0xc000-0xc0ff]
> Apr 16 20:41:28 vostro kernel: [  475.906584] pcieport 0000:00:1c.7: PCI bridge to [bus 11-16]
> Apr 16 20:41:28 vostro kernel: [  475.906592] pcieport 0000:00:1c.7:   bridge window [io  0xc000-0xdfff]
> Apr 16 20:41:28 vostro kernel: [  475.906605] pcieport 0000:00:1c.7:   bridge window [mem 0xf6c00000-0xf7cfffff]
> Apr 16 20:41:28 vostro kernel: [  475.906627] pcieport 0000:00:1c.7:   bridge window [mem 0xf0000000-0xf10fffff 64bit pref]
> Apr 16 20:41:28 vostro kernel: [  475.986838] firewire_ohci 0000:11:00.0: enabling device (0100 -> 0103)
> Apr 16 20:41:29 vostro kernel: [  476.066286] firewire_ohci: Added fw-ohci device 0000:11:00.0, OHCI v1.10, 4 IR + 8 IT contexts, quirks 0x11
> Apr 16 20:41:29 vostro kernel: [  476.565663] firewire_core: created device fw0: GUID 0011066600000003, S400
>
>
> REMOVING FireWire CARD
>
>
> Apr 16 20:41:39 vostro kernel: [  486.621576] pciehp 0000:00:1c.7:pcie04: Card not present on Slot(7)
> Apr 16 20:41:39 vostro kernel: [  486.621984] firewire_ohci: Removed fw-ohci device.
>

this card is not delayed.

Yinghai

  parent reply	other threads:[~2012-04-16 20:53 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21 21:29 3.2.11: PCI Express card cannot be re-detected withing cca 60sec timeframe Martin Mokrejs
2012-03-21 22:29 ` Yinghai Lu
     [not found]   ` <4F6A5A53.305@fold.natur.cuni.cz>
2012-03-22  0:08     ` Yinghai Lu
     [not found]       ` <4F8BEB1D.9080903@fold.natur.cuni.cz>
2012-04-16 10:53         ` Martin Mokrejs
2012-04-16 11:05           ` Martin Mokrejs
2012-04-16 18:07         ` Yinghai Lu
2012-04-16 19:39           ` Martin Mokrejs
2012-04-16 19:45             ` Martin Mokrejs
2012-04-16 21:04             ` Yinghai Lu
2012-04-17  8:56               ` Martin Mokrejs
     [not found]           ` <4F8C6E4E.1000205@fold.natur.cuni.cz>
2012-04-16 20:53             ` Yinghai Lu [this message]
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
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=CAE9FiQXikqikMw_LYGqAUsWqFqL-tLiresPhpkpDhb+AxwundQ@mail.gmail.com \
    --to=yinghai@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=mmokrejs@fold.natur.cuni.cz \
    --cc=tglx@linutronix.de \
    /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.