From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 07:00:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55EDF37B401; Sun, 13 Jul 2003 07:00:20 -0700 (PDT) Received: from mail.ludost.net (tonib-gw.customer.0rbitel.net [195.24.39.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7BAF43F3F; Sun, 13 Jul 2003 07:00:16 -0700 (PDT) (envelope-from maav@bastun.net) Received: from SABBATH (ozzy.ddns.cablebg.net [217.18.240.240]) by mail.ludost.net (Postfix) with ESMTP id 716DC4C518; Sun, 13 Jul 2003 17:00:14 +0300 (EEST) Message-ID: <000c01c34947$0b02e2b0$020aa8c0@SABBATH> From: "Boris Georgiev" To: , , Date: Sun, 13 Jul 2003 16:59:56 +0300 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Broadcom NetXtreme BCM5705M support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 14:00:21 -0000 Hello All,=20 I've got a Compaq Evo N620c notebook, which comes with a built-in lan = network card - Broadcom NetXtreme BCM5705M. I researched on the hardware = support for this NIC in FreeBSD and noticed that there is no hardware = support for it either in the STABLE, or in the CURRENT distribution. I = found that there is Linux driver for this NIC, which can be downloaded = from the 3Com web site on the following address: http://support.3com.com/infodeli/tools/nic/linux/bcm5700-5.0.5.tar.gz The driver comes as a RedHat binary, Linux kernel patch and standalone = source.=20 Can you, please update me if there is an updated if_bge driver, which = includes hardware support for this new chip or if someone is porting = this driver for FreeBSD and there is a beta version, I can cooperate = with testing it.=20 Boris Georgiev From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 08:23:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07DCC37B401; Sun, 13 Jul 2003 08:23:20 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A7B843F3F; Sun, 13 Jul 2003 08:23:19 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 3FE783ABB4D; Sun, 13 Jul 2003 17:28:46 +0200 (CEST) Date: Sun, 13 Jul 2003 17:28:46 +0200 From: Pawel Jakub Dawidek To: freebsd-hackers@freebsd.org Message-ID: <20030713152846.GT4973@garage.freebsd.pl> References: <20030629071211.GR7587@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="+xp03240ql3JIIXA" Content-Disposition: inline In-Reply-To: <20030629071211.GR7587@garage.freebsd.pl> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: abial@freebsd.org Subject: Re: Sysctls and mutexes. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 15:23:20 -0000 --+xp03240ql3JIIXA Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 29, 2003 at 09:12:11AM +0200, Pawel Jakub Dawidek wrote: +> I want to discuss two things about sysctls. [...] +> 2. Secound thing. I'm wondering if there is no need to and one more field +> to those macros: mutex that protects given value. Then standard funct= ions +> sysctl_handle_*() could use those mutexes when accessing to those val= ues. +>=20 +> Look at sysctl creation in /sys/dev/sound/pcm/mixer.c in function +> mixer_hwvol_init() or at sysctls in /sys/kern/kern_jail.c and many others +> as I susspect. +>=20 +> There is no need to break anything. We could create for now new macros: +> SYSCTL_ADD_INT_MTX(), etc. that will create int sysctl, but with informa= tion +> about its mutex. We should also teach sysctl_handle_int and friends how = to +> lock those mutexes and that they should ignore locking when this field i= s NULL. Ok, I've prepared a patch for this: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D54439 Could someone review it, please? --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --+xp03240ql3JIIXA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPxF6rj/PhmMH/Mf1AQHTlgP8D+XJlX8qkK2NF84rZRVrWhnaBFhnBnMj 5IYbIf8kv4ZfCgGRiE88cAMAIe+kG2m9vza7MSck6tFl0C9Xrkf2Je5UpquyMYk8 fJPg79I2OtSoq4/FRz9naB0T6Utxk30cCeQbMhnzuNT9U/xsNqc7Gx+P8k6i8/Rp T7s4i28dt3A= =9Wxh -----END PGP SIGNATURE----- --+xp03240ql3JIIXA-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 11:02:14 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 281D037B401 for ; Sun, 13 Jul 2003 11:02:14 -0700 (PDT) Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62EC543F3F for ; Sun, 13 Jul 2003 11:02:13 -0700 (PDT) (envelope-from nakal@web.de) Received: from [217.81.254.228] (helo=[217.81.254.228]) by smtp.web.de with esmtp (TLSv1:DES-CBC3-SHA:168) (WEB.DE 4.98 #244) id 19blAo-00068a-00 for freebsd-hackers@freebsd.org; Sun, 13 Jul 2003 20:02:10 +0200 From: Martin To: freebsd-hackers@freebsd.org Content-Type: text/plain Message-Id: <1058119316.547.22.camel@klotz.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 13 Jul 2003 20:01:57 +0200 Content-Transfer-Encoding: 7bit Sender: nakal@web.de Subject: USB device programming with ugen X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 18:02:14 -0000 Hi all, I have started to write a small video capture application for my webcam (the first few steps). I am using /dev/ugen0 to talk to the webcam and it seems to work. I can reset the webcam and hear a beep. It is correct so far. The problem is, I can only start my application on the text terminal. If I try to access it through xterm, gnome-terminal or konsole, it will freeze the whole system. While experimenting on the text terminal, I noticed that the commands (ioctls) are being sent correctly (don't return -1), but it takes long time till they return (approx 5 seconds). While an ioctl-command is being executed the system is not responding until it finishes successfully. Perhaps I am doing something wrong that's why I want to show you what I send to the webcam. Here a small part (there are 5 or 6 ioctls, but they look all same; I will not paste the error checking code, only the essential part): /* *** */ fdout=open("/dev/ugen0", O_RDWR, 0); memset(&ur, 0, sizeof(struct usb_ctl_request)); /* paranoid */ ur.ucr_addr=0; /* ignored */ ur.ucr_data=NULL; ur.ucr_actlen=0; ur.ucr_flags=0; ur.ucr_request.bmRequestType=UT_WRITE_VENDOR_DEVICE; ur.ucr_request.bRequest=0; USETW(ur.ucr_request.wValue,0xff00); USETW(ur.ucr_request.wIndex,0x00); USETW(ur.ucr_request.wLength,0); ioctl(fdout,USB_DO_REQUEST,&ur); ... close(fdout); /* *** */ I am executing it on current (compiled yesterday). I have same behavior on older 5.1-kernels and it's freezing stable no matter if I start it in X or on text terminal (even in single-user). Further details about my system: P3 500MHz, Intel 440BX, 256MB, only 1 USB device attached (Creative Video Blaster Webcam Go) dmesg: uhci0: port 0xc000-0xc01f at device 7.2 on pci0 pci_cfgintr: 0:7 INTD routed to irq 11 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ugen0: WINBOND W9967CF, rev 1.10/1.10, addr 2 I would like to know if I am doing something wrong accessing the USB-device. In my opinion, it should not freeze the system at least. Thanks in advance, Martin From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 13:29:47 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FF4637B401; Sun, 13 Jul 2003 13:29:47 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58A6C43FAF; Sun, 13 Jul 2003 13:29:46 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.9/8.12.5) with ESMTP id h6DKTdYU048328; Sun, 13 Jul 2003 14:29:39 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.9/8.12.5/Submit) id h6DKTcKZ048327; Sun, 13 Jul 2003 14:29:38 -0600 (MDT) (envelope-from ken) Date: Sun, 13 Jul 2003 14:29:38 -0600 From: "Kenneth D. Merry" To: Boris Georgiev Message-ID: <20030713142937.A48304@panzer.kdm.org> References: <000c01c34947$0b02e2b0$020aa8c0@SABBATH> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <000c01c34947$0b02e2b0$020aa8c0@SABBATH>; from maav@bastun.net on Sun, Jul 13, 2003 at 04:59:56PM +0300 cc: freebsd-net@freebsd.org cc: wpaul@windriver.com cc: freebsd-hackers@freebsd.org Subject: Re: Broadcom NetXtreme BCM5705M support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 20:29:47 -0000 On Sun, Jul 13, 2003 at 16:59:56 +0300, Boris Georgiev wrote: > Hello All, > > I've got a Compaq Evo N620c notebook, which comes with a built-in lan network card - Broadcom NetXtreme BCM5705M. I researched on the hardware support for this NIC in FreeBSD and noticed that there is no hardware support for it either in the STABLE, or in the CURRENT distribution. I found that there is Linux driver for this NIC, which can be downloaded from the 3Com web site on the following address: > > http://support.3com.com/infodeli/tools/nic/linux/bcm5700-5.0.5.tar.gz > > The driver comes as a RedHat binary, Linux kernel patch and standalone source. > Can you, please update me if there is an updated if_bge driver, which includes hardware support for this new chip or if someone is porting this driver for FreeBSD and there is a beta version, I can cooperate with testing it. > Please wrap your lines at something less than 80 columns. Bill Paul just posted a message to -current, -net and -mobile about some patches to the bge(4) driver to hopefully support that chip: http://www.freebsd.org/~wpaul/Broadcom/5705 Ken -- Kenneth Merry ken@kdm.org From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 14:29:33 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1D9C37B401; Sun, 13 Jul 2003 14:29:33 -0700 (PDT) Received: from hotmail.com (law14-f89.law14.hotmail.com [64.4.21.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFE1B43F85; Sun, 13 Jul 2003 14:29:32 -0700 (PDT) (envelope-from otterr77@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 13 Jul 2003 14:29:32 -0700 Received: from 66.93.49.241 by lw14fd.law14.hotmail.msn.com with HTTP; Sun, 13 Jul 2003 21:29:31 GMT X-Originating-IP: [66.93.49.241] X-Originating-Email: [otterr77@hotmail.com] From: "Otterro Del Agua" To: questions@freebsd.org, hackers@freebsd.org, advocacy@freebsd.org, doc@freebsd.org, chat@freebsd.org Date: Sun, 13 Jul 2003 17:29:31 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 13 Jul 2003 21:29:32.0763 (UTC) FILETIME=[D9A7B2B0:01C34985] Subject: FFL License terms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 21:29:34 -0000 Good afternoon. I was hoping to find some information here, but have been unable to find it so far. I'm in the process of completing media for release and am looking at different licensing options. I'm familiar with BSD, GPL, and even Poul-Henning Kamp's "beer-ware license". I've found reference to FFL (and even FFLv2), in honor of Bill Fumerola. Where can I find the terms of this license? I need to make sure there are no issues with compliance with other/future releases. Is this something we can expect to see the any of the "top five" using in the future? -ott _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 16:06:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B3C637B401 for ; Sun, 13 Jul 2003 16:06:16 -0700 (PDT) Received: from 213-219-73-159-dsl.mus.estpak.ee (213-219-73-159-dsl.mus.estpak.ee [213.219.73.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEE6843F85 for ; Sun, 13 Jul 2003 16:06:14 -0700 (PDT) (envelope-from priitp@213-219-73-159-dsl.mus.estpak.ee) Received: from 213-219-73-159-dsl.mus.estpak.ee (localhost.meskaliin [127.0.0.1])h6E1kxUl058723 for ; Mon, 14 Jul 2003 01:47:00 GMT (envelope-from priitp@213-219-73-159-dsl.mus.estpak.ee) Received: (from priitp@localhost)h6E1kxMD058722 for hackers@freebsd.org; Mon, 14 Jul 2003 01:46:59 GMT Date: Mon, 14 Jul 2003 01:46:58 +0000 From: Priit Piipuu To: hackers@freebsd.org Message-ID: <20030714014658.GD5738@minerva.meskaliin.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 5.1-CURRENT i386 User-Agent: Mutt/1.5.4i Subject: libedit and g++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 23:06:16 -0000 Hi! There seems to be a problem using libedit from C++. Small test case: > cat test.c #include #include int main(void) { EditLine *ed; ed = el_init("foo", stdin, stdout, stderr); el_end(ed); return 0; } > gcc -ledit -ltermcap -o test test.c > g++ -ledit -ltermcap -o test test.c /var/tmp//ccAVIwg7.o: In function `main': /var/tmp//ccAVIwg7.o(.text+0x28): undefined reference to `el_init(char const*, __sFILE*, __sFILE*, __sFILE*)' /var/tmp//ccAVIwg7.o(.text+0x39): undefined reference to `el_end(editline*)' What did I miss? PS. > g++ --version g++ (GCC) 3.2.2 [FreeBSD] 20030205 (release) -- Priit Piipuu From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 16:41:30 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EF8137B404 for ; Sun, 13 Jul 2003 16:41:30 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87CF943F85 for ; Sun, 13 Jul 2003 16:41:29 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 02225386AA; Mon, 14 Jul 2003 01:41:27 +0200 (CEST) Date: Mon, 14 Jul 2003 01:41:27 +0200 From: Simon Barner To: Priit Piipuu Message-ID: <20030713234127.GA537@zi025.glhnet.mhn.de> References: <20030714014658.GD5738@minerva.meskaliin.ee> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: <20030714014658.GD5738@minerva.meskaliin.ee> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: hackers@freebsd.org Subject: Re: libedit and g++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 23:41:30 -0000 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, > > cat test.c > #include > #include >=20 It will link, when you wrap the include with an extern "C" statement: extern "C" { #include } This should probably by handled by the library header itself, here is a patch: --- histedit.h.orig Mon Jul 14 01:37:43 2003 +++ histedit.h Mon Jul 14 01:38:33 2003 @@ -48,6 +48,10 @@ #include #include =20 +#ifdef __cplusplus +extern "C" { +#endif + /* * =3D=3D=3D=3D Editing =3D=3D=3D=3D */ @@ -178,5 +182,9 @@ #define H_LOAD 14 /* , const char *); */ #define H_SAVE 15 /* , const char *); */ #define H_CLEAR 16 /* , void); */ + +#ifdef __cplusplus +} +#endif =20 #endif /* _h_editline */ --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/Ee4nCkn+/eutqCoRAlq2AJ9c/tEXybnLoVhrHNHcwOgKCHqQbQCfR1SC QpsJa7o6oRdd9rZqXPwzjeo= =WNZH -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 16:44:28 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD01737B404; Sun, 13 Jul 2003 16:44:28 -0700 (PDT) Received: from dust.freshx.de (freshx.de [80.190.100.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABA0443F85; Sun, 13 Jul 2003 16:44:27 -0700 (PDT) (envelope-from kai.mosebach@freshx.de) Received: from alpha (p508B3231.dip.t-dialin.net [80.139.50.49]) by dust.freshx.de (Postfix) with ESMTP id E008015E0C9; Mon, 14 Jul 2003 01:44:14 +0200 (CEST) From: "Kai Mosebach" To: Date: Mon, 14 Jul 2003 01:44:29 +0200 Message-ID: <005d01c34998$b4c6a600$0100000a@alpha> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: geteuid hangs in sigsuspend X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 23:44:29 -0000 Hi, when i update from 5.0-REL to 5.1-REL / 5.1-CURRENT, using a program compiled against linuxthreads, might there be a different behaviour in the geteuid function of libc ? on my sapdb port the database manager called dbmcli starts fine on 5.0-REL, on 5.1-REL/CURRENT it hangs on a sigsuspend. When i use the FreeBSD 5.0 libs on my FreeBSD 5.1 system, the program runs fine ! Could someone help ? 5.1-CURRENT is from 2003-July-10 Best regards Kai ---------------------------------------------------------- The program output looks like this : [root@devil:/usr/sapdb/src/FreeBSD/sys/src] # dbmcli HERE 1 HERE 3 canceladdr 0x00000000 component 'dbmcli' DBLANG=(null) SERVERDB=(null) HERE 3 ---------------------------------------------------- The code looks like this : #ifdef FREEBSD_DEBUG printf("HERE 3\n"); // 1st one #endif en01assignStdFiledescriptors(); en01CheckForDBUmask (); eo46PtoC ( sql01_component , component , COMPSIZ ); DBG1 (( MF__,"canceladdr 0x%08lx component '%s' \n", (long) canceladdr , sql01_component )) sql01_dblang = getenv ( "DBLOCALE" ); if ( sql01_dblang == NULL ) sql01_dblang = getenv ( "DBLANG" ); DBG1 (( MF__,"DBLANG=%s\n", sql01_dblang )) sql01_dbname = getenv ( "SERVERDB" ); DBG1 (( MF__,"SERVERDB=%s\n", sql01_dbname )) #ifdef FREEBSD_DEBUG printf("HERE 3\n"); // 2nd one #endif uid = geteuid (); pwdp = getpwuid ( uid ); #ifdef FREEBSD_DEBUG printf("HERE 3\n"); // 3rd one (not appearing) #endif ------------------------------------------ strace looks like this : [root@devil:/usr/sapdb/src/FreeBSD/sys/src] # strace dbmcli execve(0xbfbff108, [0xbfbff5cc], [/* 0 vars */]) = 0 mmap(0, 3392, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x281a6000 munmap(0x281a6000, 3392) = 0 __sysctl([...], 0x281a3e68, 0xbfbff39c, NULL, 0) = 0 mmap(0, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0x281a6000 issetugid(0x28185000) = 0 access("/usr/sapdb/depend/lib/libcrypt.so.2", F_OK) = -1 ENOENT (No such file or directory) open("/var/run/ld-elf.so.hints", O_RDONLY) = 3 read(3, "\305q\376\377\271q\376\377.p\376\377 From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 17:04:06 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 933A637B401 for ; Sun, 13 Jul 2003 17:04:06 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6A69B43F85 for ; Sun, 13 Jul 2003 17:04:05 -0700 (PDT) (envelope-from mdcki@gmx.net) Received: (qmail 30522 invoked by uid 65534); 14 Jul 2003 00:04:04 -0000 Received: from cvpn016.gwdg.de (EHLO gmx.net) (134.76.22.16) by mail.gmx.net (mp002) with SMTP; 14 Jul 2003 02:04:04 +0200 Message-ID: <3F11F384.6060205@gmx.net> Date: Mon, 14 Jul 2003 02:04:20 +0200 From: Marcin Dalecki User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030701 X-Accept-Language: en-us, en, pl, ru MIME-Version: 1.0 To: Priit Piipuu References: <20030714014658.GD5738@minerva.meskaliin.ee> In-Reply-To: <20030714014658.GD5738@minerva.meskaliin.ee> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: libedit and g++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 00:04:06 -0000 Priit Piipuu wrote: > Hi! > > There seems to be a problem using libedit from C++. Small test case: > > >>cat test.c > > #include > #include > > int > main(void) { > EditLine *ed; > > ed = el_init("foo", stdin, stdout, stderr); > el_end(ed); > > return 0; > } > >>gcc -ledit -ltermcap -o test test.c >>g++ -ledit -ltermcap -o test test.c > > /var/tmp//ccAVIwg7.o: In function `main': > /var/tmp//ccAVIwg7.o(.text+0x28): undefined reference to `el_init(char const*, __sFILE*, __sFILE*, __sFILE*)' > /var/tmp//ccAVIwg7.o(.text+0x39): undefined reference to `el_end(editline*)' > > What did I miss? Some lectures in C++ classroom. Hint: extern "C" From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 21:28:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3621D37B401 for ; Sun, 13 Jul 2003 21:28:26 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11DC943F93 for ; Sun, 13 Jul 2003 21:28:25 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9/8.12.3) with ESMTP id h6E4R9cF004818; Sun, 13 Jul 2003 22:28:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 13 Jul 2003 22:27:04 -0600 (MDT) Message-Id: <20030713.222704.37593425.imp@bsdimp.com> To: priit.piipuu@mail.ee From: "M. Warner Losh" In-Reply-To: <20030714014658.GD5738@minerva.meskaliin.ee> References: <20030714014658.GD5738@minerva.meskaliin.ee> X-Mailer: Mew version 2.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: libedit and g++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 04:28:26 -0000 please try the following patch: Index: include/histedit.h =================================================================== RCS file: /home/ncvs/src/include/histedit.h,v retrieving revision 1.8 diff -u -r1.8 histedit.h --- include/histedit.h 16 Jun 2002 08:29:33 -0000 1.8 +++ include/histedit.h 14 Jul 2003 04:26:41 -0000 @@ -47,6 +47,8 @@ #include #include +__BEGIN_DECLS + /* * ==== Editing ==== */ @@ -193,5 +195,7 @@ #define H_LOAD 17 /* , const char *); */ #define H_SAVE 18 /* , const char *); */ #define H_CLEAR 19 /* , void); */ + +__END_DECLS #endif /* _HISTEDIT_H_ */ From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 21:46:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6B1037B401 for ; Sun, 13 Jul 2003 21:46:38 -0700 (PDT) Received: from ariel.ucs.unimelb.edu.au (ariel.ucs.unimelb.edu.au [128.250.20.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5029943F93 for ; Sun, 13 Jul 2003 21:46:37 -0700 (PDT) (envelope-from jrhoden@unimelb.edu.au) Received: from elkanah.its.unimelb.edu.au (elkanah.its.unimelb.edu.au [128.250.18.41])h6E4kZfE000445 for ; Mon, 14 Jul 2003 14:46:35 +1000 (EST) From: JacobRhoden Organization: University of Melbourne To: freebsd-hackers@freebsd.org Date: Mon, 14 Jul 2003 14:46:35 +1000 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307141446.35380.jrhoden@unimelb.edu.au> Subject: Intel D845EPT2 Motherboard - USB broken :( X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 04:46:38 -0000 Hey People, Does anyone here use the Intel EPT2 motherboard? Have they managed to get USB working, and if so how? Any ideas greatly appreciated! (Or where to poke at would be useful as well). usbd -dd prints messages as if it is all working fine, but it simply does not recognise any device you chuck at it. Thanks, Jacob Motherboard web site: http://www.intel.com/design/motherbd/pt2/ Jacob Rhoden Phone: +61 3 8344 4478 ITS Division Email: jrhoden@unimelb.edu.au Melbourne University Mobile: +61 403 788 386 From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 21:48:28 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B340637B401 for ; Sun, 13 Jul 2003 21:48:28 -0700 (PDT) Received: from ariel.ucs.unimelb.edu.au (ariel.ucs.unimelb.edu.au [128.250.20.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8DDA43FAF for ; Sun, 13 Jul 2003 21:48:27 -0700 (PDT) (envelope-from jrhoden@unimelb.edu.au) Received: from elkanah.its.unimelb.edu.au (elkanah.its.unimelb.edu.au [128.250.18.41])h6E4mQfE000537 for ; Mon, 14 Jul 2003 14:48:26 +1000 (EST) From: JacobRhoden Organization: University of Melbourne To: freebsd-hackers@freebsd.org Date: Mon, 14 Jul 2003 14:48:26 +1000 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200307141448.26271.jrhoden@unimelb.edu.au> Subject: Intel D845EPT2 Motherboard - USB broken :( X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 04:48:29 -0000 Resending: realised I should indicate I am using 4.8-STABLE (Freshly compiled) Hey People, Does anyone here use the Intel EPT2 motherboard? Have they managed to get USB working, and if so how? Any ideas greatly appreciated! (Or where to poke at would be useful as well). usbd -dd prints messages as if it is all working fine, but it simply does not recognise any device you chuck at it. Thanks, Jacob Motherboard web site: http://www.intel.com/design/motherbd/pt2/ Jacob Rhoden Phone: +61 3 8344 4478 ITS Division Email: jrhoden@unimelb.edu.au Melbourne University Mobile: +61 403 788 386 From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 03:08:19 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8A0D37B401 for ; Mon, 14 Jul 2003 03:08:19 -0700 (PDT) Received: from 213-219-73-159-dsl.mus.estpak.ee (213-219-73-159-dsl.mus.estpak.ee [213.219.73.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DAD543F85 for ; Mon, 14 Jul 2003 03:08:18 -0700 (PDT) (envelope-from priitp@213-219-73-159-dsl.mus.estpak.ee) Received: from 213-219-73-159-dsl.mus.estpak.ee (localhost.meskaliin [127.0.0.1])h6ECmuaV060962; Mon, 14 Jul 2003 12:48:56 GMT (envelope-from priitp@213-219-73-159-dsl.mus.estpak.ee) Received: (from priitp@localhost)h6ECmrGR060961; Mon, 14 Jul 2003 12:48:53 GMT Date: Mon, 14 Jul 2003 12:48:53 +0000 From: Priit Piipuu To: "M. Warner Losh" Message-ID: <20030714124852.GE5738@minerva.meskaliin.ee> References: <20030714014658.GD5738@minerva.meskaliin.ee> <20030713.222704.37593425.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030713.222704.37593425.imp@bsdimp.com> X-Operating-System: FreeBSD 5.1-CURRENT i386 User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org Subject: Re: libedit and g++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 10:08:20 -0000 P, 13 juuli2003 kirjutas M. Warner Losh : > please try the following patch: > > Index: include/histedit.h > =================================================================== > RCS file: /home/ncvs/src/include/histedit.h,v > retrieving revision 1.8 > diff -u -r1.8 histedit.h > --- include/histedit.h 16 Jun 2002 08:29:33 -0000 1.8 > +++ include/histedit.h 14 Jul 2003 04:26:41 -0000 > @@ -47,6 +47,8 @@ > #include > #include > > +__BEGIN_DECLS > + > /* > * ==== Editing ==== > */ > @@ -193,5 +195,7 @@ > #define H_LOAD 17 /* , const char *); */ > #define H_SAVE 18 /* , const char *); */ > #define H_CLEAR 19 /* , void); */ > + > +__END_DECLS > > #endif /* _HISTEDIT_H_ */ Works well, thanks! -- Priit Piipuu From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 04:15:23 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22CFE37B401; Mon, 14 Jul 2003 04:15:23 -0700 (PDT) Received: from dust.freshx.de (freshx.de [80.190.100.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1004F43F3F; Mon, 14 Jul 2003 04:15:22 -0700 (PDT) (envelope-from kai.mosebach@freshx.de) Received: from alpha (p508B3231.dip.t-dialin.net [80.139.50.49]) by dust.freshx.de (Postfix) with ESMTP id 4CB0B15E201; Mon, 14 Jul 2003 13:15:15 +0200 (CEST) From: "Kai Mosebach" To: Date: Mon, 14 Jul 2003 13:15:24 +0200 Message-ID: <000601c349f9$39b69fe0$0100000a@alpha> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal cc: freebsd-hackers@freebsd.org cc: freebsd-threads@freebsd.org Subject: AW: getpwnam + getpwnam_r + LinuxThreads port = deadlock X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 11:15:23 -0000 > -----Urspr=FCngliche Nachricht----- > Von: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > hackers@freebsd.org] Im Auftrag von Daniel Eischen > Gesendet: Samstag, 12. Juli 2003 21:07 > An: Joshua Oreman > Cc: hackers@freebsd.org > Betreff: Re: getpwnam + getpwnam_r + LinuxThreads port =3D deadlock >=20 > On Sat, 12 Jul 2003, Joshua Oreman wrote: >=20 > > On Sat, Jul 12, 2003 at 10:47:50AM -0400 or thereabouts, Daniel Eischen > wrote: > > > On Fri, 11 Jul 2003, Joshua Oreman wrote: > > > > > > > Hi -hackers, > > > > > > > > System: FreeBSD 5.0-CURRENT cvsupped around 5.0-RELEASE > > > > > > > > I'm writing an app that links with the LinuxThreads > > > > (/usr/ports/devel/linuxthreads) and also uses getpwnam(). The > problem: > > > > a deadlock. GDB backtrace: > > > > > > > > Basically: FreeBSD implements getpwnam() as a wrapper around > > > > getpwnam_r(), as seen in src/lib/libc/gen/getpwent.c: > > > > > > > > So basically, my app calls getpwnam(), which calls the overridden > > > > getpwnam_r() from LinuxThreads, which calls getpwnam() from libc > > > > again, and then calls getpwnam_r() from LinuxThreads again, and > > > > deadlocks trying to recursively lock its own mutex. Obviously, if > > > > there was no mutex the stack would leak out the back of my computer > > > > :-) > > > > > > > > Any ideas here? > > > > > > Three ideas: > > > > > > 1) Change the linuxthreads port to not implement getpwname > > > in the way that it is (or at all and let it use libc's > > > version). > > > > Probably the easiest way; just include the getpw(nam|uid)_r > > code in #ifndef BSD (or #ifndef __FreeBSD__ if it's only > > a FBSD problem). > > > > > > > > 2) Change libc so that getpwnam and getpwnam_r are weak > > > references to _getpwnam and _getpwnam_r respectively > > > and have the "_" versions be the real implementation. > > > Make all references in libc use _getpwname and > > > _getpwnam_r (including the call to _getpwnam_r in > > > _getpwnam). > > > > I think this would still cause the same problem, but not sure. > > > > > > > > 3) CVSup to the latest 5.x and use libthr or libkse and > > > forget linuxthreads. > > I am having the same problems in my sapdb port, as mentioned in another mail. For me its also not this simple to simply switch to kse, because then other kse related problems occur. Wouldnt it be more "clean", to fix the issue in the linuxthreads implementation instead ? (For example many users might use linuxthreads for mysql compilation for example, not knowing what they await ...) Btw : why was this problem not occuring in 5.0-RELEASE ? Cheers Kai From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 08:16:30 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8373937B401 for ; Mon, 14 Jul 2003 08:16:30 -0700 (PDT) Received: from smtp.web.de (smtp01.web.de [217.72.192.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 701CD43FAF for ; Mon, 14 Jul 2003 08:15:53 -0700 (PDT) (envelope-from nakal@web.de) Received: from [217.81.249.71] (helo=[217.81.249.71]) by smtp.web.de with esmtp (TLSv1:DES-CBC3-SHA:168) (WEB.DE 4.98 #244) id 19c53Q-0005Lo-00 for freebsd-hackers@freebsd.org; Mon, 14 Jul 2003 17:15:52 +0200 From: Martin To: freebsd-hackers@freebsd.org In-Reply-To: <1058119316.547.22.camel@klotz.local> References: <1058119316.547.22.camel@klotz.local> Content-Type: text/plain Message-Id: <1058195748.679.33.camel@klotz.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 14 Jul 2003 17:15:49 +0200 Content-Transfer-Encoding: 7bit Sender: nakal@web.de Subject: USB device programming with ugen [Solved] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 15:16:30 -0000 Hi again, Seems it was my fault. I found a solution in forums. I had to try out many things until someone has pointed me to BIOS settings and "assigning interrupt to USB". I noticed it was off and enabled it. It works now. :) (E.a.: no delays while accessing ugen0 and no freeze with X11.) Martin PS.: perhaps someone should mention it somewhere in the FAQ. From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 12:53:46 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6C8837B401; Mon, 14 Jul 2003 12:53:46 -0700 (PDT) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1E5743FBD; Mon, 14 Jul 2003 12:53:41 -0700 (PDT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper [212.12.50.230]) by schlepper.zs64.net (8.12.9/8.11.1) with ESMTP id h6EJrekR065379; Mon, 14 Jul 2003 21:53:40 +0200 (CEST) (envelope-from cracauer@schlepper.zs64.net) Received: (from cracauer@localhost) by schlepper.zs64.net (8.12.9/8.12.9/Submit) id h6EJrdep065378; Mon, 14 Jul 2003 15:53:39 -0400 (EDT) Date: Mon, 14 Jul 2003 15:53:39 -0400 From: Martin Cracauer To: freebsd-hackers@freebsd.org Message-ID: <20030714155339.A65337@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i cc: freebsd-usergroups@freebsd.org Subject: Boston area BSD meeting (or user group?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 19:53:47 -0000 Hi, folks, seems we have no user group in Boston. What about a few of us get together for some BSD chatting? If so,let me know what kind of meeting you'd like (beer, hacking etc.). Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ No warranty. This email is probably produced by one of my cats stepping on the keys. No, I don't have an infinite number of cats. From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 14:04:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0D0037B401; Mon, 14 Jul 2003 14:04:01 -0700 (PDT) Received: from thehousleys.net (frenchknot.ne.client2.attbi.com [24.34.24.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBDE343F75; Mon, 14 Jul 2003 14:04:00 -0700 (PDT) (envelope-from jim@thehousleys.net) Received: (from root@localhost) by thehousleys.net (8.12.8p1/8.11.6) id h6EL3tR8030418; Mon, 14 Jul 2003 17:03:55 -0400 (EDT) (envelope-from jim@Thehousleys.net) Received: from Thehousleys.net (baby.int.thehousleys.net [192.168.0.125]) (authenticated bits=0) by thehousleys.net (8.12.8p1/8.12.8) with ESMTP id h6EL3pqK030404; Mon, 14 Jul 2003 17:03:52 -0400 (EDT) (envelope-from jim@Thehousleys.net) Message-ID: <3F131AB7.30605@Thehousleys.net> Date: Mon, 14 Jul 2003 17:03:51 -0400 From: James Housley User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030701 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Cracauer References: <20030714155339.A65337@cons.org> In-Reply-To: <20030714155339.A65337@cons.org> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms070007020100010603000100" X-Virus-Scanned: by AMaViS perl-10 cc: freebsd-usergroups@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Boston area BSD meeting (or user group?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 21:04:03 -0000 This is a cryptographically signed message in MIME format. --------------ms070007020100010603000100 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Martin Cracauer wrote: > Hi, folks, > > seems we have no user group in Boston. > > What about a few of us get together for some BSD chatting? > > If so,let me know what kind of meeting you'd like (beer, hacking > etc.). > > Martin Sounds good to me, but I am not on freebsd-usergroups. I live on the South Shore. -- /"\ ASCII Ribbon Campaign . \ / - NO HTML/RTF in e-mail . X - NO Word docs in e-mail . / \ ----------------------------------------------------------------- jeh@FreeBSD.org http://www.FreeBSD.org The Power to Serve jim@TheHousleys.Net http://www.TheHousleys.net jhousley@SimTel.Net http://www.SimTel.Net --------------------------------------------------------------------- Unix is very user-friendly. It's just picky who its friends are. --------------ms070007020100010603000100 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJfjCC Ax0wggKGoAMCAQICAwhV1TANBgkqhkiG9w0BAQQFADCBkjELMAkGA1UEBhMCWkExFTATBgNV BAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUx HTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVl bWFpbCBSU0EgMjAwMC44LjMwMB4XDTAyMDkyMzE5NTY1NFoXDTAzMDkyMzE5NTY1NFowXjEQ MA4GA1UEBBMHSG91c2xleTEOMAwGA1UEKhMFSmFtZXMxFjAUBgNVBAMTDUphbWVzIEhvdXNs ZXkxIjAgBgkqhkiG9w0BCQEWE2ppbUB0aGVob3VzbGV5cy5uZXQwggEiMA0GCSqGSIb3DQEB AQUAA4IBDwAwggEKAoIBAQCr0ITZC8oN4BtXIQiITiV02V8+rta7TvdkRzNtG3G8iRrl9Tkn mw9HF1wDFix1NCJ0g+1OKfbif2ZqHLyY+s+mO0JOJdmZKeKFXPrIodZKddE8Lhq78R2sfyQT N16hKpcSUbG790EkAV450688lk9scMpLgMvSV6+NiDhunr0P7FAmlNOTroXTiePUQOSNBD4p WK1UJrj9lCUVhIy6yxHdhjCU7FGZlFFvC8Z4yvkvB6IZ6386sCg3DkDHHXaWUuTg0d/AEqSN CF/VnGL50ejeoGHTTsrlUf56+F62soquEDGZ31cNvIU8J88VhqBLnaW21/qZaT3tayWmaaJ3 dwkDAgMBAAGjMDAuMB4GA1UdEQQXMBWBE2ppbUB0aGVob3VzbGV5cy5uZXQwDAYDVR0TAQH/ BAIwADANBgkqhkiG9w0BAQQFAAOBgQBdnAN+HFoylZvtEhBD5Y0+djJuOlgoyBRI89efEN8f SHzzYzPydRTimjH+L0wowZcAAwhVNoVdCNJ5bCYWYa8/TByMCo2UEkAcdCuwBeFEPhU24W+r jCN0KtxL0xMLPSb+PNfBgidXUzlFVi7sh8S67tkz9qmxnR2cKn180/ED+TCCAx0wggKGoAMC AQICAwhV1TANBgkqhkiG9w0BAQQFADCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rl cm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsT FENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0Eg MjAwMC44LjMwMB4XDTAyMDkyMzE5NTY1NFoXDTAzMDkyMzE5NTY1NFowXjEQMA4GA1UEBBMH SG91c2xleTEOMAwGA1UEKhMFSmFtZXMxFjAUBgNVBAMTDUphbWVzIEhvdXNsZXkxIjAgBgkq hkiG9w0BCQEWE2ppbUB0aGVob3VzbGV5cy5uZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw ggEKAoIBAQCr0ITZC8oN4BtXIQiITiV02V8+rta7TvdkRzNtG3G8iRrl9Tknmw9HF1wDFix1 NCJ0g+1OKfbif2ZqHLyY+s+mO0JOJdmZKeKFXPrIodZKddE8Lhq78R2sfyQTN16hKpcSUbG7 90EkAV450688lk9scMpLgMvSV6+NiDhunr0P7FAmlNOTroXTiePUQOSNBD4pWK1UJrj9lCUV hIy6yxHdhjCU7FGZlFFvC8Z4yvkvB6IZ6386sCg3DkDHHXaWUuTg0d/AEqSNCF/VnGL50eje oGHTTsrlUf56+F62soquEDGZ31cNvIU8J88VhqBLnaW21/qZaT3tayWmaaJ3dwkDAgMBAAGj MDAuMB4GA1UdEQQXMBWBE2ppbUB0aGVob3VzbGV5cy5uZXQwDAYDVR0TAQH/BAIwADANBgkq hkiG9w0BAQQFAAOBgQBdnAN+HFoylZvtEhBD5Y0+djJuOlgoyBRI89efEN8fSHzzYzPydRTi mjH+L0wowZcAAwhVNoVdCNJ5bCYWYa8/TByMCo2UEkAcdCuwBeFEPhU24W+rjCN0KtxL0xML PSb+PNfBgidXUzlFVi7sh8S67tkz9qmxnR2cKn180/ED+TCCAzgwggKhoAMCAQICEGZFcrfM dPXPY3ZFhNAukQEwDQYJKoZIhvcNAQEEBQAwgdExCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxX ZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEaMBgGA1UEChMRVGhhd3RlIENvbnN1 bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2VydmljZXMgRGl2aXNpb24xJDAiBgNV BAMTG1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBDQTErMCkGCSqGSIb3DQEJARYccGVyc29u YWwtZnJlZW1haWxAdGhhd3RlLmNvbTAeFw0wMDA4MzAwMDAwMDBaFw0wNDA4MjcyMzU5NTla MIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYDVQQHEwlDYXBl IFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUQ2VydGlmaWNhdGUgU2VydmljZXMx KDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAyMDAwLjguMzAwgZ8wDQYJKoZIhvcN AQEBBQADgY0AMIGJAoGBAN4zMqZjxwklRT7SbngnZ4HF2ogZgpcO40QpimM1Km1wPPrcrvfu dG8wvDOQf/k0caCjbZjxw0+iZdsN+kvx1t1hpfmFzVWaNRqdknWoJ67Ycvm6AvbXsJHeHOmr 4BgDqHxDQlBRh4M88Dm0m1SKE4f/s5udSWYALQmJ7JRr6aFpAgMBAAGjTjBMMCkGA1UdEQQi MCCkHjAcMRowGAYDVQQDExFQcml2YXRlTGFiZWwxLTI5NzASBgNVHRMBAf8ECDAGAQH/AgEA MAsGA1UdDwQEAwIBBjANBgkqhkiG9w0BAQQFAAOBgQAxsUtHXfkBceX1U2xdedY9mMAmE2KB IqcS+CKV6BtJtyd7BDm6/ObyJOuR+r3sDSo491BVqGz3Da1MG7wD9LXrokefbKIMWI0xQgkR bLAaadErErJAXWr5edDqLiXdiuT82w0fnQLzWtvKPPZE6iZph39Ins6ln+eE2MliYq0FxjGC A9UwggPRAgEBMIGaMIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIw EAYDVQQHEwlDYXBlIFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUQ2VydGlmaWNh dGUgU2VydmljZXMxKDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAyMDAwLjguMzAC AwhV1TAJBgUrDgMCGgUAoIICDzAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3 DQEJBTEPFw0wMzA3MTQyMTAzNTFaMCMGCSqGSIb3DQEJBDEWBBS4JrH7eodoR3Qqljvyun9Z DewrizBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIAgDANBggq hkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDCBqwYJKwYBBAGCNxAEMYGdMIGa MIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYDVQQHEwlDYXBl IFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUQ2VydGlmaWNhdGUgU2VydmljZXMx KDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAyMDAwLjguMzACAwhV1TCBrQYLKoZI hvcNAQkQAgsxgZ2ggZowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUx EjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZp Y2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4z MAIDCFXVMA0GCSqGSIb3DQEBAQUABIIBAELnyYFzthE6a2xoZDA4Z0rNPqtOlBTECggPUfih yU6ce5bgmz1fI261r8OMpmIS51q+RfBUcwUvc7+PpyTNdnyO/zYxFoG+cyyfySC103MgNFv8 Z39SpGZDzyyvv5K5oR85i4YnLGgvllaUpnqgCQHmCTAQ3tnJSOS37vUYf5g6X1DA/ePrw50L Y8HbBqnNKHOJgrH3iOruG7E9TGu9hZevnr8zcB2ycF+gHzN5E6ipBNoikK51PxQ+dx337QAH 7oGd8RCJ4L8xq4gd2vxu8xghHkWWJ09jKG3DLIB3SbWjPBi0N4Nu23e8LzOT2ZuCCMpNKo6x Q2yJDLD56t1ckesAAAAAAAA= --------------ms070007020100010603000100-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 14:17:46 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2AF537B401 for ; Mon, 14 Jul 2003 14:17:46 -0700 (PDT) Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 2A50643FBD for ; Mon, 14 Jul 2003 14:17:43 -0700 (PDT) (envelope-from maav@cablebg.net) Received: (qmail 68032 invoked from network); 14 Jul 2003 21:17:39 -0000 Received: from maav@cablebg.net by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.1.60/v4270. Clear:SA:0(-9.9/8.0):. Processed in 0.280619 secs); 14 Jul 2003 21:17:39 -0000 X-Spam-Status: No, hits=-9.9 required=8.0 Received: from ozzy.ddns.cablebg.net (HELO SABBATH) (217.18.240.240) by mail.cablebg.net with SMTP; 14 Jul 2003 21:17:38 -0000 Message-ID: <001701c34a4d$4f979fe0$020aa8c0@SABBATH> From: "Boris Georgiev" To: "Kenneth D. Merry" References: <000c01c34947$0b02e2b0$020aa8c0@SABBATH> <20030713142937.A48304@panzer.kdm.org> Date: Tue, 15 Jul 2003 00:17:20 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-net@freebsd.org cc: wpaul@windriver.com cc: freebsd-hackers@freebsd.org Subject: Re: Broadcom NetXtreme BCM5705M support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Boris Georgiev List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 21:17:47 -0000 Kenneth, As I already posted William, I have bad news - it doesn't work for me. I rebuilt kernel yesterday with the patched sources and the only thing that happened is that the kernel recognised the LAN card and after that it tried to upload the firmware on the NIC chip, but unsuccessfully. It gave me out an timeout message and didn't load the driver at all. I am sorry that at this time I cannot send the exact message from the kernel, but the notbook is at my office, so I will post it tomorrow if the output will help for finding out what the problem is. Best regards, Boris Georgiev ----- Original Message ----- From: "Kenneth D. Merry" To: "Boris Georgiev" Cc: ; ; Sent: Sunday, July 13, 2003 11:29 PM Subject: Re: Broadcom NetXtreme BCM5705M support > On Sun, Jul 13, 2003 at 16:59:56 +0300, Boris Georgiev wrote: > > Hello All, > > > > I've got a Compaq Evo N620c notebook, which comes with a built-in lan network card - Broadcom NetXtreme BCM5705M. I researched on the hardware support for this NIC in FreeBSD and noticed that there is no hardware support for it either in the STABLE, or in the CURRENT distribution. I found that there is Linux driver for this NIC, which can be downloaded from the 3Com web site on the following address: > > > > http://support.3com.com/infodeli/tools/nic/linux/bcm5700-5.0.5.tar.gz > > > > The driver comes as a RedHat binary, Linux kernel patch and standalone source. > > Can you, please update me if there is an updated if_bge driver, which includes hardware support for this new chip or if someone is porting this driver for FreeBSD and there is a beta version, I can cooperate with testing it. > > > > Please wrap your lines at something less than 80 columns. > > Bill Paul just posted a message to -current, -net and -mobile about some > patches to the bge(4) driver to hopefully support that chip: > > http://www.freebsd.org/~wpaul/Broadcom/5705 > > Ken > -- > Kenneth Merry > ken@kdm.org > > From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 14:26:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F53437B401; Mon, 14 Jul 2003 14:26:48 -0700 (PDT) Received: from mail.wrs.com (unknown-1-11.wrs.com [147.11.1.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1AB343FAF; Mon, 14 Jul 2003 14:26:47 -0700 (PDT) (envelope-from wpaul@windriver.com) Received: from huisne.wrs.com (huisne [147.11.46.60]) by mail.wrs.com (8.9.3/8.9.1) with ESMTP id OAA03762; Mon, 14 Jul 2003 14:26:37 -0700 (PDT) From: william paul Received: (from wpaul@localhost) by huisne.wrs.com (8.9.1/8.9.0) id OAA17158; Mon, 14 Jul 2003 14:26:46 -0700 (PDT) Message-Id: <200307142126.OAA17158@huisne.wrs.com> To: maav@cablebg.net Date: Mon, 14 Jul 2003 14:26:45 -0700 (PDT) In-Reply-To: <001701c34a4d$4f979fe0$020aa8c0@SABBATH> from "Boris Georgiev" at Jul 15, 2003 12:17:20 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org cc: ken@kdm.org cc: freebsd-current@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Broadcom NetXtreme BCM5705M support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 21:26:49 -0000 Of all the gin joints in all the towns in all the world, Boris Georgiev had to walk into mine and say: > Kenneth, > > As I already posted William, I have bad news - it doesn't work for me. I > rebuilt kernel yesterday with > the patched sources and the only thing that happened is that the kernel > recognised the LAN card and > after that it tried to upload the firmware on the NIC chip, but > unsuccessfully. Uh.... First of all, the driver does not load any firmware into the chip. Second, you're not supposed to tell me your interpretation of what happened: you're supposed to cut&paste the messages into an e-mail so that I can see for myself what happened. Please show me all of the information that led you to your conclusion that this alleged firmware upload failed. > It gave me out > an timeout message and didn't load the driver at all. I am sorry that at > this time I cannot send > the exact message from the kernel, but the notbook is at my office, so I > will post it > tomorrow if the output will help for finding out what the problem is. > Best regards, Ok, note to all reading this: if I ask for information and you don't have the information available, don't bother sending me an e-mail just to tell me that you don't have the information available. Wait until you do have the information available, and then e-mail me. You'll save precious time and electrons. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu wpaul@windriver.com | Wind River Systems ============================================================================= "If stupidity were a handicap, you'd have the best parking spot." ============================================================================= From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 17:31:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5B2937B401 for ; Mon, 14 Jul 2003 17:31:16 -0700 (PDT) Received: from mail.advantagecom.net (mail.advantagecom.net [65.103.151.155]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4C6143F75 for ; Mon, 14 Jul 2003 17:31:15 -0700 (PDT) (envelope-from andykinney@advantagecom.net) Received: from SCSI-MONSTER (scsi-monster.advantagecom.net [207.109.186.200]) by mail.advantagecom.net (8.11.6/8.11.6) with ESMTP id h6F0VBn32311; Mon, 14 Jul 2003 17:31:11 -0700 From: "Andrew Kinney" Organization: Advantagecom Networks, Inc. To: John Fox , freebsd-hackers@freebsd.org Date: Mon, 14 Jul 2003 17:29:36 -0700 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Message-ID: <3F12E880.3304.39F3E27D@localhost> Priority: normal In-reply-to: <20030709175336.GF5200@mind.net> X-mailer: Pegasus Mail for Win32 (v3.12c) Subject: Re: Kernel panic when moving lots of data over network X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: andykinney@advantagecom.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 00:31:17 -0000 On 9 Jul 2003, at 10:53, John Fox wrote: > Strange problem on a new server we're setting up. It's very stable, > except when moving a large amount of data onto it via the network. I > begin moving approx 4GB of data onto it, and before the xfer can > complete, the system panics and reboots. (I am generally able to get > from 1 to 2 GB transferred before the panic occurrs.) > I'm not really a kernel hacker, but I've solved lots of our own kernel problems on 4.5 release, 4.7 release, and 4.8 release with the help of others on this list. We haven't had any problems exactly like what you described, but I seem to remember some open PRs relating to SSH and/or the xl network driver causing panics. You might want to browse through them and see if any match your situation. FWIW, though, we run 4.8-RELEASE, SSH, and the xl driver (3com 905C-TX, I believe) on one of our heavily used dual CPU machines and don't have any problems, so I'd be surprised if any of those PRs had any bearing on this. We don't do any large file transfers over SSH, though. We usually use rsync for that since we deal with lots of little files that get out of synch easily. > #6 0xc021745f in xl_newbuf () > #7 0xc021761e in xl_rxeof () > #8 0xc0219296 in xl_watchdog () > #9 0xc01b662f in if_slowtimo () > #10 0xc0180799 in softclock () Here's some slightly educated guesses that you'll want to eliminate until you isolate the trouble: 1. My experience is that a lot of "trap 12" seem to come from running out of some hard limited kernel resource. Try logging the sysctl vm.zone once a minute through cron to see if you're bumping any of those limits. You'll also want to try logging sysctl kvm_free in the same manner to make sure you're not running out of KVA or KVM. Our system is setup with 2GB KVA (default is 1GB) which solved all the trap 12 issues our system was having due to running out of KVA/KVM. 2. Check your RAM. Bad RAM caused us innumerable headaches from seemingly random trap 12 problems on one of our other systems. Usually hit on some buffer allocation, especially when that was the primary activity in RAM. SSH is especially sensitive to bad RAM. We could usually trigger a panic on a system with bad RAM just by excercising SSH a bit. 3. Some unknown or known problem with the xl driver and long file transfers over SSH. Check those PRs (sorry, don't know the numbers off hand). Sincerely, Andrew Kinney President and Chief Technology Officer Advantagecom Networks, Inc. http://www.advantagecom.net From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 17:43:15 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F0B537B401 for ; Mon, 14 Jul 2003 17:43:15 -0700 (PDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECEFA43F75 for ; Mon, 14 Jul 2003 17:43:14 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc13) with ESMTP id <200307150043130150079rtie>; Tue, 15 Jul 2003 00:43:13 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA79648; Mon, 14 Jul 2003 17:43:04 -0700 (PDT) Date: Mon, 14 Jul 2003 17:43:03 -0700 (PDT) From: Julian Elischer To: Andrew Kinney In-Reply-To: <3F12E880.3304.39F3E27D@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: John Fox Subject: Re: Kernel panic when moving lots of data over network X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 00:43:15 -0000 On Mon, 14 Jul 2003, Andrew Kinney wrote: > On 9 Jul 2003, at 10:53, John Fox wrote: > > > #6 0xc021745f in xl_newbuf () > > #7 0xc021761e in xl_rxeof () > > #8 0xc0219296 in xl_watchdog () > > #9 0xc01b662f in if_slowtimo () > > #10 0xc0180799 in softclock () A try a different ethernet card.. there is talk of problems in 4.x and the xl card whit a lot of traffic. It's being worked on right now.. but a quick answer may b eto sue a cheap intel based ethernet card. From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 17:20:47 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFA5C37B401 for ; Mon, 14 Jul 2003 17:20:46 -0700 (PDT) Received: from astra.telenet-ops.be (astra.telenet-ops.be [195.130.132.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F9C343F75 for ; Mon, 14 Jul 2003 17:20:45 -0700 (PDT) (envelope-from derek@pandora.be) Received: from localhost (localhost.localdomain [127.0.0.1]) by astra.telenet-ops.be (Postfix) with SMTP id 448E637F48; Tue, 15 Jul 2003 02:20:42 +0200 (MEST) Received: from evod500 (d51528974.kabel.telenet.be [81.82.137.116]) by astra.telenet-ops.be (Postfix) with SMTP id 5881D37F25; Tue, 15 Jul 2003 02:20:41 +0200 (MEST) Message-ID: <001a01c34a66$ebd17c00$8b00a8c0@evod500> From: "derek" To: , Date: Tue, 15 Jul 2003 02:20:38 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailman-Approved-At: Mon, 14 Jul 2003 18:12:10 -0700 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: FreeBSD on a Maxattach X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 00:20:47 -0000 Dear Sir, I read your reply on the FreeBSD Hackers Mailing list and I was hoping = that you could help me with some info about the Maxattach OS and = mainboard. I have 2 maxattach nas 4000 servers, but they only have 2 disks of 20GB = each installed, which is too small to be usable nowadays... Therefore I would like to equip them with 4x 80GB and 128 MB RAM, but my = attempts to do so failed so far ( I tried to move the original freebsd = os to the 80GB on pc running freebsd ). I was wondering if I need to = change something on the mainboard in order to use 4 drives ( I noticed = that you mentioned a custom bios, so I was wondering if that includes = fixed harddrive settings or auto recognise? ) or that I have to look for = it in the freebsd config? If it's a software problem, I will probably also try to get linux = running on it ( than I can make one large array instead of having to = split the array in half like with the original os ). Any help/info is welcome and appreciated. Best Regards, Derek Szapinszki From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 00:05:17 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1BF037B401 for ; Tue, 15 Jul 2003 00:05:16 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8662643F75 for ; Tue, 15 Jul 2003 00:05:16 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38lc12t.dialup.mindspring.com ([209.86.4.93] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19cJsA-0005PC-00; Tue, 15 Jul 2003 00:05:15 -0700 Message-ID: <3F13A769.F7AF78CA@mindspring.com> Date: Tue, 15 Jul 2003 00:04:09 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Martin References: <1058119316.547.22.camel@klotz.local> <1058195748.679.33.camel@klotz.local> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a41350bd109351ed033bebefc48c1762d8a2d4e88014a4647c350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org Subject: Re: USB device programming with ugen [Solved] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 07:05:17 -0000 Martin wrote: > Seems it was my fault. I found a solution in forums. I had to try > out many things until someone has pointed me to BIOS settings and > "assigning interrupt to USB". I noticed it was off and enabled it. > It works now. :) > > (E.a.: no delays while accessing ugen0 and no freeze with X11.) > > Martin > > PS.: perhaps someone should mention it somewhere in the FAQ. The attach should have failed, if it didn't have an interrupt. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 01:05:10 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE71F37B401 for ; Tue, 15 Jul 2003 01:05:10 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0957343F3F for ; Tue, 15 Jul 2003 01:05:10 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h6F854Lv034689; Tue, 15 Jul 2003 01:05:04 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h6F851GO034688; Tue, 15 Jul 2003 01:05:01 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Tue, 15 Jul 2003 01:05:01 -0700 From: David Schultz To: Pawel Jakub Dawidek Message-ID: <20030715080501.GA34504@HAL9000.homeunix.com> Mail-Followup-To: Pawel Jakub Dawidek , "Alan L. Cox" , freebsd-hackers@freebsd.org References: <20030712202216.GG4973@garage.freebsd.pl> <3F10762E.D17A7307@imimic.com> <20030712213249.GJ4973@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030712213249.GJ4973@garage.freebsd.pl> cc: "Alan L. Cox" cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Bug in VM pages protection handling. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 08:05:11 -0000 On Sat, Jul 12, 2003, Pawel Jakub Dawidek wrote: > On Sat, Jul 12, 2003 at 03:57:18PM -0500, Alan L. Cox wrote: > +> > I've just send PR for this: > +> > > +> > http://www.freebsd.org/cgi/query-pr.cgi?pr=54418 > +> > > +> > I'll be greatful if somebody could review, commit and MFC it > +> > as soon as possible. I need to hold CerbNG next release until > +> > it will be fixed. > +> > > +> > +> As I've said in private e-mail, this is not a bug. You're really asking > +> for a change in "specification". Reductions in max_protection have had > +> permanent effect since the late 1980's. > > You've also asked my in private mail why I need this, I'll answer here. > > I need this to protect syscall arguments that I'm checking in CerbNG. > If I need to check an argument I've to be sure that kernel will check > exactly that same argument (here is ugly race). > So what I do is memory allocaton in process' vmspace, copy argument > there, mark newly allocated pages as read-only and call original > syscall with new pointer(s). Those pages are freed after that and > everything will be correct, but somebody has reported me about > 'bus error'. I've track this problem for two days. It occurs for > majordomo, when perl is trying to execute something, nevermind. > Pages are marked as read-only for child process, but parent > process is killed with SIGBUS signal. I don't mees with this parent > process at all, but it looks they're sharing some memory or some > pages/map is mirrored (copy-on-write mechanism?) with VM_PROT_READ > protection. So let me see if I've got the sequence of events straight: 1) The process forks 2) The child makes a system call that results in the creation of a new read-only map entry. 3) The parent calls mmap() (for example) to create a read-write map entry with the same virtual address. 4) Somehow the parent's permissions end up being read-only, not read-write, and the parent dies. Is this correct? If so, this doesn't sound like a problem with vm_map_protect(), but rather with your handling of map entry sharing. My first inclination, as a non-expert, would be that you're not taking MAP_ENTRY_NEEDS_COPY into account. This is an optimization that allows two processes to share map entries until a COW fault is taken in one of them. This speeds up fork(2) greatly because VM objects are not allocated unnecessarily. From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 01:51:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63AA037B401; Tue, 15 Jul 2003 01:51:48 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A39443F75; Tue, 15 Jul 2003 01:51:46 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 9260A3ABB51; Tue, 15 Jul 2003 10:57:21 +0200 (CEST) Date: Tue, 15 Jul 2003 10:57:21 +0200 From: Pawel Jakub Dawidek To: das@freebsd.org Message-ID: <20030715085721.GJ4973@garage.freebsd.pl> References: <20030712202216.GG4973@garage.freebsd.pl> <3F10762E.D17A7307@imimic.com> <20030712213249.GJ4973@garage.freebsd.pl> <20030715080501.GA34504@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Hc9bqgA2GpWXzMYS" Content-Disposition: inline In-Reply-To: <20030715080501.GA34504@HAL9000.homeunix.com> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: "Alan L. Cox" cc: freebsd-hackers@freebsd.org Subject: Re: Bug in VM pages protection handling. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 08:51:48 -0000 --Hc9bqgA2GpWXzMYS Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 15, 2003 at 01:05:01AM -0700, David Schultz wrote: +> So let me see if I've got the sequence of events straight: +>=20 +> 1) The process forks +>=20 +> 2) The child makes a system call that results in the creation of a +> new read-only map entry. +>=20 +> 3) The parent calls mmap() (for example) to create a read-write +> map entry with the same virtual address. +>=20 +> 4) Somehow the parent's permissions end up being read-only, not +> read-write, and the parent dies. +>=20 +> Is this correct? If so, this doesn't sound like a problem with +> vm_map_protect(), but rather with your handling of map entry +> sharing. My first inclination, as a non-expert, would be that +> you're not taking MAP_ENTRY_NEEDS_COPY into account. This is an +> optimization that allows two processes to share map entries until +> a COW fault is taken in one of them. This speeds up fork(2) +> greatly because VM objects are not allocated unnecessarily. Not exactly. Every page was is marked by cerb as read-only is also allocated by cerb in process' vmspace, so IMHO such situation shouldn't occur. We got something like this: 1. The process forks. 2. New pages are allocated in child's vmspace and are marked as read-only. 3. I don't know exactly what happends with child, but parent dies. I've solve this problem by marking those pages back to VM_PROT_ALL after syscall is done. Is there a chance that parent reuse those pages somehow? Or those pages aren't removed and if parent want to allocate some memory he gets read-only page? But I don't think so... --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --Hc9bqgA2GpWXzMYS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPxPB8T/PhmMH/Mf1AQFNpQP/fhawR4pfMjB2bqS7KpeKY5MpNBsH1I4q gk8807Rh2AeycEGD1j+Qsi4n7PJ29nYBcSvFw9esdfivLpBbIB6rdirRCvxFT7Mw 29faQUyDyHWP95qN8RNq6AShaXz4NGBWPAaRHNK+VDj8H3D+V5Pzs2kYT2Hn6sOo Vj3ZG5puDII= =fK1V -----END PGP SIGNATURE----- --Hc9bqgA2GpWXzMYS-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 02:06:33 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96D3C37B401 for ; Tue, 15 Jul 2003 02:06:33 -0700 (PDT) Received: from mail26c.sbc-webhosting.com (mail26c.sbc-webhosting.com [216.173.237.166]) by mx1.FreeBSD.org (Postfix) with SMTP id 77B8E43F85 for ; Tue, 15 Jul 2003 02:06:32 -0700 (PDT) (envelope-from alc@imimic.com) Received: from www.imimic.com (64.143.12.21)3-0634799978; Tue, 15 Jul 2003 05:06:18 -0400 (EDT) Sender: alc@FreeBSD.ORG Message-ID: <3F13C40A.E2ACE104@imimic.com> Date: Tue, 15 Jul 2003 04:06:18 -0500 From: "Alan L. Cox" Organization: iMimic Networking, Inc. X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20030712202216.GG4973@garage.freebsd.pl> <3F10762E.D17A7307@imimic.com> <20030712213249.GJ4973@garage.freebsd.pl> <20030715080501.GA34504@HAL9000.homeunix.com> <20030715085721.GJ4973@garage.freebsd.pl> Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 7bit X-Loop-Detect: 1 cc: freebsd-hackers@freebsd.org cc: das@freebsd.org Subject: Re: Bug in VM pages protection handling. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 09:06:33 -0000 Pawel Jakub Dawidek wrote: > > On Tue, Jul 15, 2003 at 01:05:01AM -0700, David Schultz wrote: > +> So let me see if I've got the sequence of events straight: > +> > +> 1) The process forks > +> > +> 2) The child makes a system call that results in the creation of a > +> new read-only map entry. > +> > +> 3) The parent calls mmap() (for example) to create a read-write > +> map entry with the same virtual address. > +> > +> 4) Somehow the parent's permissions end up being read-only, not > +> read-write, and the parent dies. > +> > +> Is this correct? If so, this doesn't sound like a problem with > +> vm_map_protect(), but rather with your handling of map entry > +> sharing. My first inclination, as a non-expert, would be that > +> you're not taking MAP_ENTRY_NEEDS_COPY into account. This is an > +> optimization that allows two processes to share map entries until > +> a COW fault is taken in one of them. This speeds up fork(2) > +> greatly because VM objects are not allocated unnecessarily. > > Not exactly. Every page was is marked by cerb as read-only is also > allocated by cerb in process' vmspace, so IMHO such situation shouldn't > occur. > > We got something like this: > > 1. The process forks. > 2. New pages are allocated in child's vmspace and are marked as read-only. > 3. I don't know exactly what happends with child, but parent dies. > > I've solve this problem by marking those pages back to VM_PROT_ALL > after syscall is done. Is there a chance that parent reuse those pages > somehow? Or those pages aren't removed and if parent want to allocate > some memory he gets read-only page? But I don't think so... > Could you post a pointer to the kernel module's source code? Alan From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 02:41:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFC4637B401; Tue, 15 Jul 2003 02:41:35 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB9AD43FBF; Tue, 15 Jul 2003 02:41:34 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 47F3D3ABB4C; Tue, 15 Jul 2003 11:47:08 +0200 (CEST) Date: Tue, 15 Jul 2003 11:47:08 +0200 From: Pawel Jakub Dawidek To: "Alan L. Cox" Message-ID: <20030715094708.GL4973@garage.freebsd.pl> References: <20030712202216.GG4973@garage.freebsd.pl> <3F10762E.D17A7307@imimic.com> <20030712213249.GJ4973@garage.freebsd.pl> <20030715080501.GA34504@HAL9000.homeunix.com> <20030715085721.GJ4973@garage.freebsd.pl> <3F13C40A.E2ACE104@imimic.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="20Vs8q+K0csnIr5j" Content-Disposition: inline In-Reply-To: <3F13C40A.E2ACE104@imimic.com> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-hackers@freebsd.org cc: das@freebsd.org Subject: Re: Bug in VM pages protection handling. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 09:41:36 -0000 --20Vs8q+K0csnIr5j Content-Type: multipart/mixed; boundary="ckw48dMXwVCm+GhK" Content-Disposition: inline --ckw48dMXwVCm+GhK Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 15, 2003 at 04:06:18AM -0500, Alan L. Cox wrote: +> Could you post a pointer to the kernel module's source code? It is hard to reproduce, you need majordomo for this:) Here is discussion about this: https://sourceforge.net/mailarchive/forum.php?thread_id=3D2722479&forum_id= =3D7642 And here is procedure that should handle everything: # cd /usr/ports/mail/majordomo # make install clean # cd /tmp # cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/cerb-ng co -D "July 11, 200= 3" cerb-ng # cd cerb-ng # make; make install # kldload cerb # /sbin/cbctl -f /path/to/majordomo-test.cb and: # echo test | /usr/local/majordomo/wrapper resend -l test-l test-l-outgoing Here you should have 'Bus error'. Policy majordomo-test.cb is attached. Look into logs for PIDs of processes that was monitored by cerb, they got read-only pages and look at PID of process exiting with SIGBUS. I've spend two days(?) on tracking this down in cerb, so good luck! PS. Note that we're talking about FreeBSD 4.x here. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --ckw48dMXwVCm+GhK Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: attachment; filename="majordomo-test.cb" #include "addons.cbh" beginrules REGISTER("majorodomo-test") ADD_SYSCALL(SYS_execve); if (syscall == SYS_execve && ruid > 0) { log(LOG_INFO, "PROCESS: %s PID=%u, ruid=%u, euid=%u", pname, pid, ruid, euid); /* * Because here we're using syscall argument (arg[0]) new page * page will be allocated for this argument and this page * will be marked as read-only. */ log(LOG_INFO, "ARG[0]: %s", arg[0]); return call(); } endrules --ckw48dMXwVCm+GhK-- --20Vs8q+K0csnIr5j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPxPNnD/PhmMH/Mf1AQEYwwQAjfTGygGawrmdn+rxY9WxqcS4w8g5AtF9 7P7Y26VSsOIn8c9Eld6lJDQgY+eNS4pOz6I0oImYWZhAh8AzyEI62bRH7q8OdrWS cDHsIHa3ul1b+BMYQGWR/a+VVXsO0ZGj2AUmFQkFWFjrruYHJcn7IUCr1BCmfJ+5 1jB+lQPTn+g= =SAHc -----END PGP SIGNATURE----- --20Vs8q+K0csnIr5j-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 05:04:18 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 520A737B401; Tue, 15 Jul 2003 05:04:18 -0700 (PDT) Received: from honolulu.procergs.com.br (honolulu.procergs.com.br [200.198.128.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECEB943F93; Tue, 15 Jul 2003 05:04:12 -0700 (PDT) (envelope-from marcelo-leal@procergs.rs.gov.br) Received: from ws-tor-0004.procergs (unknown [172.28.5.20]) by honolulu.procergs.com.br (Postfix) with ESMTP id E3E26AADC; Tue, 15 Jul 2003 09:04:10 -0300 (BRT) Received: from procergs.rs.gov.br (localhost [127.0.0.1]) by ws-tor-0004.procergs (Postfix) with ESMTP id B2E66C2FC87; Tue, 15 Jul 2003 09:03:12 -0300 (BRT) From: omestre@freeshell.org To: freebsd-net@freebsd.org Date: Tue, 15 Jul 2003 09:03:12 -0300 Sender: marcelo-leal@procergs.rs.gov.br Message-Id: <20030715120312.B2E66C2FC87@ws-tor-0004.procergs> cc: freebsd-hackers@freebsd.org Subject: pr 54383 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 12:04:18 -0000 Hello, I did some changes in my patch to FreeBSD kernel. I have changed my pr, and the new one is 54383. Now, only the diff is on the FreeBSD page. Take a look. If somebody knows who is the devel man, that can help me to add this patch as a new feature in FreeBSD kernel, please tell me. I think something like a new option to diskless machines, without dynamic protocols (dhcp, or bootp), for mount the rootfs. Sorry by the english. Thanks --- From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 06:26:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B47C037B401 for ; Tue, 15 Jul 2003 06:26:26 -0700 (PDT) Received: from dahlia.noc.ucla.edu (dahlia.noc.ucla.edu [169.232.46.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 077B243F85 for ; Tue, 15 Jul 2003 06:26:26 -0700 (PDT) (envelope-from shah@ucla.edu) Received: from orchid.noc.ucla.edu (orchid.noc.ucla.edu [169.232.48.12]) by dahlia.noc.ucla.edu (8.12.8p1/8.12.8) with ESMTP id h6FDQPhE013468 for ; Tue, 15 Jul 2003 06:26:25 -0700 Received: from ucla.edu (dhcp246.rip.ucla.edu [149.142.110.246]) (authenticated bits=0) by orchid.noc.ucla.edu (8.12.8p1/8.12.8) with ESMTP id h6FDQPv9030218 for ; Tue, 15 Jul 2003 06:26:25 -0700 Date: Tue, 15 Jul 2003 06:26:24 -0700 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed From: Sumit Shah To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: X-Mailer: Apple Mail (2.552) X-Scanned-By: MIMEDefang 2.25 / SpamAssassin 2.43 / mail.ucla.edu X-Probable-Spam: no X-Spam-Hits: -1.3 Subject: RAID and NFS exports (Possible Data Corruption) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 13:26:27 -0000 FreeBSD hackers, Here is a message I sent to freebsd-questions and I was hoping I could get some help debugging this. Thanks > FYI the only way I could recover the partitions semi successfully was > rebuilding the arrays identically and then use gpart to recover the > partition info. This would last for anywhere between 1-5 hours before > the array would get broken. The only thing that changed on both > systems when things started acting up was the addition of the line to > /etc/exports. > > What would be the most appropriate list to further get info on to the > cause of this. My best guess is there is a glitch in the HPT374 > controller or a bug in the FreeBSD driver. > > Thanks, > Sumit > > > On Friday, July 11, 2003, at 03:34 PM, Sumit Shah wrote: > >> Dear FreeBSD gurus, >> >> I apologize in advance if this is not the most appropriate list to >> post this to, but this seems the best that I can find. Here is my >> situation, we have an Abit AT7 motherboard with onboard RAID >> (HPT374). It has worked beautifully for us with FreeBSD 4.7 and then >> 4.8 for a good 8 months or so serving up NFS and Samba. This morning >> my /etc/exports looked something like >> >> /data6 machine1 machine2 -mapall=65534 >> /data8 machine1 machine2 -mapall=65534 >> >> I then added a line so it looked something like: >> >> /data6 machine1 machine2 -mapall=65534 >> /data8 machine1 machine2 -mapall=65534 >> /data6 -network 10.10.10 -mask 255.255.255.0 -mapall=65534 >> >> I sent a HUP to mountd and everything seemed to work fine. Then I >> started getting errors similar to: >> >> ad4: hard error reading fsbn 242727552 >> >> So I rebooted and the HPT374 controller was complaining that the >> first disk in the RAID-0 configuration failed. I thought this might >> be a bad disk, but we had an identical system with the same EXACT >> configuration and we started mountd on that with the same exports >> file from above. A minute or two later the same type of errors and >> same complaint by the HPT374 controller about the first disk in the >> RAID-0 array being bad. >> >> I was wondering if there is any, no matter how remote, possibility >> that by adding that third line to the exports file that the raid-0 >> got corrupted somehow and if so how to maybe reverse it. I have left >> everything else intact nothing has changed on the controller side or >> freebsd config. >> >> Just as a note, we are not using vinum, but using the created array >> (ar0) and formatting that as UFS. >> >> Thanks so much for getting thorugh this email! >> >> Sumit >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 09:20:10 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F54937B405 for ; Tue, 15 Jul 2003 09:20:10 -0700 (PDT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 0023343FBF for ; Tue, 15 Jul 2003 09:20:07 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 15 Jul 2003 17:20:06 +0100 (BST) Date: Tue, 15 Jul 2003 17:20:06 +0100 From: David Malone To: Sumit Shah Message-ID: <20030715162006.GA47687@walton.maths.tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.3i Sender: dwmalone@maths.tcd.ie cc: freebsd-hackers@freebsd.org Subject: Re: RAID and NFS exports (Possible Data Corruption) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 16:20:10 -0000 On Tue, Jul 15, 2003 at 06:26:24AM -0700, Sumit Shah wrote: > Here is a message I sent to freebsd-questions and I was hoping I could > get some help debugging this. It seems very unlikely that restarting mountd cound cause an error like: >ad4: hard error reading fsbn 242727552 The error means that that the disk said that there was an error trying to read this block. You say that when you rebooted that the controler said a disk had gone bad, so this would sort of confirm this. (I could believe that restarting mountd might upset raid stuff if there were a kernel bug, but it seems very unlikely it could cause a disk to go bad.) My best guess would be that you have a bad batch of disks that happen to have failed in similar ways. It is possible that restarting mountd uncovered the errors, 'cos I think mountd internally does a remount of the filesystem in question and that might cause a chunk of stuff to be flushed out on to the disk, highlighting an error. (I had a bunch of the IBM "deathstar" disks fail on me within the space of a week or so, after they'd been in use for about six months.) David. From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 10:01:59 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F88C37B401 for ; Tue, 15 Jul 2003 10:01:59 -0700 (PDT) Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C07C43FA3 for ; Tue, 15 Jul 2003 10:01:58 -0700 (PDT) (envelope-from nakal@web.de) Received: from [80.135.116.154] (helo=[80.135.116.154]) by smtp.web.de with esmtp (TLSv1:DES-CBC3-SHA:168) (WEB.DE 4.98 #244) id 19cTBc-0003sW-00 for freebsd-hackers@freebsd.org; Tue, 15 Jul 2003 19:01:56 +0200 From: Martin To: freebsd-hackers@freebsd.org In-Reply-To: <3F13A769.F7AF78CA@mindspring.com> References: <1058119316.547.22.camel@klotz.local> <3F13A769.F7AF78CA@mindspring.com> Content-Type: text/plain Message-Id: <1058288512.1026.30.camel@klotz.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 15 Jul 2003 19:01:52 +0200 Content-Transfer-Encoding: 7bit Sender: nakal@web.de Subject: Re: USB device programming with ugen [Solved] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 17:01:59 -0000 On Tue, 2003-07-15 at 09:04, Terry Lambert wrote: > The attach should have failed, if it didn't have an interrupt. Somehow uhci0 didn't have interrupt, but it managed to find the webcam on ugen0. Don't ask me why. I have attached my logs below. You can see many devices sharing same irq. I don't know what line 2 means exactly, but if it means that my USB-controller was assigned irq 11, it could lock several important devices at once, if IRQs are not handled properly. In new logs uhci0 was found configured on irq 9. Earlier dmesg (from /var/log/messages): Jul 11 20:35:58 xxx kernel: uhci0: port 0xc000-0xc01f at device 7.2 on pci0 Jul 11 20:35:58 xxx kernel: pci_cfgintr: 0:7 INTD routed to irq 11 ... Jul 11 20:35:58 xxx kernel: ugen0: WINBOND W9967CF, rev 1.10/1.10, addr 2 ... Jul 11 20:35:58 xxx kernel: sym0: <875> port 0xc400-0xc4ff mem 0xe7002000-0xe7002fff,0xe7001000-0xe70010ff irq 11 at device 11.0 on pci0 ... Jul 11 20:35:58 xxx kernel: atapci1: port 0xd400-0xd4ff,0xd000-0xd003,0xcc00-0xcc07 irq 11 at device 19.0 on pci0 Jul 11 20:35:58 xxx kernel: ata2: at 0xcc00 on atapci1 Jul 11 20:35:58 xxx kernel: atapci2: port 0xe000-0xe0ff,0xdc00-0xdc03,0xd800-0xd807 irq 11 at device 19.1 on pci0 Jul 11 20:35:58 xxx kernel: ata3: at 0xd800 on atapci2 Now dmesg: uhci0: port 0xc000-0xc01f irq 9 at device 7.2 on pci0 ... ugen0: WINBOND W9967CF, rev 1.10/1.10, addr 2 ... sym0: <875> port 0xc400-0xc4ff mem 0xe7002000-0xe7002fff,0xe7001000-0xe70010ff irq 11 at device 11.0 on pci0 ... atapci1: port 0xd400-0xd4ff,0xd000-0xd003,0xcc00-0xcc07 irq 11 at device 19.0 on pci0 ata2: at 0xcc00 on atapci1 atapci2: port 0xe000-0xe0ff,0xdc00-0xdc03,0xd800-0xd807 irq 11 at device 19.1 on pci0 From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 13:59:10 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA77037B404 for ; Tue, 15 Jul 2003 13:59:10 -0700 (PDT) Received: from periwinkle.noc.ucla.edu (periwinkle.noc.ucla.edu [169.232.47.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id B08CB43FAF for ; Tue, 15 Jul 2003 13:59:08 -0700 (PDT) (envelope-from shah@ucla.edu) Received: from tigerlily.noc.ucla.edu (tigerlily.noc.ucla.edu [169.232.46.12]) h6FKx8Qh027754; Tue, 15 Jul 2003 13:59:08 -0700 Received: from ucla.edu (dhcp246.rip.ucla.edu [149.142.110.246]) (authenticated bits=0)h6FKx8Po020421; Tue, 15 Jul 2003 13:59:08 -0700 Date: Tue, 15 Jul 2003 13:59:08 -0700 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: David Malone From: Sumit Shah In-Reply-To: <20030715162006.GA47687@walton.maths.tcd.ie> Message-Id: <2D5885DA-B707-11D7-9819-000393DB86CA@ucla.edu> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) X-Scanned-By: MIMEDefang 2.25 / SpamAssassin 2.43 / mail.ucla.edu X-Probable-Spam: no X-Spam-Hits: -2.3 cc: freebsd-hackers@freebsd.org Subject: Re: RAID and NFS exports (Possible Data Corruption) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 20:59:11 -0000 Thanks for the reply. >> ad4: hard error reading fsbn 242727552 > > The error means that that the disk said that there was an error > trying to read this block. You say that when you rebooted that the > controler said a disk had gone bad, so this would sort of confirm > this. (I could believe that restarting mountd might upset raid stuff > if there were a kernel bug, but it seems very unlikely it could > cause a disk to go bad.) The full error was something like this on _both_ of the identical systems, even _before_ the reboot. After this message we could not read/write/fsck /dev/ar0 ad7: hard error reading fsbn 291786506 of 0-127 (ad7 bn 291786506; cn 289470 tn 11 sn 53) trying PIO mode ad7: DMA problem fallback to PIO mode ad7: DMA problem fallback to PIO mode ad7: DMA problem fallback to PIO mode ad7: DMA problem fallback to PIO mode ad7: DMA problem fallback to PIO mode ad7: hard error reading fsbn 291786586 of 0-127 (ad7 bn 291786586; cn 289470 tn 13 sn 7) status=59 e rror=40 ar0: ERROR - array broken There was also a variety of messages like these: Jul 14 02:55:39 thorimage1 /kernel: ad7: hard error reading fsbn 291786586 of 0-127 (ad7 bn 291786586; cn 289470 tn 13 sn 7) status=59 error=40 where ad7: .... included any of the 6 devices, somewhat randomly, in the array. > > My best guess would be that you have a bad batch of disks that > happen to have failed in similar ways. It is possible that restarting > mountd uncovered the errors, 'cos I think mountd internally does > a remount of the filesystem in question and that might cause a chunk > of stuff to be flushed out on to the disk, highlighting an error. > > (I had a bunch of the IBM "deathstar" disks fail on me within the > space of a week or so, after they'd been in use for about six > months. That certainly sounds reasonable that this problem had just manifested itself by restarting mountd. It's just strange and too much of a coincidence that two sets of six disks on two different but identical machines would fail exactly the same way within an hour. I guess given the decline of quality in hard drives things like this might be more likely. Thanks, Sumit From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 14:03:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A47EF37B401 for ; Tue, 15 Jul 2003 14:03:32 -0700 (PDT) Received: from mail.speakeasy.net (mail7.speakeasy.net [216.254.0.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A64543F85 for ; Tue, 15 Jul 2003 14:03:32 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 14706 invoked from network); 15 Jul 2003 21:03:31 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 15 Jul 2003 21:03:31 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h6FL3SGI020861; Tue, 15 Jul 2003 17:03:29 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <1058288512.1026.30.camel@klotz.local> Date: Tue, 15 Jul 2003 17:03:44 -0400 (EDT) From: John Baldwin To: Martin cc: freebsd-hackers@freebsd.org Subject: Re: USB device programming with ugen [Solved] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 21:03:33 -0000 On 15-Jul-2003 Martin wrote: > On Tue, 2003-07-15 at 09:04, Terry Lambert wrote: >> The attach should have failed, if it didn't have an interrupt. > > Somehow uhci0 didn't have interrupt, but it managed to find the webcam > on ugen0. Don't ask me why. I have attached my logs below. > You can see many devices sharing same irq. I don't know what line 2 > means exactly, but if it means that my USB-controller was assigned > irq 11, it could lock several important devices at once, if IRQs are > not handled properly. > > In new logs uhci0 was found configured on irq 9. It means we routed uhci0 an interrupt and gave it IRQ 11 based on what the tables said. The BIOS gave it 9. The interrupt being wrong would explain the hang since PCI interrupts are level-triggered. > Earlier dmesg (from /var/log/messages): > Jul 11 20:35:58 xxx kernel: uhci0: controller> port 0xc000-0xc01f at device 7.2 on pci0 > Jul 11 20:35:58 xxx kernel: pci_cfgintr: 0:7 INTD routed to irq 11 > ... > Jul 11 20:35:58 xxx kernel: ugen0: WINBOND W9967CF, rev 1.10/1.10, addr > 2 > ... > Jul 11 20:35:58 xxx kernel: sym0: <875> port 0xc400-0xc4ff mem > 0xe7002000-0xe7002fff,0xe7001000-0xe70010ff irq 11 at device 11.0 on > pci0 > ... > Jul 11 20:35:58 xxx kernel: atapci1: controller> port 0xd400-0xd4ff,0xd000-0xd003,0xcc00-0xcc07 irq 11 at > device 19.0 on pci0 > Jul 11 20:35:58 xxx kernel: ata2: at 0xcc00 on atapci1 > Jul 11 20:35:58 xxx kernel: atapci2: controller> port 0xe000-0xe0ff,0xdc00-0xdc03,0xd800-0xd807 irq 11 at > device 19.1 on pci0 > Jul 11 20:35:58 xxx kernel: ata3: at 0xd800 on atapci2 > > Now dmesg: > uhci0: port 0xc000-0xc01f irq > 9 at device 7.2 on pci0 > ... > ugen0: WINBOND W9967CF, rev 1.10/1.10, addr 2 > ... > sym0: <875> port 0xc400-0xc4ff mem > 0xe7002000-0xe7002fff,0xe7001000-0xe70010ff irq 11 at device 11.0 on > pci0 > ... > atapci1: port > 0xd400-0xd4ff,0xd000-0xd003,0xcc00-0xcc07 irq 11 at device 19.0 on pci0 > ata2: at 0xcc00 on atapci1 > atapci2: port > 0xe000-0xe0ff,0xdc00-0xdc03,0xd800-0xd807 irq 11 at device 19.1 on pci0 -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 14:13:06 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7202F37B401; Tue, 15 Jul 2003 14:13:06 -0700 (PDT) Received: from mail.ludost.net (tonib-gw.customer.0rbitel.net [195.24.39.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0235643F75; Tue, 15 Jul 2003 14:13:05 -0700 (PDT) (envelope-from maav@bastun.net) Received: from SABBATH (ozzy.ddns.cablebg.net [217.18.240.240]) by mail.ludost.net (Postfix) with ESMTP id 098144C729; Wed, 16 Jul 2003 00:13:02 +0300 (EEST) Message-ID: <000901c34b15$d48db900$020aa8c0@SABBATH> From: "Boris Georgiev" To: "william paul" References: <200307142126.OAA17158@huisne.wrs.com> Date: Wed, 16 Jul 2003 00:12:41 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-net@freebsd.org cc: ken@kdm.org cc: freebsd-current@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Broadcom NetXtreme BCM5705M support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 21:13:06 -0000 Hi Bill, Sorry for the previous e-mail, but have in mind that I'm trying to cooperate by testing your drivers and I am not aware of the rules for declaring a hardware problem in the mailing lists. The only way I can send you the messages from the kernel is if I rewrite them from the console. Here is the information that you requested: bge0: mem 0x90000000-0x9000ffff irq 11 at device 14.0 on pci2 bge0: firmware handshake timed out bge0: RX CPU self-diagnostics failed! bge0: chip initialization failed device_probe_and_attach: bge0 attach returned 6 If you need more detailed information, I can send it to you on request. Boris Georgiev > Uh.... > > First of all, the driver does not load any firmware into the chip. > > Second, you're not supposed to tell me your interpretation of what > happened: you're supposed to cut&paste the messages into an e-mail > so that I can see for myself what happened. > > Please show me all of the information that led you to your conclusion > that this alleged firmware upload failed. > > > It gave me out > > an timeout message and didn't load the driver at all. I am sorry that at > > this time I cannot send > > the exact message from the kernel, but the notbook is at my office, so I > > will post it > > tomorrow if the output will help for finding out what the problem is. > > Best regards, > > Ok, note to all reading this: if I ask for information and you don't > have the information available, don't bother sending me an e-mail > just to tell me that you don't have the information available. Wait > until you do have the information available, and then e-mail me. You'll > save precious time and electrons. > > -Bill From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 15:30:15 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D88E37B401 for ; Tue, 15 Jul 2003 15:30:15 -0700 (PDT) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7804843F85 for ; Tue, 15 Jul 2003 15:30:05 -0700 (PDT) (envelope-from joe@genius.tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id 25C324564; Tue, 15 Jul 2003 23:29:50 +0100 (BST) Date: Tue, 15 Jul 2003 23:29:50 +0100 From: Josef Karthauser To: JacobRhoden Message-ID: <20030715222950.GA39907@genius.tao.org.uk> Mail-Followup-To: Josef Karthauser , JacobRhoden , freebsd-hackers@freebsd.org References: <200307141446.35380.jrhoden@unimelb.edu.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <200307141446.35380.jrhoden@unimelb.edu.au> User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: Intel D845EPT2 Motherboard - USB broken :( X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 22:30:15 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 14, 2003 at 02:46:35PM +1000, JacobRhoden wrote: > Hey People, >=20 > Does anyone here use the Intel EPT2 motherboard? Have they managed to get= USB=20 > working, and if so how? Any ideas greatly appreciated! (Or where to poke = at=20 > would be useful as well).=20 >=20 > usbd -dd prints messages as if it is all working fine, but it simply does= not=20 > recognise any device you chuck at it. >=20 > Thanks, > Jacob Can you mail us a copy of your 'dmesg' after a boot? What kind of controller is it? Joe --=20 Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an= d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iEYEARECAAYFAj8UgF0ACgkQXVIcjOaxUBZAQACgmfC1wwh8RbuKCq3O0RHB6Yjk 410AoMjQRO2FMAG6P4rumlBvg50Sy+MD =sdzt -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 15:35:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FCCC37B401 for ; Tue, 15 Jul 2003 15:35:20 -0700 (PDT) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEFEE43FB1 for ; Tue, 15 Jul 2003 15:35:19 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (mail [198.78.66.163])h6FMZLnW063256 for ; Tue, 15 Jul 2003 15:35:21 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Date: Tue, 15 Jul 2003 15:35:20 -0700 (PDT) From: Josh Brooks To: freebsd-hackers@freebsd.org Message-ID: <20030715153502.Q52180-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Can I tell whether dump used -L or not ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 22:35:20 -0000 Hello, A new option in FreeBSD 5.x `dump` is the -L option for backing up a live filesystem ... Is there a way to examine/check a dump file to see if it was created using the -L or not ? ALSO, if I do use -L when creating a dump, do I need to restore it any differently, or can I restore it the same regardless of whether I used -L or not ? thanksyou! From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 15:50:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D96D037B401 for ; Tue, 15 Jul 2003 15:50:02 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 235E143F3F for ; Tue, 15 Jul 2003 15:50:02 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h6FMo1GB035148; Tue, 15 Jul 2003 17:50:01 -0500 (CDT) (envelope-from dan) Date: Tue, 15 Jul 2003 17:50:01 -0500 From: Dan Nelson To: Josh Brooks Message-ID: <20030715225001.GB26586@dan.emsphone.com> References: <20030715153502.Q52180-100000@mail.econolodgetulsa.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030715153502.Q52180-100000@mail.econolodgetulsa.com> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: Can I tell whether dump used -L or not ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 22:50:03 -0000 In the last episode (Jul 15), Josh Brooks said: > A new option in FreeBSD 5.x `dump` is the -L option for backing up a > live filesystem ... > > Is there a way to examine/check a dump file to see if it was created > using the -L or not ? I don't think so. > ALSO, if I do use -L when creating a dump, do I need to restore it any > differently, or can I restore it the same regardless of whether I used -L > or not ? Nope. All -L does is back up a snapshot instead of the (possibly changing) live filesystem. The dump file format doesn't change. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 15:53:29 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31F9F37B401; Tue, 15 Jul 2003 15:53:29 -0700 (PDT) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 787F543F75; Tue, 15 Jul 2003 15:53:28 -0700 (PDT) (envelope-from joe@genius.tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id 729E247A0; Tue, 15 Jul 2003 23:53:15 +0100 (BST) Date: Tue, 15 Jul 2003 23:53:15 +0100 From: Josef Karthauser To: Robert Watson , Alexey Dokuchaev , hackers@freebsd.org Message-ID: <20030715225315.GB39907@genius.tao.org.uk> References: <20020906084959.A6251@regency.nsu.ru> <20020908133058.GA9799@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DBIVS5p969aUjpLe" Content-Disposition: inline In-Reply-To: <20020908133058.GA9799@genius.tao.org.uk> User-Agent: Mutt/1.5.4i Subject: Re: Usenix 2002 FreeBSD Developer Summit III -- why no oggs? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 22:53:29 -0000 --DBIVS5p969aUjpLe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 08, 2002 at 02:30:58PM +0100, Josef Karthauser wrote: >=20 > I've not had the time to post-process the last summit yet. It's a solid > day of work, and as there's been no demand for it I've not put it at the > top of my list. If anyone's interested in working on it, or sponsoring > it I'd be glad to hear from them. >=20 For the record the raw recording master files are now stored on the filesystem at ftp2.FreeBSD.org. Jacques knows where it is. Joe --=20 Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an= d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --DBIVS5p969aUjpLe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iEYEARECAAYFAj8UhdoACgkQXVIcjOaxUBZMBACfelxisx7H5AARr1hCGsNrOuUT BG4AoKbbMo4MZW17kbicmFKbbrnMresw =+2Nd -----END PGP SIGNATURE----- --DBIVS5p969aUjpLe-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 16:00:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4CE437B401; Tue, 15 Jul 2003 16:00:26 -0700 (PDT) Received: from ariel.ucs.unimelb.edu.au (ariel.ucs.unimelb.edu.au [128.250.20.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id B80E443FDD; Tue, 15 Jul 2003 16:00:25 -0700 (PDT) (envelope-from jrhoden@unimelb.edu.au) Received: from elkanah.its.unimelb.edu.au (elkanah.its.unimelb.edu.au [128.250.18.41])h6FN0MfE006721; Wed, 16 Jul 2003 09:00:22 +1000 (EST) From: JacobRhoden Organization: University of Melbourne To: Josef Karthauser Date: Wed, 16 Jul 2003 09:00:22 +1000 User-Agent: KMail/1.5 References: <200307141446.35380.jrhoden@unimelb.edu.au> <20030715222950.GA39907@genius.tao.org.uk> In-Reply-To: <20030715222950.GA39907@genius.tao.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307160900.22018.jrhoden@unimelb.edu.au> cc: freebsd-hackers@freebsd.org Subject: Re: Intel D845EPT2 Motherboard - USB broken :( X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 23:00:27 -0000 On Wed, 16 Jul 2003 08:29 am, Josef Karthauser wrote: > > Does anyone here use the Intel EPT2 motherboard? Have they managed to get > > USB working, and if so how? > > Can you mail us a copy of your 'dmesg' after a boot? What kind of > controller is it? Its an Intel 82801DB (ICH4) according to dmesg. I have attached the dmesg output below for reference. You can see at the bottom, when you plug a device in you get an error message from uhub[012]. If theres any more useful things I can attach let me know! (: I dont know enough to go hacking around in uhub.c but I may try if I get desperate! (: Thanks, Jacob FreeBSD 4.8-STABLE #3: Mon Jul 14 11:02:34 EST 2003 jrhoden@elkanah.its.unimelb.edu.au:/usr/obj/usr/src/sys/JOAB2 Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) Pentium(R) 4 CPU 1.60GHz (1599.96-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf12 Stepping = 2 Features=0x3febfbff real memory = 536084480 (523520K bytes) avail memory = 515932160 (503840K bytes) Preloaded elf kernel "kernel" at 0xc0586000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 10 entries at 0xc00f4670 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 uhci0: port 0xe800-0xe81f irq 11 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xe880-0xe89f irq 9 at device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xec00-0xec1f irq 10 at device 29.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pcib2: at device 30.0 on pci0 pci2: on pcib2 ed0: port 0xdc00-0xdc1f irq 10 at device 2.0 on pci2 ed0: address 00:50:ba:f2:33:79, type NE2000 (16 bit) fxp0: port 0xd880-0xd8bf mem 0xfeaff000-0xfeafffff irq 11 at device 8.0 on pci2 fxp0: Ethernet address 00:03:47:2a:2f:61 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ichsmb0: port 0xe000-0xe01f irq 5 at device 31.3 on pci0 pcm0: port 0xe080-0xe0bf,0xe400-0xe4ff mem 0xfebff800-0xfebff8ff,0xfebffc00-0xfebffdff irq 5 at device 31.5 on pci0 pcm0: (id=0x41445372) orm0: