From owner-freebsd-mips@FreeBSD.ORG Sat Mar 10 22:50:52 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5D36106566C for ; Sat, 10 Mar 2012 22:50:52 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6BE288FC0C for ; Sat, 10 Mar 2012 22:50:52 +0000 (UTC) Received: by wern13 with SMTP id n13so330927wer.13 for ; Sat, 10 Mar 2012 14:50:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=RoojOiv9cRgUzGLSdA03A2WUWFXb2gWy5CDSlclrJJo=; b=LrcljtwcTSvdY0H1kx9q8hRj/vqVGXp3rr5ElxTIozu4vUHJVWHR01Uikuto6HKgsP Hm7XuxKs+4fKBqm5tvTYJJhfCPQCX8wrQBd9ThUqllSIAXy0ZWlOI6J3vGGRzb5ADh/D AFZF+FLNhXuUSf77umO4Or1sr46nb5w2DRVleD2Wq3kM2DHd06tPVcPFGJU4Lt5Io9EZ Y3hL9JUT7wlfTBGu9LdlxRQzjkvQTiyRaWGx5M+0CMhgAKNHc0YQN3ju3XYxu+ksG+B0 jfiXBPfgwmGCJxyqxvV2LrbvqFpLleqw9+WfUGD68KE7CW6UDqBiUSDq7bYoKFQJM3Ak wsOQ== Received: by 10.180.100.196 with SMTP id fa4mr7922565wib.0.1331419851196; Sat, 10 Mar 2012 14:50:51 -0800 (PST) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.180.96.231 with HTTP; Sat, 10 Mar 2012 14:50:31 -0800 (PST) In-Reply-To: <20120311002908.58ea1513.ray@ddteam.net> References: <20120310151128.647d4a18.ray@ddteam.net> <20120311002908.58ea1513.ray@ddteam.net> From: Juli Mallett Date: Sat, 10 Mar 2012 14:50:31 -0800 X-Google-Sender-Auth: Rna8MM2cNObf1D3jJaHnVU00k_Q Message-ID: To: Aleksandr Rybalko Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlkBUeY490Gi0mNzM1zJgmFzej/3wCc49qScSDwUixdOdsY9XmxefpA9IQApGwN5oTu0iCb Cc: freebsd-mips@freebsd.org Subject: Re: [PATCH] Fix for using NFS root with if_arge X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2012 22:50:53 -0000 On Sat, Mar 10, 2012 at 14:29, Aleksandr Rybalko wrote: > On Sat, 10 Mar 2012 14:24:09 -0800 > Juli Mallett wrote: >> This patch seems to cause interrupt storms on rb450g's arge1 >> interface, at least if that interface is wired to the switch. =C2=A0I wo= uld >> guess it has to do with the MAC clock? > > Yeah, but not really this patch. This patch just workaround one problem > which is unhide second. I'm still not sure what is real problem > source, but think it is because clock for MAC output, or not run, or > run on incorrect frequency. I guess I really don't understand the nature of the problem. It looks like this relates to moving the ring initialization out to attach-time =E2=80=94 why not just make the stop function do the right thing and free allocated resources, instead of doing the latter in detach? Is it simply the lack of resetting the tx_prod, tx_cons, tx_cnt and rx_cons fields in the init function if you move the ring initialization to attach? It looks to me like that could be the problem.