linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bhelgaas@google.com>
To: wzyboy <wzyboy@wzyboy.org>
Cc: Emmanuel Grumbach <egrumbach@gmail.com>,
	"Grumbach, Emmanuel" <emmanuel.grumbach@intel.com>,
	"ilw@linux.intel.com" <ilw@linux.intel.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: [Ilw] Intel Wireless 7260 hardware timed out randomly
Date: Mon, 11 Nov 2013 15:44:39 -0700	[thread overview]
Message-ID: <20131111224439.GA30638@google.com> (raw)
In-Reply-To: <CALkVjQYkAWrwRabQfBSvC1pm47ZyRT5jQ0mYBwbiGh-Bt29gbg@mail.gmail.com>

On Sat, Nov 09, 2013 at 10:46:21AM +0800, wzyboy wrote:
> 2013/11/9 Bjorn Helgaas <bhelgaas@google.com>:
> > Thanks.  But can you please attach the output of "lspci -vvxxx" (not
> > "-vxxxx") for the entire system before the problem occurs?
> 
> 
> Sorry I used the wrong command...
> 
> I've attached the output of -vvxxx below.
> 
> There are three files:
> 
> * lspci.vvxxx.normal.txt: When the interface is "state DOWN" in "ip link".
> * lspci.vvxxx.normal2.txt: When the interface is "state UP" in "ip
> link" after I ran "ip link set wlan0 up".
> * lspci.vvxxx.normal3.txt" When the interface is connected to the
> Wi-Fi of my dormitory and got an address (but without default
> gateway, I'm using wired network now).

The only interesting difference is this (between "normal" and "normal3"):

--- lspci.vvxxx.normal.txt      2013-11-11 14:42:14.000000000 -0700
+++ lspci.vvxxx.normal3.txt     2013-11-11 14:42:14.000000000 -0700

 00:1c.1 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4) (prog-if 00 [Normal decode])
-               LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive+ BWMgmt+ ABWMgmt-
+               LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train+ SlotClk+ DLActive+ BWMgmt+ ABWMgmt-

In "normal3", the Link Training bit is set.  I'm not a hardware person,
but my guess it this might be normal.  The spec says Link Training
indicates that the "LTSSM is in the Configuration or Recovery state,"
and Figure 5-1 shows that the transition from L1 to L0 goes through
the Recovery state.  So we might just be seeing the device returning
from L1 to L0.  Maybe Emmanuel can confirm this with the hardware guys.

Comparing "lspci.vvxxx.normal.txt" with "lspci.vvxxx.patched.bug.txt",
I see these changes in the 00:1c.1 Downstream Port (the bridge that
leads to the 7260 NIC):

--- before      2013-11-11 15:24:04.755738964 -0700
+++ after       2013-11-11 15:24:11.875722068 -0700
 00:1c.1 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4) (prog-if 00 [Normal decode])
-               DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
+               DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
-               LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive+ BWMgmt+ ABWMgmt-
+               LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt+ ABWMgmt-
-               SltSta: Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet+ Interlock-
-                       Changed: MRL- PresDet- LinkState+
+               SltSta: Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet- Interlock-
+                       Changed: MRL- PresDet+ LinkState+
-               DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR+, OBFF Disabled ARIFwd-
+               DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled ARIFwd-

So when the bug occurs,

  - Correctable Error Detected is set
  - Data Link Layer Link Active is cleared
  - Presence Detect State is cleared
  - LTR Mechanism Enable is cleared (spec says this bit must be
    reset to the default value when a Downstream Port goes to
    DL_Down)

This all seems consistent with the device being powered off.  Maybe
the 7260 is on a daughterboard with a bad connection to the system
board?  Any chance you can open up the box and make sure the
connection is tight?

It's possible there's some ASPM issue, but I would think Presence
Detect would still work even if the 7260 had a problem with ASPM.
Here's another experiment to try to rule out ASPM.  Run these
commands as root after the driver is loaded but before the bug occurs:

  setpci -s03:00.0 0x50.W=0x140
  setpci -s00:1c.1 0x50.W=0x040
  lspci -vv

This should disable ASPM completely on that link, and the lspci output
will help verify that.

Bjorn

  parent reply	other threads:[~2013-11-11 22:44 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5276134B.8070808@wzyboy.org>
     [not found] ` <CALkVjQYh-SUte4S6LdqOc3KSc3_pDU6jz1KXp+Jsd5_RFPXSqA@mail.gmail.com>
     [not found]   ` <0BA3FCBA62E2DC44AF3030971E174FB301DE8338@HASMSX103.ger.corp.intel.com>
     [not found]     ` <CALkVjQb7fCMFpqhdUs8w-Mx_Y0RtAYYFtKxXkqyrCQ39UFGxKg@mail.gmail.com>
     [not found]       ` <0BA3FCBA62E2DC44AF3030971E174FB301DE960E@HASMSX103.ger.corp.intel.com>
     [not found]         ` <CALkVjQbW8FeiEh8pBZ=KQFD9+8AdjgT0G_RG7qJe0MRdBvMD-A@mail.gmail.com>
     [not found]           ` <CALkVjQaLx2spaOqUPcs_EwMkU7npMki1Reo1MeZwxB7m=c24=g@mail.gmail.com>
     [not found]             ` <0BA3FCBA62E2DC44AF3030971E174FB301DE9FC6@HASMSX103.ger.corp.intel.com>
     [not found]               ` <CALkVjQZDNSgUUFyi94Y8da_NDzW61rCvaMrZpUugFKW_LRNFFA@mail.gmail.com>
     [not found]                 ` <0BA3FCBA62E2DC44AF3030971E174FB301DEA052@HASMSX103.ger.corp.intel.com>
     [not found]                   ` <CALkVjQZRJw7ghjBa1aPKNKe3Zj2B1Mhk5bWVaRdcCYzfoLRovg@mail.gmail.com>
     [not found]                     ` <CALkVjQY7r=YKhsgDKR0mnYVtZy5BAdj83nY2jL0VFaiew6ha7A@mail.gmail.com>
     [not found]                       ` <0BA3FCBA62E2DC44AF3030971E174FB301DEA097@HASMSX103.ger.corp.intel.com>
     [not found]                         ` <CALkVjQY7uRFQ3Qs9T_bgqnYRNcWgsk5gfd=R8RfGFxOdDpFYTQ@mail.gmail.com>
2013-11-06 17:50                           ` [Ilw] Intel Wireless 7260 hardware timed out randomly Emmanuel Grumbach
2013-11-06 18:32                             ` Bjorn Helgaas
2013-11-07  4:49                               ` wzyboy
     [not found]                                 ` <CALkVjQZcKrEFYBzFOXRKhX_cPos9pt0iYnQUnpEEmGzR6+3zQw@mail.gmail.com>
2013-11-08  4:41                                   ` wzyboy
2013-11-08  4:46                                     ` wzyboy
2013-11-08 17:20                                 ` Bjorn Helgaas
2013-11-08 17:38                                   ` Bjorn Helgaas
2013-11-10 10:19                                     ` wzyboy
2013-11-10 11:32                                       ` Emmanuel Grumbach
2013-11-10 11:38                                         ` wzyboy
2013-11-10 11:41                                           ` Grumbach, Emmanuel
2013-11-10 12:13                                             ` wzyboy
2013-11-10 12:17                                               ` Grumbach, Emmanuel
2013-11-11  9:43                                                 ` Emmanuel Grumbach
2013-11-11 21:55                                       ` Bjorn Helgaas
     [not found]                                   ` <CALkVjQYkAWrwRabQfBSvC1pm47ZyRT5jQ0mYBwbiGh-Bt29gbg@mail.gmail.com>
2013-11-10  7:03                                     ` Emmanuel Grumbach
2013-11-10  7:08                                       ` wzyboy
2013-11-11 22:44                                     ` Bjorn Helgaas [this message]
     [not found]                                       ` <CALkVjQb-AJRSGARCQaDFkd+mHBk2qFkAVyVBTW7RHSaxzbZsbw@mail.gmail.com>
2013-11-12  7:02                                         ` Emmanuel Grumbach
2013-11-12  9:36                                           ` Emmanuel Grumbach
2013-11-12 12:10                                         ` wzyboy
2013-11-12 12:16                                           ` Grumbach, Emmanuel
2013-11-12 12:25                                             ` wzyboy
2013-11-12 12:45                                               ` Grumbach, Emmanuel
2013-11-12 12:59                                                 ` wzyboy
2013-11-12 18:14                                             ` Bjorn Helgaas
2013-11-12 18:25                                               ` Grumbach, Emmanuel
2013-11-12 19:14                                                 ` Bjorn Helgaas
2013-11-12 19:37                                                   ` Emmanuel Grumbach
2013-11-12 22:09                                                     ` Bjorn Helgaas
2013-11-13  8:45                                                       ` Grumbach, Emmanuel
2013-11-13  9:47                                                       ` Grumbach, Emmanuel
2013-11-13 12:13                                                       ` Grumbach, Emmanuel
2013-11-13 12:18                                                         ` wzyboy
2013-11-13 12:21                                                           ` Grumbach, Emmanuel
2013-11-13 12:33                                                             ` wzyboy
2013-11-13 13:48                                                         ` Bjørn Mork
2013-11-13 14:16                                                           ` Grumbach, Emmanuel
     [not found]                                                       ` <CALkVjQZZVHUxuBkS+ret23Bt61TV_x_kj-ey=y93gC0e3cw__Q@mail.gmail.com>
2013-11-13  6:46                                                         ` wzyboy
     [not found]                                                           ` <0BA3FCBA62E2DC44AF3030971E174FB301DFBCB5@HASMSX103.ger.corp.intel.com>
2013-11-13  7:25                                                             ` wzyboy
2013-11-13 17:42                                                         ` Bjorn Helgaas
2013-11-13 20:30                                                           ` Grumbach, Emmanuel
     [not found]                                                           ` <CALkVjQaTnocYnV4GM=LHuYwMRZ=sOZnSrtna4C6anNAWr4O7=A@mail.gmail.com>
2013-11-14  6:20                                                             ` Grumbach, Emmanuel
     [not found]                                                               ` <CALkVjQZdPuE2F+ZARBLha-+iOMA4AjDWHO4=ssnuF2Uu87RyuQ@mail.gmail.com>
2013-11-14  7:04                                                                 ` Grumbach, Emmanuel
2013-11-14  7:09                                                                   ` wzyboy
2013-11-14  8:39                                                                     ` Grumbach, Emmanuel
2013-11-14 17:53                                                                       ` Bjorn Helgaas
2013-11-15  3:06                                                                         ` wzyboy
2013-11-15  3:09                                                                           ` wzyboy
2013-11-15  8:49                                                                           ` Emmanuel Grumbach
2013-11-15  9:04                                                                             ` wzyboy
2013-12-25  8:27                                                                               ` Emmanuel Grumbach
2013-12-25 10:34                                                                                 ` wzyboy
2013-12-25 10:38                                                                                   ` Grumbach, Emmanuel
2013-12-28  9:54                                                                                     ` wzyboy
2013-12-28  9:57                                                                                     ` wzyboy
2013-12-29  8:14                                                                                       ` Grumbach, Emmanuel
2013-12-29  9:23                                                                                         ` wzyboy
2013-12-29 11:45                                                                                           ` Emmanuel Grumbach
2013-12-29 13:06                                                                                             ` wzyboy
2014-01-02 21:34                                                                                           ` Bjorn Helgaas
2014-01-04 14:41                                                                                             ` wzyboy
2014-01-13  6:01                                                                                               ` Grumbach, Emmanuel
2014-01-13  6:15                                                                                                 ` wzyboy
     [not found]                                                                                                   ` <CALkVjQavGvumxnghCc5R8E=7rzDSy1_q+LVZ=vR6--OJxhp7CA@mail.gmail.com>
2014-01-13  8:26                                                                                                     ` Grumbach, Emmanuel

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=20131111224439.GA30638@google.com \
    --to=bhelgaas@google.com \
    --cc=egrumbach@gmail.com \
    --cc=emmanuel.grumbach@intel.com \
    --cc=ilw@linux.intel.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=wzyboy@wzyboy.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;
as well as URLs for NNTP newsgroup(s).