From owner-freebsd-current@FreeBSD.ORG Thu Dec 14 00:40:06 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D09C616A4C8 for ; Thu, 14 Dec 2006 00:40:06 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F3DC43D3F for ; Thu, 14 Dec 2006 00:38:10 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so117524ana for ; Wed, 13 Dec 2006 16:39:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=PQKylmMLBrNS3piKStLHHXjpftXgYkMbtGtkDkm6OuPoM7NVlfzQTGPiBy7kYMyDTHjWV19LZbfrsqNLBKWhfMTRzNizl/YKcW4qErbd0YZQ4/vlpY8YTGnPi7e9Uzs9OMKHZJ7Y/MaLwVBM5ES/gOtHhluq6HqAwmv1EPgBQfM= Received: by 10.100.139.9 with SMTP id m9mr294606and.1166056781833; Wed, 13 Dec 2006 16:39:41 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id 7sm2182108wrh.2006.12.13.16.39.39; Wed, 13 Dec 2006 16:39:40 -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 kBE0dEsl020634 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 14 Dec 2006 09:39:14 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id kBE0dEdm020633; Thu, 14 Dec 2006 09:39:14 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 14 Dec 2006 09:39:14 +0900 From: Pyun YongHyeon To: Pascal Hofstee Message-ID: <20061214003914.GB20386@cdnetworks.co.kr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: FreeBSD Current Subject: Re: D-Link DGE-350T and if_sk (no go) 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, 14 Dec 2006 00:40:06 -0000 On Wed, Dec 13, 2006 at 10:59:53PM +0100, Pascal Hofstee wrote: > I just acquired a new shiny D-Link DGE-350T (which according to sk(4) > is supported by FreeBSD) but unfortunately had to come to the > conclusion that i cannot get this card to actually send/receive any > actual packets. > > The device probes, attached and comes up perfectly, auto-negotiation > (properly) chooses 1000baseTX full-duplex and after that the device is > basically dead .. i can't get it to produce any actual traffic. > > Below is verbose dmesg output with ACPI disabled .. as i was unable to > get the desired info with ACPI enabled (because of a ACPI bad write > output storm) > > If anybody has any ideas on how to resolve this problem i am open for > suggestions and willing to test patches. > > ----[dmesg output]-------- > Copyright (c) 1992-2006 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.0-CURRENT #9: Tue Dec 12 13:42:43 CET 2006 > pascal@chekov.ufp.fli4l:/usr/obj/usr/src/sys/CHEKOV > Preloaded elf kernel "/boot/kernel/kernel" at 0xc0cde000. > Preloaded elf module "/boot/kernel/snd_emu10k1.ko" at 0xc0cde158. > Preloaded elf module "/boot/kernel/sound.ko" at 0xc0cde208. > Preloaded elf module "/boot/kernel/cpufreq.ko" at 0xc0cde2b4. > Calibrating clock(s) ... i8254 clock: 1193224 Hz > CLK_USE_I8254_CALIBRATION not specified - using default frequency > Timecounter "i8254" frequency 1193182 Hz quality 0 > Calibrating TSC clock ... TSC clock: 902052593 Hz > CPU: Intel Pentium III (902.05-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x686 Stepping = 6 > Features=0x383f9ff [...] > found-> vendor=0x1186, dev=0x4b01, revid=0x11 It looks like second generation DGE-530T. > bus=0, slot=9, func=0 > class=02-00-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0017, statreg=0x02b0, cachelnsz=8 (dwords) > lattimer=0x20 (960 ns), mingnt=0x17 (5750 ns), maxlat=0x1f (7750 ns) > intpin=a, irq=5 > powerspec 2 supports D0 D1 D2 D3 current D0 > VPD Ident: DGE-530T Gigabit Ethernet Adapter > PN: DGE-530T > EC: Rev. 1.1 > MN: D-Link > SN: DGE530TBCD870 > CP: id 1, BAR16, off 0x3cc > RV: 0x99 > map[10]: type 1, range 32, base 0xde000000, size 14, enabled > map[14]: type 4, range 32, base 0xa800, size 8, enabled [...] > skc0: port 0xa800-0xa8ff mem > 0xde000000-0xde003fff irq 5 at device 9.0 on pci0 > skc0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xde000000 > skc0: interrupt moderation is 100 us > skc0: DGE-530T Gigabit Ethernet Adapter rev. (0x9) > skc0: chip ver = 0xb1 > skc0: chip rev = 0x09 > skc0: SK_EPROM0 = 0x10 > skc0: SRAM size = 0x010000 > sk0: on skc0 > sk0: using obsoleted if_watchdog interface > sk0: bpf attached > sk0: Ethernet address: 00:17:9a:bc:d8:70 > miibus0: on sk0 > e1000phy0: on miibus0 > e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, > auto > skc0: [MPSAFE] If Tx side doesn't work at all it would show watchdog timeout message. Did you see that? If Rx doesn't work you wouldn't see interrupts on your NIC. Running a ping(8) on the other host to a system with sk(4) and watch interrupts section in "systat -vmstat 1" output. -- Regards, Pyun YongHyeon