From owner-freebsd-net@FreeBSD.ORG Mon Nov 17 04:18:37 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEB561065670 for ; Mon, 17 Nov 2008 04:18:37 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id 8587C8FC13 for ; Mon, 17 Nov 2008 04:18:37 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2164449rvf.43 for ; Sun, 16 Nov 2008 20:18:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=TAttYnG2yMYp6Sv3PhIHoPky5BBbqIBP/2JLJjkpTD0=; b=FCb5NKMR8IU9E70+o7vkcOPmc6jlXtRWbpS8+d7R3BWvypjFaSA9A2KajrdeFE9DIs HOEHcBVvcITqSaL+Acpas7UB3dMgCA2IW2WUhG0WuPwnrdMhhtn4evkISoWgiPoGj5yi bzwG06SsHibAhOVwUpzI0qDXeJs1m7Zs1kWm4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=YUFXBmnmOVxnVH4tri7HTaXbjNTeldSAnoEtyDJ/QicTOKycrmEYh8hGHeRLiy/78h hbCgI90UIPSLs7Yu21geyZE0laBkNMLYznS/DOt+ELzmxgXHt9ti9+3D7yrh84k3sypr mhaAcR3J/e88OuP65+Y5WuwHj49Pd3xpcjEJE= Received: by 10.141.29.21 with SMTP id g21mr2018281rvj.44.1226895517264; Sun, 16 Nov 2008 20:18:37 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id l31sm8426958rvb.2.2008.11.16.20.18.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Nov 2008 20:18:35 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id mAH4GYWC051787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Nov 2008 13:16:34 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id mAH4GX27051786; Mon, 17 Nov 2008 13:16:33 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 17 Nov 2008 13:16:33 +0900 From: Pyun YongHyeon To: Milan Obuch Message-ID: <20081117041633.GI50872@cdnetworks.co.kr> References: <200810300829.35980.freebsd-net@dino.sk> <200811032339.07412.freebsd-net@dino.sk> <20081104014604.GB98154@cdnetworks.co.kr> <200811150913.16407.freebsd-net@dino.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200811150913.16407.freebsd-net@dino.sk> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: re weird bug X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2008 04:18:37 -0000 On Sat, Nov 15, 2008 at 09:13:15AM +0100, Milan Obuch wrote: > On Tuesday 04 November 2008 02:46:04 Pyun YongHyeon wrote: > > On Mon, Nov 03, 2008 at 11:39:06PM +0100, Milan Obuch wrote: > > > On Monday 03 November 2008 04:59:08 Pyun YongHyeon wrote: > > > > > > [ snip ] > > > > > > > I vaguely guess hardware was not properly initialized. How about > > > > this one? > > > > http://people.freebsd.org/~yongari/re/re.phy.patch.20081103 > > > > > > This bug seems again to disappear - csup two days ago, kernel built with > > > no patches and everything works. Something like this happened already in > > > the > > > > Yeah, this is one of reason that makes it hard to fix. > > > > > past. No idea whether it has something with if_re being built as module, > > > but if it happens again, I will test this possibility, too. > > > > Ok. Please let me know your findings. > > Strange. This trouble occured again. Two days ago, fresh csup, rebuilt whole > system, re works only when with verbose boot logging. Yesterday, fresh csup, > full rebuild, re works again. There is no change in if_re.c at all - it is > dated Sep 9, 2008. This is coming from somewhere else, but I have no idea how > this could be debugged. One possibility is there is some weird issue with > code or maybe more probably buffer placement in memory, but this is just a > shot in the wild, and no idea what means could be used to trace that. > > It occurs to me from time to time, only with -current, everytime verbose boot > logging masks the trouble, at least everytime I tried. Really weird, not > predictable. And maybe only difference tracking one per one could give some If verbose boot always hide the issye how about adding a DELAY in re_attach()? You may add a DELAY line, say DELAY(2000), before any PHY access(around line number 1307 in if_re.c) Did it make difference? > clue, but this is really time consuming (apply change, rebuild kernel, > reboot, test... grrr). > > Regards, > Milan -- Regards, Pyun YongHyeon