From owner-freebsd-net@FreeBSD.ORG Sat Oct 24 21:46:43 2009 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 D3E3D1065692 for ; Sat, 24 Oct 2009 21:46:43 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.221.176]) by mx1.freebsd.org (Postfix) with ESMTP id 863508FC19 for ; Sat, 24 Oct 2009 21:46:43 +0000 (UTC) Received: by qyk6 with SMTP id 6so4366688qyk.3 for ; Sat, 24 Oct 2009 14:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=H4wgmSLzy9pfa5yG1t2WVZfJBwcgJ4T7JiQSlgMANjM=; b=GL7qgU2qJuyd1AFnAE1seWRFyGTlSaSCz1nZUiOYkEndDPQ4qKMYO5HetZty2IYcO6 rl41rJtJNSjE+EGvdeXBtQ7AWT4s2mQjXFa0Nf8QfpS/ljyM4cn8ikuumehp1aLoyrpc phR7NHFdFXr2Vo8ZkQvjy+RJ0yRGjrwbpTXxw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=rWrAALEAiOW+kkuKNtUuWT1enngblL1QZ+wyqhfIn5PiGyJLksRhSCwYVqQNx1WkcW qlgj2BiDCVHGWbf8JIRV3Gq5Snic1hTqc6OBp0OU7ACKJ/GNMstaRBQmLguwSzRznGeJ 4J1Q7saVUE40MR8ajFy9rfp+GpHgLtFnnzEcs= Received: by 10.224.3.74 with SMTP id 10mr6306713qam.302.1256420803002; Sat, 24 Oct 2009 14:46:43 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 6sm12116388qwk.4.2009.10.24.14.46.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 24 Oct 2009 14:46:41 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Sat, 24 Oct 2009 14:46:40 -0700 From: Pyun YongHyeon Date: Sat, 24 Oct 2009 14:46:40 -0700 To: kalin m Message-ID: <20091024214640.GE6050@michelle.cdnetworks.com> References: <4AE2780F.4080600@el.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline In-Reply-To: <4AE2780F.4080600@el.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Marvell 88E8057 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: Sat, 24 Oct 2009 21:46:43 -0000 --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 23, 2009 at 11:44:15PM -0400, kalin m wrote: > > hi all.. > > does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip? > > according to the kernel list of drivers (7.2) marvell chips are driven > by the msk driver. but it doesn't show up in pciconf, dmesg or > sysinstall.... > strangely enough 88E8057 is not in the list in man msk. although 88E8056 > and 88E8058 are. is this just bad luck?! > I think 88E8057(Yukon Ultra 2) is the latest chipset from Marvell and no one ever expressed his/her willingness to try experiment patch. I guess msk(4) in HEAD has all required features to support 88E8057. Would you try attached patch? The patch was generated against HEAD. If you have to use 7.2-RELEASE copy the following files from HEAD and apply attached patch. /usr/src/sys/dev/msk/if_msk.c /usr/src/sys/dev/msk/if_mskreg.h /usr/src/sys/dev/mii/miidevs /usr/src/sys/dev/mii/e1000phy.c /usr/src/sys/dev/mii/e1000phyreg.c --2fHTh5uZTiUOsy+g Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="msk.88E8057.diff" Index: sys/dev/msk/if_msk.c =================================================================== --- sys/dev/msk/if_msk.c (revision 198453) +++ sys/dev/msk/if_msk.c (working copy) @@ -221,6 +221,8 @@ "Marvell Yukon 88E8071 Gigabit Ethernet" }, { VENDORID_MARVELL, DEVICEID_MRVL_436C, "Marvell Yukon 88E8072 Gigabit Ethernet" }, + { VENDORID_MARVELL, DEVICEID_MRVL_4380, + "Marvell Yukon 88E8057 Gigabit Ethernet" }, { VENDORID_DLINK, DEVICEID_DLINK_DGE550SX, "D-Link 550SX Gigabit Ethernet" }, { VENDORID_DLINK, DEVICEID_DLINK_DGE560SX, @@ -235,7 +237,9 @@ "Yukon EX", "Yukon EC", "Yukon FE", - "Yukon FE+" + "Yukon FE+", + "Yukon Supreme", + "Yukon Ultra 2" }; static int mskc_probe(device_t); @@ -1142,6 +1146,7 @@ case CHIP_ID_YUKON_EC_U: case CHIP_ID_YUKON_EX: case CHIP_ID_YUKON_FE_P: + case CHIP_ID_YUKON_UL_2: CSR_WRITE_2(sc, B0_CTST, Y2_HW_WOL_OFF); /* Enable all clocks. */ @@ -1744,6 +1749,10 @@ sc->msk_clock = 156; /* 156 Mhz */ sc->msk_pflags |= MSK_FLAG_JUMBO; break; + case CHIP_ID_YUKON_UL_2: + sc->msk_clock = 156; /* 156 Mhz */ + sc->msk_pflags |= MSK_FLAG_JUMBO; + break; default: sc->msk_clock = 156; /* 156 Mhz */ break; Index: sys/dev/msk/if_mskreg.h =================================================================== --- sys/dev/msk/if_mskreg.h (revision 198453) +++ sys/dev/msk/if_mskreg.h (working copy) @@ -143,6 +143,7 @@ #define DEVICEID_MRVL_436A 0x436A #define DEVICEID_MRVL_436B 0x436B #define DEVICEID_MRVL_436C 0x436C +#define DEVICEID_MRVL_4380 0x4380 /* * D-Link gigabit ethernet device ID @@ -890,6 +891,8 @@ #define CHIP_ID_YUKON_EC 0xb6 /* Chip ID for YUKON-2 EC */ #define CHIP_ID_YUKON_FE 0xb7 /* Chip ID for YUKON-2 FE */ #define CHIP_ID_YUKON_FE_P 0xb8 /* Chip ID for YUKON-2 FE+ */ +#define CHIP_ID_YUKON_SUPR 0xb9 /* Chip ID for YUKON-2 Supreme */ +#define CHIP_ID_YUKON_UL_2 0xba /* Chip ID for YUKON-2 Ultra 2 */ #define CHIP_REV_YU_XL_A0 0 /* Chip Rev. for Yukon-2 A0 */ #define CHIP_REV_YU_XL_A1 1 /* Chip Rev. for Yukon-2 A1 */ --2fHTh5uZTiUOsy+g--