All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Breuer <mbreuer@majjas.com>
To: Mike McCormack <mikem@ring3k.org>
Cc: Jarek Poplawski <jarkao2@gmail.com>,
	David Miller <davem@davemloft.net>,
	shemminger@vyatta.com, flyboy@gmail.com, rjw@sisk.pl,
	netdev@vger.kernel.org
Subject: Re: [PATCH] sky2: safer transmit ring cleaning (v4)
Date: Thu, 14 Jan 2010 11:46:15 -0500	[thread overview]
Message-ID: <4B4F4A57.5050708@majjas.com> (raw)
In-Reply-To: <4B4F19EB.5080207@ring3k.org>

On 1/14/2010 8:19 AM, Mike McCormack wrote:
> Jarek Poplawski wrote:
>    
>> On Thu, Jan 14, 2010 at 03:20:09AM -0800, David Miller wrote:
>>      
>>> From: Jarek Poplawski<jarkao2@gmail.com>
>>> Date: Thu, 14 Jan 2010 11:16:36 +0000
>>>
>>>        
>>>> So, now I really ;-) agree with David: this needs a proper fix.
>>>>          
>>> Now Jarek, do you now see my dirty little secret?
>>>
>>> When people disagree with me, I just silently sit around waiting for
>>> them to eventually change their mind.
>>>
>>> Isn't it brilliant? -)
>>>        
>> If it were that easy... (it never works for me :-()
>>
>> Probably, there is something more... ;-)
>>      
> Here's what was sitting in my tree...
>
>
> Subject: [PATCH] sky2: Don't detach device when restarting
>
> Block the tx queue from transmitting when restarting
>   rather than trying to take the device offline.
>
> Signed-off-by: Mike McCormack<mikem@ring3k.org>
> ---
>   drivers/net/sky2.c |   13 +++++++++----
>   1 files changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
> index d76d907..061f6f2 100644
> --- a/drivers/net/sky2.c
> +++ b/drivers/net/sky2.c
> @@ -1580,6 +1580,8 @@ static int sky2_up(struct net_device *dev)
>   	if (netif_msg_ifup(sky2))
>   		printk(KERN_INFO PFX "%s: enabling interface\n", dev->name);
>
> +	netif_start_queue(dev);
> +
>   	return 0;
>
>   err_out:
> @@ -1596,6 +1598,8 @@ static inline int tx_inuse(const struct sky2_port *sky2)
>   /* Number of list elements available for next tx */
>   static inline int tx_avail(const struct sky2_port *sky2)
>   {
> +	if (unlikely(!sky2->tx_ring))
> +		return 0;
>   	return sky2->tx_pending - tx_inuse(sky2);
>   }
>
> @@ -1925,7 +1929,9 @@ static int sky2_down(struct net_device *dev)
>   	sky2_read32(hw, B0_IMSK);
>
>   	synchronize_irq(hw->pdev->irq);
> -	napi_synchronize(&hw->napi);
> +	netif_tx_lock_bh(dev);
> +	napi_disable(&hw->napi);
> +	netif_stop_queue(dev);
>
>   	spin_lock_bh(&sky2->phy_lock);
>   	sky2_phy_power_down(hw, port);
> @@ -1939,6 +1945,8 @@ static int sky2_down(struct net_device *dev)
>   	sky2_rx_clean(sky2);
>
>   	sky2_free_buffers(sky2);
> +	napi_enable(&hw->napi);
> +	netif_tx_unlock_bh(dev);
>
>   	return 0;
>   }
> @@ -3177,9 +3185,6 @@ static void sky2_reset(struct sky2_hw *hw)
>   static void sky2_detach(struct net_device *dev)
>   {
>   	if (netif_running(dev)) {
> -		netif_tx_lock_bh(dev);
> -		netif_device_detach(dev);	/* stop txq */
> -		netif_tx_unlock_bh(dev);
>   		sky2_down(dev);
>   	}
>   }
> -- 1.5.6.5
>    
Ok - no obvious difference with this patch + Stephen's.

I still see:

No reported errors; decent throughput; earlier issues with IRQ resolved.
But... still seeing DHCP DISCOVER/OFFER (no REQUEST/ACK) while under 
load. I can try to sniff this... but given that it's under load, I'd 
probably have to filter out non DHCP stuff and might miss whatever is 
really going on. Again - main point here is that absent these patches I 
don't see this issue. It's also possible that these two patches allow 
the load to be heavier thus actually causing a different problem.

  parent reply	other threads:[~2010-01-14 16:46 UTC|newest]

Thread overview: 241+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-10 22:27 2.6.33-rc3-git3: Reported regressions from 2.6.32 Rafael J. Wysocki
2010-01-10 22:27 ` Rafael J. Wysocki
2010-01-10 22:27 ` [Bug #14791] Something has been broken in the network stack this week Rafael J. Wysocki
2010-01-10 22:27   ` Rafael J. Wysocki
2010-01-10 22:46   ` Ben Hutchings
2010-01-10 22:58     ` Rafael J. Wysocki
2010-01-10 22:58       ` Rafael J. Wysocki
2010-01-28 23:18   ` [PATCH net-2.6] cdc_ether: Partially revert "usbnet: Set link down initially ..." Ben Hutchings
2010-01-29  5:37     ` David Miller
2010-01-10 22:32 ` [Bug #14792] Misdetection of the TV output Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14860] No DP-DVI output when laptop is docked Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-12 16:14   ` Pär Andersson
2010-01-12 16:14     ` Pär Andersson
2010-01-12 22:03     ` Rafael J. Wysocki
2010-01-12 22:03       ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14874] Ath5k regression with commit 8bf3d79bc401ca417ccf9fc076d3295d1a71dbf5 Rafael J. Wysocki
2010-01-11 15:05   ` Luis R. Rodriguez
2010-01-11 15:05     ` Luis R. Rodriguez
2010-01-11 20:01     ` Rafael J. Wysocki
2010-01-11 20:01       ` Rafael J. Wysocki
2010-01-11 20:05       ` Luis R. Rodriguez
2010-01-11 20:05         ` Luis R. Rodriguez
2010-01-10 22:32 ` [Bug #14899] reiserfs: inconsistent lock state Rafael J. Wysocki
2010-01-10 22:49   ` Frederic Weisbecker
2010-01-10 22:49     ` Frederic Weisbecker
2010-01-10 23:02     ` Rafael J. Wysocki
2010-01-10 23:02       ` Rafael J. Wysocki
2010-01-10 23:16     ` Alexander Beregalov
2010-01-10 23:16       ` Alexander Beregalov
2010-01-10 22:32 ` [Bug #14859] System timer firing too much without cause Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-11  3:22   ` Shawn Starr
     [not found]     ` <201001102222.19700.shawn.starr-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org>
2010-01-11 19:59       ` Rafael J. Wysocki
2010-01-11  3:28   ` Shawn Starr
2010-01-10 22:32 ` [Bug #14924] Weird hard hangs when rendering 'some' web-sites in Firefox Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14907] Commit "kbuild: fix bzImage build for x86" breaks build Rafael J. Wysocki
2010-01-11  1:36   ` Jonathan Nieder
2010-01-11  1:36     ` Jonathan Nieder
2010-01-11 20:02     ` Rafael J. Wysocki
2010-01-11 20:02       ` Rafael J. Wysocki
2010-01-12  9:01       ` Oliver Hartkopp
2010-01-13 12:33     ` Michal Marek
2010-01-13 12:33       ` Michal Marek
2010-01-14 11:05       ` Michal Marek
2010-01-14 11:05         ` Michal Marek
2010-01-14 20:35         ` Rafael J. Wysocki
2010-01-14 20:35           ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14934] kernel crash during boot Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14937] WARNING: at kernel/lockdep.c:2830 Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14925] sky2 panic under load Rafael J. Wysocki
2010-01-11  0:36   ` Berck E. Nash
2010-01-11 13:26     ` Jarek Poplawski
2010-01-11 19:32       ` Rafael J. Wysocki
2010-01-11 20:31         ` Jarek Poplawski
2010-01-11 20:50           ` Rafael J. Wysocki
2010-01-11 21:02           ` Berck E. Nash
2010-01-11 21:47             ` Jarek Poplawski
2010-01-11 14:03     ` Mike McCormack
2010-01-11 16:45       ` Stephen Hemminger
2010-01-11 22:07         ` Jarek Poplawski
2010-01-12  0:14           ` David Miller
2010-01-12  7:50             ` Jarek Poplawski
2010-01-12  8:08               ` David Miller
2010-01-12  8:56                 ` Jarek Poplawski
2010-01-12  9:42                   ` David Miller
2010-01-12 10:31                     ` Jarek Poplawski
2010-01-12 10:56                     ` David Miller
2010-01-12 11:04                       ` Jarek Poplawski
2010-01-12 15:39                       ` Stephen Hemminger
2010-01-12 16:15                       ` [PATCH] sky2: safer transmit ring cleaning Stephen Hemminger
2010-01-12 16:32                         ` Michael Breuer
2010-01-12 17:02                           ` Stephen Hemminger
2010-01-12 18:04                         ` Jarek Poplawski
2010-01-12 18:13                           ` Stephen Hemminger
2010-01-12 18:24                             ` Jarek Poplawski
2010-01-12 18:49                               ` [PATCH] sky2: safer transmit ring cleaning (v2) Stephen Hemminger
2010-01-12 19:16                                 ` Jarek Poplawski
2010-01-12 19:23                                   ` Stephen Hemminger
2010-01-12 19:50                                     ` Jarek Poplawski
2010-01-13  1:23                                       ` Stephen Hemminger
2010-01-12 19:34                                 ` Michael Breuer
2010-01-12 18:35                         ` [PATCH] sky2: safer transmit ring cleaning Michael Breuer
2010-01-12 18:42                           ` Michael Breuer
2010-01-12 20:31                             ` Michael Breuer
2010-01-13  4:10                               ` [PATCH] sky2: safer transmit ring cleaning (v3) Stephen Hemminger
2010-01-13  4:31                                 ` Michael Breuer
2010-01-13  7:35                                 ` Jarek Poplawski
2010-01-13 16:04                                 ` Michael Breuer
2010-01-14  3:41                                   ` [PATCH] sky2: safer transmit ring cleaning (v4) Stephen Hemminger
2010-01-14 10:14                                     ` Jarek Poplawski
2010-01-14 11:16                                       ` Jarek Poplawski
2010-01-14 11:20                                         ` David Miller
2010-01-14 11:26                                           ` Jarek Poplawski
2010-01-14 13:19                                             ` Mike McCormack
2010-01-14 15:43                                               ` Michael Breuer
2010-01-14 16:46                                               ` Michael Breuer [this message]
2010-01-14 17:51                                               ` Stephen Hemminger
2010-01-14 17:52                                       ` Stephen Hemminger
2010-01-14 23:51                                         ` Michael Breuer
2010-01-16 18:35                                           ` sky2 DHCPOFFER packet loss under load (Was Re: [PATCH] sky2: safer transmit ring cleaning (v4)) Michael Breuer
2010-01-14 15:46                                     ` [PATCH] sky2: safer transmit ring cleaning (v4) Michael Breuer
2010-01-11 22:31         ` [Bug #14925] sky2 panic under load Jarek Poplawski
2010-01-10 22:32 ` [Bug #14946] All kernels after 2.6.32-git10 show only 1 CPU Rafael J. Wysocki
2010-01-11  3:39   ` Sid Boyce
2010-01-11  3:39     ` Sid Boyce
2010-01-11 20:04     ` Rafael J. Wysocki
2010-01-15  1:24     ` HDA Intel Audio hang on boot Sid Boyce
2010-01-15  1:24       ` Sid Boyce
2010-01-15 16:01       ` Sid Boyce
2010-01-16 16:44         ` Sid Boyce
2010-01-16 16:44           ` Sid Boyce
2010-01-25  1:48       ` Sid Boyce
2010-01-25  1:48         ` Sid Boyce
2010-01-25 21:39         ` Rafael J. Wysocki
2010-01-25 21:39           ` Rafael J. Wysocki
2010-01-25 21:54           ` Takashi Iwai
2010-01-25 21:54             ` Takashi Iwai
2010-01-25 21:55             ` Takashi Iwai
2010-01-26  0:59               ` Sid Boyce
2010-01-26  0:59                 ` Sid Boyce
2010-01-26  6:40                 ` Takashi Iwai
2010-01-26  6:58                   ` Takashi Iwai
2010-01-26  6:58                     ` Takashi Iwai
2010-01-26 12:02                     ` Sid Boyce
2010-01-26 12:02                       ` Sid Boyce
2010-01-26 12:51                       ` Rafael J. Wysocki
2010-01-26 13:18                         ` Sid Boyce
2010-01-26 12:55                       ` Takashi Iwai
2010-01-26 12:55                         ` Takashi Iwai
2010-01-26 13:44                         ` Sid Boyce
2010-01-26 13:44                           ` Sid Boyce
2010-01-26 13:48                           ` Takashi Iwai
2010-01-26 13:48                             ` Takashi Iwai
2010-01-26 18:22                           ` Rafael J. Wysocki
2010-01-26 18:22                             ` Rafael J. Wysocki
2010-01-26 20:25                             ` Takashi Iwai
2010-01-26 20:25                               ` Takashi Iwai
2010-01-26 20:56                               ` Sid Boyce
2010-01-26 20:56                                 ` Sid Boyce
2010-01-26 20:58                             ` Sid Boyce
2010-01-26 20:58                               ` Sid Boyce
2010-01-27  0:56                               ` Rafael J. Wysocki
2010-01-27  2:40                                 ` Sid Boyce
2010-01-27  2:40                                   ` Sid Boyce
2010-01-27  6:42                                   ` Takashi Iwai
2010-01-27 17:17                                     ` Sid Boyce
2010-01-27 19:29                                       ` Takashi Iwai
2010-01-27 19:29                                         ` Takashi Iwai
2010-01-27 22:14                                         ` Sid Boyce
2010-01-10 22:32 ` [Bug #14948] EHCI resume sysfs duplicates Rafael J. Wysocki
2010-01-11  6:05   ` Borislav Petkov
2010-01-11  6:05     ` Borislav Petkov
2010-01-11 20:06     ` Rafael J. Wysocki
2010-01-11 20:06       ` Rafael J. Wysocki
2010-01-11 22:41       ` Borislav Petkov
2010-01-11 22:41         ` Borislav Petkov
2010-01-11 23:08         ` Rafael J. Wysocki
2010-01-11 23:08           ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14942] gkrellm no longer shows all the temperatures on thinkpad x60 Rafael J. Wysocki
2010-01-11  9:40   ` Henrique de Moraes Holschuh
2010-01-11 20:02     ` Rafael J. Wysocki
2010-01-11 20:02       ` Rafael J. Wysocki
2010-02-01 10:48     ` Pavel Machek
2010-02-01 10:48       ` Pavel Machek
2010-02-02 21:06       ` Rafael J. Wysocki
2010-02-02 21:06         ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14944] 2.6.32.2 SATA link detect failed, 2.6.32.1 works fine Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14949] drm_vm.c:drm_mmap: possible circular locking dependency detected Rafael J. Wysocki
2010-01-11  6:11   ` Borislav Petkov
2010-01-11  6:11     ` Borislav Petkov
2010-01-11 20:06     ` Rafael J. Wysocki
2010-01-11 20:06       ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14957] Blank screen with KMS enabled Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14954] warning from alloc_pages_nodemask on boot -- caused by commit 78f1699659963fff97975df44db6d5dbe7218e55 Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14950] tbench regression with 2.6.33-rc1 Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14974] tg3 does not resume from hibernation properly on BCM5787M Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15031] bug in fs/btrfs/ordered-data.c:672 Rafael J. Wysocki
2010-01-11  0:38   ` Carlos R. Mafra
2010-01-11  0:38     ` Carlos R. Mafra
2010-01-11 20:11     ` Rafael J. Wysocki
2010-01-11 20:11       ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #14976] No sound on snd_hda_codec_via in 2.6.33-rc2 Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15032] Oops in uart_resume_port() on resume Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15026] i915: Resume regression on MSI Wind U100 w/o KMS Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15035] BUG: unable to handle kernel paging request in rs600_gart_set_page() Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15033] drm: gem_object_free without struct_mutex Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-11 23:15   ` Hugh Dickins
2010-01-11 23:15     ` Hugh Dickins
2010-01-11 23:50     ` Rafael J. Wysocki
2010-01-11 23:50       ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15034] volano ~30% regression Rafael J. Wysocki
2010-01-11  6:52   ` Mike Galbraith
2010-01-11  6:52     ` Mike Galbraith
2010-01-11 20:08     ` Rafael J. Wysocki
2010-01-12  2:28       ` Mike Galbraith
2010-01-12  2:28         ` Mike Galbraith
2010-01-12 22:06         ` Rafael J. Wysocki
2010-01-12 22:06           ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15037] BUG during shutdown - bisected to commit e2912009 Rafael J. Wysocki
2010-01-11 13:12   ` Marc Dionne
2010-01-11 13:12     ` Marc Dionne
2010-01-11 20:10     ` Rafael J. Wysocki
2010-01-11 20:10       ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15036] soft lockup in dmesg after suspend/resume Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15043] Display goes off with i915.powersave=1 Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-12 22:31   ` Soeren Sonnenburg
2010-01-12 22:31     ` Soeren Sonnenburg
2010-01-10 22:32 ` [Bug #15041] Pagemap endless read loop with LTP Rafael J. Wysocki
2010-01-13  3:04   ` Américo Wang
2010-01-13  3:04     ` Américo Wang
2010-01-13 21:57     ` Rafael J. Wysocki
2010-01-13 21:57       ` Rafael J. Wysocki
2010-01-13 22:24       ` Matt Mackall
2010-01-13 22:24         ` Matt Mackall
2010-01-13 23:50       ` Andi Kleen
2010-01-14  0:15         ` Matt Mackall
2010-01-14  0:15           ` Matt Mackall
2010-01-14 20:38           ` Rafael J. Wysocki
2010-01-14 20:38             ` Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15039] leds_alix2: can't allocate I/O for GPIO Rafael J. Wysocki
2010-01-10 22:32 ` [Bug #15038] drm/ksm: fbdev blanking regression Rafael J. Wysocki
2010-01-10 22:32   ` Rafael J. Wysocki
2010-01-11 16:00 ` 2.6.33-rc3-git3: Reported regressions from 2.6.32 Luis R. Rodriguez
2010-01-11 16:00 ` Luis R. Rodriguez
2010-01-11 16:00   ` Luis R. Rodriguez
2010-01-11 21:47 ` Nick Bowler
2010-01-11 22:10   ` Rafael J. Wysocki
2010-01-11 22:10   ` Rafael J. Wysocki
2010-01-11 21:47 ` Nick Bowler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B4F4A57.5050708@majjas.com \
    --to=mbreuer@majjas.com \
    --cc=davem@davemloft.net \
    --cc=flyboy@gmail.com \
    --cc=jarkao2@gmail.com \
    --cc=mikem@ring3k.org \
    --cc=netdev@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=shemminger@vyatta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.