From owner-freebsd-drivers@FreeBSD.ORG Mon Sep 26 14:00:59 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDDE4106564A; Mon, 26 Sep 2011 14:00:59 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C3FD68FC14; Mon, 26 Sep 2011 14:00:59 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 76C9C46B0C; Mon, 26 Sep 2011 10:00:59 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 1BBB68A03C; Mon, 26 Sep 2011 10:00:59 -0400 (EDT) From: John Baldwin To: freebsd-drivers@freebsd.org Date: Mon, 26 Sep 2011 09:30:39 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <75E1A2A7D185F841A975979B0906BBA67BCCAB7609@AVEXMB1.qlogic.org> <201109222007.19182.hselasky@c2i.net> <1316791266.39972.3.camel@buffy.york.ac.uk> In-Reply-To: <1316791266.39972.3.camel@buffy.york.ac.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109260930.39309.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 26 Sep 2011 10:00:59 -0400 (EDT) Cc: freebsd-current@freebsd.org, Gavin Atkinson , Hans Petter Selasky Subject: Re: Choosing between DELAY(useconds) and pause() X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 14:01:00 -0000 On Friday, September 23, 2011 11:21:06 am Gavin Atkinson wrote: > On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrote: > > On Thursday 22 September 2011 19:55:23 David Somayajulu wrote: > > > It appears that the pause() function cannot be used in driver functions > > > which are invoked early in the boot process. Is there is a kernel api > > > which a device driver can use to determine whether to use pause() or > > > DELAY(), for delays which are say greater than 10hz - may be even 1 hz ? > > > > Maybe you want to use something like this: > > > > if (cold) > > DELAY() > > else > > pause() > > > > In your code. > > Note that this still shouldn't be done in your suspend/resume paths, as > "cold" isn't set there, however there also appears to be no guarantee > that pause() will ever return (as you could be running after the timer > has been suspended, or before it resumes). > > I'm not sure what the correct answer is for suspend/resume code. Hmmm, on x86 the timers are explicitly shutdown after the DEVICE_SUSPEND() pass over the tree and re-enabled before DEVICE_RESUME(). Perhaps this has changed in HEAD though with the eventtimers stuff. I do think it is best however, to use DELAY() in the suspend/resume path always regardless. -- John Baldwin From owner-freebsd-drivers@FreeBSD.ORG Mon Sep 26 14:54:11 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39132106564A for ; Mon, 26 Sep 2011 14:54:11 +0000 (UTC) (envelope-from nitw.satish@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 183508FC13 for ; Mon, 26 Sep 2011 14:54:10 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R8CJI-0004xK-8N for freebsd-drivers@freebsd.org; Mon, 26 Sep 2011 07:37:32 -0700 Date: Mon, 26 Sep 2011 07:37:32 -0700 (PDT) From: satish kondapalli To: freebsd-drivers@freebsd.org Message-ID: <1317047852252-4841580.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: one question on mutex. X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 14:54:11 -0000 I declared one test mutex in my char module: struct mtx test_mutex; Initialized the above mutex while module loading: mtx_init(&test_mutex,"cdev_test_mutex",NULL,MTX_DEF); and in charter device open() function I called mtx_lock() twice. mtx_lock(&test_mutex); mtx_lock(&test_mutex); Here my question is why the kernel is not blocking on second call of mtx_lock() ? Here i initilaized my mutex type as MTX_DEF. All default MTX_DEF are recursive? (then what is MTX_RECURSE ). -- View this message in context: http://freebsd.1045724.n5.nabble.com/one-question-on-mutex-tp4841580p4841580.html Sent from the freebsd-drivers mailing list archive at Nabble.com. From owner-freebsd-drivers@FreeBSD.ORG Mon Sep 26 20:02:40 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 877A2106566C; Mon, 26 Sep 2011 20:02:40 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id 3176A8FC0C; Mon, 26 Sep 2011 20:02:40 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8H2H-0001V4-Jl; Mon, 26 Sep 2011 21:40:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 26 Sep 2011 21:40:08 +0200 From: "crsnet.pl" To: In-Reply-To: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> Message-ID: X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: X-Spam-Status: No, score=-0.4 required=7.0 tests=ALL_TRUSTED,BAYES_00, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-drivers@freebsd.org, freebsd-hardware@freebsd.org Subject: FreeBSD 9-Beta3 on X300 problems. X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 20:02:40 -0000 Hello. I upgrade my FreeBSD 8.2-Release to FreeBSD 9-Beta and pkg_delete -f -a and add new (that same) pkgs with pkg_add. And system, xorgs, wine, opera, java, flash works ok, but... I find two things that dont works ;/ 1. Suspend. On FreeBSD 8.2 when i make ifconfig wlan0 down, and use zzz from X.org all works. Suspend/resume. Now when i make this same, system go to console and suspend. When i try to resume. System show console, but when i try to press ALT+F9 i get long beeep and system hang ;/ I found on Google that i can try, to make uhci as a module, and first unload it, and then suspend system. But when i try to kldload uhci system go to dbg and hangs ;/ 2. Kadu/Gnu Gadu. I dont know why, but when i run kadu / gnu gadu and try to connect to Gadu-Gadu network software segments ;/ Kadu with signal 6, GnuGadu with signal 11. I try to use old gadulib, or recompie it. But this doesn't help ;/ [cr4sh@x300 ~]$ uname -a FreeBSD x300 9.0-BETA3 FreeBSD 9.0-BETA3 #2: Mon Sep 26 00:25:30 CEST 2011 cr4sh@x300:/sys/amd64/compile/GENERIC amd64 Regards. From owner-freebsd-drivers@FreeBSD.ORG Mon Sep 26 20:03:27 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87174106566B; Mon, 26 Sep 2011 20:03:27 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id 3014D8FC13; Mon, 26 Sep 2011 20:03:27 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8Gvg-0001U9-CG; Mon, 26 Sep 2011 21:33:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 26 Sep 2011 21:33:18 +0200 From: "crsnet.pl" To: In-Reply-To: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> Message-ID: <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: X-Spam-Status: No, score=-0.4 required=7.0 tests=ALL_TRUSTED,BAYES_00, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-drivers@freebsd.org, freebsd-hardware@freebsd.org Subject: FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 20:03:27 -0000 Hello. I upgrade my FreeBSD 8.2-Release to FreeBSD 9-Beta and pkg_delete -f -a and add new (that same) pkgs with pkg_add. And system, xorgs, wine, opera, java, flash works ok, but... I find two things that dont works ;/ 1. Suspend. On FreeBSD 8.2 when i make ifconfig wlan0 down, and use zzz from X.org all works. Suspend/resume. Now when i make this same, system go to console and suspend. When i try to resume. System show console, but when i try to press ALT+F9 i get long beeep and system hang ;/ I found on Google that i can try, to make uhci as a module, and first unload it, and then suspend system. But when i try to kldload uhci system go to dbg and hangs ;/ 2. Kadu/Gnu Gadu. I dont know why, but when i run kadu / gnu gadu and try to connect to Gadu-Gadu network software segments ;/ Kadu with signal 6, GnuGadu with signal 11. I try to use old gadulib, or recompie it. But this doesn't help ;/ [cr4sh@x300 ~]$ uname -a FreeBSD x300 9.0-BETA3 FreeBSD 9.0-BETA3 #2: Mon Sep 26 00:25:30 CEST 2011 cr4sh@x300:/sys/amd64/compile/GENERIC amd64 Regards. From owner-freebsd-drivers@FreeBSD.ORG Mon Sep 26 20:13:46 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C2AD106566C; Mon, 26 Sep 2011 20:13:46 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from core.impulsive.hu (core.impulsive.hu [79.172.194.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2760D8FC12; Mon, 26 Sep 2011 20:13:45 +0000 (UTC) Received: by core.impulsive.hu (Postfix, from userid 143) id D229FDC0E0; Mon, 26 Sep 2011 20:07:00 +0000 (UTC) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by core.impulsive.hu (Postfix) with ESMTP id 7CEFDDC0AE for ; Mon, 26 Sep 2011 20:06:59 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 84AD81A62E6; Mon, 26 Sep 2011 20:03:40 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 9C4FB10656D0; Mon, 26 Sep 2011 20:03:39 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87174106566B; Mon, 26 Sep 2011 20:03:27 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id 3014D8FC13; Mon, 26 Sep 2011 20:03:27 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8Gvg-0001U9-CG; Mon, 26 Sep 2011 21:33:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 26 Sep 2011 21:33:18 +0200 From: "crsnet.pl" To: In-Reply-To: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> Message-ID: <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: X-Spam-Status: No, score=-0.4 required=7.0 tests=ALL_TRUSTED,BAYES_00, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-drivers@freebsd.org, freebsd-hardware@freebsd.org Subject: FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 20:13:46 -0000 Hello. I upgrade my FreeBSD 8.2-Release to FreeBSD 9-Beta and pkg_delete -f -a and add new (that same) pkgs with pkg_add. And system, xorgs, wine, opera, java, flash works ok, but... I find two things that dont works ;/ 1. Suspend. On FreeBSD 8.2 when i make ifconfig wlan0 down, and use zzz from X.org all works. Suspend/resume. Now when i make this same, system go to console and suspend. When i try to resume. System show console, but when i try to press ALT+F9 i get long beeep and system hang ;/ I found on Google that i can try, to make uhci as a module, and first unload it, and then suspend system. But when i try to kldload uhci system go to dbg and hangs ;/ 2. Kadu/Gnu Gadu. I dont know why, but when i run kadu / gnu gadu and try to connect to Gadu-Gadu network software segments ;/ Kadu with signal 6, GnuGadu with signal 11. I try to use old gadulib, or recompie it. But this doesn't help ;/ [cr4sh@x300 ~]$ uname -a FreeBSD x300 9.0-BETA3 FreeBSD 9.0-BETA3 #2: Mon Sep 26 00:25:30 CEST 2011 cr4sh@x300:/sys/amd64/compile/GENERIC amd64 Regards. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Mon Sep 26 20:18:47 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DEC71065670; Mon, 26 Sep 2011 20:18:47 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from core.impulsive.hu (core.impulsive.hu [79.172.194.2]) by mx1.freebsd.org (Postfix) with ESMTP id B8C8C8FC19; Mon, 26 Sep 2011 20:18:46 +0000 (UTC) Received: by core.impulsive.hu (Postfix, from userid 143) id A067BDC0BA; Mon, 26 Sep 2011 20:04:14 +0000 (UTC) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by core.impulsive.hu (Postfix) with ESMTP id 680CBDC0AE for ; Mon, 26 Sep 2011 20:04:12 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 1F9EC1549E8; Mon, 26 Sep 2011 20:02:50 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 6A4CE10656B0; Mon, 26 Sep 2011 20:02:49 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 877A2106566C; Mon, 26 Sep 2011 20:02:40 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id 3176A8FC0C; Mon, 26 Sep 2011 20:02:40 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8H2H-0001V4-Jl; Mon, 26 Sep 2011 21:40:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 26 Sep 2011 21:40:08 +0200 From: "crsnet.pl" To: In-Reply-To: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> Message-ID: X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: X-Spam-Status: No, score=-0.4 required=7.0 tests=ALL_TRUSTED,BAYES_00, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-drivers@freebsd.org, freebsd-hardware@freebsd.org Subject: FreeBSD 9-Beta3 on X300 problems. X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 20:18:47 -0000 Hello. I upgrade my FreeBSD 8.2-Release to FreeBSD 9-Beta and pkg_delete -f -a and add new (that same) pkgs with pkg_add. And system, xorgs, wine, opera, java, flash works ok, but... I find two things that dont works ;/ 1. Suspend. On FreeBSD 8.2 when i make ifconfig wlan0 down, and use zzz from X.org all works. Suspend/resume. Now when i make this same, system go to console and suspend. When i try to resume. System show console, but when i try to press ALT+F9 i get long beeep and system hang ;/ I found on Google that i can try, to make uhci as a module, and first unload it, and then suspend system. But when i try to kldload uhci system go to dbg and hangs ;/ 2. Kadu/Gnu Gadu. I dont know why, but when i run kadu / gnu gadu and try to connect to Gadu-Gadu network software segments ;/ Kadu with signal 6, GnuGadu with signal 11. I try to use old gadulib, or recompie it. But this doesn't help ;/ [cr4sh@x300 ~]$ uname -a FreeBSD x300 9.0-BETA3 FreeBSD 9.0-BETA3 #2: Mon Sep 26 00:25:30 CEST 2011 cr4sh@x300:/sys/amd64/compile/GENERIC amd64 Regards. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Mon Sep 26 22:55:04 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08463106566B; Mon, 26 Sep 2011 22:55:04 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id A24658FC08; Mon, 26 Sep 2011 22:55:03 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8KBj-00021d-CH; Tue, 27 Sep 2011 01:03:03 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 27 Sep 2011 01:02:05 +0200 From: "crsnet.pl" To: "crsnet.pl" In-Reply-To: References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> Message-ID: <197309bc0de84aac7621d5c5a5d9e4d2@i-pi.pl> X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: X-Spam-Status: No, score=-0.4 required=7.0 tests=ALL_TRUSTED,BAYES_00, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) Cc: freebsd-hardware@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 problems. X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 22:55:04 -0000 > 2. Kadu/Gnu Gadu. > I dont know why, but when i run kadu / gnu gadu and try to connect to > Gadu-Gadu network software segments ;/ > Kadu with signal 6, GnuGadu with signal 11. > I try to use old gadulib, or recompie it. But this doesn't help ;/ I run portmaster -y --no-confirm --packages-if-newer -m 'BATCH=yes' -d -a And... its works;) > > [cr4sh@x300 ~]$ uname -a > FreeBSD x300 9.0-BETA3 FreeBSD 9.0-BETA3 #2: Mon Sep 26 00:25:30 CEST > 2011 cr4sh@x300:/sys/amd64/compile/GENERIC amd64 > > Regards. From owner-freebsd-drivers@FreeBSD.ORG Mon Sep 26 22:56:21 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ADA91065678; Mon, 26 Sep 2011 22:56:21 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from core.impulsive.hu (core.impulsive.hu [79.172.194.2]) by mx1.freebsd.org (Postfix) with ESMTP id 33D3B8FC1B; Mon, 26 Sep 2011 22:56:20 +0000 (UTC) Received: by core.impulsive.hu (Postfix, from userid 143) id E6A0FDC0BA; Mon, 26 Sep 2011 22:57:07 +0000 (UTC) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by core.impulsive.hu (Postfix) with ESMTP id AF936DC0B6 for ; Mon, 26 Sep 2011 22:57:05 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 4E127163EC9; Mon, 26 Sep 2011 22:55:24 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id B64AF10656F4; Mon, 26 Sep 2011 22:55:23 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08463106566B; Mon, 26 Sep 2011 22:55:04 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id A24658FC08; Mon, 26 Sep 2011 22:55:03 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8KBj-00021d-CH; Tue, 27 Sep 2011 01:03:03 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 27 Sep 2011 01:02:05 +0200 From: "crsnet.pl" To: "crsnet.pl" In-Reply-To: References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> Message-ID: <197309bc0de84aac7621d5c5a5d9e4d2@i-pi.pl> X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: X-Spam-Status: No, score=-0.4 required=7.0 tests=ALL_TRUSTED,BAYES_00, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-drivers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 problems. X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 22:56:21 -0000 > 2. Kadu/Gnu Gadu. > I dont know why, but when i run kadu / gnu gadu and try to connect to > Gadu-Gadu network software segments ;/ > Kadu with signal 6, GnuGadu with signal 11. > I try to use old gadulib, or recompie it. But this doesn't help ;/ I run portmaster -y --no-confirm --packages-if-newer -m 'BATCH=yes' -d -a And... its works;) > > [cr4sh@x300 ~]$ uname -a > FreeBSD x300 9.0-BETA3 FreeBSD 9.0-BETA3 #2: Mon Sep 26 00:25:30 CEST > 2011 cr4sh@x300:/sys/amd64/compile/GENERIC amd64 > > Regards. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 00:24:19 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97153106564A; Tue, 27 Sep 2011 00:24:19 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from core.impulsive.hu (core.impulsive.hu [79.172.194.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2E06E8FC1D; Tue, 27 Sep 2011 00:24:18 +0000 (UTC) Received: by core.impulsive.hu (Postfix, from userid 143) id 1DF2CDC0BA; Tue, 27 Sep 2011 00:25:06 +0000 (UTC) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by core.impulsive.hu (Postfix) with ESMTP id D8FABDC0B6 for ; Tue, 27 Sep 2011 00:25:04 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 1B621155D49; Tue, 27 Sep 2011 00:21:49 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 267AA10657CF; Tue, 27 Sep 2011 00:21:45 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC8C91065676; Tue, 27 Sep 2011 00:21:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 336628FC08; Tue, 27 Sep 2011 00:21:23 +0000 (UTC) Received: by ywp17 with SMTP id 17so6109356ywp.13 for ; Mon, 26 Sep 2011 17:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ZVLN4mDnVwgtnyWUJPcUk+W73pJxL1GLzHXi0G6kv1o=; b=iMlvDelLFr1s6mCCcS/djCM982JVBP3X4+i3y3QRiIRELEhdGZIq8TFi1zyW0ID0kS TEDj6SGO4CdVVkn8JnDh8eUkvqBIGDtf1FCs6tyYx6KYhjmBNC5FslgjuRxWzn+5RWFb RfCX6EQjwNGM88Y22oAwBdTsJn/aG46iBmflw= MIME-Version: 1.0 Received: by 10.236.129.165 with SMTP id h25mr43444676yhi.38.1317082883541; Mon, 26 Sep 2011 17:21:23 -0700 (PDT) Received: by 10.236.111.42 with HTTP; Mon, 26 Sep 2011 17:21:23 -0700 (PDT) In-Reply-To: <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> Date: Tue, 27 Sep 2011 08:21:23 +0800 X-Google-Sender-Auth: -km5kEvLshC-VB1-ZiMmNY5b4X0 Message-ID: From: Adrian Chadd To: "crsnet.pl" Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-drivers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 00:24:19 -0000 Hi, Please try to do this without wlan loaded at all (not just down, but build your wifi support as a module.) Then try without X, see whether it's related to that or not. (And you haven't told us what your hardware is.) Adrian _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 00:32:42 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id D292F106564A; Tue, 27 Sep 2011 00:32:42 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id F0D2715FCFE; Tue, 27 Sep 2011 00:32:03 +0000 (UTC) Message-ID: <4E811983.8030707@FreeBSD.org> Date: Mon, 26 Sep 2011 17:32:03 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110912 Thunderbird/6.0.2 MIME-Version: 1.0 To: "crsnet.pl" References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <197309bc0de84aac7621d5c5a5d9e4d2@i-pi.pl> In-Reply-To: <197309bc0de84aac7621d5c5a5d9e4d2@i-pi.pl> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 problems. X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 00:32:43 -0000 On 09/26/2011 16:02, crsnet.pl wrote: > >> 2. Kadu/Gnu Gadu. >> I dont know why, but when i run kadu / gnu gadu and try to connect to >> Gadu-Gadu network software segments ;/ >> Kadu with signal 6, GnuGadu with signal 11. >> I try to use old gadulib, or recompie it. But this doesn't help ;/ > > I run portmaster -y --no-confirm --packages-if-newer -m 'BATCH=yes' -d -a The -y option is meaningless in that context, FYI. > And... its works;) I'm glad to hear that at least. :) -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 00:35:02 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB3EE106564A; Tue, 27 Sep 2011 00:35:02 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from core.impulsive.hu (core.impulsive.hu [79.172.194.2]) by mx1.freebsd.org (Postfix) with ESMTP id 472FE8FC1F; Tue, 27 Sep 2011 00:35:02 +0000 (UTC) Received: by core.impulsive.hu (Postfix, from userid 143) id 796F1DC0BA; Tue, 27 Sep 2011 00:35:49 +0000 (UTC) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by core.impulsive.hu (Postfix) with ESMTP id 3F72CDC0B6 for ; Tue, 27 Sep 2011 00:35:47 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 6BB341A6380; Tue, 27 Sep 2011 00:32:56 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 2E3A610656A5; Tue, 27 Sep 2011 00:32:56 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id D292F106564A; Tue, 27 Sep 2011 00:32:42 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id F0D2715FCFE; Tue, 27 Sep 2011 00:32:03 +0000 (UTC) Message-ID: <4E811983.8030707@FreeBSD.org> Date: Mon, 26 Sep 2011 17:32:03 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110912 Thunderbird/6.0.2 MIME-Version: 1.0 To: "crsnet.pl" References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <197309bc0de84aac7621d5c5a5d9e4d2@i-pi.pl> In-Reply-To: <197309bc0de84aac7621d5c5a5d9e4d2@i-pi.pl> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-hardware@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-drivers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 problems. X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 00:35:02 -0000 On 09/26/2011 16:02, crsnet.pl wrote: > >> 2. Kadu/Gnu Gadu. >> I dont know why, but when i run kadu / gnu gadu and try to connect to >> Gadu-Gadu network software segments ;/ >> Kadu with signal 6, GnuGadu with signal 11. >> I try to use old gadulib, or recompie it. But this doesn't help ;/ > > I run portmaster -y --no-confirm --packages-if-newer -m 'BATCH=yes' -d -a The -y option is meaningless in that context, FYI. > And... its works;) I'm glad to hear that at least. :) -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 00:44:16 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEF9B1065672; Tue, 27 Sep 2011 00:44:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 61E5B8FC0A; Tue, 27 Sep 2011 00:44:16 +0000 (UTC) Received: by yia13 with SMTP id 13so6113587yia.13 for ; Mon, 26 Sep 2011 17:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ZVLN4mDnVwgtnyWUJPcUk+W73pJxL1GLzHXi0G6kv1o=; b=iMlvDelLFr1s6mCCcS/djCM982JVBP3X4+i3y3QRiIRELEhdGZIq8TFi1zyW0ID0kS TEDj6SGO4CdVVkn8JnDh8eUkvqBIGDtf1FCs6tyYx6KYhjmBNC5FslgjuRxWzn+5RWFb RfCX6EQjwNGM88Y22oAwBdTsJn/aG46iBmflw= MIME-Version: 1.0 Received: by 10.236.129.165 with SMTP id h25mr43444676yhi.38.1317082883541; Mon, 26 Sep 2011 17:21:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Mon, 26 Sep 2011 17:21:23 -0700 (PDT) In-Reply-To: <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> Date: Tue, 27 Sep 2011 08:21:23 +0800 X-Google-Sender-Auth: -km5kEvLshC-VB1-ZiMmNY5b4X0 Message-ID: From: Adrian Chadd To: "crsnet.pl" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hardware@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 00:44:16 -0000 Hi, Please try to do this without wlan loaded at all (not just down, but build your wifi support as a module.) Then try without X, see whether it's related to that or not. (And you haven't told us what your hardware is.) Adrian From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 10:11:18 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 048891065677; Tue, 27 Sep 2011 10:11:18 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5158FC16; Tue, 27 Sep 2011 10:11:17 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8UkF-0005jQ-2m; Tue, 27 Sep 2011 12:19:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 27 Sep 2011 12:18:25 +0200 From: "crsnet.pl" To: Adrian Chadd In-Reply-To: References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> Message-ID: <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl> X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=7.0 tests=ALL_TRUSTED,BAYES_50, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) Cc: freebsd-hardware@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 10:11:18 -0000 > Hi, Hello, thanks for reply. > > Please try to do this without wlan loaded at all (not just down, but > build your wifi support as a module.) > Then try without X, see whether it's related to that or not. > First i make kldunload if_iwn. When i try to suspend from X, Xorg close, i see console and laptop suspend. When i resume it, i get console (any key dosent work), when i try to ALT+F9 i get black screen and beep;/ But when i try to suspen from console. I get : pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP0: AE_BAD_PARAMETER pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP1: AE_BAD_PARAMETER pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP2: AE_BAD_PARAMETER And laptop suspend, when i resume it. He hangs when i press any buttons it does nothing. And than i see on console that info : ugen0.2: ... disconnected ugen4.2: ... disconnected ubt0: at uhub0 ... disconnected then i see this presed lethers and acpi0: suspend request ignored (not ready yet) and laptops langs and beep ;/ > (And you haven't told us what your hardware is.) #dmesg (+WITNESS) Copyright (c) 1992-2011 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 9.0-BETA3 #3: Tue Sep 27 10:47:57 CEST 2011 cr4sh@x300:/sys/amd64/compile/GENERIC amd64 WARNING: WITNESS option enabled, expect reduced performance. CPU: Intel(R) Core(TM)2 Duo CPU L7100 @ 1.20GHz (1197.03-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x6fb Family = 6 Model = f Stepping = 11 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 2147483648 (2048 MB) avail memory = 2019139584 (1925 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32 (20110527/tbfadt-556) ACPI Warning: Optional field Gpe1Block has zero address or length: 0x000000000000102C/0x0 (20110527/tbfadt-586) ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard CPU0: local APIC error 0x40 acpi_ec0: port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7ef00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x1800-0x1807 mem 0xfa000000-0xfa0fffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: aperture size is 256M, detected 7676k stolen memory vgapci1: mem 0xfa100000-0xfa1fffff at device 2.1 on pci0 pci0: at device 3.0 (no driver attached) atapci0: port 0x1828-0x182f,0x180c-0x180f,0x1820-0x1827,0x1808-0x180b,0x1810-0x181f irq 18 at device 3.2 on pci0 ata2: on atapci0 ata3: on atapci0 pci0: at device 3.3 (no driver attached) em0: port 0x1840-0x185f mem 0xfa200000-0xfa21ffff,0xfa225000-0xfa225fff irq 20 at device 25.0 o n pci0 em0: Using an MSI interrupt acquiring duplicate lock of same type: "network driver" 1st &dev_spec->swflag_mutex @ dev/e1000/e1000_ich8lan.c:785 2nd &dev_spec->nvm_mutex @ dev/e1000/e1000_ich8lan.c:751 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x37 _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x8de _mtx_lock_flags() at _mtx_lock_flags+0x79 e1000_acquire_nvm_ich8lan() at e1000_acquire_nvm_ich8lan+0x1e e1000_read_nvm_ich8lan() at e1000_read_nvm_ich8lan+0x76 e1000_post_phy_reset_ich8lan() at e1000_post_phy_reset_ich8lan+0x1b1 e1000_reset_hw_ich8lan() at e1000_reset_hw_ich8lan+0x4c1 em_attach() at em_attach+0x11bd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x14f device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x231 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0xbc5 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a nexus_acpi_attach() at nexus_acpi_attach+0x69 device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd6 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x77 btext() at btext+0x2c em0: Ethernet address: 00:21:86:58:72:d9 uhci0: port 0x1860-0x187f irq 20 at device 26.0 on pci0 usbus0: on uhci0 uhci1: port 0x1880-0x189f irq 21 at device 26.1 on pci0 usbus1: on uhci1 ehci0: mem 0xfa426c00-0xfa426fff irq 22 at device 26.7 on pci0 usbus2: EHCI version 1.0 usbus2: on ehci0 hdac0: mem 0xfa220000-0xfa223fff irq 17 at device 27.0 on pci0 pcib1: irq 20 at device 28.0 on pci0 pci2: on pcib1 pcib2: irq 21 at device 28.1 on pci0 pci3: on pcib2 iwn0: mem 0xf9f00000-0xf9f01fff irq 17 at device 0.0 on pci3 pcib3: irq 22 at device 28.2 on pci0 pci4: on pcib3 uhci2: port 0x18a0-0x18bf irq 16 at device 29.0 on pci0 usbus3: on uhci2 uhci3: port 0x18c0-0x18df irq 17 at device 29.1 on pci0 usbus4: on uhci3 uhci4: port 0x18e0-0x18ff irq 18 at device 29.2 on pci0 usbus5: on uhci4 ehci1: mem 0xfa427000-0xfa4273ff irq 19 at device 29.7 on pci0 usbus6: EHCI version 1.0 usbus6: on ehci1 pcib4: at device 30.0 on pci0 pci13: on pcib4 isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1c00-0x1c0f at device 31.1 on pci0 ata0: on atapci1 ahci0: port 0x1c50-0x1c57,0x1c44-0x1c47,0x1c48-0x1c4f,0x1c40-0x1c43,0x1c20-0x1c3f mem 0xfa426000-0xfa4267 ff irq 16 at device 31.2 on pci0 ahci0: AHCI v1.10 with 3 1.5Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 2 on ahci0 pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 acpi_tz1: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 battery0: on acpi0 acpi_acad0: on acpi0 acpi_ibm0: on acpi0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range est0: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 Timecounters tick every 1.000 msec hdac0: HDA Codec #0: Analog Devices AD1984A pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered uhub2: 4 ports with 4 removable, self powered ada0 at ahcich0 bus 0 scbus3 target 0 lun 0 ada0: ATA-7 SATA 2.x device ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada0: 61057MB (125045424 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad8 cd0 at ata0 bus 0 scbus2 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present SMP: AP CPU #1 Launched! WARNING: WITNESS option enabled, expect reduced performance. Root mount waiting for: usbus6 usbus2 uhub6: 6 ports with 6 removable, self powered ugen0.2: at usbus0 Root mount waiting for: usbus6 ugen6.2: at usbus6 ugen4.2: at usbus4 ugen0.3: at usbus0 u3g0: on usbus4 u3g0: Found 3 ports. ugen6.3: at usbus6 Trying to mount root from ufs:/dev/ad8s1a [rw]... WARNING: / was not properly dismounted vboxdrv: fAsync=1 offMin=0x969c6 offMax=0x969c6 supdrvGipCreate: omni timer not supported, falling back to synchronous mode vboxnet0: Ethernet address: 0a:00:27:00:00:00 wlan0: Ethernet address: 00:21:5c:53:a9:4b ubt0: on usbus0 WARNING: attempt to domain_add(bluetooth) after domainfinalize() WARNING: attempt to domain_add(netgraph) after domainfinalize() drm0: on vgapci0 info: [drm] MSI enabled 1 message(s) info: [drm] AGP at 0xe0000000 256MB info: [drm] Initialized i915 1.6.0 20080730 lock order reversal: 1st 0xffffff8079d5c658 bufwait (bufwait) @ kern/vfs_bio.c:2658 2nd 0xfffffe0077c6e800 dirhash (dirhash) @ ufs/ufs/ufs_dirhash.c:284 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x37 _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x807 _sx_xlock() at _sx_xlock+0x55 ufsdirhash_acquire() at ufsdirhash_acquire+0x33 ufsdirhash_add() at ufsdirhash_add+0x19 ufs_direnter() at ufs_direnter+0x909 ufs_makeinode() at ufs_makeinode+0x26a VOP_CREATE_APV() at VOP_CREATE_APV+0x8d vn_open_cred() at vn_open_cred+0x46a kern_openat() at kern_openat+0x1f9 amd64_syscall() at amd64_syscall+0x3ba Xfast_syscall() at Xfast_syscall+0xf7 --- syscall (5, FreeBSD ELF64, sys_open), rip = 0x803593eac, rsp = 0x7fffffffd2f8, rbp = 0x8 --- Regards. From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 10:12:11 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3123106566B; Tue, 27 Sep 2011 10:12:11 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from core.impulsive.hu (core.impulsive.hu [79.172.194.2]) by mx1.freebsd.org (Postfix) with ESMTP id 032E58FC0C; Tue, 27 Sep 2011 10:12:10 +0000 (UTC) Received: by core.impulsive.hu (Postfix, from userid 143) id 5115FDC0BA; Tue, 27 Sep 2011 10:12:59 +0000 (UTC) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by core.impulsive.hu (Postfix) with ESMTP id 8306CDC0AE for ; Tue, 27 Sep 2011 10:12:58 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 2A9CB1A47E5; Tue, 27 Sep 2011 10:11:40 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 7DCA110656D0; Tue, 27 Sep 2011 10:11:39 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 048891065677; Tue, 27 Sep 2011 10:11:18 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5158FC16; Tue, 27 Sep 2011 10:11:17 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8UkF-0005jQ-2m; Tue, 27 Sep 2011 12:19:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 27 Sep 2011 12:18:25 +0200 From: "crsnet.pl" To: Adrian Chadd In-Reply-To: References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> Message-ID: <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl> X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=7.0 tests=ALL_TRUSTED,BAYES_50, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-drivers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 10:12:11 -0000 > Hi, Hello, thanks for reply. > > Please try to do this without wlan loaded at all (not just down, but > build your wifi support as a module.) > Then try without X, see whether it's related to that or not. > First i make kldunload if_iwn. When i try to suspend from X, Xorg close, i see console and laptop suspend. When i resume it, i get console (any key dosent work), when i try to ALT+F9 i get black screen and beep;/ But when i try to suspen from console. I get : pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP0: AE_BAD_PARAMETER pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP1: AE_BAD_PARAMETER pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP2: AE_BAD_PARAMETER And laptop suspend, when i resume it. He hangs when i press any buttons it does nothing. And than i see on console that info : ugen0.2: ... disconnected ugen4.2: ... disconnected ubt0: at uhub0 ... disconnected then i see this presed lethers and acpi0: suspend request ignored (not ready yet) and laptops langs and beep ;/ > (And you haven't told us what your hardware is.) #dmesg (+WITNESS) Copyright (c) 1992-2011 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 9.0-BETA3 #3: Tue Sep 27 10:47:57 CEST 2011 cr4sh@x300:/sys/amd64/compile/GENERIC amd64 WARNING: WITNESS option enabled, expect reduced performance. CPU: Intel(R) Core(TM)2 Duo CPU L7100 @ 1.20GHz (1197.03-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x6fb Family = 6 Model = f Stepping = 11 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 2147483648 (2048 MB) avail memory = 2019139584 (1925 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32 (20110527/tbfadt-556) ACPI Warning: Optional field Gpe1Block has zero address or length: 0x000000000000102C/0x0 (20110527/tbfadt-586) ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard CPU0: local APIC error 0x40 acpi_ec0: port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7ef00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x1800-0x1807 mem 0xfa000000-0xfa0fffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: aperture size is 256M, detected 7676k stolen memory vgapci1: mem 0xfa100000-0xfa1fffff at device 2.1 on pci0 pci0: at device 3.0 (no driver attached) atapci0: port 0x1828-0x182f,0x180c-0x180f,0x1820-0x1827,0x1808-0x180b,0x1810-0x181f irq 18 at device 3.2 on pci0 ata2: on atapci0 ata3: on atapci0 pci0: at device 3.3 (no driver attached) em0: port 0x1840-0x185f mem 0xfa200000-0xfa21ffff,0xfa225000-0xfa225fff irq 20 at device 25.0 o n pci0 em0: Using an MSI interrupt acquiring duplicate lock of same type: "network driver" 1st &dev_spec->swflag_mutex @ dev/e1000/e1000_ich8lan.c:785 2nd &dev_spec->nvm_mutex @ dev/e1000/e1000_ich8lan.c:751 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x37 _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x8de _mtx_lock_flags() at _mtx_lock_flags+0x79 e1000_acquire_nvm_ich8lan() at e1000_acquire_nvm_ich8lan+0x1e e1000_read_nvm_ich8lan() at e1000_read_nvm_ich8lan+0x76 e1000_post_phy_reset_ich8lan() at e1000_post_phy_reset_ich8lan+0x1b1 e1000_reset_hw_ich8lan() at e1000_reset_hw_ich8lan+0x4c1 em_attach() at em_attach+0x11bd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x14f device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x231 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0xbc5 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a nexus_acpi_attach() at nexus_acpi_attach+0x69 device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd6 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x77 btext() at btext+0x2c em0: Ethernet address: 00:21:86:58:72:d9 uhci0: port 0x1860-0x187f irq 20 at device 26.0 on pci0 usbus0: on uhci0 uhci1: port 0x1880-0x189f irq 21 at device 26.1 on pci0 usbus1: on uhci1 ehci0: mem 0xfa426c00-0xfa426fff irq 22 at device 26.7 on pci0 usbus2: EHCI version 1.0 usbus2: on ehci0 hdac0: mem 0xfa220000-0xfa223fff irq 17 at device 27.0 on pci0 pcib1: irq 20 at device 28.0 on pci0 pci2: on pcib1 pcib2: irq 21 at device 28.1 on pci0 pci3: on pcib2 iwn0: mem 0xf9f00000-0xf9f01fff irq 17 at device 0.0 on pci3 pcib3: irq 22 at device 28.2 on pci0 pci4: on pcib3 uhci2: port 0x18a0-0x18bf irq 16 at device 29.0 on pci0 usbus3: on uhci2 uhci3: port 0x18c0-0x18df irq 17 at device 29.1 on pci0 usbus4: on uhci3 uhci4: port 0x18e0-0x18ff irq 18 at device 29.2 on pci0 usbus5: on uhci4 ehci1: mem 0xfa427000-0xfa4273ff irq 19 at device 29.7 on pci0 usbus6: EHCI version 1.0 usbus6: on ehci1 pcib4: at device 30.0 on pci0 pci13: on pcib4 isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1c00-0x1c0f at device 31.1 on pci0 ata0: on atapci1 ahci0: port 0x1c50-0x1c57,0x1c44-0x1c47,0x1c48-0x1c4f,0x1c40-0x1c43,0x1c20-0x1c3f mem 0xfa426000-0xfa4267 ff irq 16 at device 31.2 on pci0 ahci0: AHCI v1.10 with 3 1.5Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 2 on ahci0 pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 acpi_tz1: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 battery0: on acpi0 acpi_acad0: on acpi0 acpi_ibm0: on acpi0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range est0: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 Timecounters tick every 1.000 msec hdac0: HDA Codec #0: Analog Devices AD1984A pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered uhub2: 4 ports with 4 removable, self powered ada0 at ahcich0 bus 0 scbus3 target 0 lun 0 ada0: ATA-7 SATA 2.x device ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada0: 61057MB (125045424 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad8 cd0 at ata0 bus 0 scbus2 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present SMP: AP CPU #1 Launched! WARNING: WITNESS option enabled, expect reduced performance. Root mount waiting for: usbus6 usbus2 uhub6: 6 ports with 6 removable, self powered ugen0.2: at usbus0 Root mount waiting for: usbus6 ugen6.2: at usbus6 ugen4.2: at usbus4 ugen0.3: at usbus0 u3g0: on usbus4 u3g0: Found 3 ports. ugen6.3: at usbus6 Trying to mount root from ufs:/dev/ad8s1a [rw]... WARNING: / was not properly dismounted vboxdrv: fAsync=1 offMin=0x969c6 offMax=0x969c6 supdrvGipCreate: omni timer not supported, falling back to synchronous mode vboxnet0: Ethernet address: 0a:00:27:00:00:00 wlan0: Ethernet address: 00:21:5c:53:a9:4b ubt0: on usbus0 WARNING: attempt to domain_add(bluetooth) after domainfinalize() WARNING: attempt to domain_add(netgraph) after domainfinalize() drm0: on vgapci0 info: [drm] MSI enabled 1 message(s) info: [drm] AGP at 0xe0000000 256MB info: [drm] Initialized i915 1.6.0 20080730 lock order reversal: 1st 0xffffff8079d5c658 bufwait (bufwait) @ kern/vfs_bio.c:2658 2nd 0xfffffe0077c6e800 dirhash (dirhash) @ ufs/ufs/ufs_dirhash.c:284 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x37 _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x807 _sx_xlock() at _sx_xlock+0x55 ufsdirhash_acquire() at ufsdirhash_acquire+0x33 ufsdirhash_add() at ufsdirhash_add+0x19 ufs_direnter() at ufs_direnter+0x909 ufs_makeinode() at ufs_makeinode+0x26a VOP_CREATE_APV() at VOP_CREATE_APV+0x8d vn_open_cred() at vn_open_cred+0x46a kern_openat() at kern_openat+0x1f9 amd64_syscall() at amd64_syscall+0x3ba Xfast_syscall() at Xfast_syscall+0xf7 --- syscall (5, FreeBSD ELF64, sys_open), rip = 0x803593eac, rsp = 0x7fffffffd2f8, rbp = 0x8 --- Regards. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 10:12:45 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 528321065676; Tue, 27 Sep 2011 10:12:45 +0000 (UTC) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from ixe-mta-27.emailfiltering.com (ixe-mta-27-tx.emailfiltering.com [194.116.199.158]) by mx1.freebsd.org (Postfix) with ESMTP id 8BDC78FC15; Tue, 27 Sep 2011 10:12:43 +0000 (UTC) Received: from mail-gw12.york.ac.uk ([144.32.129.162]) by ixe-mta-27.emailfiltering.com with emfmta (version 4.8.3.54) by TLS id 1300664618 for jhb@freebsd.org;fb2407b1b8ecf27c; Tue, 27 Sep 2011 11:12:42 +0100 Received: from buffy-128.york.ac.uk ([144.32.128.160]:36632) by mail-gw12.york.ac.uk with esmtpsa (SSL3.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1R8UeX-0002DS-SO; Tue, 27 Sep 2011 11:12:41 +0100 X-Authenticated-User: ga9 From: Gavin Atkinson To: John Baldwin In-Reply-To: <201109260930.39309.jhb@freebsd.org> References: <75E1A2A7D185F841A975979B0906BBA67BCCAB7609@AVEXMB1.qlogic.org> <201109222007.19182.hselasky@c2i.net> <1316791266.39972.3.camel@buffy.york.ac.uk> <201109260930.39309.jhb@freebsd.org> Content-Type: text/plain; charset="ASCII" Date: Tue, 27 Sep 2011 11:12:41 +0100 Message-ID: <1317118361.95805.7.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-drivers@freebsd.org, Hans Petter Selasky Subject: Re: Choosing between DELAY(useconds) and pause() X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 10:12:45 -0000 On Mon, 2011-09-26 at 09:30 -0400, John Baldwin wrote: > On Friday, September 23, 2011 11:21:06 am Gavin Atkinson wrote: > > On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrote: > > > On Thursday 22 September 2011 19:55:23 David Somayajulu wrote: > > > > It appears that the pause() function cannot be used in driver functions > > > > which are invoked early in the boot process. Is there is a kernel api > > > > which a device driver can use to determine whether to use pause() or > > > > DELAY(), for delays which are say greater than 10hz - may be even 1 hz ? > > > > > > Maybe you want to use something like this: > > > > > > if (cold) > > > DELAY() > > > else > > > pause() > > > > > > In your code. > > > > Note that this still shouldn't be done in your suspend/resume paths, as > > "cold" isn't set there, however there also appears to be no guarantee > > that pause() will ever return (as you could be running after the timer > > has been suspended, or before it resumes). > > > > I'm not sure what the correct answer is for suspend/resume code. > > Hmmm, on x86 the timers are explicitly shutdown after the DEVICE_SUSPEND() > pass over the tree and re-enabled before DEVICE_RESUME(). Perhaps this has > changed in HEAD though with the eventtimers stuff. I do think it is best > however, to use DELAY() in the suspend/resume path always regardless. I don't think head is any different from stable/8 in this respect - the same hack patch that fixes suspend/resume for me on head also fixes it on stable/8 (the patch basically fakes "cold" during USB suspend/resume). See my email to -usb a few months ago: http://docs.FreeBSD.org/cgi/mid.cgi?alpine.LNX.2.00.1106041548370.26975 I'd really like some guidance as to the correct solution to this, I have four separate laptops which fail out of the box on 8 and 9, but suspend/resume perfectly with this hack. Thanks, Gavin From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 11:10:16 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A46FA1065673; Tue, 27 Sep 2011 11:10:16 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id 50C908FC14; Tue, 27 Sep 2011 11:10:16 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8Vf5-00062k-E6; Tue, 27 Sep 2011 13:18:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 27 Sep 2011 13:17:09 +0200 From: "crsnet.pl" To: Adrian Chadd In-Reply-To: References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> Message-ID: X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: X-Spam-Status: No, score=-0.4 required=7.0 tests=ALL_TRUSTED,BAYES_00, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) Cc: freebsd-hardware@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: [Solved] FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 11:10:16 -0000 On Tue, 27 Sep 2011 08:21:23 +0800, Adrian Chadd wrote: > Hi, > > Please try to do this without wlan loaded at all (not just down, but > build your wifi support as a module.) > Then try without X, see whether it's related to that or not. > (And you haven't told us what your hardware is.) Gavin Atkinson send me this link : http://docs.freebsd.org/cgi/getmsg.cgi?fetch=96631+0+/usr/local/www/db/text/2011/freebsd-usb/20110605.freebsd-usb suspend / resume works like a charm with this pathes. Thanks all for help. Regards. > > Adrian From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 11:10:54 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46F2F10656D6; Tue, 27 Sep 2011 11:10:54 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from core.impulsive.hu (core.impulsive.hu [79.172.194.2]) by mx1.freebsd.org (Postfix) with ESMTP id D1D018FC08; Tue, 27 Sep 2011 11:10:53 +0000 (UTC) Received: by core.impulsive.hu (Postfix, from userid 143) id 467A0DC0BA; Tue, 27 Sep 2011 11:11:42 +0000 (UTC) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by core.impulsive.hu (Postfix) with ESMTP id 0E789DC0AE for ; Tue, 27 Sep 2011 11:11:40 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 254F9150CE5; Tue, 27 Sep 2011 11:10:25 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 7BA6C10656B7; Tue, 27 Sep 2011 11:10:24 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A46FA1065673; Tue, 27 Sep 2011 11:10:16 +0000 (UTC) (envelope-from crsnet@crsnet.pl) Received: from mx1.security.edu.pl (mx1.security.edu.pl [91.197.89.212]) by mx1.freebsd.org (Postfix) with ESMTP id 50C908FC14; Tue, 27 Sep 2011 11:10:16 +0000 (UTC) Received: from mx1.security.edu.pl ([91.197.89.212] helo=poczta.i-pi.pl ident=www) by mx1.security.edu.pl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1R8Vf5-00062k-E6; Tue, 27 Sep 2011 13:18:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 27 Sep 2011 13:17:09 +0200 From: "crsnet.pl" To: Adrian Chadd In-Reply-To: References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> Message-ID: X-Sender: crsnet@crsnet.pl User-Agent: Roundcube Webmail/0.4.2 X-SA-Exim-Connect-IP: 91.197.89.212 X-SA-Exim-Mail-From: crsnet@crsnet.pl X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on MTA X-Spam-Level: X-Spam-Status: No, score=-0.4 required=7.0 tests=ALL_TRUSTED,BAYES_00, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mx1.security.edu.pl) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-drivers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: [Solved] FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 11:10:54 -0000 On Tue, 27 Sep 2011 08:21:23 +0800, Adrian Chadd wrote: > Hi, > > Please try to do this without wlan loaded at all (not just down, but > build your wifi support as a module.) > Then try without X, see whether it's related to that or not. > (And you haven't told us what your hardware is.) Gavin Atkinson send me this link : http://docs.freebsd.org/cgi/getmsg.cgi?fetch=96631+0+/usr/local/www/db/text/2011/freebsd-usb/20110605.freebsd-usb suspend / resume works like a charm with this pathes. Thanks all for help. Regards. > > Adrian _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 17:11:01 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10DCE106566B; Tue, 27 Sep 2011 17:11:01 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 3C66F8FC0C; Tue, 27 Sep 2011 17:10:49 +0000 (UTC) Received: from julian-mac.elischer.org ([216.51.42.66]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id p8RGcuWd056912 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 27 Sep 2011 09:38:57 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <4E81FC50.5040409@freebsd.org> Date: Tue, 27 Sep 2011 10:39:44 -0600 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.22) Gecko/20110902 Thunderbird/3.1.14 MIME-Version: 1.0 To: Gavin Atkinson References: <75E1A2A7D185F841A975979B0906BBA67BCCAB7609@AVEXMB1.qlogic.org> <201109222007.19182.hselasky@c2i.net> <1316791266.39972.3.camel@buffy.york.ac.uk> <201109260930.39309.jhb@freebsd.org> <1317118361.95805.7.camel@buffy.york.ac.uk> In-Reply-To: <1317118361.95805.7.camel@buffy.york.ac.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-drivers@freebsd.org, Hans Petter Selasky Subject: Re: Choosing between DELAY(useconds) and pause() X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:11:01 -0000 On 9/27/11 4:12 AM, Gavin Atkinson wrote: > On Mon, 2011-09-26 at 09:30 -0400, John Baldwin wrote: >> On Friday, September 23, 2011 11:21:06 am Gavin Atkinson wrote: >>> On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrote: >>>> On Thursday 22 September 2011 19:55:23 David Somayajulu wrote: >>>>> It appears that the pause() function cannot be used in driver functions >>>>> which are invoked early in the boot process. Is there is a kernel api >>>>> which a device driver can use to determine whether to use pause() or >>>>> DELAY(), for delays which are say greater than 10hz - may be even 1 hz ? >>>> Maybe you want to use something like this: >>>> >>>> if (cold) >>>> DELAY() >>>> else >>>> pause() >>>> >>>> In your code. >>> Note that this still shouldn't be done in your suspend/resume paths, as >>> "cold" isn't set there, however there also appears to be no guarantee >>> that pause() will ever return (as you could be running after the timer >>> has been suspended, or before it resumes). >>> >>> I'm not sure what the correct answer is for suspend/resume code. >> Hmmm, on x86 the timers are explicitly shutdown after the DEVICE_SUSPEND() >> pass over the tree and re-enabled before DEVICE_RESUME(). Perhaps this has >> changed in HEAD though with the eventtimers stuff. I do think it is best >> however, to use DELAY() in the suspend/resume path always regardless. > I don't think head is any different from stable/8 in this respect - the > same hack patch that fixes suspend/resume for me on head also fixes it > on stable/8 (the patch basically fakes "cold" during USB > suspend/resume). See my email to -usb a few months ago: > http://docs.FreeBSD.org/cgi/mid.cgi?alpine.LNX.2.00.1106041548370.26975 > > I'd really like some guidance as to the correct solution to this, I have > four separate laptops which fail out of the box on 8 and 9, but > suspend/resume perfectly with this hack. code for timers should have a generally readable state that says if they are useable or not, and we should test that instead of 'cold' > Thanks, > > Gavin > > _______________________________________________ > 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" > From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 27 18:05:01 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B425A106564A for ; Tue, 27 Sep 2011 18:05:01 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 4838B8FC13 for ; Tue, 27 Sep 2011 18:05:00 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p8RHcgOf097757 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Sep 2011 20:38:42 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p8RHcgSG044551; Tue, 27 Sep 2011 20:38:42 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p8RHcgsj044550; Tue, 27 Sep 2011 20:38:42 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 27 Sep 2011 20:38:42 +0300 From: Kostik Belousov To: Julian Elischer Message-ID: <20110927173842.GR1511@deviant.kiev.zoral.com.ua> References: <75E1A2A7D185F841A975979B0906BBA67BCCAB7609@AVEXMB1.qlogic.org> <201109222007.19182.hselasky@c2i.net> <1316791266.39972.3.camel@buffy.york.ac.uk> <201109260930.39309.jhb@freebsd.org> <1317118361.95805.7.camel@buffy.york.ac.uk> <4E81FC50.5040409@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EJCnrJiDxBM3d8Vu" Content-Disposition: inline In-Reply-To: <4E81FC50.5040409@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-current@freebsd.org, freebsd-drivers@freebsd.org, Gavin Atkinson , Hans Petter Selasky Subject: Re: Choosing between DELAY(useconds) and pause() X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 18:05:01 -0000 --EJCnrJiDxBM3d8Vu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 27, 2011 at 10:39:44AM -0600, Julian Elischer wrote: > On 9/27/11 4:12 AM, Gavin Atkinson wrote: > >On Mon, 2011-09-26 at 09:30 -0400, John Baldwin wrote: > >>On Friday, September 23, 2011 11:21:06 am Gavin Atkinson wrote: > >>>On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrote: > >>>>On Thursday 22 September 2011 19:55:23 David Somayajulu wrote: > >>>>>It appears that the pause() function cannot be used in driver functi= ons > >>>>>which are invoked early in the boot process. Is there is a kernel api > >>>>>which a device driver can use to determine whether to use pause() or > >>>>>DELAY(), for delays which are say greater than 10hz - may be even 1 = hz=20 > >>>>>? > >>>>Maybe you want to use something like this: > >>>> > >>>>if (cold) > >>>> DELAY() > >>>>else > >>>> pause() > >>>> > >>>>In your code. > >>>Note that this still shouldn't be done in your suspend/resume paths, as > >>>"cold" isn't set there, however there also appears to be no guarantee > >>>that pause() will ever return (as you could be running after the timer > >>>has been suspended, or before it resumes). > >>> > >>>I'm not sure what the correct answer is for suspend/resume code. > >>Hmmm, on x86 the timers are explicitly shutdown after the DEVICE_SUSPEN= D() > >>pass over the tree and re-enabled before DEVICE_RESUME(). Perhaps this= =20 > >>has > >>changed in HEAD though with the eventtimers stuff. I do think it is be= st > >>however, to use DELAY() in the suspend/resume path always regardless. > >I don't think head is any different from stable/8 in this respect - the > >same hack patch that fixes suspend/resume for me on head also fixes it > >on stable/8 (the patch basically fakes "cold" during USB > >suspend/resume). See my email to -usb a few months ago: > >http://docs.FreeBSD.org/cgi/mid.cgi?alpine.LNX.2.00.1106041548370.26975 > > > >I'd really like some guidance as to the correct solution to this, I have > >four separate laptops which fail out of the box on 8 and 9, but > >suspend/resume perfectly with this hack. >=20 > code for timers should have a generally readable state that says if=20 > they are useable or not, and we should test that instead of 'cold' I think that this should be encapsulated into the usable function, instead of being directly exposed to the driver authors. With the my lack of imagination, I propose driver_delay() that would do if (cold) ... inside. --EJCnrJiDxBM3d8Vu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6CCiEACgkQC3+MBN1Mb4h2RgCgn+jfgGZjnO4VLUghH9AcKaOt J0cAoILtHFJtf80Lnbw10OhrPGTDI2i7 =OyCZ -----END PGP SIGNATURE----- --EJCnrJiDxBM3d8Vu-- From owner-freebsd-drivers@FreeBSD.ORG Wed Sep 28 12:09:19 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 986ED106566B; Wed, 28 Sep 2011 12:09:19 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from core.impulsive.hu (core.impulsive.hu [79.172.194.2]) by mx1.freebsd.org (Postfix) with ESMTP id EDC4C8FC14; Wed, 28 Sep 2011 12:09:18 +0000 (UTC) Received: by core.impulsive.hu (Postfix, from userid 143) id CC04ADC0BC; Wed, 28 Sep 2011 12:10:09 +0000 (UTC) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by core.impulsive.hu (Postfix) with ESMTP id 20275DC0B8 for ; Wed, 28 Sep 2011 12:10:07 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id C46302023E5; Wed, 28 Sep 2011 12:07:01 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 8147F10657C6; Wed, 28 Sep 2011 12:06:58 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08DF1106564A; Wed, 28 Sep 2011 12:06:45 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 79F6E8FC14; Wed, 28 Sep 2011 12:06:43 +0000 (UTC) Received: by wwe3 with SMTP id 3so8160741wwe.31 for ; Wed, 28 Sep 2011 05:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=j9cgZHBCRSfMZZ+AILFfqBYUfRw7lLub3UKeqbAM2VY=; b=tY3HS/U5ZMpMjQZ4qApO4RnRRy7W/E2+9f0kRfwM9ULpTioaSm+XPq+NOcAHbbw8TL Iwc9CuLPJsjZwCoSKc6igl++gNjHZWqzDNVSolrRv5lyGrwec1XrAs58NeM2jxxqcaQt jrgPxAdvixr50CZiMy2raEGh4xmhjNN9PpPxo= MIME-Version: 1.0 Received: by 10.216.203.79 with SMTP id e57mr1008465weo.12.1317211601152; Wed, 28 Sep 2011 05:06:41 -0700 (PDT) Received: by 10.216.1.21 with HTTP; Wed, 28 Sep 2011 05:06:41 -0700 (PDT) In-Reply-To: <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl> Date: Wed, 28 Sep 2011 14:06:41 +0200 X-Google-Sender-Auth: Ncm04hNhUoFv-CNNS1UNS4rLDQ8 Message-ID: From: Attilio Rao To: "crsnet.pl" , Jack F Vogel Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: Adrian Chadd , freebsd-stable@freebsd.org, freebsd-drivers@freebsd.org, freebsd-current@freebsd.org, freebsd-hardware@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 12:09:19 -0000 2011/9/27 crsnet.pl : >> Hi, > > Hello, thanks for reply. >> >> Please try to do this without wlan loaded at all (not just down, but >> build your wifi support as a module.) >> Then try without X, see whether it's related to that or not. >> > First i make kldunload if_iwn. > When i try to suspend from X, Xorg close, i see console and laptop suspen= d. > When i resume it, i get console (any key dosent work), when i try to ALT+= F9 > i get black screen and beep;/ > > But when i try to suspen from console. I get : > pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP0: AE_BAD_PARAMETER > pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP1: AE_BAD_PARAMETER > pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP2: AE_BAD_PARAMETER > And laptop suspend, when i resume it. He hangs when i press any buttons i= t > does nothing. And than i see on console that info : > ugen0.2: ... disconnected > ugen4.2: ... disconnected > ubt0: at uhub0 ... disconnected > then i see this presed lethers > and > acpi0: suspend request ignored (not ready yet) and laptops langs and beep= ;/ > >> (And you haven't told us what your hardware is.) > > #dmesg (+WITNESS) > Copyright (c) 1992-2011 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > =C2=A0 =C2=A0 =C2=A0 =C2=A0The Regents of the University of California. A= ll rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.0-BETA3 #3: Tue Sep 27 10:47:57 CEST 2011 > =C2=A0 =C2=A0cr4sh@x300:/sys/amd64/compile/GENERIC amd64 > WARNING: WITNESS option enabled, expect reduced performance. > CPU: Intel(R) Core(TM)2 Duo CPU =C2=A0 =C2=A0 L7100 =C2=A0@ 1.20GHz (1197= .03-MHz K8-class > CPU) > =C2=A0Origin =3D "GenuineIntel" =C2=A0Id =3D 0x6fb =C2=A0Family =3D 6 =C2= =A0Model =3D f =C2=A0Stepping =3D 11 > =C2=A0Features=3D0xbfebfbff > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BE> > =C2=A0Features2=3D0xe3bd > =C2=A0AMD Features=3D0x20100800 > =C2=A0AMD Features2=3D0x1 > =C2=A0TSC: P-state invariant, performance statistics > real memory =C2=A0=3D 2147483648 (2048 MB) > avail memory =3D 2019139584 (1925 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) > =C2=A0cpu0 (BSP): APIC ID: =C2=A00 > =C2=A0cpu1 (AP): APIC ID: =C2=A01 > ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32 > (20110527/tbfadt-556) > ACPI Warning: Optional field Gpe1Block has zero address or length: > 0x000000000000102C/0x0 (20110527/tbfadt-586) > ioapic0: Changing APIC ID to 1 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > acpi0: on motherboard > CPU0: local APIC error 0x40 > acpi_ec0: port 0x62,0x66 on acpi0 > acpi0: Power Button (fixed) > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 7ef00000 (3) failed > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 > cpu0: on acpi0 > cpu1: on acpi0 > acpi_lid0: on acpi0 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > vgapci0: port 0x1800-0x1807 mem > 0xfa000000-0xfa0fffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 > agp0: on vgapci0 > agp0: aperture size is 256M, detected 7676k stolen memory > vgapci1: mem 0xfa100000-0xfa1fffff at device 2.1= on > pci0 > pci0: at device 3.0 (no driver attached) > atapci0: port > 0x1828-0x182f,0x180c-0x180f,0x1820-0x1827,0x1808-0x180b,0x1810-0x181f irq= 18 > at device 3.2 on pci0 > ata2: on atapci0 > ata3: on atapci0 > pci0: at device 3.3 (no driver attached) > em0: port 0x1840-0x185f mem > 0xfa200000-0xfa21ffff,0xfa225000-0xfa225fff irq 20 at device 25.0 o > > =C2=A0 =C2=A0 =C2=A0 =C2=A0n pci0 > em0: Using an MSI interrupt > acquiring duplicate lock of same type: "network driver" > =C2=A01st &dev_spec->swflag_mutex @ dev/e1000/e1000_ich8lan.c:785 > =C2=A02nd &dev_spec->nvm_mutex @ dev/e1000/e1000_ich8lan.c:751 I think that MTX_NETWORK_LOCK is not suitable for this case as you will have 2 different locks with the same name in softc. I think that this patch should be good to go (and fixes the WITNESS warning= ): http://www.freebsd.org/~attilio/e1000_mutex_init.patch Thanks, Attilio --=20 Peace can only be achieved by understanding - A. Einstein _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Wed Sep 28 12:33:10 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5460A1065672; Wed, 28 Sep 2011 12:33:10 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 647D88FC0C; Wed, 28 Sep 2011 12:33:08 +0000 (UTC) Received: by wwe3 with SMTP id 3so8195682wwe.31 for ; Wed, 28 Sep 2011 05:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=j9cgZHBCRSfMZZ+AILFfqBYUfRw7lLub3UKeqbAM2VY=; b=tY3HS/U5ZMpMjQZ4qApO4RnRRy7W/E2+9f0kRfwM9ULpTioaSm+XPq+NOcAHbbw8TL Iwc9CuLPJsjZwCoSKc6igl++gNjHZWqzDNVSolrRv5lyGrwec1XrAs58NeM2jxxqcaQt jrgPxAdvixr50CZiMy2raEGh4xmhjNN9PpPxo= MIME-Version: 1.0 Received: by 10.216.203.79 with SMTP id e57mr1008465weo.12.1317211601152; Wed, 28 Sep 2011 05:06:41 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.216.1.21 with HTTP; Wed, 28 Sep 2011 05:06:41 -0700 (PDT) In-Reply-To: <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl> Date: Wed, 28 Sep 2011 14:06:41 +0200 X-Google-Sender-Auth: Ncm04hNhUoFv-CNNS1UNS4rLDQ8 Message-ID: From: Attilio Rao To: "crsnet.pl" , Jack F Vogel Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Adrian Chadd , freebsd-stable@freebsd.org, freebsd-drivers@freebsd.org, freebsd-current@freebsd.org, freebsd-hardware@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 12:33:10 -0000 2011/9/27 crsnet.pl : >> Hi, > > Hello, thanks for reply. >> >> Please try to do this without wlan loaded at all (not just down, but >> build your wifi support as a module.) >> Then try without X, see whether it's related to that or not. >> > First i make kldunload if_iwn. > When i try to suspend from X, Xorg close, i see console and laptop suspen= d. > When i resume it, i get console (any key dosent work), when i try to ALT+= F9 > i get black screen and beep;/ > > But when i try to suspen from console. I get : > pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP0: AE_BAD_PARAMETER > pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP1: AE_BAD_PARAMETER > pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP2: AE_BAD_PARAMETER > And laptop suspend, when i resume it. He hangs when i press any buttons i= t > does nothing. And than i see on console that info : > ugen0.2: ... disconnected > ugen4.2: ... disconnected > ubt0: at uhub0 ... disconnected > then i see this presed lethers > and > acpi0: suspend request ignored (not ready yet) and laptops langs and beep= ;/ > >> (And you haven't told us what your hardware is.) > > #dmesg (+WITNESS) > Copyright (c) 1992-2011 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > =C2=A0 =C2=A0 =C2=A0 =C2=A0The Regents of the University of California. A= ll rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.0-BETA3 #3: Tue Sep 27 10:47:57 CEST 2011 > =C2=A0 =C2=A0cr4sh@x300:/sys/amd64/compile/GENERIC amd64 > WARNING: WITNESS option enabled, expect reduced performance. > CPU: Intel(R) Core(TM)2 Duo CPU =C2=A0 =C2=A0 L7100 =C2=A0@ 1.20GHz (1197= .03-MHz K8-class > CPU) > =C2=A0Origin =3D "GenuineIntel" =C2=A0Id =3D 0x6fb =C2=A0Family =3D 6 =C2= =A0Model =3D f =C2=A0Stepping =3D 11 > =C2=A0Features=3D0xbfebfbff > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BE> > =C2=A0Features2=3D0xe3bd > =C2=A0AMD Features=3D0x20100800 > =C2=A0AMD Features2=3D0x1 > =C2=A0TSC: P-state invariant, performance statistics > real memory =C2=A0=3D 2147483648 (2048 MB) > avail memory =3D 2019139584 (1925 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) > =C2=A0cpu0 (BSP): APIC ID: =C2=A00 > =C2=A0cpu1 (AP): APIC ID: =C2=A01 > ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32 > (20110527/tbfadt-556) > ACPI Warning: Optional field Gpe1Block has zero address or length: > 0x000000000000102C/0x0 (20110527/tbfadt-586) > ioapic0: Changing APIC ID to 1 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > acpi0: on motherboard > CPU0: local APIC error 0x40 > acpi_ec0: port 0x62,0x66 on acpi0 > acpi0: Power Button (fixed) > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 7ef00000 (3) failed > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 > cpu0: on acpi0 > cpu1: on acpi0 > acpi_lid0: on acpi0 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > vgapci0: port 0x1800-0x1807 mem > 0xfa000000-0xfa0fffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 > agp0: on vgapci0 > agp0: aperture size is 256M, detected 7676k stolen memory > vgapci1: mem 0xfa100000-0xfa1fffff at device 2.1= on > pci0 > pci0: at device 3.0 (no driver attached) > atapci0: port > 0x1828-0x182f,0x180c-0x180f,0x1820-0x1827,0x1808-0x180b,0x1810-0x181f irq= 18 > at device 3.2 on pci0 > ata2: on atapci0 > ata3: on atapci0 > pci0: at device 3.3 (no driver attached) > em0: port 0x1840-0x185f mem > 0xfa200000-0xfa21ffff,0xfa225000-0xfa225fff irq 20 at device 25.0 o > > =C2=A0 =C2=A0 =C2=A0 =C2=A0n pci0 > em0: Using an MSI interrupt > acquiring duplicate lock of same type: "network driver" > =C2=A01st &dev_spec->swflag_mutex @ dev/e1000/e1000_ich8lan.c:785 > =C2=A02nd &dev_spec->nvm_mutex @ dev/e1000/e1000_ich8lan.c:751 I think that MTX_NETWORK_LOCK is not suitable for this case as you will have 2 different locks with the same name in softc. I think that this patch should be good to go (and fixes the WITNESS warning= ): http://www.freebsd.org/~attilio/e1000_mutex_init.patch Thanks, Attilio --=20 Peace can only be achieved by understanding - A. Einstein From owner-freebsd-drivers@FreeBSD.ORG Thu Sep 29 16:31:55 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B901410656F9; Thu, 29 Sep 2011 16:31:55 +0000 (UTC) (envelope-from david.somayajulu@qlogic.com) Received: from DB3EHSOBE001.bigfish.com (db3ehsobe001.messaging.microsoft.com [213.199.154.139]) by mx1.freebsd.org (Postfix) with ESMTP id 0D5AB8FC12; Thu, 29 Sep 2011 16:31:54 +0000 (UTC) Received: from mail32-db3-R.bigfish.com (10.3.81.241) by DB3EHSOBE001.bigfish.com (10.3.84.21) with Microsoft SMTP Server id 14.1.225.22; Thu, 29 Sep 2011 16:31:51 +0000 Received: from mail32-db3 (localhost.localdomain [127.0.0.1]) by mail32-db3-R.bigfish.com (Postfix) with ESMTP id 9AE411E8346; Thu, 29 Sep 2011 16:31:51 +0000 (UTC) X-SpamScore: 1 X-BigFish: VPS1(zzc85fhzz1202hzz8275bh8275dhz2ei2a8h668h839h) X-Forefront-Antispam-Report: CIP:198.70.193.64; KIP:(null); UIP:(null); IPVD:NLI; H:avexcashub1.qlogic.com; RD:avexcashub2.qlogic.com; EFVD:NLI Received-SPF: neutral (mail32-db3: 198.70.193.64 is neither permitted nor denied by domain of qlogic.com) client-ip=198.70.193.64; envelope-from=david.somayajulu@qlogic.com; helo=avexcashub1.qlogic.com ; 1.qlogic.com ; Received: from mail32-db3 (localhost.localdomain [127.0.0.1]) by mail32-db3 (MessageSwitch) id 1317313909267394_12171; Thu, 29 Sep 2011 16:31:49 +0000 (UTC) Received: from DB3EHSMHS014.bigfish.com (unknown [10.3.81.244]) by mail32-db3.bigfish.com (Postfix) with ESMTP id 329419F0053; Thu, 29 Sep 2011 16:31:49 +0000 (UTC) Received: from avexcashub1.qlogic.com (198.70.193.64) by DB3EHSMHS014.bigfish.com (10.3.87.114) with Microsoft SMTP Server (TLS) id 14.1.225.22; Thu, 29 Sep 2011 16:31:46 +0000 Received: from avexmb1.qlogic.org ([fe80::9545:3a4f:c131:467d]) by avexcashub2.qlogic.org ([::1]) with mapi; Thu, 29 Sep 2011 09:31:43 -0700 From: David Somayajulu To: "freebsd-current@freebsd.org" , "freebsd-drivers@freebsd.org" Date: Thu, 29 Sep 2011 09:31:44 -0700 Thread-Topic: TSO and FreeBSD Thread-Index: Acx+xUZPFcRhlwbHSXe81IV5JeNfjQ== Message-ID: <75E1A2A7D185F841A975979B0906BBA67BCCB4F67F@AVEXMB1.qlogic.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-OriginatorOrg: qlogic.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: TSO and FreeBSD X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 16:31:55 -0000 Is there an upper limit on a transmit packet size, which has CSUM_TSO bit s= et in the mp->m_pkthdr.csum_flags field. Browsing the code I thought it was= 65535 bytes. However at least on Freebsd 7.x, I am occasionally noticing t= hat the driver is asked to transmit packets which are 65536 and 65537 bytes= . Am I missing something? Cheers, David S. ________________________________ This message and any attached documents contain information from QLogic Cor= poration or its wholly-owned subsidiaries that may be confidential. If you = are not the intended recipient, you may not read, copy, distribute, or use = this information. If you have received this transmission in error, please n= otify the sender immediately by reply e-mail and then delete this message. From owner-freebsd-drivers@FreeBSD.ORG Thu Sep 29 16:42:19 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 825C2106566C for ; Thu, 29 Sep 2011 16:42:19 +0000 (UTC) (envelope-from gbal.naresh@gmail.com) Received: from mail-dy0-f54.google.com (mail-dy0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 13EF18FC0C for ; Thu, 29 Sep 2011 16:42:18 +0000 (UTC) Received: by dyj4 with SMTP id 4so28909dyj.13 for ; Thu, 29 Sep 2011 09:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:content-type:x-mailer:message-id:date:to :content-transfer-encoding:mime-version; bh=k4z37TspcOYUa4zro4wFa2OfulN8SaatRX2OnavzAYs=; b=WTbXhq3ZeH6BmyoXfLMEmoJV2yVdCIqBF88zaKF0aeAy5hisvQDbZuB2xQE9OClAiJ wIx/rw3HVBhi5B3YmC0GI1rlWZGHy/YB3vWagsJDyIiLqH9XgQEuUftijNyr3yRaAlD1 0hxiw7iQ0d95zR2xjKOaC2SUFf5pkkNW/VlZ8= Received: by 10.68.31.199 with SMTP id c7mr14292874pbi.73.1317314537038; Thu, 29 Sep 2011 09:42:17 -0700 (PDT) Received: from [27.61.35.199] ([27.61.35.199]) by mx.google.com with ESMTPS id i2sm8194218pbt.3.2011.09.29.09.42.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Sep 2011 09:42:15 -0700 (PDT) From: Naresh Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (8H7) Message-Id: <161553F2-FE14-417C-94C6-11ACBD28E06E@gmail.com> Date: Thu, 29 Sep 2011 22:12:11 +0530 To: "freebsd-drivers@freebsd.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPhone Mail 8H7) Subject: Link aggregation using LACP X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 16:42:19 -0000 Hi All, I am working on a 10Gb Ethernet driver for FreeBsd 8.2. When I enable link a= ggregation using LACP mode on two ports of our card, I expected load to be b= alanced on two ports(both are up). But interestingly traffic is flowing on o= nly one interface.=20 If I administratively bring down the interface on which traffic is flowing, I= see lot of packet loss for about 30 secs, After that it picks up. I think this is not expected. Are there any known issues with FreeBsd 8.2 ? Thanks, Naresh.= From owner-freebsd-drivers@FreeBSD.ORG Thu Sep 29 17:36:43 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B033106564A for ; Thu, 29 Sep 2011 17:36:43 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 0116F8FC16 for ; Thu, 29 Sep 2011 17:36:42 +0000 (UTC) Received: by wwe3 with SMTP id 3so1327696wwe.31 for ; Thu, 29 Sep 2011 10:36:41 -0700 (PDT) Received: by 10.227.72.138 with SMTP id m10mr3282813wbj.90.1317316064424; Thu, 29 Sep 2011 10:07:44 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id fr18sm3355933wbb.9.2011.09.29.10.07.43 (version=SSLv3 cipher=OTHER); Thu, 29 Sep 2011 10:07:43 -0700 (PDT) Message-ID: <4E84A5DE.8070804@my.gd> Date: Thu, 29 Sep 2011 19:07:42 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0) Gecko/20110922 Thunderbird/7.0 MIME-Version: 1.0 To: freebsd-drivers@freebsd.org References: <161553F2-FE14-417C-94C6-11ACBD28E06E@gmail.com> In-Reply-To: <161553F2-FE14-417C-94C6-11ACBD28E06E@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Link aggregation using LACP X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 17:36:43 -0000 On 9/29/11 6:42 PM, Naresh wrote: > Hi All, > > I am working on a 10Gb Ethernet driver for FreeBsd 8.2. When I enable link aggregation using LACP mode on two ports of our card, I expected load to be balanced on two ports(both are up). But interestingly traffic is flowing on only one interface. > > If I administratively bring down the interface on which traffic is flowing, I see lot of packet loss for about 30 secs, After that it picks up. > > I think this is not expected. Are there any known issues with FreeBsd 8.2 ? > > Thanks, > Naresh._______________________________________________ > freebsd-drivers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" I've run the tests on a link aggregate with 2x 1GBs interfaces on FreeBSD 8.2 lagg0: flags=8943 metric 0 mtu 1500 options=9b ether 00:13:72:5e:27:66 media: Ethernet autoselect status: active laggproto failover laggport: em1 flags=0<> laggport: em0 flags=5 See below my results: PING pf2.multiprojet.hi-media-techno.com (192.168.27.243): 56 data bytes 64 bytes from 192.168.27.243: icmp_seq=0 ttl=63 time=1.920 ms 64 bytes from 192.168.27.243: icmp_seq=1 ttl=63 time=1.724 ms 64 bytes from 192.168.27.243: icmp_seq=2 ttl=63 time=2.071 ms 64 bytes from 192.168.27.243: icmp_seq=3 ttl=63 time=2.522 ms # ifconfig em0 down ; and clear ARP cache on switch port. # em1 moves as ACTIVE on lagg0 # em0 remains as MASTER on lagg0 64 bytes from 192.168.27.243: icmp_seq=4 ttl=63 time=25.868 ms 64 bytes from 192.168.27.243: icmp_seq=5 ttl=63 time=2.327 ms 64 bytes from 192.168.27.243: icmp_seq=6 ttl=63 time=2.346 ms 64 bytes from 192.168.27.243: icmp_seq=7 ttl=63 time=2.176 ms 64 bytes from 192.168.27.243: icmp_seq=8 ttl=63 time=2.105 ms [snip] 64 bytes from 192.168.27.243: icmp_seq=21 ttl=63 time=3.147 ms 64 bytes from 192.168.27.243: icmp_seq=22 ttl=63 time=2.017 ms 64 bytes from 192.168.27.243: icmp_seq=23 ttl=63 time=2.038 ms 64 bytes from 192.168.27.243: icmp_seq=24 ttl=63 time=2.346 ms # ifconfig em0 up ; and clear ARP cache on switch port. # em0 moves as ACTIVE,MASTER on lagg0 64 bytes from 192.168.27.243: icmp_seq=25 ttl=63 time=10.332 ms 64 bytes from 192.168.27.243: icmp_seq=26 ttl=63 time=2.104 ms 64 bytes from 192.168.27.243: icmp_seq=27 ttl=63 time=2.395 ms ^C Notice I've not lost a single ping. It's your switch's ARP cache. Your problem is that your interface x0 goes down, but the switch still thinks that lagg0's MAC address is on that port. Clear the cache, problem solved. If you're using cisco, run this on the 2 switches that connect to your host: sw29.gs.hi-media# clear arp-cache interface ten1/0/1 ;for example You'll notice much faster convergence. At the global configuration prompt: sw29.gs.hi-media(config)#mac address-table aging-time ? From owner-freebsd-drivers@FreeBSD.ORG Thu Sep 29 18:43:22 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CC86106567D for ; Thu, 29 Sep 2011 18:43:22 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 51EB58FC12 for ; Thu, 29 Sep 2011 18:43:22 +0000 (UTC) Received: by iadk27 with SMTP id k27so1467407iad.13 for ; Thu, 29 Sep 2011 11:43:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.24.96 with SMTP id u32mr2906110ibb.61.1317320062468; Thu, 29 Sep 2011 11:14:22 -0700 (PDT) Sender: andy@fud.org.nz Received: by 10.231.36.66 with HTTP; Thu, 29 Sep 2011 11:14:22 -0700 (PDT) In-Reply-To: <161553F2-FE14-417C-94C6-11ACBD28E06E@gmail.com> References: <161553F2-FE14-417C-94C6-11ACBD28E06E@gmail.com> Date: Fri, 30 Sep 2011 07:14:22 +1300 X-Google-Sender-Auth: -Vp6PrOoqfPIaPvma_9D9-1F9us Message-ID: From: Andrew Thompson To: Naresh Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-drivers@freebsd.org" Subject: Re: Link aggregation using LACP X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 18:43:22 -0000 On 30 September 2011 05:42, Naresh wrote: > Hi All, > > I am working on a 10Gb Ethernet driver for FreeBsd 8.2. When I enable link aggregation using LACP mode on two ports of our card, I expected load to be balanced on two ports(both are up). But interestingly traffic is flowing on only one interface. Have a look at lagg_hashmbuf() which generates the hash number to choose the port. It uses the ethernet and ip headers for this so ensure your test traffic has enough variation. > If I administratively bring down the interface on which traffic is flowing, I see lot of packet loss for about 30 secs, After that it picks up. We don't send a gratuitous arp when the links change, maybe this is causing your switches to not update quickly. We also use the slow lacp timer. Andrew From owner-freebsd-drivers@FreeBSD.ORG Fri Sep 30 12:01:28 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C17981065670 for ; Fri, 30 Sep 2011 12:01:28 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 61D168FC17 for ; Fri, 30 Sep 2011 12:01:27 +0000 (UTC) Received: by wyj26 with SMTP id 26so1387617wyj.13 for ; Fri, 30 Sep 2011 05:01:26 -0700 (PDT) Received: by 10.227.196.194 with SMTP id eh2mr11876917wbb.52.1317384085987; Fri, 30 Sep 2011 05:01:25 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id i29sm8779957wbp.22.2011.09.30.05.01.24 (version=SSLv3 cipher=OTHER); Fri, 30 Sep 2011 05:01:25 -0700 (PDT) Message-ID: <4E85AF93.1080308@my.gd> Date: Fri, 30 Sep 2011 14:01:23 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0) Gecko/20110922 Thunderbird/7.0 MIME-Version: 1.0 To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: CARP - patch for preempt + mastership bug from openbsd38 implementation X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 12:01:28 -0000 Hello list, I've submitted a PR + patch regarding a bug in carp's implementation from openbsd38 and lower. When preemption is enabled, a carp interface automatically assumes INIT->MASTER role without even checking if there is a faster master around. This breaks existing connections for people that don't use pfsync (or for connections which weren't synched yet) and confuses switches and clients alike. I'd like to make sure this gets looked at, so it makes 9.0's release if the carp implementation for 9.0 is still based on openbsd38 or lower. PR below: http://www.freebsd.org/cgi/query-pr.cgi?pr=161123 Regards, From owner-freebsd-drivers@FreeBSD.ORG Fri Sep 30 14:45:11 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C593106566B for ; Fri, 30 Sep 2011 14:45:11 +0000 (UTC) (envelope-from gbal.naresh@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id B64BC8FC13 for ; Fri, 30 Sep 2011 14:45:10 +0000 (UTC) Received: by qadz30 with SMTP id z30so466314qad.13 for ; Fri, 30 Sep 2011 07:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=lAqUwiPj9VPQp1uIvhOEViqvX1QTsngZgR3I/djgbuI=; b=CnF6at0onqjDT8PpOYzb4GpcjNvV5SY2LwspEORVgDNZgFLT4CLrWhSQc6EO4mlm35 4pvY4l6kkS5WZD3yfGfJwj0Ic9I7iqZ1VvFB0DmRGBPvidEVinuExW4gBauIQDCeg/eo KPVVnnO7EAtw26qb9J5BVC6Cau3M+NgAxltPo= Received: by 10.68.0.168 with SMTP id 8mr15590191pbf.126.1317393909301; Fri, 30 Sep 2011 07:45:09 -0700 (PDT) Received: from [27.61.35.199] ([27.61.35.199]) by mx.google.com with ESMTPS id z1sm18819542pbl.5.2011.09.30.07.45.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Sep 2011 07:45:07 -0700 (PDT) References: <161553F2-FE14-417C-94C6-11ACBD28E06E@gmail.com> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8H7) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <5496CA20-BFE1-41BE-A785-972DC37916B7@gmail.com> X-Mailer: iPhone Mail (8H7) From: Naresh Date: Fri, 30 Sep 2011 20:15:02 +0530 To: Andrew Thompson Cc: "freebsd-drivers@freebsd.org" Subject: Re: Link aggregation using LACP X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 14:45:11 -0000 Thanks Andrew, Damien. Damien you are using Failiover mode, That is working fine for me to. I have i= ssues only with LACP mode. As mentioned by Andrew, the slow LACP timer might be the reason. I tried it t= oday again. My observations are On switch:- 1) I have set LACP time out on the switch to one sec. 2) On the switch it shows neighbors timeout as 30 sec( i.e my host) Yesterday I mentioned it is taking around 30 seconds to recover, but actuall= y it is taking 90 seconds always. This problem is only if I administratively down the interface using ifconfig= . If I do a cable pull, then the recovery is immediate, might be because bot= h party's know about the link failure immediately. Thanks, Naresh. On 29-Sep-2011, at 11:44 PM, Andrew Thompson wrote: > On 30 September 2011 05:42, Naresh wrote: >> Hi All, >>=20 >> I am working on a 10Gb Ethernet driver for FreeBsd 8.2. When I enable lin= k aggregation using LACP mode on two ports of our card, I expected load to b= e balanced on two ports(both are up). But interestingly traffic is flowing o= n only one interface. >=20 > Have a look at lagg_hashmbuf() which generates the hash number to > choose the port. It uses the ethernet and ip headers for this so > ensure your test traffic has enough variation. >=20 >> If I administratively bring down the interface on which traffic is flowin= g, I see lot of packet loss for about 30 secs, After that it picks up. >=20 > We don't send a gratuitous arp when the links change, maybe this is > causing your switches to not update quickly. We also use the slow lacp > timer. >=20 >=20 > Andrew From owner-freebsd-drivers@FreeBSD.ORG Fri Sep 30 15:26:53 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 324EC1065673; Fri, 30 Sep 2011 15:26:53 +0000 (UTC) (envelope-from gbal.naresh@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id D338D8FC14; Fri, 30 Sep 2011 15:26:52 +0000 (UTC) Received: by yxk36 with SMTP id 36so2132916yxk.13 for ; Fri, 30 Sep 2011 08:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=GKx6dkCmEL1FeYVSkXWR049z7Y96KzTuXAHgUjpt3cA=; b=TCEst+p5SniQrctxI+iLiRjlC+7vzQMOqtVNf0YeUYuagcp3tuelk/2N/euMGtL7Nb YAYRPIfc1EtLxFCEOA2xMWkTIvQWEPB7Vafhf9cyEgGLxVY5SkjkiPDvx6m7w+VbJ09E 2OnrW3bZ2utBxPEIoT3sugaePHXi2vnfEGWlI= Received: by 10.68.4.132 with SMTP id k4mr58705341pbk.78.1317396411831; Fri, 30 Sep 2011 08:26:51 -0700 (PDT) Received: from [27.61.35.199] ([27.61.35.199]) by mx.google.com with ESMTPS id i3sm19089907pbg.10.2011.09.30.08.26.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Sep 2011 08:26:50 -0700 (PDT) References: <161553F2-FE14-417C-94C6-11ACBD28E06E@gmail.com> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8H7) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (8H7) From: Naresh Date: Fri, 30 Sep 2011 20:56:45 +0530 To: Andrew Thompson Cc: "freebsd-drivers@freebsd.org" Subject: Re: Link aggregation using LACP X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 15:26:53 -0000 Since my hosts LACP timeout is 30 seconds, switch is waiting for 3 LACP pkt= s, before it confirms link is down. So recovery is taking 90 secs. Will this timeout values also be negotiated between switch and host to=20 max value? If that is the case how to set freebsd LACP timeout to one second= ? Already I have set switch LACP timeout to one sec. -Naresh. On 29-Sep-2011, at 11:44 PM, Andrew Thompson wrote: > On 30 September 2011 05:42, Naresh wrote: >> Hi All, >>=20 >> I am working on a 10Gb Ethernet driver for FreeBsd 8.2. When I enable lin= k aggregation using LACP mode on two ports of our card, I expected load to b= e balanced on two ports(both are up). But interestingly traffic is flowing o= n only one interface. >=20 > Have a look at lagg_hashmbuf() which generates the hash number to > choose the port. It uses the ethernet and ip headers for this so > ensure your test traffic has enough variation. >=20 >> If I administratively bring down the interface on which traffic is flowin= g, I see lot of packet loss for about 30 secs, After that it picks up. >=20 > We don't send a gratuitous arp when the links change, maybe this is > causing your switches to not update quickly. We also use the slow lacp > timer. >=20 >=20 > Andrew