From: "Rafael J. Wysocki" Subject: Re: PCI D3 wakeup failure on Lynx Point xHCI Date: Thu, 21 Feb 2013 23:54:55 +0100 Message-ID: <2088156.nL7UmaIX3H@vostro.rjw.lan> References: <20130221214145.GA25639@xanatos> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <20130221214145.GA25639@xanatos> Sender: linux-pci-owner@vger.kernel.org To: Sarah Sharp Cc: linux-pci@vger.kernel.org, linux-usb@vger.kernel.org, linux-acpi@vger.kernel.org, Huang Ying List-Id: linux-acpi@vger.kernel.org On Thursday, February 21, 2013 01:41:45 PM Sarah Sharp wrote: > Hi Rafael, Hi, > I'm running into some issues with PCI D3 Do you mean D3hot? > wakeup on the latest version of the Lynx Point chipset. I can give you the > stepping and BIOS version privately if you need it. > > Basically, I think PMEs are being lost somewhere in the ACPI or PCI > stack. I'm not sure how to further debug this issue, so I'm hoping you have > some pointers. > > This is reproduced on the 3.7.1, 3.7.7, and 3.8.0 kernels. > > First, I go into powertop and basically change all the 'Bad' entries to > 'Good', which turns on runtime PM for all PCI devices, bridges, and > rootports. I have no USB devices plugged into the xHCI host, and I wait > until the host is suspended, and the PCI device is in D3. > > Then I run: > > watch -n 1 'sudo lspci -vvv -s 00:14.0' > > When I plug in a USB 2.0 device to a USB 2.0 port, the hotplug event is > lost. I can see from the lspci output that the Status line under the PM > capabilities changes when I plug in the device. The PME- changes to > PME+, which I assume means a PME happened. But the USB core's PCI > resume functions are never called. > > Wakeup from D3 works fine on the previous generation chipset (Panther > Point) on my Lenovo x230 laptop, so this makes me suspicious that it's a > hardware or BIOS issue. I'll try updating my BIOS and seeing if that > helps. In addition to that you can see if the number of ACPI interrupts (in /proc/interrupts) grows when you plug the USB device in and if so, whether or not any of the numbers in /sys/firmware/acpi/interrupts/gpe* grows at the same time. Thanks, Rafael -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.