netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: No networking since git3
       [not found]   ` <4D84A9F6.8080402@example.com>
@ 2011-03-19 14:08     ` Anca Emanuel
  2011-03-19 15:18       ` Eric Dumazet
  0 siblings, 1 reply; 19+ messages in thread
From: Anca Emanuel @ 2011-03-19 14:08 UTC (permalink / raw)
  To: piotr; +Cc: LKML, netdev, Francois Romieu, David Miller

2011/3/19 Piotr Hosowicz <piotr@hosowicz.com>:
> On 19.03.2011 13:56, Anca Emanuel wrote:
>>
>> 2011/3/19 Piotr Hosowicz<piotr@hosowicz.com>:
>>>
>>> Hello,
>>>
>>> I wrote lately, the problem persists, that's why I write again. I tested
>>> git7 just now and it still does not work.
>>
>> Same problem here:
>>
>> [   12.923685] r8169 0000:04:00.0: eth0: link down
>> [   12.923941] ADDRCONF(NETDEV_UP): eth0: link is not ready
>>
>> dmesg attached.
>
> Nice to hear that I am not the only person with this problem. I forgot about
> the dmesg.
>
> Regards,
>
> Piotr Hosowicz

Added CCs

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

* Re: No networking since git3
  2011-03-19 14:08     ` No networking since git3 Anca Emanuel
@ 2011-03-19 15:18       ` Eric Dumazet
  2011-03-19 15:31         ` Oliver Neukum
  0 siblings, 1 reply; 19+ messages in thread
From: Eric Dumazet @ 2011-03-19 15:18 UTC (permalink / raw)
  To: Anca Emanuel
  Cc: piotr, LKML, netdev, Francois Romieu, David Miller, Oliver Neukum

Le samedi 19 mars 2011 à 16:08 +0200, Anca Emanuel a écrit :
> 2011/3/19 Piotr Hosowicz <piotr@hosowicz.com>:
> > On 19.03.2011 13:56, Anca Emanuel wrote:
> >>
> >> 2011/3/19 Piotr Hosowicz<piotr@hosowicz.com>:
> >>>
> >>> Hello,
> >>>
> >>> I wrote lately, the problem persists, that's why I write again. I tested
> >>> git7 just now and it still does not work.
> >>
> >> Same problem here:
> >>
> >> [   12.923685] r8169 0000:04:00.0: eth0: link down
> >> [   12.923941] ADDRCONF(NETDEV_UP): eth0: link is not ready
> >>
> >> dmesg attached.
> >
> > Nice to hear that I am not the only person with this problem. I forgot about
> > the dmesg.
> >
> > Regards,
> >
> > Piotr Hosowicz
> 
> Added CCs

Hi

Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
(r8169: support control of advertising.)

Reverting it brings back NIC for me

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

* Re: No networking since git3
  2011-03-19 15:18       ` Eric Dumazet
@ 2011-03-19 15:31         ` Oliver Neukum
  2011-03-19 15:33           ` Eric Dumazet
  0 siblings, 1 reply; 19+ messages in thread
From: Oliver Neukum @ 2011-03-19 15:31 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Anca Emanuel, piotr, LKML, netdev, Francois Romieu, David Miller

Am Samstag, 19. März 2011, 16:18:50 schrieb Eric Dumazet:

> Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
> (r8169: support control of advertising.)
> 
> Reverting it brings back NIC for me

Odd. It worked for me. Are you testing on a gigabit switch? Could you send
me dmesg? Does it work if you use ethtool to advertise a lower speed?

	Regards
		Oliver

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

* Re: No networking since git3
  2011-03-19 15:31         ` Oliver Neukum
@ 2011-03-19 15:33           ` Eric Dumazet
  2011-03-19 15:39             ` [PATCH] r8169: fix a bug in rtl8169_init_phy() Eric Dumazet
  0 siblings, 1 reply; 19+ messages in thread
From: Eric Dumazet @ 2011-03-19 15:33 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Anca Emanuel, piotr, LKML, netdev, Francois Romieu, David Miller

Le samedi 19 mars 2011 à 16:31 +0100, Oliver Neukum a écrit :
> Am Samstag, 19. März 2011, 16:18:50 schrieb Eric Dumazet:
> 
> > Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
> > (r8169: support control of advertising.)
> > 
> > Reverting it brings back NIC for me
> 
> Odd. It worked for me. Are you testing on a gigabit switch? Could you send
> me dmesg? Does it work if you use ethtool to advertise a lower speed?
> 
> 	Regards
> 		Oliver

I found the bug, I am sending a patch in two minutes.



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

* [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:33           ` Eric Dumazet
@ 2011-03-19 15:39             ` Eric Dumazet
  2011-03-19 15:41               ` Oliver Neukum
                                 ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Eric Dumazet @ 2011-03-19 15:39 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Anca Emanuel, piotr, LKML, netdev, Francois Romieu, David Miller

Le samedi 19 mars 2011 à 16:33 +0100, Eric Dumazet a écrit :
> Le samedi 19 mars 2011 à 16:31 +0100, Oliver Neukum a écrit :
> > Am Samstag, 19. März 2011, 16:18:50 schrieb Eric Dumazet:
> > 
> > > Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
> > > (r8169: support control of advertising.)
> > > 
> > > Reverting it brings back NIC for me
> > 
> > Odd. It worked for me. Are you testing on a gigabit switch? Could you send
> > me dmesg? Does it work if you use ethtool to advertise a lower speed?
> > 
> > 	Regards
> > 		Oliver
> 
> I found the bug, I am sending a patch in two minutes.
> 

Here it is

[PATCH] r8169: fix a bug in rtl8169_init_phy()

commit 54405cde7624 (r8169: support control of advertising.)
introduced a bug in rtl8169_init_phy()

Reported-by: Piotr Hosowicz <piotr@hosowicz.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Oliver Neukum <oliver@neukum.org>
Cc: Francois Romieu <romieu@fr.zoreil.com>
---
 drivers/net/r8169.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 5e40351..493b0de 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -2685,9 +2685,9 @@ static void rtl8169_init_phy(struct net_device *dev, struct rtl8169_private *tp)
 	rtl8169_set_speed(dev, AUTONEG_ENABLE, SPEED_1000, DUPLEX_FULL,
 		ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full |
 		ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full |
-		tp->mii.supports_gmii ?
+		(tp->mii.supports_gmii ?
 			ADVERTISED_1000baseT_Half |
-			ADVERTISED_1000baseT_Full : 0);
+			ADVERTISED_1000baseT_Full : 0));
 
 	if (RTL_R8(PHYstatus) & TBI_Enable)
 		netif_info(tp, link, dev, "TBI auto-negotiating\n");

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:39             ` [PATCH] r8169: fix a bug in rtl8169_init_phy() Eric Dumazet
@ 2011-03-19 15:41               ` Oliver Neukum
  2011-03-19 15:44                 ` Eric Dumazet
                                   ` (2 more replies)
  2011-03-19 15:49               ` Piotr Hosowicz
                                 ` (4 subsequent siblings)
  5 siblings, 3 replies; 19+ messages in thread
From: Oliver Neukum @ 2011-03-19 15:41 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Anca Emanuel, piotr, LKML, netdev, Francois Romieu, David Miller

Am Samstag, 19. März 2011, 16:39:11 schrieben Sie:
> Le samedi 19 mars 2011 à 16:33 +0100, Eric Dumazet a écrit :
> > Le samedi 19 mars 2011 à 16:31 +0100, Oliver Neukum a écrit :
> > > Am Samstag, 19. März 2011, 16:18:50 schrieb Eric Dumazet:
> > > 
> > > > Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
> > > > (r8169: support control of advertising.)
> > > > 
> > > > Reverting it brings back NIC for me
> > > 
> > > Odd. It worked for me. Are you testing on a gigabit switch? Could you send
> > > me dmesg? Does it work if you use ethtool to advertise a lower speed?
> > > 
> > > 	Regards
> > > 		Oliver
> > 
> > I found the bug, I am sending a patch in two minutes.
> > 
> 
> Here it is
> 
> [PATCH] r8169: fix a bug in rtl8169_init_phy()
> 
> commit 54405cde7624 (r8169: support control of advertising.)
> introduced a bug in rtl8169_init_phy()

Thank you. I feel like banging my head against something.

	Regards
		Oliver

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:41               ` Oliver Neukum
@ 2011-03-19 15:44                 ` Eric Dumazet
  2011-03-19 15:52                 ` Piotr Hosowicz
  2011-03-19 19:41                 ` Francois Romieu
  2 siblings, 0 replies; 19+ messages in thread
From: Eric Dumazet @ 2011-03-19 15:44 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Anca Emanuel, piotr, LKML, netdev, Francois Romieu, David Miller

Le samedi 19 mars 2011 à 16:41 +0100, Oliver Neukum a écrit :

> Thank you. I feel like banging my head against something.
> 

Well, it happens, dont worry ;)

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:39             ` [PATCH] r8169: fix a bug in rtl8169_init_phy() Eric Dumazet
  2011-03-19 15:41               ` Oliver Neukum
@ 2011-03-19 15:49               ` Piotr Hosowicz
  2011-03-19 16:04                 ` Eric Dumazet
  2011-03-19 16:03               ` Piotr Hosowicz
                                 ` (3 subsequent siblings)
  5 siblings, 1 reply; 19+ messages in thread
From: Piotr Hosowicz @ 2011-03-19 15:49 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Oliver Neukum, Anca Emanuel, LKML, netdev, Francois Romieu,
	David Miller

On 19.03.2011 16:39, Eric Dumazet wrote:
> Le samedi 19 mars 2011 à 16:33 +0100, Eric Dumazet a écrit :
>> Le samedi 19 mars 2011 à 16:31 +0100, Oliver Neukum a écrit :
>>> Am Samstag, 19. März 2011, 16:18:50 schrieb Eric Dumazet:
>>>
>>>> Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
>>>> (r8169: support control of advertising.)
>>>>
>>>> Reverting it brings back NIC for me
>>>
>>> Odd. It worked for me. Are you testing on a gigabit switch? Could you send
>>> me dmesg? Does it work if you use ethtool to advertise a lower speed?
>>>
>>> 	Regards
>>> 		Oliver
>>
>> I found the bug, I am sending a patch in two minutes.

I do not understand. I reverted the commit you mentioned and am building 
now. Will it suffice?

Regards,

Piotr Hosowicz

-- 
TV: "W tej chwili, że się tak wyrażę, zaliczonych mamy 17 zawodniczek."
NP: Big Big Train - Victorian Brickwork
NB: 2.6.38-git3

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:41               ` Oliver Neukum
  2011-03-19 15:44                 ` Eric Dumazet
@ 2011-03-19 15:52                 ` Piotr Hosowicz
  2011-03-19 19:41                 ` Francois Romieu
  2 siblings, 0 replies; 19+ messages in thread
From: Piotr Hosowicz @ 2011-03-19 15:52 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Eric Dumazet, Anca Emanuel, LKML, netdev, Francois Romieu,
	David Miller

On 19.03.2011 16:41, Oliver Neukum wrote:
> Am Samstag, 19. März 2011, 16:39:11 schrieben Sie:
>> Le samedi 19 mars 2011 à 16:33 +0100, Eric Dumazet a écrit :
>>> Le samedi 19 mars 2011 à 16:31 +0100, Oliver Neukum a écrit :
>>>> Am Samstag, 19. März 2011, 16:18:50 schrieb Eric Dumazet:
>>>>
>>>>> Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
>>>>> (r8169: support control of advertising.)
>>>>>
>>>>> Reverting it brings back NIC for me
>>>>
>>>> Odd. It worked for me. Are you testing on a gigabit switch? Could you send
>>>> me dmesg? Does it work if you use ethtool to advertise a lower speed?
>>>>
>>>> 	Regards
>>>> 		Oliver
>>>
>>> I found the bug, I am sending a patch in two minutes.
>>>
>>
>> Here it is
>>
>> [PATCH] r8169: fix a bug in rtl8169_init_phy()
>>
>> commit 54405cde7624 (r8169: support control of advertising.)
>> introduced a bug in rtl8169_init_phy()
>
> Thank you. I feel like banging my head against something.

If it will work I will be banging against the wall. I am missing for a 
fresh new kernel with networking.

-- 
Szef TVN24 do dziennikarzy: Kochani, przez dwa lata waliliśmy w obóz
rządzący. Tak dalej byc nie może. Jesteśmy telewizją niezależną i to
zobowiązuje. Teraz będziemy kopać w opozycję.
NP: Big Big Train - Victorian Brickwork
NB: 2.6.38-git3

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:39             ` [PATCH] r8169: fix a bug in rtl8169_init_phy() Eric Dumazet
  2011-03-19 15:41               ` Oliver Neukum
  2011-03-19 15:49               ` Piotr Hosowicz
@ 2011-03-19 16:03               ` Piotr Hosowicz
  2011-03-19 17:20               ` Anca Emanuel
                                 ` (2 subsequent siblings)
  5 siblings, 0 replies; 19+ messages in thread
From: Piotr Hosowicz @ 2011-03-19 16:03 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Oliver Neukum, Anca Emanuel, LKML, netdev, Francois Romieu,
	David Miller

On 19.03.2011 16:39, Eric Dumazet wrote:
> Le samedi 19 mars 2011 à 16:33 +0100, Eric Dumazet a écrit :
>> Le samedi 19 mars 2011 à 16:31 +0100, Oliver Neukum a écrit :
>>> Am Samstag, 19. März 2011, 16:18:50 schrieb Eric Dumazet:
>>>
>>>> Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
>>>> (r8169: support control of advertising.)
>>>>
>>>> Reverting it brings back NIC for me
>>>
>>> Odd. It worked for me. Are you testing on a gigabit switch? Could you send
>>> me dmesg? Does it work if you use ethtool to advertise a lower speed?
>>>
>>> 	Regards
>>> 		Oliver
>>
>> I found the bug, I am sending a patch in two minutes.

I do not understand. I reverted the commit you mentioned and am building 
now. Will it suffice?

Regards,

Piotr Hosowicz

-- 
TV: "W tej chwili, że się tak wyrażę, zaliczonych mamy 17 zawodniczek."
NP: Big Big Train - Victorian Brickwork
NB: 2.6.38-git3

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:49               ` Piotr Hosowicz
@ 2011-03-19 16:04                 ` Eric Dumazet
  2011-03-19 16:27                   ` Piotr Hosowicz
  0 siblings, 1 reply; 19+ messages in thread
From: Eric Dumazet @ 2011-03-19 16:04 UTC (permalink / raw)
  To: piotr
  Cc: Oliver Neukum, Anca Emanuel, LKML, netdev, Francois Romieu,
	David Miller

Le samedi 19 mars 2011 à 16:49 +0100, Piotr Hosowicz a écrit :

> I do not understand. I reverted the commit you mentioned and am building 
> now. Will it suffice?
> 

Either you

1) Revert the commit

OR

2) apply my patch


;)



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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 16:04                 ` Eric Dumazet
@ 2011-03-19 16:27                   ` Piotr Hosowicz
  2011-03-19 16:38                     ` Anca Emanuel
  0 siblings, 1 reply; 19+ messages in thread
From: Piotr Hosowicz @ 2011-03-19 16:27 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Oliver Neukum, Anca Emanuel, LKML, netdev, Francois Romieu,
	David Miller

On 19.03.2011 17:04, Eric Dumazet wrote:
> Le samedi 19 mars 2011 à 16:49 +0100, Piotr Hosowicz a écrit :
>
>> I do not understand. I reverted the commit you mentioned and am building
>> now. Will it suffice?
>>
>
> Either you
>
> 1) Revert the commit

OK. This is what I've done and everything is OK, net works as usual. But 
what should I do next? Will the revert be done on the GIT server? And 
when? I try not to clone to much and wastefuly. And am new to GIT so 
sorry for the question.

>
> OR
>
> 2) apply my patch

Regards and thanks,

Piotr Hosowicz

-- 
Jest jedna korzyść z posiadania TV - jak dobrze
rozregulujesz odbiornik, trafisz na promieniowanie
mikrofalowe z początków Wszechświata.
NP: Big Big Train - Master James Of St George
NB: 2.6.38-20110319-1638-net+

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 16:27                   ` Piotr Hosowicz
@ 2011-03-19 16:38                     ` Anca Emanuel
  2011-03-19 16:41                       ` Eric Dumazet
  2011-03-19 17:03                       ` Piotr Hosowicz
  0 siblings, 2 replies; 19+ messages in thread
From: Anca Emanuel @ 2011-03-19 16:38 UTC (permalink / raw)
  To: piotr
  Cc: Eric Dumazet, Oliver Neukum, LKML, netdev, Francois Romieu,
	David Miller

On Sat, Mar 19, 2011 at 6:27 PM, Piotr Hosowicz <piotr@hosowicz.com> wrote:
> On 19.03.2011 17:04, Eric Dumazet wrote:
>>
>> Le samedi 19 mars 2011 à 16:49 +0100, Piotr Hosowicz a écrit :
>>
>>> I do not understand. I reverted the commit you mentioned and am building
>>> now. Will it suffice?
>>>
>>
>> Either you
>>
>> 1) Revert the commit
>
> OK. This is what I've done and everything is OK, net works as usual. But
> what should I do next? Will the revert be done on the GIT server? And when?
> I try not to clone to much and wastefuly. And am new to GIT so sorry for the
> question.

Next: Test Eric's patch, and send and email with Tested-by tag.

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 16:38                     ` Anca Emanuel
@ 2011-03-19 16:41                       ` Eric Dumazet
  2011-03-19 17:03                       ` Piotr Hosowicz
  1 sibling, 0 replies; 19+ messages in thread
From: Eric Dumazet @ 2011-03-19 16:41 UTC (permalink / raw)
  To: Anca Emanuel
  Cc: piotr, Oliver Neukum, LKML, netdev, Francois Romieu, David Miller

Le samedi 19 mars 2011 à 18:38 +0200, Anca Emanuel a écrit :

> Next: Test Eric's patch, and send and email with Tested-by tag.

Well, my patch was actually tested on one of my machines ;)

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 16:38                     ` Anca Emanuel
  2011-03-19 16:41                       ` Eric Dumazet
@ 2011-03-19 17:03                       ` Piotr Hosowicz
  1 sibling, 0 replies; 19+ messages in thread
From: Piotr Hosowicz @ 2011-03-19 17:03 UTC (permalink / raw)
  To: Anca Emanuel
  Cc: Eric Dumazet, Oliver Neukum, LKML, netdev, Francois Romieu,
	David Miller

On 19.03.2011 17:38, Anca Emanuel wrote:
> On Sat, Mar 19, 2011 at 6:27 PM, Piotr Hosowicz<piotr@hosowicz.com>  wrote:
>> On 19.03.2011 17:04, Eric Dumazet wrote:
>>>
>>> Le samedi 19 mars 2011 à 16:49 +0100, Piotr Hosowicz a écrit :
>>>
>>>> I do not understand. I reverted the commit you mentioned and am building
>>>> now. Will it suffice?
>>>>
>>>
>>> Either you
>>>
>>> 1) Revert the commit
>>
>> OK. This is what I've done and everything is OK, net works as usual. But
>> what should I do next? Will the revert be done on the GIT server? And when?
>> I try not to clone to much and wastefuly. And am new to GIT so sorry for the
>> question.
>
> Next: Test Eric's patch, and send and email with Tested-by tag.

I just built the kernel with the commit reverted as Eric said in the 
beginning and it works. Should I build again with patching in place of 
reverting and report it? Is the method same as ordinary patching?

Regards,

Piotr Hosowicz

-- 
Sygnaturka utworzona wyłącznie ze zrecyklingowanych literek
najwyższej jakości poddanych procesowi starannej selekcji.
NP: Big Big Train - The Underfall Yard
NB: 2.6.38-20110319-1638-net+

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:39             ` [PATCH] r8169: fix a bug in rtl8169_init_phy() Eric Dumazet
                                 ` (2 preceding siblings ...)
  2011-03-19 16:03               ` Piotr Hosowicz
@ 2011-03-19 17:20               ` Anca Emanuel
  2011-03-19 18:59               ` Piotr Hosowicz
  2011-03-19 20:38               ` David Miller
  5 siblings, 0 replies; 19+ messages in thread
From: Anca Emanuel @ 2011-03-19 17:20 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Oliver Neukum, piotr, LKML, netdev, Francois Romieu, David Miller,
	Linus Torvalds

On Sat, Mar 19, 2011 at 5:39 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> Le samedi 19 mars 2011 à 16:33 +0100, Eric Dumazet a écrit :
>> Le samedi 19 mars 2011 à 16:31 +0100, Oliver Neukum a écrit :
>> > Am Samstag, 19. März 2011, 16:18:50 schrieb Eric Dumazet:
>> >
>> > > Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
>> > > (r8169: support control of advertising.)
>> > >
>> > > Reverting it brings back NIC for me
>> >
>> > Odd. It worked for me. Are you testing on a gigabit switch? Could you send
>> > me dmesg? Does it work if you use ethtool to advertise a lower speed?
>> >
>> >     Regards
>> >             Oliver
>>
>> I found the bug, I am sending a patch in two minutes.
>>
>
> Here it is
>
> [PATCH] r8169: fix a bug in rtl8169_init_phy()
>
> commit 54405cde7624 (r8169: support control of advertising.)
> introduced a bug in rtl8169_init_phy()
>
> Reported-by: Piotr Hosowicz <piotr@hosowicz.com>
> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
> Cc: Oliver Neukum <oliver@neukum.org>
> Cc: Francois Romieu <romieu@fr.zoreil.com>
> ---
>  drivers/net/r8169.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
> index 5e40351..493b0de 100644
> --- a/drivers/net/r8169.c
> +++ b/drivers/net/r8169.c
> @@ -2685,9 +2685,9 @@ static void rtl8169_init_phy(struct net_device *dev, struct rtl8169_private *tp)
>        rtl8169_set_speed(dev, AUTONEG_ENABLE, SPEED_1000, DUPLEX_FULL,
>                ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full |
>                ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full |
> -               tp->mii.supports_gmii ?
> +               (tp->mii.supports_gmii ?
>                        ADVERTISED_1000baseT_Half |
> -                       ADVERTISED_1000baseT_Full : 0);
> +                       ADVERTISED_1000baseT_Full : 0));
>
>        if (RTL_R8(PHYstatus) & TBI_Enable)
>                netif_info(tp, link, dev, "TBI auto-negotiating\n");
>
>
>

Thanks Eric, It Woks now !

My r8169 was not working see:
https://lkml.org/lkml/2011/3/19/19

Tested-by: Anca Emanuel <anca.emanuel@gmail.com>

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:39             ` [PATCH] r8169: fix a bug in rtl8169_init_phy() Eric Dumazet
                                 ` (3 preceding siblings ...)
  2011-03-19 17:20               ` Anca Emanuel
@ 2011-03-19 18:59               ` Piotr Hosowicz
  2011-03-19 20:38               ` David Miller
  5 siblings, 0 replies; 19+ messages in thread
From: Piotr Hosowicz @ 2011-03-19 18:59 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Oliver Neukum, Anca Emanuel, LKML, netdev, Francois Romieu,
	David Miller

On 19.03.2011 16:39, Eric Dumazet wrote:
> Le samedi 19 mars 2011 à 16:33 +0100, Eric Dumazet a écrit :
>> Le samedi 19 mars 2011 à 16:31 +0100, Oliver Neukum a écrit :
>>> Am Samstag, 19. März 2011, 16:18:50 schrieb Eric Dumazet:
>>>
>>>> Problem comes from commit 54405cde762408b00a445466a40da4f7f33a8479
>>>> (r8169: support control of advertising.)
>>>>
>>>> Reverting it brings back NIC for me
>>>
>>> Odd. It worked for me. Are you testing on a gigabit switch? Could you send
>>> me dmesg? Does it work if you use ethtool to advertise a lower speed?
>>>
>>> 	Regards
>>> 		Oliver
>>
>> I found the bug, I am sending a patch in two minutes.
>>
>
> Here it is
>
> [PATCH] r8169: fix a bug in rtl8169_init_phy()
>
> commit 54405cde7624 (r8169: support control of advertising.)
> introduced a bug in rtl8169_init_phy()
>
> Reported-by: Piotr Hosowicz<piotr@hosowicz.com>
> Signed-off-by: Eric Dumazet<eric.dumazet@gmail.com>
> Cc: Oliver Neukum<oliver@neukum.org>
> Cc: Francois Romieu<romieu@fr.zoreil.com>

Tested-by: Piotr Hosowicz<piotr@hosowicz.com>

Works OK now.

Regards,

Piotr Hosowicz

-- 
Parafrazując Einsteina: w socjaliźmie są dwa zawody z przy-
szłością: piekarz i urzędnik, chociaż co do pierwszego to
nie mam pewności. (by Kubarek, http://blog.kubarek.info/)
NP: Karmakanic - Send a message from the heart
NB: 2.6.38-20110319-1638-net++

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:41               ` Oliver Neukum
  2011-03-19 15:44                 ` Eric Dumazet
  2011-03-19 15:52                 ` Piotr Hosowicz
@ 2011-03-19 19:41                 ` Francois Romieu
  2 siblings, 0 replies; 19+ messages in thread
From: Francois Romieu @ 2011-03-19 19:41 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Eric Dumazet, Anca Emanuel, piotr, LKML, netdev, David Miller,
	Hayes

Hayes Cced.

Oliver Neukum <oliver@neukum.org> :
[wrong operator priority fixed by Eric]
> Thank you. I feel like banging my head against something.

Spare your walls : I added the test and I was quite satisfied
after testing ... with an always gigabit capable peer :o/

-- 
Ueimor

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

* Re: [PATCH] r8169: fix a bug in rtl8169_init_phy()
  2011-03-19 15:39             ` [PATCH] r8169: fix a bug in rtl8169_init_phy() Eric Dumazet
                                 ` (4 preceding siblings ...)
  2011-03-19 18:59               ` Piotr Hosowicz
@ 2011-03-19 20:38               ` David Miller
  5 siblings, 0 replies; 19+ messages in thread
From: David Miller @ 2011-03-19 20:38 UTC (permalink / raw)
  To: eric.dumazet
  Cc: oliver, anca.emanuel, piotr, linux-kernel, netdev, romieu,
	torvalds

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Sat, 19 Mar 2011 16:39:11 +0100

> [PATCH] r8169: fix a bug in rtl8169_init_phy()
> 
> commit 54405cde7624 (r8169: support control of advertising.)
> introduced a bug in rtl8169_init_phy()
> 
> Reported-by: Piotr Hosowicz <piotr@hosowicz.com>
> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>

Applied to net-2.6, thanks Eric.

Linus, this is definitely the bug you were seeing too.

> Cc: Oliver Neukum <oliver@neukum.org>
> Cc: Francois Romieu <romieu@fr.zoreil.com>
> ---
>  drivers/net/r8169.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
> index 5e40351..493b0de 100644
> --- a/drivers/net/r8169.c
> +++ b/drivers/net/r8169.c
> @@ -2685,9 +2685,9 @@ static void rtl8169_init_phy(struct net_device *dev, struct rtl8169_private *tp)
>  	rtl8169_set_speed(dev, AUTONEG_ENABLE, SPEED_1000, DUPLEX_FULL,
>  		ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full |
>  		ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full |
> -		tp->mii.supports_gmii ?
> +		(tp->mii.supports_gmii ?
>  			ADVERTISED_1000baseT_Half |
> -			ADVERTISED_1000baseT_Full : 0);
> +			ADVERTISED_1000baseT_Full : 0));
>  
>  	if (RTL_R8(PHYstatus) & TBI_Enable)
>  		netif_info(tp, link, dev, "TBI auto-negotiating\n");
> 
> 

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

end of thread, other threads:[~2011-03-19 20:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4D84A46B.1000407@example.com>
     [not found] ` <AANLkTi=qrK2L+MA5F5fQ6S76LLPXkYhyLg7JL4_vrkRe@mail.gmail.com>
     [not found]   ` <4D84A9F6.8080402@example.com>
2011-03-19 14:08     ` No networking since git3 Anca Emanuel
2011-03-19 15:18       ` Eric Dumazet
2011-03-19 15:31         ` Oliver Neukum
2011-03-19 15:33           ` Eric Dumazet
2011-03-19 15:39             ` [PATCH] r8169: fix a bug in rtl8169_init_phy() Eric Dumazet
2011-03-19 15:41               ` Oliver Neukum
2011-03-19 15:44                 ` Eric Dumazet
2011-03-19 15:52                 ` Piotr Hosowicz
2011-03-19 19:41                 ` Francois Romieu
2011-03-19 15:49               ` Piotr Hosowicz
2011-03-19 16:04                 ` Eric Dumazet
2011-03-19 16:27                   ` Piotr Hosowicz
2011-03-19 16:38                     ` Anca Emanuel
2011-03-19 16:41                       ` Eric Dumazet
2011-03-19 17:03                       ` Piotr Hosowicz
2011-03-19 16:03               ` Piotr Hosowicz
2011-03-19 17:20               ` Anca Emanuel
2011-03-19 18:59               ` Piotr Hosowicz
2011-03-19 20:38               ` David Miller

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