LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* need some help on a backport of r8169
@ 2007-02-26 16:08 Pascal GREGIS
  2007-02-26 17:00 ` Boris B. Zhmurov
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal GREGIS @ 2007-02-26 16:08 UTC (permalink / raw)
  To: linux-kernel

Hello everyone,

I am experiencing a big fight with a Realtek RTL8168 ethernet card that I need to use with a 2.6.11.11 kernel.

Here is my problem :
the RTL8168 (which seems to be the PIC-express version of the RTL8169) isn't recognized by the 2.6.11.11 kernel.
So I tried the r1000 driver supplied by Realtek, which recognizes my RTL8168 card but doesn't do what I want.
In fact, it only supports ethtool for speed control and always uses autonegotiation to force a mode, which is also the behaviour of the r8169 driver but doesn't fit my needs because some of my company's clients use network switches that do not support autonegotiation.

I must precise that I previously succeeded to backport the support for mii-tool in the r8169 driver from the 2.6.20 kernel to the 2.6.11.11, which allows me to effectively force the speed without using autonegotiation.
Ok, but that was for the RTL8169 card, already supported in the 2.6.11.11 kernel, now I need to support a RTL8168 one.

So I tried a 2.6.20 kernel with this card and I saw that it was supported by the r8169 driver.
So I decided to backport some of this driver to add the RTL8168 in it for the 2.6.11.11 kernel.
I thought it was easy and just required to add some references (pci id ...) but sadly it isn't, and my patch results in a kernel panic when I turn the interface up.

Could anyone take a look at my patch and tell me what is missing, or what is wrong?

Or if you have other suggestions, do not hesitate, if you think I'd better patch the r1000 driver to add mii-tool support (it didn't seem so easy) or anything else, but please don't suggest me to change my network switches, these are not mines so I cannot do anything for this.
Also I cannot change my entire kernel for the moment.

Here you can find my patch :
http://www.synerway.net/patch/r8169-backport.patch

it adds mii-tool support and TRIES to add RTL8168 support.

Thank you for any help

Pascal


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

* Re: need some help on a backport of r8169
  2007-02-26 16:08 need some help on a backport of r8169 Pascal GREGIS
@ 2007-02-26 17:00 ` Boris B. Zhmurov
  2007-02-27  0:16   ` Francois Romieu
  0 siblings, 1 reply; 3+ messages in thread
From: Boris B. Zhmurov @ 2007-02-26 17:00 UTC (permalink / raw)
  To: Pascal GREGIS; +Cc: linux-kernel

Hello, Pascal GREGIS.

On 26.02.2007 19:08 you said the following:

> Hello everyone,
> 
> I am experiencing a big fight with a Realtek RTL8168 ethernet card
> that I need to use with a 2.6.11.11 kernel.
> 
> Here is my problem : the RTL8168 (which seems to be the PIC-express
> version of the RTL8169) isn't recognized by the 2.6.11.11 kernel. So
> I tried the r1000 driver supplied by Realtek, which recognizes my
> RTL8168 card but doesn't do what I want. In fact, it only supports
> ethtool for speed control and always uses autonegotiation to force a
> mode, which is also the behaviour of the r8169 driver but doesn't fit
> my needs because some of my company's clients use network switches
> that do not support autonegotiation.
> 
> I must precise that I previously succeeded to backport the support
> for mii-tool in the r8169 driver from the 2.6.20 kernel to the
> 2.6.11.11, which allows me to effectively force the speed without
> using autonegotiation. Ok, but that was for the RTL8169 card, already
> supported in the 2.6.11.11 kernel, now I need to support a RTL8168
> one.
> 
> So I tried a 2.6.20 kernel with this card and I saw that it was
> supported by the r8169 driver. So I decided to backport some of this
> driver to add the RTL8168 in it for the 2.6.11.11 kernel. I thought
> it was easy and just required to add some references (pci id ...) but
> sadly it isn't, and my patch results in a kernel panic when I turn
> the interface up.
> 
> Could anyone take a look at my patch and tell me what is missing, or
> what is wrong?


You, probably, should try to backport this patch:
http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.17-rc6/r8169/0005-r8169-sync-with-vendor-s-driver.txt

to your 2.6.11. Francois, please, correct me, if I'm wrong.



-- 
	boris

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

* Re: need some help on a backport of r8169
  2007-02-26 17:00 ` Boris B. Zhmurov
@ 2007-02-27  0:16   ` Francois Romieu
  0 siblings, 0 replies; 3+ messages in thread
From: Francois Romieu @ 2007-02-27  0:16 UTC (permalink / raw)
  To: Boris B. Zhmurov; +Cc: Pascal GREGIS, linux-kernel

Boris B. Zhmurov <bb@kernelpanic.ru> :
[...]
> to your 2.6.11. Francois, please, correct me, if I'm wrong.

It will regularly DMA into incorrectly aligned addresses. :o/

Surprizing as it may sound, the symptoms range from unnoticeable
to unusable (both inclusive).

-- 
Ueimor

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

end of thread, other threads:[~2007-02-27  0:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-26 16:08 need some help on a backport of r8169 Pascal GREGIS
2007-02-26 17:00 ` Boris B. Zhmurov
2007-02-27  0:16   ` Francois Romieu

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