From owner-freebsd-net@FreeBSD.ORG Thu Oct 30 10:29:01 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 12D211065670 for ; Thu, 30 Oct 2008 10:29:01 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by mx1.freebsd.org (Postfix) with ESMTP id CD1008FC22 for ; Thu, 30 Oct 2008 10:29:00 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so482473rvf.43 for ; Thu, 30 Oct 2008 03:29:00 -0700 (PDT) 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=6t0+csCpAHvqFF9surUhZih/Y6zcsZnjjeo2xVKErjo=; b=qNKoxOmI5VEKrvgwyceddaN0XSp31cxwRJfNdnlkeJbpgzeRlZwUvaxgxl5Cj8uyLM wqa4vJY+5wilqDZytdYyDx6mwvn7uqPZ5gMStMTJHtz/C4SR/k+BPCGcSRPGdliiJ5eX gbkR8hcdC7z3LwLyJYBYizbxhkkjfjN4tC8Z0= 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=Dkr/lcdA/pZRraxW4JmuiScLv4+14XUzXXauIItj4rvOssIAMkzeqKmawuDOCivuLe 9C0ev5hVKTBQB5AfAunAuxdxIDI8OXXnf6N5dRa5Q/HaPIhEsZxplSb3x10tNLQqgE73 Wyzwtj9Y6TSz5kaQe+F8ayxgNOqXHm8k0QGTo= Received: by 10.140.127.20 with SMTP id z20mr5553300rvc.77.1225362540181; Thu, 30 Oct 2008 03:29:00 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id f21sm3147055rvb.5.2008.10.30.03.28.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Oct 2008 03:28:58 -0700 (PDT) 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 m9UAQwK3080513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Oct 2008 19:26:58 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m9UAQuWO080512; Thu, 30 Oct 2008 19:26:56 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 30 Oct 2008 19:26:56 +0900 From: Pyun YongHyeon To: Milan Obuch Message-ID: <20081030102656.GD78796@cdnetworks.co.kr> References: <200810300829.35980.freebsd-net@dino.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200810300829.35980.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: Thu, 30 Oct 2008 10:29:01 -0000 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 > > in dmesg. This happened already some time ago, but I did not investigate it, > just reverted to older kernel and later it disappeared. Today I found there > is some timing issue or racing condition - when I boot with verbose message > logging, it works with expected > > re0: port 0xc000-0xc0ff mem > 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on pci1 > re0: Reserved 0x1000 bytes for rid 0x18 type 3 at 0xffd10000 > re0: MSI count : 1 > re0: Chip rev. 0x34800000 > re0: MAC rev. 0x00200000 > miibus0: on re0 > rlphy0: PHY 1 on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > re0: bpf attached > re0: Ethernet address: 00:1d:92:59:f5:8b > re0: [MPSAFE] > re0: [FILTER] > > So I think some issue could be in miibus or rlphy code. > I am using stripped down kernel with no interfaces, I kldload if_re (and > miibus as dependency), if that matters. > Has anybody an idea or patch to test? Something similar appeared recently on > list, but I would like to get issue commented first (maybe with a pointer to > patch). > 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. -- Regards, Pyun YongHyeon