Yves-Alexis Perez: Fun with network cards
The issue
This morning (while I was running late for an appointement) I
had a very weird stuff happening on my Thinkpad T61 laptop. Since I
recently offered myself a shiny Thinkpad x201s, I have to admit I
don't use much my T61 anymore. But this morning I had to print a
page (for this appointement) and, as I didn't yet configured my
printer on the x201s, I went to the T61. But I noticed that the
network was down. I've tried quickly on wireless but, bad luck, my
current wifi setup selects the channel automatically and it prefers
choosing channels which aren't available in the US. Guess what, my
T61 comes from the US and has those channels completely disabled,
so no wireless available either.
The investigation
I first tried to
modprobe -r e1000e
modprobe e1000e
to see if it fixed the problem, but it didn't. Worse, the
interface disappeared and never reappeared. I tried to reboot but
it didn't fix the problem, the link was still down. Running really
late, I put the file on a usb key and printed it from the powerbook
and postponed the fix for later.
Now, this evening, I tried to investigate a bit more. Symptoms
weren't only that the nic wasn't working, but there was a high load
on the system (1-2 at idle), unresponsiveness every second or so,
and watching top I could see spikes of high cpu usage for the
kworker kernel thread. Typing that on google you can find a lot of
people running on this issue, usually starting around kernel 2.6.36
or 2.6.37. Now, I might have upgraded the kernel recently to
3.0.0-4, but that didn't look related since the problem first
appeared when the laptop was up and running. And I tried to reboot
under 2.6.39, 2.6.38 and even 2.6.32 and the problem was still
present. Each time, unloading the module would fix the problem, but
loading it again wouldn't make the interface reappear. People
advised to boot with pcie_ports=compat but that didn't do anything.
I tried to boot without intel_iommu=force (disable Intel Vt-d) and
pcie_aspm (Active State Power Management) but nothing either.
Considering a userland issue, I've tried to boot a grml live distro (always keep a grml.iso in
your /boot, extlinux-update will even put it in your menu
automatically), and the problem was still present. So not a Debian
kernel issue, not a userland issue, only thing left was the laptop.
I didn't update the Bios recently, so I wondered exactly what could
be the problem. I started to feel a little bad, since I still
really like that laptop, and that I already decided to lend it to
my sister since her own T61 is sitting with a dead system board in
my shelf. I know she might have some negative waves, but she was
not even landed when the problem first appear.
The fix
Then I had a flash. It's not mystery that I'm used to break network
cards, and I had the bright idea to shutdown the laptop,
disconnect AC and battery, then let it idle a bit. I even tried the
secret Thinkpad power button code but I think it's unrelated.
Then I re-plugged the battery, booted to grml and the issue was
gone. I rebooted on the standard Debian and the link was up,
network was working.
So what happenned?
The (tentative) explanation
My guess is that, somehow, the network card firmware has an
issue and choked on something (a network frame or an attack exactly
like the one we demonstrated on ASF firmware). In fact, no, I don't
think it's the e1000e firmware. My T61 comes with Intel vPro, which
includes AMT (Active Management Technology), a remote management
solution a bit like ASF but more advanced. As far as I know, AMT
firmware always runs, even when it's disabled, it's just completely
idle. Idle, but in this case I think it choked on something, and a
reboot isn't enough to restart the AMT firmware. But a real hard
reset without any power seems to do the trick.
What next?
Well, a part of me is pretty scared, but another is just bored.
I mean, we know about that, that's exactly the kind of issue we are
warning people of. I have no idea what exactly happened, and
there's no way I'll be able to reproduce that, but I'm pretty sure
it's something lying at a pretty low level in the platform, and
which can severely disable your workstation. Now if it happens
again I won't lose too much time on this.
TL;DR: helping other people
In case you came here because you searched on google terms like
kworker cpu usage , e1000e, interrupts, it might be a good idea to
first reboot on a live CD to eliminate installation issues, then
shutdown the laptop, remove the battery and let it few seconds
idle. This might be enough to reset something inside and fix the
situation.
Dear Lazyweb .
I ran into a very strange issue with MySQL authentication. The initial situation is as follows:

I was expecting to write more about the 7th Rugby World Cup, but real
life, Debian work and running activities prevented me to do so..
Still, I watched several games and I can share my feelings now.
First of all, this is a tremendous organization from New Zealand. It
seems that about the entire country is working on making this even a
great success and I really appreciate to see a place I certainly have
to visit some day receiving such wordlwide attention (OK, admitedly,
mostly in the part of the world that understands rugby).
First round already gave several surprises even if the 1/4 finals were
after all kinda expected (at least, the list of countries).
A month ago, I published an article on the compared
Our friends Andrew and Janice finally tied the knot last Sunday, in
Langkawi, Malaysia.
They're Aussies currently living in New York, and Janice is of Malaysian
descent, so I think part of the reason was to accommodate some Malaysian
relatives that wouldn't be able to travel, and the other reason was that it
was going to mean a bunch of people had to travel anyway, so why not travel
somewhere a bit exotic?
As my sister is getting married later this month in Brisbane, we decided to
spare Zoe two massive international flights in close succession, and Sarah
and Zoe flew out a few days ahead of me, and went to Brisbane, and then Zoe,
Sarah and her mum flew to Langkawi from there, and I flew there from San
Francisco, with the plan being for Sarah and Zoe to hang out in Brisbane for
the 4 weeks in between weddings.
It was the longest amount of travel I think I've ever done. I hadn't sat
down and calculated what the travel time was beforehand, and when I got on
the flight from San Francisco to Hong Kong, and they said it was going to be
nearly 14 hours just to Hong Kong, I nearly wept. The only good
thing about it was I didn't have to wrangle a toddler as well.
From there, I had to get to Singapore, with a several hour layover, and then
another flight from Singapore to Langkawi. I left SFO at 1:20am on Monday
morning, and finally arrived at about 7am (San Francisco time) the following
day.
I didn't even bother getting off the plane in Hong Kong, it was only an hour
and a half layover. I think the layover in Singapore was 5 hours, and it was
a separate flight. Singapore airport at least was pretty good to kill time
in.
It was funny, I was reading Wired while I was killing time in Singapore, and
they had an article, which included a side bar on
another week, another list of fixed RC bugs, again most of them with patches
from ubuntu. &, as zack said
Ubuntu has had an explicit goal for several cycles now to achieve
flicker-free booting: smooth graphical boot all the way through from
bootloader to the desktop, with no messy modeswitches or cuts between
text and graphics mode on the console. This is no small task, to be
sure; even getting flicker-free transitions between plymouth and X for
the KMS-capable video cards was a handful for 10.04 LTS.
So I was suitably impressed when in the course of testing for the
upcoming
It's become kind of a clich for me to claim that the reason I'm happy working on ACPI and UEFI and similarly arcane pieces of convoluted functionality is that no matter how bad things are there's at least some form of documentation and there's a well-understood language at the heart of them. My PhD was in biology, working on fruitflies. They're a poorly documented set of layering violations which only work because of side-effects at the quantum level, and they tend to die at inconvenient times. They're made up of 165 million bases of a byte code language that's almost impossible to bootstrap[1] and which passes through an intermediate representations before it does anything useful[2]. It's an awful field to try to do rigorous work in because your attempts to impose any kind of meaningful order on what you're looking at are pretty much guaranteed to be sufficiently naive that your results bear a resemblance to reality more by accident than design.
This is my monthly summary of my Debian related activities. If you re among the people who
Dpkg work
While taking care of the last details for the hardening feature in dpkg 1.16.1, I have 
Today I was wondering that I had almost no new mail in my inbox in the morning. After a while I decided to have a look into the server logfiles . so I learned that postfix wasn t able to deliver mails via lmtp cause of:
The Ubuntu Technical Board conducts a regular review of the most popular