linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CPU idle LP2 breaks MSI on TrimSlice
@ 2013-04-03  7:54 Thierry Reding
       [not found] ` <20130403075454.GA25174-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Thierry Reding @ 2013-04-03  7:54 UTC (permalink / raw)
  To: Joseph Lo; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]

Hi Joseph,

I didn't want to hijack the other thread, so I'm starting a new one.
I've recently been trying to get the PCIe ethernet device on TrimSlice
working on top of the Tegra PCIe rework patches that I've been carrying
for quite a while.

A bit of background: when I last tried this back in January things still
worked fine, but I noticed that they aren't working on recent linux-next
versions. I was able to track down next-20130123 as the last working
version and next-20130128 as the first broken one (anything in between
didn't boot properly).

It turns out that the introduction of CPU idle (LP2) seems to have
introduced this breakage. Normally what I'd do is:

	$ ifconfig eth0 up

and wait for a few seconds for the kernel to report that a link has been
detected, after which running

	$ dhcpcd eth0

will successfully obtain an IP address. However, with the CPU idle
support enabled, the network interface no longer detects a link. The
reason for this is that the MSI that would usually occur after link
detection by the hardware never occurs when LP2 is enabled.

I've verified on top of next-20130402 that commenting out entry "1" in
tegra_idle_states (LP2) in cpuidle-tegra20.c "fixes" the issue. I'm able
to obtain an IP address via DHCP and use the network interface as usual.

I already talked to Stephen and Peter about this on IRC and none of us
could come up with a good explanation. Since you wrote the CPU idle
support I thought you might be able to shed some light on this.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-04  8:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03  7:54 CPU idle LP2 breaks MSI on TrimSlice Thierry Reding
     [not found] ` <20130403075454.GA25174-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2013-04-03  8:14   ` Joseph Lo
     [not found]     ` <1364976857.16957.56.camel-yx3yKKdKkHfc7b1ADBJPm0n48jw8i0AO@public.gmane.org>
2013-04-03  8:40       ` Thierry Reding
     [not found]         ` <20130403084036.GA28417-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2013-04-03  9:10           ` Joseph Lo
     [not found]             ` <1364980234.16957.75.camel-yx3yKKdKkHfc7b1ADBJPm0n48jw8i0AO@public.gmane.org>
2013-04-03 16:41               ` Stephen Warren
     [not found]                 ` <515C5BC8.3040902-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-04-04  8:16                   ` Peter De Schrijver

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).