From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752480AbZIADdV (ORCPT ); Mon, 31 Aug 2009 23:33:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752065AbZIADdU (ORCPT ); Mon, 31 Aug 2009 23:33:20 -0400 Received: from smtp.knology.net ([24.214.63.101]:52372 "EHLO smtp.knology.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbZIADdU (ORCPT ); Mon, 31 Aug 2009 23:33:20 -0400 Subject: Re: [PATCH] r8169: Reduce looping in the interrupt handler. From: David Dillow To: "Eric W. Biederman" Cc: Francois Romieu , Michael Riepe , Michael Buesch , Rui Santos , Michael B??ker , linux-kernel@vger.kernel.org, netdev@vger.kernel.org In-Reply-To: References: <1251294974.14241.9.camel@obelisk.thedillows.org> <1251295175.14241.11.camel@obelisk.thedillows.org> <20090826213024.GA20428@electric-eye.fr.zoreil.com> <20090827052423.GA1709@electric-eye.fr.zoreil.com> <20090827232024.GA30119@electric-eye.fr.zoreil.com> <1251422978.21865.2.camel@obelisk.thedillows.org> <20090830203735.GA24912@electric-eye.fr.zoreil.com> Content-Type: text/plain Date: Mon, 31 Aug 2009 23:33:16 -0400 Message-Id: <1251775996.3345.5.camel@obelisk.thedillows.org> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2009-08-30 at 13:53 -0700, Eric W. Biederman wrote: > Francois Romieu writes: > > > David Dillow : > > [...] > >> It'll be this weekend, but I can see cases where it can lock my chip up > >> -- they should be rare, but then I thought your case would be extremely > >> rare... > > > > I don't get it. > > > > Can you elaborate the relevant cases or give some sample scenarios for > > them ? > > I think David is referring to the fact that in the NAPI loop there is > nothing that acks everything. That was my concern, yes. I've not been able to reproduce my lockups under medium testing with Francois's patch applied, so I'm a little more comfortable with it. At the same time, I'm worried that the timing just changed enough to make it harder to trigger, as was the case when I did the patch IIRC. The kernel's interrupt handling changed in a manner that made it much easier to hit about that time. The testing I did in May pointed strongly at us failing to ACK an interrupt source, causing the MSI generation to stop, so I need to think about things some more.