From patchwork Thu Feb 6 21:08:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Wu X-Patchwork-Id: 3598371 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 69428BF418 for ; Thu, 6 Feb 2014 21:09:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 510C82016C for ; Thu, 6 Feb 2014 21:09:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2DC0420181 for ; Thu, 6 Feb 2014 21:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753172AbaBFVJN (ORCPT ); Thu, 6 Feb 2014 16:09:13 -0500 Received: from mail-ea0-f174.google.com ([209.85.215.174]:39751 "EHLO mail-ea0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbaBFVJL (ORCPT ); Thu, 6 Feb 2014 16:09:11 -0500 Received: by mail-ea0-f174.google.com with SMTP id b10so1150432eae.5 for ; Thu, 06 Feb 2014 13:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=8maRfT9zbi8iScqrqJW2UODP7+F9/RcF9L+w390YwLM=; b=Bxaj65BOswmRlrwwcoID6BZ01uP5QMHpiJJyEgaf2sdS4w2JC3bw66vlE8fa0Rnjis QhTgmuKPRD9QHq32CPrzq3H02EKblH6e/sBol4mGdMOQQysveh9NY+L/iP0kO2Lol5TG M6/lRBYMf6FNFFRXEjL2JQI7w+IJIzF04J72P9EfA4wYry8OHI7j2WwyPbcWN8iWTnCc DswTyOdZQfSIwr89oXfHvPAe7jjwvMN+0Ne0hYU3g9nJiX9C4FPMrJnjL6xvFc3D5xZ6 kls4yhYW08xIXxXVt1eSFW9hyRkBnAlJzL0GLTHX7PM06XiGtVQMnq+lQbeyilZvTWCq 2QOQ== X-Received: by 10.14.225.195 with SMTP id z43mr11702447eep.19.1391720938492; Thu, 06 Feb 2014 13:08:58 -0800 (PST) Received: from al.localnet (al.lekensteyn.nl. [2001:470:1f15:b83::c0d1:f1ed]) by mx.google.com with ESMTPSA id i43sm8107679eeu.13.2014.02.06.13.08.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Feb 2014 13:08:57 -0800 (PST) From: Peter Wu To: Bastien Traverse Cc: linux-kernel@vger.kernel.org, francis.moro@gmail.com, linux-pm@vger.kernel.org, "Rafael J. Wysocki" Subject: Re: 3.12: ethernet controller missing after resuming from suspend to RAM Date: Thu, 06 Feb 2014 22:08:25 +0100 Message-ID: <5898085.IKVHQGKOYn@al> User-Agent: KMail/4.12.2 (Linux/3.13.1-2.1-ARCH; KDE/4.12.2; x86_64; ; ) In-Reply-To: <52F2CC7B.80406@gmail.com> References: <52F2CC7B.80406@gmail.com> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Thursday 06 February 2014 00:42:51 Bastien Traverse wrote: > I just used my Ethernet NIC for the first time on an up-to-date > Archlinux; it was working fine until I suspended to RAM: on resume the > Realtek/Ethernet device had completely disappeared. > > The two entries absent from lspci output after resume are: > $ sudo lspci -v [..] > 03:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. > RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a) > Subsystem: CLEVO/KAPOK Computer Device 0540 > Flags: bus master, fast devsel, latency 0, IRQ 45 > I/O ports at e000 [size=256] > Memory at f0a04000 (64-bit, prefetchable) [size=4K] > Memory at f0a00000 (64-bit, prefetchable) [size=16K] > Capabilities: [40] Power Management version 3 > Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+ > Capabilities: [70] Express Endpoint, MSI 01 > Capabilities: [b0] MSI-X: Enable- Count=4 Masked- > Capabilities: [d0] Vital Product Data > Capabilities: [100] Advanced Error Reporting > Capabilities: [160] Device Serial Number 02-00-00-00-68-4c-e0-00 > Kernel driver in use: r8169 > Kernel modules: r8169 I also have an affected laptop where the network and MMC controller vanishes on resume. The laptop is also from Clevo, but a different model: Clevo B7130. I had no issues with my custom kernel configuration (latest version that I tested was 3.13.1), but at least the stock Arch kernels from 3.12.2 up to 3.12.6 and 3.13.1 are affected by this issue. Reproduce with: 1. Boot system. 2. lspci -nnvt > lspci-nnvt.txt 3. Suspend system (lid close) 4. lspci -nnvt > lspci-nnvt2.txt 5. Observe missing network controller (see diff below). The only difference now is the kernel config. I guess that it comes from CONFIG_HOTPLUG_PCI. In my non-broken config, it's unset. The Arch kernel sets CONFIG_HOTPLUG_PCI=y (and also CONFIG_HOTPLUG_PCI_ACPI=y). That guess is based on the additional messages I see with the broken config: [ 1.033628] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 1.033642] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 ... [ 102.704377] iwlwifi 0000:05:00.0: no hotplug settings from platform [ 103.170193] xhci_hcd 0000:02:00.0: no hotplug settings from platform [ 103.229008] iwlwifi 0000:05:00.0: no hotplug settings from platform Before I start bisecting, do you have any ideas to debug this? The stock config of Arch Linux kernel 3.13.1-2-ARCH can be found on: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/config.x86_64?h=packages/linux&id=0ea780ba731bd214db3007f57f54a3fad709a078 Regards, Peter --- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- boot-3.13.1/lspci-nnvt.txt 2014-02-06 17:11:07.070625446 +0100 +++ boot-3.13.1/lspci-nnvt2.txt 2014-02-06 17:11:19.843386871 +0100 @@ -11,10 +11,7 @@ +-1a.0 Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] +-1b.0 Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] +-1c.0-[02-03]----00.0 NEC Corporation uPD720200 USB 3.0 Host Controller [1033:0194] - +-1c.1-[04]--+-00.0 JMicron Technology Corp. SD/MMC Host Controller [197b:2382] - | +-00.2 JMicron Technology Corp. Standard SD Host Controller [197b:2381] - | +-00.3 JMicron Technology Corp. MS Host Controller [197b:2383] - | \-00.5 JMicron Technology Corp. JMC250 PCI Express Gigabit Ethernet Controller [197b:0250] + +-1c.1-[04]-- +-1c.2-[05]----00.0 Intel Corporation Centrino Advanced-N 6200 [8086:422c] +-1d.0 Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b34] +-1e.0-[06]--