From owner-freebsd-current@FreeBSD.ORG Sun Oct 21 17:26:59 2007 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 5B2E916A417 for ; Sun, 21 Oct 2007 17:26:59 +0000 (UTC) (envelope-from john_m_cooper@yahoo.com) Received: from smtp108.plus.mail.sp1.yahoo.com (smtp108.plus.mail.sp1.yahoo.com [69.147.95.71]) by mx1.freebsd.org (Postfix) with SMTP id 4AAE113C4BF for ; Sun, 21 Oct 2007 17:26:59 +0000 (UTC) (envelope-from john_m_cooper@yahoo.com) Received: (qmail 30470 invoked from network); 21 Oct 2007 07:05:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=fAYbJbXAqkK2wJBCC1PIJMsTwXL18p0sMYF77AlvOTrmrkKQ89jNlnPQ26yUQF9JhOedIdSWRC5MtSEUvQiG7ZbUYlGqyjIC76XWRsowRb1/SkFya+fRk4NqeijY2kZjyNCgA9nmSWqbLsfDpQpnnLWn8LmwCm4iAqhfa0ucB50= ; Received: from unknown (HELO borgdemon3.temp.wsu.edu) (john_m_cooper@134.121.244.74 with plain) by smtp108.plus.mail.sp1.yahoo.com with SMTP; 21 Oct 2007 07:05:45 -0000 X-YMail-OSG: kjWd_XIVM1nE4j7R9jnQYIziYh1AwoMS0YGbw2uV90IMhGdV9bY8_HvDrryer5ZpaG1RnmCDnr4mMSFqr5_BqdT5SXFIY0gkg8dMcnwPnnR54joysfOQd4At_YDt Message-ID: <471AFA46.4010008@yahoo.com> Date: Sun, 21 Oct 2007 00:05:42 -0700 From: John Merryweather Cooper User-Agent: Thunderbird 2.0.0.4pre (X11/20071013) MIME-Version: 1.0 To: Weongyo Jeong References: <200708301414.l7UEEMSi004166@omval.tednet.nl> <20071020074740.GA65090@freebsd.weongyo.org> In-Reply-To: <20071020074740.GA65090@freebsd.weongyo.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Ted Lindgreen , freebsd-current@freebsd.org, Warner Losh Subject: Re: [Bulk] Re: New if_zyd driver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2007 17:26:59 -0000 Weongyo Jeong wrote: > On Thu, Aug 30, 2007 at 04:14:22PM +0200, Ted Lindgreen wrote: > [... snipped ...] > >> However, the stick needs to be inserted after booting up. Then I can >> also remove the stick without ill effects (for logmessages see below). >> >> When the stick is present during boot, the log shows: >> Aug 30 15:25:17 lapje kernel: zyd0: on uhub4 >> Aug 30 15:25:17 lapje kernel: zyd0: setting config no failed >> > [... snipped ...] > > Hello Ted, > > I send you a patch which is attached with this email to fix a reset > problem of the zyd driver when we reboot. > > In my environment, this patch was worked. Would you please test this > patch and send me results? I hope it works. :-) > > Regards, > Weongyo Jeong > > > ------------------------------------------------------------------------ > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Well, the patch applies cleanly and builds on an amd64: Copyright (c) 1992-2007 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-BETA1 #16: Sat Oct 20 14:58:28 PDT 2007 root@borgdemon3.temp.wsu.edu:/usr/obj/usr/src/sys/TURION Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-64 (2210.07-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x60f81 Stepping = 1 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x11f Cores per package: 2 . . . . zyd0: on uhub1 zyd0: HMAC ZD1211B, FW 47.25, RF AL2230, PA 0, address 00:17:3f:b0:d4:97 zyd0: Ethernet address: 00:17:3f:b0:d4:97 zyd0: if_start running deferred for Giant I realize that the patch wasn't designed to fix my problem (locking up when zyd0 is on a moderate load--like cvsup'ing). Nevertheless, here's what kgdb has to say: jcooper@borgdemon3$ sudo kgdb kernel.debug /var/crash/vmcore.9 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd". Unread portion of the kernel message buffer: zyd0: could not transmit buffer: SHORT_XFER Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x2734 fault code = supervisor write data, page not present instruction pointer = 0x8:0xffffffff808a94fa stack pointer = 0x10:0xffffffffab8dfaf0 frame pointer = 0x10:0xffffffffab8dfb30 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 23 (irq22: ohci0 ehci0) trap number = 12 panic: page fault cpuid = 1 Uptime: 8m38s Physical memory: 1973 MB Dumping 233 MB: 218 202 186 170 154 138 122 106 90 74 58 42 26 10 #0 doadump () at pcpu.h:194 194 __asm __volatile("movq %%gs:0,%0" : "=r" (td)); (kgdb) ------- jmc