[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAA93t1qyZE-9tw8pg1KG6g4iyy0QMW=iass5w=6ZGMTMu+vi_A@mail.gmail.com>
Date: Tue, 16 Dec 2014 08:04:36 -0800
From: Rajat Jain <rajatxjain@...il.com>
To: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
Cc: Nils Holland <nholland@...ys.org>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>
Subject: Re: [bisected] tg3 broken in 3.18.0?
Hello All,
Apologies for jumping in late, but for some reason I do not see the
original mail in my inbox. However I am taking a look at the mails as
sent on linux-pci (and I will keep an eye out for the bug report that
Bjorn asked for).
>
> I'm getting, with commit 89665a6a71408796565bfd29cfa6a7877b17a667:
>
> $ grep 'pci 0000:02' tg3.bad
> [ 0.190733] pci 0000:02:00.0: 1st 165a14e4 14e4
> [ 0.190736] pci 0000:02:00.0: 1st 165a14e4 14e4
> [ 0.190810] pci 0000:02:00.0: [14e4:165a] type 00 class 0x020000
> [ 0.190885] pci 0000:02:00.0: reg 0x10: [mem 0xf7c40000-0xf7c4ffff 64bit]
> [ 0.191048] pci 0000:02:00.0: reg 0x30: [mem 0xf7c00000-0xf7c3ffff pref]
> [ 0.191382] pci 0000:02:00.0: PME# supported from D3hot D3cold
> [ 0.191438] pci 0000:02:00.0: System wakeup disabled by ACPI
> [ 1.561555] pci 0000:02:00.0: 1st 1 1
> [ 1.561558] pci 0000:02:00.0: crs_timeout: 0
> [ 20.412021] pci 0000:02:00.0: 1st 1 1
> [ 20.412022] pci 0000:02:00.0: crs_timeout: 0
> [ 20.413596] pci 0000:02:00.0: 1st 1 1
> [ 20.413598] pci 0000:02:00.0: crs_timeout: 0
>
> And without it:
>
> $ grep 'pci 0000:02' tg3.good
> [ 0.190734] pci 0000:02:00.0: 1st 165a14e4 14e4
> [ 0.190738] pci 0000:02:00.0: 1st 165a14e4 14e4
> [ 0.190811] pci 0000:02:00.0: [14e4:165a] type 00 class 0x020000
> [ 0.190884] pci 0000:02:00.0: reg 0x10: [mem 0xf7c40000-0xf7c4ffff 64bit]
> [ 0.191047] pci 0000:02:00.0: reg 0x30: [mem 0xf7c00000-0xf7c3ffff pref]
> [ 0.191380] pci 0000:02:00.0: PME# supported from D3hot D3cold
> [ 0.191439] pci 0000:02:00.0: System wakeup disabled by ACPI
> [ 1.576778] pci 0000:02:00.0: 1st 1 1
> [ 19.068517] pci 0000:02:00.0: 1st 165a14e4 14e4
>
It seems that in the first 2 attempts that were made to probe the
device are all OK and return regular device ID and vendor ID for TG3
(CRS does not have a role to play). However, later attempts return a
CRS.
1) May I ask if you are using acpihp or pciehp? I assume pciehp?
2) Can you please also send dmesg output while passing
pciehp.pciehp_debug=1? In the fail case, do you see a message
indicating the pciehp gave up since it got CRS for a long time
(something like "pci 0000:02:00.0 id reading try 50 times with
interval 20 ms to get ffff0001")?
3) Currently the pciehp passes "0" for the argument "crs_timeout" to
pci_bus_read_dev_vendor_id(). Can you please try increasing it to, say
30 seconds (30 * 1000). (For comparison data, acpihp uses the value
60*1000 i.e. 60 seconds today) and run the fail case once again?
Thanks a lot in advance for the debugging help ;-)
Rajat
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists