From owner-freebsd-net@FreeBSD.ORG Mon Nov 3 04:01:12 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 B59791065673 for ; Mon, 3 Nov 2008 04:01:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id 7D74D8FC16 for ; Mon, 3 Nov 2008 04:01:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2188229rvf.43 for ; Sun, 02 Nov 2008 20:01:12 -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=TWuGKPWepn5JNv6rVGA5GBdfcT0Gxf9mPxpeSKAmXX8=; b=Oq38UC8Rb3uRI8dws1D1JXrcEU+iaQfEQrToi6P3LGrCxHKos9EQtjeRmpNMSksCH9 JVKO8OiRZ/TLMQypE/0lEcr9aUuKtthHzrwWRuV2mtNmxa82k6XBM7IAYXzB9c+9iVib pxBBj7/QOdQsjkYxqLbGcTpqlU8nkxnhBjZ9E= 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=cUr0b7kqmE2R3rxAArCp78105ZzvXE8Vrxxbd8rnxWxg6+bTrKLJ/Ab1GXEEW4tpgz sFApkxB3jx4DHi6jBEPUzR4BOuKR8wHhbFiLdhPGOSlnrE4sv3BWROWyjOWmczblRhtP H/FO7Dfcpwfr42mmpWixJG2jQr53jCXwCdEfU= Received: by 10.140.226.13 with SMTP id y13mr8646920rvg.2.1225684872033; Sun, 02 Nov 2008 20:01:12 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id f21sm19212630rvb.5.2008.11.02.20.01.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 02 Nov 2008 20:01:10 -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 mA33xA8g094976 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Nov 2008 12:59:10 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id mA33x8Hs094975; Mon, 3 Nov 2008 12:59:08 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 3 Nov 2008 12:59:08 +0900 From: Pyun YongHyeon To: Milan Obuch Message-ID: <20081103035908.GC94302@cdnetworks.co.kr> References: <200810300829.35980.freebsd-net@dino.sk> <200810302241.01863.freebsd-net@dino.sk> <20081031011125.GC82781@cdnetworks.co.kr> <200810311029.56471.freebsd-net@dino.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200810311029.56471.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, 03 Nov 2008 04:01:12 -0000 On Fri, Oct 31, 2008 at 10:29:55AM +0100, Milan Obuch wrote: > On Friday 31 October 2008 02:11:25 Pyun YongHyeon wrote: > > On Thu, Oct 30, 2008 at 10:41:01PM +0100, Milan Obuch wrote: > > > On Thursday 30 October 2008 11:26:56 Pyun YongHyeon wrote: > > > > On Thu, Oct 30, 2008 at 08:29:35AM +0100, Milan Obuch wrote: > > > > > Hi, > > > > > yesterday I csup'ped my 8-current sources on my MSI Wind netbook > > > > > (again) and tried to build new kernel. There is again a problem > > > > > with re interface. It just does not work, with following > > > > > > > > > > re0: port > > > > > 0xc000-0xc0ff mem 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq > > > > > 16 at device 0.0 on pci1 re0: Chip rev. 0x34800000 > > > > > re0: MAC rev. 0x00200000 > > > > > re0: PHY write failed > > > > > re0: PHY write failed > > > > > re0: MII without any phy! > > > > > device_attach: re0 attach returned 6 > > > > > > > [ snip ] > > > > > > > > > That's known issue for newer RealTek PCIe controllers. Would you > > > > please try the patch at the following URL? > > > > http://people.freebsd.org/~yongari/re/re.ephy.patch.20081021 > > > > > > > > Since it's not easy to reproduce this issue please make sure to > > > > (cold and warm) reboot several times until you can put confidence > > > > in the patch. > > > > > > I tried, but no change - with patch applied re still does not work > > > unless I boot with verbose logging, no matter whether I boot cold or > > > warm. > > > > Thanks for testing. If you look into patched if_re.c you can see a > > "#if 1" in function re_ephy_config(). How about changing it to > > "#if 0" to enable more aggresive reprogramming for EPHY register? > > I tried. Again, no change - rlphy not working normally, but everything works > when booting with verbose logging. > Hmm, I have no idea how verbosed booting can hide the issue. > If there is anything else I could test, let me know. Booting with verbose > logging is acceptable for me for now, so do not feel any pressure from my > side. I just like to test when something will be available for test. > I vaguely guess hardware was not properly initialized. How about this one? http://people.freebsd.org/~yongari/re/re.phy.patch.20081103 -- Regards, Pyun YongHyeon