Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4434991imm; Mon, 20 Aug 2018 16:07:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzZE/BJsP/omKmbZhrLPFuqi/+U4989jVJfkGCBLKp3oCLGl8vGBkBbQuY7TTRn5mQYQTvq X-Received: by 2002:a17:902:b193:: with SMTP id s19-v6mr11745479plr.217.1534806468639; Mon, 20 Aug 2018 16:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534806468; cv=none; d=google.com; s=arc-20160816; b=wqW+ZHz7dqBR+/yYV1W9UPvy9YYo1+HtvBPFBLW+JkbBmU9jfUXR5EmN1GH66XR+UT SseDtLd7mN3oSLsPoYdoglhlxUj3eodnRoKQvxU9QgjAgjjdbE5+5RU5932szNULc7y2 DfsXc0ZFs6GAxg0jxxP89WTWRsjTM8Xf1FE3h6nWXaof78+x+UfoJPzlWlATwHu1kgbB DJ/v+ekaE6Bffc2rs8ROUbJbqMmYnxs/W5HA0/RXUIHS6xR7ctJA2o/bJhWgQyIBo3ik z0Jr1VliJCUOLfqOgGyAUWyVXhwJpt9DPSW43Ra325OXu5mke4Lyk6gbg+P07A2B9m2c 5q1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=kt4DqDf3Wt1eEVnp7tNhUsIVoHNAPc1AtK/PB1I5CUQ=; b=OwASkqyOdJEwenjn5Rbi4NbRvmOAHLAWu/KjHN9xDJu07AhHn67GE2Zv7OGh8WOm9d 5pmi/RFTjG1t3HfY3GNko9wfNazDx1dQ5GrFGSbvr5+kSSeo/vHq6xpwMm5I99NMR2IS Elb0aWWyC55syvhFivFzPZJI63+MSPMWKhns3BwkzTTuJlnBq4MtGnj6EPka7dNEf3Rs giv4qZvAvmWq7sQNKel65LxOb93B/uhrOUVU9V4gqxecRHZut47sR70E8RhM0LbxJ5nC pEqGkAqTx3fsKs1wzoK9nEZ49TxOu5tNB/G7I1EBPsNpsaxbuThtO+GhMk/QdZsIuIY2 /ssg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FFvK58h1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v129-v6si11862923pfc.330.2018.08.20.16.07.32; Mon, 20 Aug 2018 16:07:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FFvK58h1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726787AbeHUCYA (ORCPT + 99 others); Mon, 20 Aug 2018 22:24:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:49024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726667AbeHUCYA (ORCPT ); Mon, 20 Aug 2018 22:24:00 -0400 Received: from localhost (20.sub-174-234-143.myvzw.com [174.234.143.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C975C2174A; Mon, 20 Aug 2018 23:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534806386; bh=Q+e7o6PNxh8z5t85+pa7ge3Q8TOhHXoS2vSUCBPDnsA=; h=Date:From:To:Cc:Subject:From; b=FFvK58h1ptDo9HUsctx6wCCig0iuSuR5xqtwgovFeWZx5OougmB/8yRIhDXOV5YCN Cx14nHSAHjNd5RdOT269ebrEjDMkr+mHmRGzFLgQQtQru8pUSV/5x6OUs3dpZGgYU7 4yg5nR1hS++JZh37mkNDCeq++3utSRc9toX6sVtU= Date: Mon, 20 Aug 2018 18:06:24 -0500 From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: Lukas Wunner , linux-kernel@vger.kernel.org, mmyangfl@gmail.com Subject: Enumeration issue with QCA9005 AR9462 Message-ID: <20180820230624.GB154536@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mmyangfl@gmail.com reported a problem [1]: on v4.17, a QCA9005 AR9462 wifi device was present at boot, but disappeared after suspend/resume. He/she also tested a recent kernel (5c60a7389d79, from Thu Aug 16), where the suspend/resume problem doesn't seem to happen, but the wifi device isn't enumerated correctly at boot-time. pci 0000:00:1c.3: PCIe Root Port to [bus 03-07] pci 0000:03:00.0: [1ae9:0101] PCIe Switch Upstream Port to [bus 04-07] pci 0000:04:00.0: [1ae9:0200] PCIe Switch Downstream Port to [bus 05] pci 0000:05:00.0: [168c:0034] QCA9005 AR9462 wifi NIC These messages are extracted from [2]: [ 0.928714] pciehp 0000:04:00.0:pcie204: Slot #0 AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug+ Surprise+ Interlock- NoCompl- LLActRep+ [ 0.928752] pciehp 0000:04:00.0:pcie204: Slot(0-1): Card not present [ 0.928811] pciehp 0000:04:00.0:pcie204: Slot(0-1): Link Up [ 0.928815] pciehp 0000:04:00.0:pcie204: Slot(0-1): No adapter After manually executing: echo 1 > /sys/devices/pci0000\:00/0000\:00\:1c.3/0000\:03\:00.0/0000\:04\:00.0/rescan the wifi NIC is discovered correctly: [ 114.649896] pci 0000:05:00.0: [168c:0034] type 00 class 0x028000 [ 114.649977] pci 0000:05:00.0: reg 0x10: [mem 0xf7400000-0xf747ffff 64bit] [ 114.650090] pci 0000:05:00.0: reg 0x30: [mem 0xf7480000-0xf748ffff pref] [1] https://bugzilla.kernel.org/show_bug.cgi?id=200839 [2] https://bugzilla.kernel.org/attachment.cgi?id=277923