From owner-freebsd-current@FreeBSD.ORG Thu May 22 04:23:17 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 239621065686 for ; Thu, 22 May 2008 04:23:17 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mx1.freebsd.org (Postfix) with ESMTP id E01E28FC23 for ; Thu, 22 May 2008 04:23:16 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3207475rvf.43 for ; Wed, 21 May 2008 21:23:16 -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=ybgRYkb3qK5RBICRRwvnebMNjv98ZnEpp/zkdj0Ta7Q=; b=Zt6SmebhjlYLTHv9f5AYPvMuojZ6GEqpQRmCOFMA0uF2kRnWkYPFXovD6QjquUxT2PCkZyMiAtsJiUCeN7diBXRSU58b17zW7EwFc2GH+8qu7gKzf//WQXQMfqX15B0mNvP1iU2OX8ivCHnzJwvvqiY99+05aqgMzb+0YOi3lKE= 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=L/H2npcZZMyrjXiwzzNswZnhdH6gMlMb25FBe8zteCDXjbVSk798jkbuVTJBGy5Pvzdwv7sEo5kiPs8rOIJgHi38Eu5ZzPHHWdlANnsE1yKxIFR6APBQp4hLRv4HjINV/lvcQ3nQ4SeoddrOwqk5xhZdLOSNBRmnSIdZ6CNZnLs= Received: by 10.141.74.17 with SMTP id b17mr5558537rvl.234.1211430196112; Wed, 21 May 2008 21:23:16 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id l31sm3451204rvb.6.2008.05.21.21.23.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 May 2008 21:23:14 -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 m4M4N9L2038190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 May 2008 13:23:09 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m4M4N9sa038189; Thu, 22 May 2008 13:23:09 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 22 May 2008 13:23:09 +0900 From: Pyun YongHyeon To: Norikatsu Shigemura Message-ID: <20080522042309.GC37422@cdnetworks.co.kr> References: <20080517231220.c64a992b.nork@FreeBSD.org> <20080519071459.GA26209@cdnetworks.co.kr> <20080519100523.GB26209@cdnetworks.co.kr> <20080520025052.0efd7cd5.nork@FreeBSD.org> <20080520001312.GA29721@cdnetworks.co.kr> <20080522102032.45f11aa2.nork@FreeBSD.org> <20080522012846.GB37422@cdnetworks.co.kr> <20080522105032.ef90ec84.nork@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20080522105032.ef90ec84.nork@FreeBSD.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@FreeBSD.org Subject: Re: Cardbus GbE (Realtek 8169SBL) supported? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2008 04:23:17 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 22, 2008 at 10:50:32AM +0900, Norikatsu Shigemura wrote: > On Thu, 22 May 2008 10:28:46 +0900 > Pyun YongHyeon wrote: > > Would you show me the output of "devinfo -v | grep oui"? > > Yes, please see attached file. And I forgot a panic. Thanks. Would you try attached patch? > When I removed RTL8169SBL from cardbus, or/and kldunload if_re, > I got a panic. Please see also panic messages, too. > This looks different issues to me. Would you show me backtrace info of the panic? -- Regards, Pyun YongHyeon --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rgephy.8211c.patch" --- sys/dev/mii/rgephy.c.orig 2008-03-05 10:15:10.000000000 +0900 +++ sys/dev/mii/rgephy.c 2008-05-22 13:16:29.000000000 +0900 @@ -34,7 +34,7 @@ __FBSDID("$FreeBSD: src/sys/dev/mii/rgephy.c,v 1.19 2008/03/05 01:15:10 yongari Exp $"); /* - * Driver for the RealTek 8169S/8110S/8211B internal 10/100/1000 PHY. + * Driver for the RealTek 8169S/8110S/8211B/8211C internal 10/100/1000 PHY. */ #include @@ -531,6 +531,18 @@ static void rgephy_reset(struct mii_softc *sc) { + struct rgephy_softc *rsc; + uint16_t ssr; + + rsc = (struct rgephy_softc *)sc; + if (rsc->mii_revision == 3) { + /* RTL8211C(L) */ + ssr = PHY_READ(sc, RGEPHY_MII_SSR); + if ((ssr & RGEPHY_SSR_ALDPS) != 0) { + ssr &= ~RGEPHY_SSR_ALDPS; + PHY_WRITE(sc, RGEPHY_MII_SSR, ssr); + } + } mii_phy_reset(sc); DELAY(1000); --- sys/dev/mii/rgephyreg.h.orig 2007-10-30 11:42:22.000000000 +0900 +++ sys/dev/mii/rgephyreg.h 2008-05-22 13:13:53.000000000 +0900 @@ -137,7 +137,7 @@ #define RGEPHY_EXTSTS_T_FD_CAP 0x2000 /* 1000base-T FD capable */ #define RGEPHY_EXTSTS_T_HD_CAP 0x1000 /* 1000base-T HD capable */ -/* RTL8211B(L) */ +/* RTL8211B(L)/8211C(L) */ #define RGEPHY_MII_SSR 0x11 /* PHY Specific status register */ #define RGEPHY_SSR_S1000 0x8000 /* 1000Mbps */ #define RGEPHY_SSR_S100 0x4000 /* 100Mbps */ @@ -148,6 +148,7 @@ #define RGEPHY_SSR_SPD_DPLX_RESOLVED 0x0800 /* speed/duplex resolved */ #define RGEPHY_SSR_LINK 0x0400 /* link up */ #define RGEPHY_SSR_MDI_XOVER 0x0040 /* MDI crossover */ +#define RGEPHY_SSR_ALDPS 0x0008 /* RTL8211C(L) only */ #define RGEPHY_SSR_JABBER 0x0001 /* Jabber */ #endif /* _DEV_RGEPHY_MIIREG_H_ */ --EVF5PPMfhYS0aIcm--