Re: RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)

Francois Romieu
2012-09-21T15:47:00Z

Thanasis <thanasis@asyr.hopto.org> :
> on 09/21/2012 02:20 AM Francois Romieu wrote the following:
[...]
> > Thanasis, can you narrow down a bit the failing revision ?
>
> Sure, let me know how to do it please.

A rough kernel estimate had been enough. Nevermind.

You will find a hopefully not too quick 2.6.38 backport at :

git://violet.fr.zoreil.com/romieu/r8169

It does not reach the current in-kernel r8169.c state - call me lazy - but
stops somewhere between 3.2 and 3.3. While only 76 commits long, it should
be enough to spot a r8169 regression.

Assuming you run a 2.6.38-something kernel whose build tree lays at the
usual place, the included makefile will build a out-of-kernel r8169 driver.

You can use it as:

git clone git://violet.fr.zoreil.com/romieu/r8169
cd r8169
git rev-list --all | tac | while read c; do
git reset --hard $c
make
rmmod r8169
sync
insmod ./r8169.ko
<insert your ip addr add ... / link up and test sequence here>
done > /tmp/lets-go-shopping.log

^C when things go wrong.

You could do a git bisect but there may be several stupidly broken
commits and I have not checked that the top of the tree works.

Of course you are suggested to check that the code won't try to abuse
your system.

--
Ueimor