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>,
	Sarah Sharp <sarah.a.sharp@linux.intel.com>
Subject: Re: 3.2.11: PCI Express card cannot be re-detected withing cca 60sec timeframe
Date: Sat, 21 Apr 2012 11:01:59 +0200	[thread overview]
Message-ID: <4F927787.409@fold.natur.cuni.cz> (raw)
In-Reply-To: <CAE9FiQWLmiqg_8PQXYsccxqrvwEp5zhGLcEpsN-nAJq=1zTZ7Q@mail.gmail.com>



Yinghai Lu wrote:
> On Fri, Apr 20, 2012 at 5:09 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>>> What do you mean "strange power state"?  The only PCI power states the
>>> xHCI driver will use is D0 or D3hot.  D3hot is entered automatically by
>>> the USB core runtime PM system when all USB devices are disconnected or
>>> suspended.  So what strange power state are we talking about?
>>
>> that's helpful. Can that feature to be disabled?
> 
> please check and set
> /sys/bus/pci/devices/0000:11:00.0/power/control
> /sys/bus/pci/devices/0000:11:00.0/usb?/power/control
> from auto to on

I inserted the card, it was detected:

[33335.295737] pci 0000:11:00.0: [1033:0194] type 00 class 0x0c0330
[33335.295789] pci 0000:11:00.0: reg 10: [mem 0x00000000-0x00001fff 64bit]
[33335.296043] pci 0000:11:00.0: PME# supported from D0 D3hot
[33335.315688] pci 0000:11:00.0: BAR 0: assigned [mem 0xf6c00000-0xf6c01fff 64bit]
[33335.315796] xhci_hcd 0000:11:00.0: enabling device (0100 -> 0102)
[33335.315893] xhci_hcd 0000:11:00.0: xHCI Host Controller
[33335.315897] xhci_hcd 0000:11:00.0: new USB bus registered, assigned bus number 5
[33335.316178] xhci_hcd 0000:11:00.0: irq 19, io mem 0xf6c00000
[33335.316281] xhci_hcd 0000:11:00.0: irq 53 for MSI/MSI-X
[33335.316285] xhci_hcd 0000:11:00.0: irq 54 for MSI/MSI-X
[33335.316288] xhci_hcd 0000:11:00.0: irq 55 for MSI/MSI-X
[33335.316292] xhci_hcd 0000:11:00.0: irq 56 for MSI/MSI-X
[33335.316296] xhci_hcd 0000:11:00.0: irq 57 for MSI/MSI-X
[33335.316447] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[33335.316448] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[33335.316450] usb usb5: Product: xHCI Host Controller
[33335.316451] usb usb5: Manufacturer: Linux 3.4.0-rc3-default xhci_hcd
[33335.316452] usb usb5: SerialNumber: 0000:11:00.0
[33335.316574] xHCI xhci_add_endpoint called for root hub
[33335.316575] xHCI xhci_check_bandwidth called for root hub
[33335.316597] hub 5-0:1.0: USB hub found
[33335.316609] hub 5-0:1.0: 2 ports detected
[33335.316680] xhci_hcd 0000:11:00.0: xHCI Host Controller
[33335.316683] xhci_hcd 0000:11:00.0: new USB bus registered, assigned bus number 6
[33335.319424] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
[33335.319426] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[33335.319428] usb usb6: Product: xHCI Host Controller
[33335.319429] usb usb6: Manufacturer: Linux 3.4.0-rc3-default xhci_hcd
[33335.319430] usb usb6: SerialNumber: 0000:11:00.0
[33335.319560] xHCI xhci_add_endpoint called for root hub
[33335.319562] xHCI xhci_check_bandwidth called for root hub
[33335.319584] hub 6-0:1.0: USB hub found
[33335.319602] hub 6-0:1.0: 2 ports detected

# cat /sys/bus/pci/devices/0000:11:00.0/power/control
on
# cat /sys/bus/pci/devices/0000:11:00.0/usb?/power/control
auto
auto
# echo on > /sys/bus/pci/devices/0000:11:00.0/usb5/power/control
# echo on > /sys/bus/pci/devices/0000:11:00.0/usb6/power/control
#

I removed the card and it was NOT detected.

Note: I did the test with the running instance of kernel booted WITH pcie_aspm=off.
Will reboot without tha option and re-try.

Martin

  reply	other threads:[~2012-04-21  8:59 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
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 [this message]
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=4F927787.409@fold.natur.cuni.cz \
    --to=mmokrejs@fold.natur.cuni.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=sarah.a.sharp@linux.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 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®