From owner-freebsd-stable@FreeBSD.ORG Thu Mar 27 15:28:20 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BE571065674; Thu, 27 Mar 2008 15:28:20 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from falcon.cybervisiontech.com (falcon.cybervisiontech.com [217.20.163.9]) by mx1.freebsd.org (Postfix) with ESMTP id C20688FC1B; Thu, 27 Mar 2008 15:28:18 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (localhost [127.0.0.1]) by falcon.cybervisiontech.com (Postfix) with ESMTP id BB8ED744026; Thu, 27 Mar 2008 17:28:16 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at falcon.cybervisiontech.com Received: from falcon.cybervisiontech.com ([127.0.0.1]) by localhost (falcon.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mQhEsJHtsFaV; Thu, 27 Mar 2008 17:28:16 +0200 (EET) Received: from [10.2.1.87] (gateway.cybervisiontech.com.ua [88.81.251.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by falcon.cybervisiontech.com (Postfix) with ESMTP id 44D8074400D; Thu, 27 Mar 2008 17:28:16 +0200 (EET) Message-ID: <47EBBD0F.8060207@icyb.net.ua> Date: Thu, 27 Mar 2008 17:28:15 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.12 (X11/20080311) MIME-Version: 1.0 To: pyunyh@gmail.com References: <47A3041D.5050402@icyb.net.ua> <20080201123603.GA14050@cdnetworks.co.kr> <47A321BB.1060708@icyb.net.ua> <47A32501.7080703@icyb.net.ua> <20080204035242.GA28554@cdnetworks.co.kr> <47C2BC50.5040702@icyb.net.ua> <47C2DBEF.301@icyb.net.ua> <20080226073633.GC47750@cdnetworks.co.kr> In-Reply-To: <20080226073633.GC47750@cdnetworks.co.kr> Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, yongari@freebsd.org Subject: Re: 6.3 nfe: strange behavior after reset X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2008 15:28:20 -0000 on 26/02/2008 09:36 Pyun YongHyeon said the following: > > Nice catch! > The register name in nfe(4) for NvRegMIIMask is NFE_SETUP_R4. > According to Linux driver it's used for generating link state > change interrupt. So I guess nfe(4) may have to clear the > register in nfe_stop(). How about clearing the register as > attached patch? (Sorry I couldn't test this ATM...) Unfortunately, the latest patch didn't make any difference either. So the issue is where it was: do a reboot or a power off / power on cycle - nfe is good, press reset and boot - nfe is silently dead. There is even a stranger thing: in the problematic scenario, if I unload nfe.ko and load nve.ko then the NIC becomes alive, unload nve and re-load nfe NIC is still dead. Mystery. I'll try to do more local debugging later when I have a chance to hit the reset button. -- Andriy Gapon