From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 02:17:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 91E8716A422 for ; Sun, 27 Nov 2005 02:17:16 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3107A43D6D for ; Sun, 27 Nov 2005 02:17:10 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so709086wxc for ; Sat, 26 Nov 2005 18:17:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RU2RTK9UY/IoF+KqStOtUzx3aU7qrPgwhMowc3m8xL9ltcsnwanLRrXUpIYmjhBdmn7FTEFwilf9ujJ6WCRUxXPAgoJ7/Dkkp1wshdTuCVcVwhdbC0dyJy8WqhTrySD9/6crk4FL8cxgBDTpzsedq+q6pZdZddWA53KJd/7MDGA= Received: by 10.70.52.8 with SMTP id z8mr8783539wxz; Sat, 26 Nov 2005 18:17:08 -0800 (PST) Received: by 10.70.18.16 with HTTP; Sat, 26 Nov 2005 18:17:08 -0800 (PST) Message-ID: <87ab37ab0511261817y5037c9bcy2c8478c8dc17585b@mail.gmail.com> Date: Sun, 27 Nov 2005 10:17:08 +0800 From: kylin To: freebsd-questions@freebsd.org, "freebsd-hackers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: dump causing system idle X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 02:17:16 -0000 folks: i am in terrible trouble when trying to dumping my kernel module 's fault i add dump device and dump dir in rc.conf and dumpon ... but when the first reboot after the panic&dumpon freebsd 53 idles on =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D WARNING: / was not properly dismounted start_init: trying /sbin/init =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D i fscked this slice on another freebsd, i tried another clean kernel ,i tried the single user mode ,but no use ,the init died there why? below i note the panic&dump info and the mesg when start up: 1 below is the panic&dump info: fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x0 fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc066cdb4 stack pointer =3D 0x10:0xcc7c5bf8 frame pointer =3D 0x10:0xcc7c5bf8 node segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, IOPL =3D 0 current process =3D 1033 (kldload) trap number =3D 12 panic: page fault ptime: 4h21m6s dumping 255 MB 2 here is the start up message ad0: 1 secs/int, 1 depth queue, WDMA2 GEOM: new disk ad0 ar: FreeBSD check1 failed ata1-master: pio=3D0x0c wdma=3D0x22 udma=3D0xffffffff cable=3D40pin ata1-master: setting PIO4 on Intel PIIX4 chip acd0: DVDROM drive at ata1 as master acd0: 128KB buffer, PIO4 acd0: Reads: CDR, CDRW, CDDA, DVDROM, DVDR, DVDRAM, packet acd0: Writes: acd0: Audio: play, 255 volume levels acd0: Mechanism: ejectable tray, lock protected acd0: Medium: CD-ROM unknown [0] f:80 typ:165 s(CHS):0/1/1 e(CHS):1023/15/63 s:63 l:4095441 [1] f:00 typ:165 s(CHS):1023/15/63 e(CHS):1023/15/63 s:4095504 l:29458800 [2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 GEOM: Configure ad0s1, start 32256 length 2096865792 end 2096898047 GEOM: Configure ad0s2, start 2096898048 length 15082905600 end 17179803647 GEOM: Configure ad0s1a, start 268435456 length 1827667968 end 2096103423 GEOM: Configure ad0s1b, start 0 length 268435456 end 268435455 GEOM: Configure ad0s1c, start 0 length 2096865792 end 2096865791 Mounting root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted start_init: trying /sbin/init -- we who r about to die,salute u! From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 02:50:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 C682916A41F for ; Sun, 27 Nov 2005 02:50:41 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1105D43D62 for ; Sun, 27 Nov 2005 02:50:24 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from [10.0.81.12] (ws12.mundomateo.com [10.0.81.12]) by mail.mundomateo.com (Postfix) with ESMTP id B6D906551; Sat, 26 Nov 2005 21:50:18 -0500 (EST) Message-ID: <43891EE8.7070209@digitalstratum.com> Date: Sat, 26 Nov 2005 21:50:16 -0500 From: Matthew Hagerty Organization: Digital Stratum User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <43887BC0.7000501@digitalstratum.com> <86acfr4ak8.fsf@xps.des.no> In-Reply-To: <86acfr4ak8.fsf@xps.des.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: Running a shell script on becoming the CARP master? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 02:50:41 -0000 Dag-Erling Smørgrav wrote: >Matthew Hagerty writes: > > >>Are there any hooks into CARP to run a shell script when a machine >>becomes the master? >> >> > >Have you tried using devd to catch the link up / down event on the >carp interface? > >DES > > I'm not familiar with devd, but I'll certainly look into it. Matthew From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 02:52:33 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 9B37216A41F for ; Sun, 27 Nov 2005 02:52:33 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D78543D82 for ; Sun, 27 Nov 2005 02:52:26 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from [10.0.81.12] (ws12.mundomateo.com [10.0.81.12]) by mail.mundomateo.com (Postfix) with ESMTP id 4773C6556; Sat, 26 Nov 2005 21:52:22 -0500 (EST) Message-ID: <43891F63.3020505@digitalstratum.com> Date: Sat, 26 Nov 2005 21:52:19 -0500 From: Matthew Hagerty Organization: Digital Stratum User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "David S. Madole" References: <43887BC0.7000501@digitalstratum.com> <05f401c5f2a4$a3da7ad0$c3e7a8c0@david> In-Reply-To: <05f401c5f2a4$a3da7ad0$c3e7a8c0@david> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Running a shell script on becoming the CARP master? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 02:52:33 -0000 David S. Madole wrote: > From: "Matthew Hagerty" > >> >> Are there any hooks into CARP to run a shell script when a machine >> becomes the master? Also, is there a way to force a machine to >> become the master without powering off the current master (for >> example to do maintenance on the current master)? > > > I don't know of any way to do the former, but for the latter it's easy > enough to temporarily adjust the advbase setting higher on the master > until failover occurs. Set it to at least three times the setting on > the slave. > > Or simply ifconfig down the carp interface on the master. > > David > Taking the master carp interface down certainly would accomplish the task, I just didn't know if there was a more elegant method. Thanks for the info. Matthew From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 02:56:28 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 CF59116A44A for ; Sun, 27 Nov 2005 02:56:27 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D64E43D5E for ; Sun, 27 Nov 2005 02:55:58 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so712610wxc for ; Sat, 26 Nov 2005 18:55:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qRWG4QKcJ/QMEMwc7F8Iqm1ImxCh0T85wL7SzUzdO1xsoZsMD3pVHnITZB8lVj5haaQPfj0i5sbWU41B9FRhMCtGlPX2u/ZXHUadH4poZc79gl7s9PXpTmf7hDZRultbRA4E9SVyp4f9YtRte3nWHF1aBKHs9JLNNExyzLX0f3o= Received: by 10.70.15.17 with SMTP id 17mr7989897wxo; Sat, 26 Nov 2005 18:55:55 -0800 (PST) Received: by 10.70.18.16 with HTTP; Sat, 26 Nov 2005 18:55:55 -0800 (PST) Message-ID: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> Date: Sun, 27 Nov 2005 10:55:55 +0800 From: kylin To: freebsd-questions@freebsd.org, "freebsd-hackers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: to list all the devices in freebsd &definition analyse X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 02:56:29 -0000 I i can use pciconf in freebsd to list the pci device ,but how to list the device tree in freeebsd? II i got some anornymous definition on devclass driver and device that differ from the current man page i think they seems reasonable but how can devclass Represents a bus or leaf device driver while driver still Represents a bus or leaf-level end-device driver ? and device is just a instance of bus or (leaf) end-device.?? is it oop? can the disigner of the arch show us a word?:) devclass Represents a bus or leaf device driver, e.g. pci_devclass (PCI bus), ahc_devclass (Adaptec SCSI host-bus adapter). It contains a list of drivers that belong to it. At run-time it also has a list populated by device instances of this class indexed by unit numbers. driver Represents a bus or leaf-level end-device driver. Each driver forms a devclass. All drivers are attached to single parent devclass (with the exception of root_devclass). Drivers have list of methods/operations e.g. probe/attach that are also inherited by it's instance devices. device Represents an instance of bus or (leaf) end-device. All devices have unique unit numbers in class to which they belong. Each device has one parent and may have a list of children. Devices inherit their operations and class from driver to which they belong. Device can be in any of the states as defined in device_state_t below -- we who r about to die,salute u! From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 02:57:01 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 31DEE16A484 for ; Sun, 27 Nov 2005 02:57:00 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 153D243D4C for ; Sun, 27 Nov 2005 02:56:51 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from [10.0.81.12] (ws12.mundomateo.com [10.0.81.12]) by mail.mundomateo.com (Postfix) with ESMTP id BCBE66555; Sat, 26 Nov 2005 21:56:46 -0500 (EST) Message-ID: <4389206C.5050802@digitalstratum.com> Date: Sat, 26 Nov 2005 21:56:44 -0500 From: Matthew Hagerty Organization: Digital Stratum User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dominic Marks References: <43887BC0.7000501@digitalstratum.com> <200511261534.29545.dom@goodforbusiness.co.uk> In-Reply-To: <200511261534.29545.dom@goodforbusiness.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Running a shell script on becoming the CARP master? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 02:57:01 -0000 Dominic Marks wrote: >On Saturday 26 November 2005 15:14, Matthew Hagerty wrote: > > >>Greetings, >> >>Are there any hooks into CARP to run a shell script when a machine >>becomes the master? Also, is there a way to force a machine to become >>the master without powering off the current master (for example to do >>maintenance on the current master)? >> >> > >I believe there was supposed to be a utility for this sort of thing >but I haven't seen or heard anything about it. In the mean time a >program which read the data could probably be built from the ifconfig >code quite simply. It would be really nice if there were kevent >notifications for CARP events. > > > >>Thanks, >>Matthew >>_______________________________________________ >>freebsd-hackers@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >> >> >> > > > I was looking at the ifconfig output and it certainly could be parsed for the CARP status I suppose, but it just seemed a little crude and I wanted to make sure I was not missing something more obvious. Do you know if the CARP interface is up, available, and stable by the time /usr/local/etc/rc.d scripts are run? Thanks, Matthew From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 03:09:24 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 9BD2916A41F; Sun, 27 Nov 2005 03:09:24 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FE6543D58; Sun, 27 Nov 2005 03:09:24 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jAR39NA1056033; Sat, 26 Nov 2005 19:09:23 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jAR39M6U056032; Sat, 26 Nov 2005 19:09:23 -0800 (PST) (envelope-from jmg) Date: Sat, 26 Nov 2005 19:09:22 -0800 From: John-Mark Gurney To: kylin Message-ID: <20051127030922.GH885@funkthat.com> Mail-Followup-To: kylin , freebsd-questions@freebsd.org, "freebsd-hackers@freebsd.org" References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: "freebsd-hackers@freebsd.org" , freebsd-questions@freebsd.org Subject: Re: to list all the devices in freebsd &definition analyse X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 03:09:24 -0000 kylin wrote this message on Sun, Nov 27, 2005 at 10:55 +0800: > I > i can use pciconf in freebsd to list the pci device ,but how to list > the device tree in freeebsd? devinfo.... > II > i got some anornymous definition on devclass driver and device that > differ from the current man page > i think they seems reasonable but how can devclass Represents a bus > or leaf device driver while driver still Represents a bus or > leaf-level end-device driver ? > and device is just a instance of bus or (leaf) end-device.?? > is it oop? can the disigner of the arch show us a word?:) read device(9).. and devclass(9).. I'm not quite sure what you are asking here, but take a look at a bunch of the other drivers... My zoran driver (http://people.freebsd.org/~jmg/zoran.html) is both a driver, and a bus for i2c... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 06:00:30 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 56BA416A420 for ; Sun, 27 Nov 2005 06:00:30 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44DC843D5D for ; Sun, 27 Nov 2005 06:00:29 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so1881725wxc for ; Sat, 26 Nov 2005 22:00:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CRlJ2QBRQ7sXPrQjrHkXlT/oCjyfzNyjcZi09to3QHupTJAEbMfASnkfyte3S7ejTjVh/0YnrndahNR2dlKF5k0F59jZLxeBas12SpAqfl/U7luxLjsN91Uy3heK90AGiDmmLPPwzgaaiDHDlb0dSTs3PRPEmWQFSflC0qmzgW4= Received: by 10.70.91.6 with SMTP id o6mr9242833wxb; Sat, 26 Nov 2005 22:00:27 -0800 (PST) Received: by 10.70.105.13 with HTTP; Sat, 26 Nov 2005 22:00:26 -0800 (PST) Message-ID: <84dead720511262200i626aa0d6t69d9bcaaab1d261b@mail.gmail.com> Date: Sun, 27 Nov 2005 11:30:26 +0530 From: Joseph Koshy To: kylin In-Reply-To: <87ab37ab0511261817y5037c9bcy2c8478c8dc17585b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0511261817y5037c9bcy2c8478c8dc17585b@mail.gmail.com> Cc: "freebsd-hackers@freebsd.org" , freebsd-questions@freebsd.org Subject: Re: dump causing system idle X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 06:00:30 -0000 k> freebsd 53 idles on k> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D k> WARNING: / was not properly dismounted k> start_init: trying /sbin/init k> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Does /sbin/init exist? Does it match the /sbin/init on a 'good' partition? -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 09:13:44 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 2487116A41F for ; Sun, 27 Nov 2005 09:13:44 +0000 (GMT) (envelope-from chris@haakonia.hitnet.rwth-aachen.de) Received: from ms-dienst.rz.rwth-aachen.de (ms-1.rz.RWTH-Aachen.DE [134.130.3.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56C6F43D55 for ; Sun, 27 Nov 2005 09:13:42 +0000 (GMT) (envelope-from chris@haakonia.hitnet.rwth-aachen.de) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IQL00MYPWAS6Y@ms-dienst.rz.rwth-aachen.de> for freebsd-hackers@freebsd.org; Sun, 27 Nov 2005 10:13:40 +0100 (MET) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Sun, 27 Nov 2005 10:13:40 +0100 (MET) Received: from bigboss.hitnet.rwth-aachen.de (bigspace.hitnet.RWTH-Aachen.DE [137.226.181.2]) by relay.rwth-aachen.de (8.13.3/8.13.3/1) with ESMTP id jAR9Dde7017269; Sun, 27 Nov 2005 10:13:39 +0100 (MET) Received: from lorien.hitnet.rwth-aachen.de ([137.226.181.92] helo=haakonia.hitnet.rwth-aachen.de) by bigboss.hitnet.rwth-aachen.de with esmtp (Exim 3.35 #1 (Debian)) id 1EgIbL-0003ci-00; Sun, 27 Nov 2005 10:13:39 +0100 Received: by haakonia.hitnet.rwth-aachen.de (Postfix, from userid 1001) id 93EB93F42A; Sun, 27 Nov 2005 10:13:38 +0100 (CET) Date: Sun, 27 Nov 2005 10:13:38 +0100 From: Christian Brueffer In-reply-to: <200511270844.26548.thierry@herbelot.com> To: Thierry Herbelot Message-id: <20051127091338.GA1334@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary=ReaqsoxgOBHFXBhH; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.5.11 X-Operating-System: FreeBSD 6.0-STABLE X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <200511251734.36605.therbelot@dibcom.fr> <20051125174221.GD1851@unixpages.org> <200511270844.26548.thierry@herbelot.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Promise FastTrak RAID 5 support ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 09:13:44 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 27, 2005 at 08:44:25AM +0100, Thierry Herbelot wrote: > Le Friday 25 November 2005 18:42, Christian Brueffer a =E9crit : > > > [SNIP quote from a commit message] >=20 > indeed : Promise is not an option ; after a quick google, it seems that a= 9500=20 > board from 3ware is both supported under FreeBSD and not absurdly expensi= ve=20 > (i.e. in fact cheaper than the 4 disks hooked on the board) >=20 Yes, the twa(4) driver supports that card. Forgot to mention it, sorry. - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDiXjCbHYXjKDtmC0RAm51AKCDQ2Yv1muIXxc4+mnEM4n4RPHoZwCfcSsr NRrcZidR418ltWrCpjBhQl8= =Y1KL -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH-- From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 15:07:19 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 A743616A41F for ; Sun, 27 Nov 2005 15:07:19 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6FB643D5A for ; Sun, 27 Nov 2005 15:07:18 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so776563wxc for ; Sun, 27 Nov 2005 07:07:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jecboY2iKnfE2c0SZBlOXX+rtELfbM6EeDy9Pr7kkxXzo2OH9ovkVN8NQQBNEGG07whY3vFKsnKab2btmWDhqYTZtX27SX7D3J9Q/o+7AmAtQ4SMCMKTDK+woNdsFlYMUA/FBEa8q2fDlGIdrTvbQTWOvBx+JlwUVAzn1AFCMGc= Received: by 10.70.38.17 with SMTP id l17mr9144355wxl; Sun, 27 Nov 2005 07:07:18 -0800 (PST) Received: by 10.70.18.16 with HTTP; Sun, 27 Nov 2005 07:07:18 -0800 (PST) Message-ID: <87ab37ab0511270707i33b3e968q3f634af56258e5b6@mail.gmail.com> Date: Sun, 27 Nov 2005 23:07:18 +0800 From: kylin To: Joseph Koshy In-Reply-To: <84dead720511262200i626aa0d6t69d9bcaaab1d261b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0511261817y5037c9bcy2c8478c8dc17585b@mail.gmail.com> <84dead720511262200i626aa0d6t69d9bcaaab1d261b@mail.gmail.com> Cc: "freebsd-hackers@freebsd.org" , freebsd-questions@freebsd.org Subject: Re: dump causing system idle X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 15:07:19 -0000 i am using a Virtual PC as the Virtual machine. and today ,i reinstall a new slice of freebsd 53 and redo the same operation as show in the section :dump the kernel in freebsd developer handbook : dumpdev dumpdir dumpon swappartition On panic : Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x1 fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc16497e8 stack pointer =3D 0x10:0xc80fed1c frame pointer =3D 0x10:0xc80fed20 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, IOPL =3D 0 current process =3D 518 (beautiful) trap number =3D 12 panic: page fault Uptime: 11m35s Dumping 127 MB And when the first restart:the system go into a single user mode:message be= low: sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1458191862 Hz quality 800 Timecounters tick every 10.000 msec ad0: 16383MB [33288/16/63] at ata0-master WDMA2 de0: enabling 100baseTX port acd0: DVDROM at ata1-master PIO4 Mounting root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted Pre-seeding PRNG: kickstart. Loading configuration files. Entropy harvesting: interrupts ethernet point_to_point kickstart. kernel dumps on /dev/ad0s1b swapon: adding /dev/ad0s1b as swap device Starting file system checks: /dev/ad0s1a: CG 2: BAD MAGIC NUMBER /dev/ad0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. Automatic file system check failed; help! Nov 27 20:11:28 init: /bin/sh on /etc/rc terminated abnormally, going to si= ngle user mode On 11/27/05, Joseph Koshy wrote: > k> freebsd 53 idles on > k> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > k> WARNING: / was not properly dismounted > k> start_init: trying /sbin/init > k> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Does /sbin/init exist? Does it match the /sbin/init on a > 'good' partition? > > -- > FreeBSD Volunteer, http://people.freebsd.org/~jkoshy > -- we who r about to die,salute u! From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 22:54:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 06D3316A41F for ; Sun, 27 Nov 2005 22:54:53 +0000 (GMT) (envelope-from gemohler@speedtoys.com) Received: from speedracer.speedtoys.com (speedtoys.com [208.3.200.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E87843D6E for ; Sun, 27 Nov 2005 22:54:46 +0000 (GMT) (envelope-from gemohler@speedtoys.com) Received: from speedracer.speedtoys.com (localhost.speedtoys.com [127.0.0.1]) by speedracer.speedtoys.com (8.12.5/8.11.6) with ESMTP id jARMlQdI050239 for ; Sun, 27 Nov 2005 16:47:26 -0600 (CST) (envelope-from gemohler@speedtoys.com) X-Authentication-Warning: speedracer.speedtoys.com: Host localhost.speedtoys.com [127.0.0.1] claimed to be speedracer.speedtoys.com Received: from localhost (gemohler@localhost) by speedracer.speedtoys.com (8.12.5/8.12.5/Submit) with ESMTP id jARMlQjR050236 for ; Sun, 27 Nov 2005 16:47:26 -0600 (CST) (envelope-from gemohler@speedtoys.com) X-Authentication-Warning: speedracer.speedtoys.com: gemohler owned process doing -bs Date: Sun, 27 Nov 2005 16:47:26 -0600 (CST) From: Geoff Mohler To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Cannot upgrade 4.11-RELEASE #0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 22:54:53 -0000 I am trying to upgrade via buildworld my 4.11-RELEASE #0 system, and I am running into a few key errors. First, I am updated in my cvsup, here is my config file: *default host=cvsup3.freebsd.org compress *default base=/usr *default prefix=/usr *default release=cvs *default delete use-rel-suffix *default tag=. src-all When I do a buiuldworld, I get a pile of these: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory My /etc/make.conf includes COMPAT3X and 4X as found in a number of google searches related to this. Just not sure where to go next.. Im trying to update this machine remotely, and my KEY issue is that Imagemagik wont install, oddly with the same stdint.h error(s). Ideas? --- "Sixty-six per cent of people currently do not approve of the way that Bush is handling the war. The other 34 per cent believe that Adam and Eve rode around naked on Dinosaurs." -Tina Fey, SNL From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 22:58:17 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 682BE16A438 for ; Sun, 27 Nov 2005 22:58:17 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9353643DA4 for ; Sun, 27 Nov 2005 22:57:46 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id ED7701A3C27; Sun, 27 Nov 2005 14:57:45 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D5B4C51527; Sun, 27 Nov 2005 17:57:44 -0500 (EST) Date: Sun, 27 Nov 2005 17:57:44 -0500 From: Kris Kennaway To: Geoff Mohler Message-ID: <20051127225744.GA6136@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Cannot upgrade 4.11-RELEASE #0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 22:58:17 -0000 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 27, 2005 at 04:47:26PM -0600, Geoff Mohler wrote: > I am trying to upgrade via buildworld my 4.11-RELEASE #0 system, and I am= =20 > running into a few key errors. >=20 > First, I am updated in my cvsup, here is my config file: >=20 > *default host=3Dcvsup3.freebsd.org compress > *default base=3D/usr > *default prefix=3D/usr > *default release=3Dcvs > *default delete use-rel-suffix > *default tag=3D. > src-all >=20 >=20 > When I do a buiuldworld, I get a pile of these: >=20 > /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory You can't update from 4.11 to 7.0 in that way. You have to at least go through 5.x first. If you wanted to do something else like update to 4.11-STABLE, your cvsupfile is wrong. Kris --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDijnoWry0BWjoQKURAsyfAKDMTnTwC97S5ICKaov+M3BeueM8CACgpoeB KJ5wfL8ERamlOFVzV2c9Qi4= =+AHE -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv-- From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 23:00:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 F3B9C16A514 for ; Sun, 27 Nov 2005 23:00:40 +0000 (GMT) (envelope-from gemohler@speedtoys.com) Received: from speedracer.speedtoys.com (speedtoys.com [208.3.200.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14C7D43D88 for ; Sun, 27 Nov 2005 23:00:30 +0000 (GMT) (envelope-from gemohler@speedtoys.com) Received: from speedracer.speedtoys.com (localhost.speedtoys.com [127.0.0.1]) by speedracer.speedtoys.com (8.12.5/8.11.6) with ESMTP id jARMrBdI050366; Sun, 27 Nov 2005 16:53:11 -0600 (CST) (envelope-from gemohler@speedtoys.com) X-Authentication-Warning: speedracer.speedtoys.com: Host localhost.speedtoys.com [127.0.0.1] claimed to be speedracer.speedtoys.com Received: from localhost (gemohler@localhost) by speedracer.speedtoys.com (8.12.5/8.12.5/Submit) with ESMTP id jARMrBrj050363; Sun, 27 Nov 2005 16:53:11 -0600 (CST) (envelope-from gemohler@speedtoys.com) X-Authentication-Warning: speedracer.speedtoys.com: gemohler owned process doing -bs Date: Sun, 27 Nov 2005 16:53:11 -0600 (CST) From: Geoff Mohler To: Kris Kennaway In-Reply-To: <20051127225744.GA6136@xor.obsecurity.org> Message-ID: References: <20051127225744.GA6136@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Cannot upgrade 4.11-RELEASE #0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 23:00:41 -0000 Ok..thanks for the proper kick. :) On Sun, 27 Nov 2005, Kris Kennaway wrote: > On Sun, Nov 27, 2005 at 04:47:26PM -0600, Geoff Mohler wrote: >> I am trying to upgrade via buildworld my 4.11-RELEASE #0 system, and I am >> running into a few key errors. >> >> First, I am updated in my cvsup, here is my config file: >> >> *default host=cvsup3.freebsd.org compress >> *default base=/usr >> *default prefix=/usr >> *default release=cvs >> *default delete use-rel-suffix >> *default tag=. >> src-all >> >> >> When I do a buiuldworld, I get a pile of these: >> >> /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory > > You can't update from 4.11 to 7.0 in that way. You have to at least > go through 5.x first. > > If you wanted to do something else like update to 4.11-STABLE, your > cvsupfile is wrong. > > Kris > --- "Sixty-six per cent of people currently do not approve of the way that Bush is handling the war. The other 34 per cent believe that Adam and Eve rode around naked on Dinosaurs." -Tina Fey, SNL From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 23:00:42 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 33ED716A45F for ; Sun, 27 Nov 2005 23:00:41 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7906743D86 for ; Sun, 27 Nov 2005 23:00:31 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by wproxy.gmail.com with SMTP id i30so1604113wra for ; Sun, 27 Nov 2005 15:00:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=QeDnH9uek32asfiQx7J9wsw+nlizOuu+77GrRaMJhf8+87bM6kdbjIQIwowBZ0+q3XHZfkOJqqEF8h+qttImowqJ3bJYRPfqeP+8BeyoCTo97Lomlfoelh3FzdFdvQjjSX+H0TPBGpQHIsTifLE2b7xdviUwsJ8wiCapP/cA1ww= Received: by 10.54.143.1 with SMTP id q1mr7792260wrd; Sun, 27 Nov 2005 15:00:30 -0800 (PST) Received: from ?192.168.1.10? ( [71.102.14.129]) by mx.gmail.com with ESMTP id 39sm184787wrl.2005.11.27.15.00.29; Sun, 27 Nov 2005 15:00:30 -0800 (PST) From: "Michael C. Shultz" To: freebsd-hackers@freebsd.org Date: Sun, 27 Nov 2005 14:50:56 -0800 User-Agent: KMail/1.8.3 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511271450.57377.ringworm01@gmail.com> Cc: Geoff Mohler Subject: Re: Cannot upgrade 4.11-RELEASE #0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 23:00:42 -0000 On Sunday 27 November 2005 14:47, Geoff Mohler wrote: > I am trying to upgrade via buildworld my 4.11-RELEASE #0 system, and I am > running into a few key errors. > > First, I am updated in my cvsup, here is my config file: > > *default host=cvsup3.freebsd.org compress > *default base=/usr > *default prefix=/usr > *default release=cvs > *default delete use-rel-suffix > *default tag=. > src-all rm -rf /usr/src/* rm -rf /usr/obj/* change *default tag=. to *default tag=tag=RELENG_4 You got the sources for 7.0 most likely on your system right now. -Mike > > > When I do a buiuldworld, I get a pile of these: > > /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory > > > My /etc/make.conf includes COMPAT3X and 4X as found in a number of google > searches related to this. > > Just not sure where to go next.. > > Im trying to update this machine remotely, and my KEY issue is that > Imagemagik wont install, oddly with the same stdint.h error(s). > > Ideas? > > --- > "Sixty-six per cent of people currently do not approve of the way that Bush > is handling the war. The other 34 per cent believe that Adam and Eve rode > around naked on Dinosaurs." > -Tina Fey, SNL > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 23:01:15 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 D9C5B16A433 for ; Sun, 27 Nov 2005 23:01:15 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 421C343D49 for ; Sun, 27 Nov 2005 23:01:15 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so1975488wxc for ; Sun, 27 Nov 2005 15:01:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=WJPMgstv1CfcCmhs9Eq/hS1TH2/ltsiinfQm3ukf+xve7tdk7K61hkbmnF6r57h1Lva37mPPTCsL4eYv7IDVNosu6zEURFttFoSRkW5kSMM9dA8CPKA/vl2CjjWUSQRkNrBbA/Tsyi8uiML+TfJnbDLv/o1Q7/dLwy9Kp6kHGD0= Received: by 10.70.73.20 with SMTP id v20mr9871409wxa; Sun, 27 Nov 2005 15:01:14 -0800 (PST) Received: from ?192.168.1.10? ( [71.102.14.129]) by mx.gmail.com with ESMTP id i36sm145198wxd.2005.11.27.15.01.13; Sun, 27 Nov 2005 15:01:14 -0800 (PST) From: "Michael C. Shultz" To: freebsd-hackers@freebsd.org Date: Sun, 27 Nov 2005 14:51:41 -0800 User-Agent: KMail/1.8.3 References: <200511271450.57377.ringworm01@gmail.com> In-Reply-To: <200511271450.57377.ringworm01@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511271451.41623.ringworm01@gmail.com> Cc: Geoff Mohler Subject: Re: Cannot upgrade 4.11-RELEASE #0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 23:01:16 -0000 On Sunday 27 November 2005 14:50, Michael C. Shultz wrote: > On Sunday 27 November 2005 14:47, Geoff Mohler wrote: > > I am trying to upgrade via buildworld my 4.11-RELEASE #0 system, and I am > > running into a few key errors. > > > > First, I am updated in my cvsup, here is my config file: > > > > *default host=cvsup3.freebsd.org compress > > *default base=/usr > > *default prefix=/usr > > *default release=cvs > > *default delete use-rel-suffix > > *default tag=. > > src-all > > rm -rf /usr/src/* > rm -rf /usr/obj/* > > change > *default tag=. > to > *default tag=RELENG_4 correction^^^^^^ From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 23:09:11 2005 Return-Path: X-Original-To: hackers@freebsd.org 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 0C49F16A41F for ; Sun, 27 Nov 2005 23:09:11 +0000 (GMT) (envelope-from boris@brooknet.com.au) Received: from mailout1.pacific.net.au (mailout1.pacific.net.au [61.8.0.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABCE343D78 for ; Sun, 27 Nov 2005 23:08:55 +0000 (GMT) (envelope-from boris@brooknet.com.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout1.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id jARN8riu021630; Mon, 28 Nov 2005 10:08:53 +1100 Received: from [192.168.0.7] (ppp212F.dyn.pacific.net.au [61.8.33.47]) by mailproxy2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id jARN8odB012126; Mon, 28 Nov 2005 10:08:51 +1100 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Sam Lawrance Date: Mon, 28 Nov 2005 10:08:50 +1100 To: Geoff Mohler X-Mailer: Apple Mail (2.746.2) Cc: hackers@freebsd.org Subject: Re: Cannot upgrade 4.11-RELEASE #0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 23:09:11 -0000 On 28/11/2005, at 9:47 AM, Geoff Mohler wrote: > I am trying to upgrade via buildworld my 4.11-RELEASE #0 system, > and I am running into a few key errors. > > First, I am updated in my cvsup, here is my config file: > > *default host=cvsup3.freebsd.org compress > *default base=/usr > *default prefix=/usr > *default release=cvs > *default delete use-rel-suffix > *default tag=. > src-all > > > When I do a buiuldworld, I get a pile of these: > > /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or > directory > > > My /etc/make.conf includes COMPAT3X and 4X as found in a number of > google searches related to this. > > Just not sure where to go next.. > > Im trying to update this machine remotely, and my KEY issue is that > Imagemagik wont install, oddly with the same stdint.h error(s). > > Ideas? Your tag is set to "." which will check out -current. I don't think this is what you want to do, and this is not the way to go about doing it anyhow. If your problem is with that port specifically, perhaps you should obtain a build log using "script", and ask for help from the maintainer and ports@ list. From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 23:43:15 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG 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 D018816A420; Sun, 27 Nov 2005 23:43:15 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3381643D75; Sun, 27 Nov 2005 23:43:11 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jARNdh2S052892; Sun, 27 Nov 2005 16:39:43 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 27 Nov 2005 16:40:01 -0700 (MST) Message-Id: <20051127.164001.61158282.imp@bsdimp.com> To: fierykylin@gmail.com From: "M. Warner Losh" In-Reply-To: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 27 Nov 2005 16:39:43 -0700 (MST) Cc: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: to list all the devices in freebsd &definition analyse X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 23:43:16 -0000 In message: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> kylin writes: : i can use pciconf in freebsd to list the pci device ,but how to list : the device tree in freeebsd? devinfo -v : i got some anornymous definition on devclass driver and device that : differ from the current man page : i think they seems reasonable but how can devclass Represents a bus : or leaf device driver while driver still Represents a bus or : leaf-level end-device driver ? : and device is just a instance of bus or (leaf) end-device.?? : is it oop? can the disigner of the arch show us a word?:) : : devclass : Represents a bus or leaf device driver, e.g. pci_devclass (PCI bus), : ahc_devclass (Adaptec SCSI host-bus adapter). It contains a list of : drivers that belong to it. At run-time it also has a list populated by : device instances of this class indexed by unit numbers. : driver devclass is the information about all instances of the device. device_t is an instance of the device. The only difference between a bus and a device is that a bus has children. Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 04:05:05 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 EB03916A41F for ; Mon, 28 Nov 2005 04:05:04 +0000 (GMT) (envelope-from mike503@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E93143D5C for ; Mon, 28 Nov 2005 04:05:04 +0000 (GMT) (envelope-from mike503@gmail.com) Received: by wproxy.gmail.com with SMTP id i20so1638372wra for ; Sun, 27 Nov 2005 20:05:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fp0lpFHt+utHhhpLvjHfwY0tU7bVVKdfsdAX3Y1hu1eK4u29sLJMXdKLKOuBlE9OlO1sDPEMqSZ64tbQH7HvEGrMEm9HlVqZjKPAhaJ4cwlyJkglAaKsWdrqir2OddVLJZxSmMMizH9NgPcMDmDRgqndDj9zne6G55G2qbLWMe8= Received: by 10.54.86.14 with SMTP id j14mr1482303wrb; Sun, 27 Nov 2005 20:05:03 -0800 (PST) Received: by 10.54.77.2 with HTTP; Sun, 27 Nov 2005 20:05:03 -0800 (PST) Message-ID: Date: Sun, 27 Nov 2005 20:05:03 -0800 From: mike To: freebsd-hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Subject: Possible way to distribute NFS? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 04:05:05 -0000 (Note: also sent this to -fs, but it's relatively low traffic, and a lot of people on -hackers have the knowledge of whether or not this is even an idea worth giving a shot) I've been looking for clustered FS or (if I have to) clustered NFS solutions, and there's not many out there. Unless you want to go with an expensive appliance. Currently you can't "roll your own" at all with FreeBSD. However, I think I've figured out a way that might work; basically using the memcached[1] idea of hashing the requests to identify which server is serving the data could alleviate any issues with NFS not being "globally" aware, and allow for multiple NFS servers to read from the same physical shared storage (note that the expectation is the shared storage is being accessed from multiple physical servers, and redundancy is done below the actual FS layer) If someone could write an NFS client using FUSE (perhaps?) and have it integrate with memcached[1], couldn't that basically allow for n+1 scaling out of NFS servers and storage? Basically any time the FS would need to issue or check a file lock, it would hit the memcache API to check if it's been locked or "represented" yet by a specific NFS server. (Note: whether or not it actually needs a "lock" or it's just saying "I am NFS server #1 and /foo/bar/baz.txt will be served from my server" is something I'd let someone smarter figure out - perhaps just taking ownership of files regardless of the need to lock it would work?) I'm just brain dumping here. Note that I am not that advanced of a programmer (I'm a PHP scripter) so filesystem and hardware I/O semantics are not my specialty; this is just what I've got from Googling until I'm blue in the face and why multi-path storage solutions are still not very cheap/open source (only a couple possibilities, each with limitations and caveats...) Perhaps someone could shed some light, tell me it's stupid, or tell me it's worthwhile? NFS is pretty much tried and true, adding a small middle layer in between to allow for distribution of NFS requests and alleviating the lock conflicts might be a much more usable solution? Perhaps this could fill the void of no GFS for FreeBSD? My idea for design would be N number of NFS servers behind a single virtual IP (or this "middleware" layer would be listening on this virtual IP intercepting all the NFS requests and routing them appropriately to the NFS servers behind them - also, for all intents and purposes, this middleware daemon *could* just be on the same physical machine as each NFS server - saving the need for separate middleware servers too) Thanks, mike [1] "memcached" is a distributed memory caching system - http://www.danga.com/memcached/ - it can be scaled up or out, and can handle failover inside of the protocol (if a memcached server disappears, it's info is forgotten and freed up for another active memcached server) From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 04:36:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 785B416A41F for ; Mon, 28 Nov 2005 04:36:53 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF7F743D5A for ; Mon, 28 Nov 2005 04:36:52 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so877311wxc for ; Sun, 27 Nov 2005 20:36:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kgILTcVfO/fod4hbk/vgYq0wdFAOT8TNbE8ZAfdWZ1SW8NP4n6PRoZqxJxunfZOsRL2AOL7BcquB+pytnZ1jWX3U5CfeRfpKphlMaHR3FwI9ZZRSaVnBkFzrJzaWaThoiUZOX5BIiTGtqRJZvwjLVa13c1uDKzbEL1EGgZp3jSk= Received: by 10.70.46.13 with SMTP id t13mr821130wxt; Sun, 27 Nov 2005 20:36:50 -0800 (PST) Received: by 10.70.18.16 with HTTP; Sun, 27 Nov 2005 20:36:50 -0800 (PST) Message-ID: <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> Date: Mon, 28 Nov 2005 12:36:50 +0800 From: kylin To: "M. Warner Losh" , freebsd-hackers@freebsd.org In-Reply-To: <20051127.164001.61158282.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> <20051127.164001.61158282.imp@bsdimp.com> Cc: Subject: Re: to list all the devices in freebsd &definition analyse X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 04:36:53 -0000 On 11/28/05, M. Warner Losh wrote: > In message: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> > kylin writes: > : i can use pciconf in freebsd to list the pci device ,but how to list > : the device tree in freeebsd? > > devinfo -v devinfo is different with pciconf devinfo depends on the sysctl mechanism while pciconf ioctl the /dev/pci who will directly read the pci configuration space > devclass is the information about all instances of the device. > device_t is an instance of the device. The only difference between a > bus and a device is that a bus has children. > > Warner > but pcib and cbb still have pci or cardbus as there children ,and pcib and cbb is bridge rather than bus :( i am puzzle with the definition:( -- we who r about to die,salute u! From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 04:49:24 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 EB35E16A41F for ; Mon, 28 Nov 2005 04:49:24 +0000 (GMT) (envelope-from a.mattke@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B55B43D5A for ; Mon, 28 Nov 2005 04:49:18 +0000 (GMT) (envelope-from a.mattke@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so1084061nzo for ; Sun, 27 Nov 2005 20:49:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=A7pPAMccbLYjspgGGV+OEbQmGrKMbffb5u+QtjPpX1Dcyn815g76PWkRnWtByxi1oW1d1uh+HuoHUWRh3Za3X5PRi7ZBKgCRxGPp4CepVLUI3jCf51o1nHUYGON6TFcNrs/mwo9zqm/57J1i3L4cI9gOrAl8NT/BenkAyWLA7iE= Received: by 10.36.108.14 with SMTP id g14mr3009101nzc; Sun, 27 Nov 2005 20:49:18 -0800 (PST) Received: by 10.37.13.78 with HTTP; Sun, 27 Nov 2005 20:49:17 -0800 (PST) Message-ID: <2b9aedcc0511272049l6252d9ean20c96304424e5183@mail.gmail.com> Date: Sun, 27 Nov 2005 23:49:17 -0500 From: Anthony Mattke To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: pc card on watchguard firebox II X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 04:49:25 -0000 I have a WatchGuard Firebox II that I've been working on turning into a decent router. I see many people have installed monowall (http://m0n0.ch/wall/) on these boxes with good success. I would be done myself unless I was setting up a wireless bridge. These boxes are basicly custom pentium 200's with 3 ethernet ports, a few serial ports, 2 pcmcia card slots, a 44pin ide header, a keyboard header, and 2 backwards facing pci slots. The problem I am having is with getting a pc card to be detected, it knows they're there, it just wont register them. First off, I'm new to BSD. Second, I know this is not straight up BSD, but if given direction I can make anything happen that needs to for testing, I have a 5.3 box setup for testing, altho I'm having trouble getting it to boot on the firebox ( i need to recompile and disabe psm0 detection) Anyway, this is what I'm seeing. pci_cfgintr: can't route an interrupt to 0:16 INTA pcic0: at device 16.0 on pci0 pcic0: PCI Memory allocated: 0x88000000 pci_cfgintr: can't route an interrupt to 0:16 INTA pcic0: No PCI interrupt routed, trying ISA. pcic0: Polling mode pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC serial isa irq] pccard0: on pcic0 pci_cfgintr: can't route an interrupt to 0:16 INTB pcic1: at device 16.1 on pci0 pcic1: PCI Memory allocated: 0x88001000 pci_cfgintr: can't route an interrupt to 0:16 INTB pcic1: No PCI interrupt routed, trying ISA. pcic1: Polling mode pcic1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC serial isa irq] pccard1: on pcic1 pmtimer0 on isa0 I've google'd and google'd and poked and prodded, I've added the following to /boot/loader.conf, with no success. hint.acpi.0.disabled=3D1 hw.cbb.start_memory=3D0x20000000 hw.pci.allow_unsupported_io_range=3D1 If you want a look at the kernel config it is located here. (this is for monowall, not my 5.3 box, that has yet to be recompiled) http://m0n0.ch/wall/downloads/freeb...0N0WALL_GENERIC Any suggestions on where to go next? If you need any output, or anything, let me know. Thanks in advance, Tony From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 11:08:08 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 8CFB916A41F for ; Mon, 28 Nov 2005 11:08:08 +0000 (GMT) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id B56E943D92 for ; Mon, 28 Nov 2005 11:07:29 +0000 (GMT) (envelope-from max@love2party.net) Received: from [84.163.211.253] (helo=donor.laier.local) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1Eggr037lk-000444; Mon, 28 Nov 2005 12:07:27 +0100 From: Max Laier To: freebsd-hackers@freebsd.org, matthew@digitalstratum.com Date: Mon, 28 Nov 2005 12:07:35 +0100 User-Agent: KMail/1.8.2 References: <43887BC0.7000501@digitalstratum.com> In-Reply-To: <43887BC0.7000501@digitalstratum.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5422643.D6DLmPoFyz"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200511281207.46722.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: Subject: Re: Running a shell script on becoming the CARP master? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 11:08:08 -0000 --nextPart5422643.D6DLmPoFyz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 26 November 2005 16:14, Matthew Hagerty wrote: > Are there any hooks into CARP to run a shell script when a machine > becomes the master? Also, is there a way to force a machine to become > the master without powering off the current master (for example to do > maintenance on the current master)? net/ifstated from ports might be what you are looking for. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart5422643.D6DLmPoFyz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDiuUCXyyEoT62BG0RAr01AJsGmfYPbx22Kclu0AGlnc/Bc4tCBQCdFxl0 vppQw/Zjt3ByToIaXab1CSg= =ekb0 -----END PGP SIGNATURE----- --nextPart5422643.D6DLmPoFyz-- From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 12:16:24 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 30C1316A41F for ; Mon, 28 Nov 2005 12:16:24 +0000 (GMT) (envelope-from nz@thiemo.net) Received: from excalibur.ronald.org (excalibur.ronald.org [83.120.8.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 002F843D80 for ; Mon, 28 Nov 2005 12:16:09 +0000 (GMT) (envelope-from nz@thiemo.net) Received: from styx.ham01.thiemo.net (port-212-202-20-213.dynamic.qsc.de [212.202.20.213]) by excalibur.ronald.org (8.12.10/8.12.10) with ESMTP id jASCFfls013508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 28 Nov 2005 13:15:46 +0100 (CET) Received: from mygiea.ham01.thiemo.net (localhost [127.0.0.1]) by styx.ham01.thiemo.net (8.13.3/8.13.3) with ESMTP id jASCFSr6072084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Nov 2005 13:15:31 +0100 (CET) Received: (from thiemo@localhost) by mygiea.ham01.thiemo.net (8.13.3/8.13.3/Submit) id jASCFOb6072079; Mon, 28 Nov 2005 13:15:24 +0100 (CET) Date: Mon, 28 Nov 2005 13:15:24 +0100 From: Thiemo Nordenholz To: "M. Warner Losh" Message-ID: <20051128121524.GA71920@mygiea.ham01.thiemo.net> References: <20051124202519.GA84564@mygiea.ham01.thiemo.net> <20051124.171518.102581285.imp@bsdimp.com> <20051125105626.GA99656@mygiea.ham01.thiemo.net> <20051125.233821.59680423.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051125.233821.59680423.imp@bsdimp.com> User-Agent: Mutt/1.4.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Writing a driver for a card reader controller - how? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 12:16:24 -0000 > to find on the mmc web site. These registers are standard, and I > anticipate that FreeBSD will have a mmc-bus layer that interacts with > these things. My initial take on the newbus hierarchy will look > something like: [ ... ] > Where each bridge driver takes care of providing a standard inteface > to the mmcbus layer. That layer would provide the means to do > transfers and the like. mmcf would be the interface presented to the > user for mmc flash cards. So I suppose I put my driver hacking attempts on the back burner for now and wait for that mmc framework to be designed? I still wonder why I cannot really talk with the chip in my notebook, though. Maybe one day someone crafts a driver for it where I can see how it's done the right way... Best wishes, Thiemo -- Query a PGP key server (e.g. http://www.pgp.net/) for my public key 41068629. Strange sender address? Please see http://www.thiemo.net/misc/list-mail.shtml From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 13:28:23 2005 Return-Path: X-Original-To: hackers@freebsd.org 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 9B2BA16A423 for ; Mon, 28 Nov 2005 13:28:23 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE3CA43D68 for ; Mon, 28 Nov 2005 13:28:22 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [161.53.72.113] (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id jASDSHFx015591; Mon, 28 Nov 2005 14:28:18 +0100 (MET) Message-ID: <438B05D6.3000108@fer.hr> Date: Mon, 28 Nov 2005 14:27:50 +0100 From: Ivan Voras User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050921) X-Accept-Language: en-us, en MIME-Version: 1.0 To: mike , hackers@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Possible way to distribute NFS? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 13:28:23 -0000 mike wrote: > If someone could write an NFS client using FUSE (perhaps?) and have it > integrate with memcached[1], couldn't that basically allow for n+1 scaling I have had a similar idea to do in FUSE for some time now, but I'm waiting until I can spare the time to do it and the FUSE system becomes more stable (which should happen soon). Also note that, if done with FUSE, it will be slower than kernel code. Maybe not by much (http://creo.hu/pipermail/fuse4bsd-devel/2005-October/000009.html), but it's not yet clear how much. The problem I would try to solve is that of having single-writer- multiple-readers setup (writes go through one machine, get distributed to other machines, reads can go wherever), and without using NFS (though it's a good idea now that you mention it :) ), so it's maybe not what you need. If understand your suggestion correctly, all "NFS-like" traffic would pass through a single machine, which doesn't sound good speed-wise...? From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 14:07:36 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 6ABF716A41F for ; Mon, 28 Nov 2005 14:07:36 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from mail.otel.net (ll.otel.net [212.36.8.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DDC543D5C for ; Mon, 28 Nov 2005 14:07:35 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from dragon.otel.net ([212.36.8.135]) by mail.otel.net with esmtp (Exim 4.30; FreeBSD) id 1EgjfI-000PDl-1W for freebsd-hackers@freebsd.org; Mon, 28 Nov 2005 16:07:32 +0200 From: Iasen Kostov To: FreeBSD Hackers Content-Type: text/plain Date: Mon, 28 Nov 2005 16:07:31 +0200 Message-Id: <1133186851.70996.11.camel@DraGoN.OTEL.net> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: Loading gzipped mfsroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 14:07:36 -0000 I've seen a lot of examples where peeple load gzipped mfsroot images and everything looks fine for them, but not for me. It loads uncompressed image and boots ok, it loads compressed image and does not uncompress it and then tries to mount ufs directly on it which fails ofcourse. As I saw bay default loader(and pxeboot porbably - its a diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT defined so I think I should have gzip support in loader. Here is the loader.conf: rootfs_load="YES" rootfs_name="dlroot.gz" rootfs_type="mfs_root" and its FreeBSD 5.4-STABLE about a week old. I'm out of ideas right now :(. Regards From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 14:18:32 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 22B5A16A41F for ; Mon, 28 Nov 2005 14:18:32 +0000 (GMT) (envelope-from david@madole.net) Received: from a.omd3.com (a.omd3.com [69.90.174.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF27843D75 for ; Mon, 28 Nov 2005 14:18:31 +0000 (GMT) (envelope-from david@madole.net) Received: from dhcp-66-212-201-164.myeastern.com ([66.212.201.164] helo=david) by a.omd3.com with esmtpa (Exim 4.54) id 1Egjpu-000JZH-Fp; Mon, 28 Nov 2005 09:18:30 -0500 Message-ID: <077601c5f426$9aeac960$c3e7a8c0@david> From: "David S. Madole" To: "Iasen Kostov" , "FreeBSD Hackers" References: <1133186851.70996.11.camel@DraGoN.OTEL.net> Date: Mon, 28 Nov 2005 09:18:28 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Cc: Subject: Re: Loading gzipped mfsroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 14:18:32 -0000 From: "Iasen Kostov" > I've seen a lot of examples where peeple load gzipped mfsroot images > and everything looks fine for them, but not for me. It loads > uncompressed image and boots ok, it loads compressed image and does not > uncompress it and then tries to mount ufs directly on it which fails > ofcourse. As I saw bay default loader(and pxeboot porbably - its a > diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT > defined so I think I should have gzip support in loader. > > Here is the loader.conf: > > rootfs_load="YES" > rootfs_name="dlroot.gz" > rootfs_type="mfs_root" I've not users this in quite a while, so I may be wrong here, but I think what you need is: rootfs_name="dlroot" If gzip support is compiled in, it will automatically try to fetch dlroot.gz first and if it succeeds, it will uncompress and use it. The way you have configured it, it tries dlroot.gz.gz, which fails, so then it tried to load dlroot.gz as an uncompressed file. David From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 14:38:18 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 35F3816A41F for ; Mon, 28 Nov 2005 14:38:18 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from mail.otel.net (ll.otel.net [212.36.8.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id A560543D62 for ; Mon, 28 Nov 2005 14:38:16 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from dragon.otel.net ([212.36.8.135]) by mail.otel.net with esmtp (Exim 4.30; FreeBSD) id 1Egk8y-0000d2-At; Mon, 28 Nov 2005 16:38:12 +0200 From: Iasen Kostov To: "David S. Madole" In-Reply-To: <077601c5f426$9aeac960$c3e7a8c0@david> References: <1133186851.70996.11.camel@DraGoN.OTEL.net> <077601c5f426$9aeac960$c3e7a8c0@david> Content-Type: text/plain Date: Mon, 28 Nov 2005 16:38:11 +0200 Message-Id: <1133188691.70996.18.camel@DraGoN.OTEL.net> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers Subject: Re: Loading gzipped mfsroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 14:38:18 -0000 On Mon, 2005-11-28 at 09:18 -0500, David S. Madole wrote: > From: "Iasen Kostov" > > > I've seen a lot of examples where peeple load gzipped mfsroot images > > and everything looks fine for them, but not for me. It loads > > uncompressed image and boots ok, it loads compressed image and does not > > uncompress it and then tries to mount ufs directly on it which fails > > ofcourse. As I saw bay default loader(and pxeboot porbably - its a > > diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT > > defined so I think I should have gzip support in loader. > > > > Here is the loader.conf: > > > > rootfs_load="YES" > > rootfs_name="dlroot.gz" > > rootfs_type="mfs_root" > > I've not users this in quite a while, so I may be wrong here, but I think > what you need is: > > rootfs_name="dlroot" > > If gzip support is compiled in, it will automatically try to fetch > dlroot.gz first and if it succeeds, it will uncompress and use it. The > way you have configured it, it tries dlroot.gz.gz, which fails, so then > it tried to load dlroot.gz as an uncompressed file. > > David > Thanks a lot ! That do the trick :) It will realy be good if this is documented somewhere - probably in loader(8) manual page ... And will save people some hours of "blessing" loader(8) :) From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 15:14:49 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 9DEC516A41F for ; Mon, 28 Nov 2005 15:14:49 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ABED43D7B for ; Mon, 28 Nov 2005 15:14:47 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 9D7972085; Mon, 28 Nov 2005 16:14:38 +0100 (CET) X-Spam-Tests: AWL,BAYES_00,FORGED_RCVD_HELO X-Spam-Learn: ham X-Spam-Score: -3.3/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 8E0E42083; Mon, 28 Nov 2005 16:14:38 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id 78EB133C1D; Mon, 28 Nov 2005 16:14:38 +0100 (CET) To: kylin References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> <20051127.164001.61158282.imp@bsdimp.com> <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Mon, 28 Nov 2005 16:14:38 +0100 In-Reply-To: <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> (fierykylin@gmail.com's message of "Mon, 28 Nov 2005 12:36:50 +0800") Message-ID: <868xv8by8x.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: to list all the devices in freebsd &definition analyse X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 15:14:49 -0000 kylin writes: > M. Warner Losh writes: > > devinfo -v > devinfo is different with pciconf > devinfo depends on the sysctl mechanism while pciconf ioctl the > /dev/pci who will directly read the pci configuration space there is more in life than pci. > > devclass is the information about all instances of the device. > > device_t is an instance of the device. The only difference between a > > bus and a device is that a bus has children. > but pcib and cbb still have pci or cardbus as there children ,and pcib > and cbb is bridge rather than bus :( > i am puzzle with the definition:( as far as the kernel is concerned, any devices that other devices attach to is a bus. > we who r about to die,salute u! please learn to spell. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 16:05:07 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 7260E16A41F for ; Mon, 28 Nov 2005 16:05:07 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BA6543D60 for ; Mon, 28 Nov 2005 16:04:49 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so1000114wxc for ; Mon, 28 Nov 2005 08:04:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r02wtbWPqC5erLbHa6Ha4m9VCSqEU+jQqBAe9IY8icy4noDDDylwy5udDbMSzCQw82BWRzCq+LNZ/Eo/665pYr/qz7wjMrgCn+1HfbYVROwOxUlewow/lrp0ozLPZoBnaFRLKMTv7Qqd+ZuTHBPA0X4geNRZ60uKalcnEzR7PiA= Received: by 10.70.52.19 with SMTP id z19mr647852wxz; Mon, 28 Nov 2005 08:04:43 -0800 (PST) Received: by 10.70.18.16 with HTTP; Mon, 28 Nov 2005 08:04:43 -0800 (PST) Message-ID: <87ab37ab0511280804q30c84a51te515facc30e81ff4@mail.gmail.com> Date: Tue, 29 Nov 2005 00:04:43 +0800 From: kylin To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: <868xv8by8x.fsf@xps.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> <20051127.164001.61158282.imp@bsdimp.com> <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> <868xv8by8x.fsf@xps.des.no> Cc: "freebsd-hackers@freebsd.org" Subject: Re: to list all the devices in freebsd &definition analyse X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 16:05:07 -0000 my god ,mercy me On 11/28/05, Dag-Erling Sm=F8rgrav wrote: > kylin writes: > > M. Warner Losh writes: > > > devinfo -v > > devinfo is different with pciconf > > devinfo depends on the sysctl mechanism while pciconf ioctl the > > /dev/pci who will directly read the pci configuration space > > there is more in life than pci. i agree:) > > > devclass is the information about all instances of the device. > > > device_t is an instance of the device. The only difference between a > > > bus and a device is that a bus has children. > > but pcib and cbb still have pci or cardbus as there children ,and pcib > > and cbb is bridge rather than bus :( > > i am puzzle with the definition:( > > as far as the kernel is concerned, any devices that other devices > attach to is a bus. no .device_get_parent of a pci bus we get pcib > > we who r about to die,salute u! > > please learn to spell. come from the "gladiator":In ancient rome, the glorious gladiator show their respect to the audience whit the words:we who are about to die salute you but thank u for your advice all the same :) -- we who r about to die,salute u! From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 16:50:43 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 065E416A41F for ; Mon, 28 Nov 2005 16:50:43 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CC0743D64 for ; Mon, 28 Nov 2005 16:50:42 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so1012890wxc for ; Mon, 28 Nov 2005 08:50:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KpgisXRfbtoHR39yE7GJVt8jWNRlBU82lpX498fvPcL62K0B/wWAHfuG8lENP252pxarXpGqQUzHvC+BmXBHla1GLXiv4YL62wVuLnyxuvA0Sbi00GIr/ta+2RJrVWTkbliBCLofao1WJSyrZg6nEXeUL8MJzh4syATO29i6CVk= Received: by 10.70.38.9 with SMTP id l9mr26511wxl; Mon, 28 Nov 2005 08:50:41 -0800 (PST) Received: by 10.70.18.16 with HTTP; Mon, 28 Nov 2005 08:50:41 -0800 (PST) Message-ID: <87ab37ab0511280850y1bca554n1da9b11c321be34b@mail.gmail.com> Date: Tue, 29 Nov 2005 00:50:41 +0800 From: kylin To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: puzzle about the pci_add_child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 16:50:43 -0000 i am reading the pci code of freeBSD 53 ,and come to the puzzle of pci_add_child. 1 why should we =3D09pci_cfg_save(dinfo->cfg.dev, dinfo, 0); after we hav= e already fill the cfg in pci_read_device ? 2 what 's the purpose of the function couple pci_cfg_save(dinfo->cfg.dev, dinfo, 0); pci_cfg_restore(dinfo->cfg.dev, dinfo) below is the function ,thank u pci_add_child(device_t bus, struct pci_devinfo *dinfo) { device_t pcib; pcib =3D device_get_parent(bus); dinfo->cfg.dev =3D device_add_child(bus, NULL, -1);//NULLmeans no devclass to create // for pci bus refers to pci device node device_set_ivars(dinfo->cfg.dev, dinfo); pci_cfg_save(dinfo->cfg.dev, dinfo, 0);//for what read and write? pci_cfg_restore(dinfo->cfg.dev, dinfo);//not store ,but REstore ,power rela= ted pci_add_resources(pcib, bus, dinfo->cfg.dev);//see resource are bridge rela= ted pci_print_verbose(dinfo); ... } -- we who r about to die,salute u! From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 17:04:05 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 1B3D916A422 for ; Mon, 28 Nov 2005 17:04:05 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id E34E643D53 for ; Mon, 28 Nov 2005 17:04:03 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2741921 for multiple; Mon, 28 Nov 2005 12:04:12 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jASH3rCJ058457; Mon, 28 Nov 2005 12:03:56 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 28 Nov 2005 11:15:27 -0500 User-Agent: KMail/1.8.2 References: <20051123092045.GA48216@mygiea.ham01.thiemo.net> <20051124111241.GB75190@mygiea.ham01.thiemo.net> <20051124.112632.65222526.imp@bsdimp.com> In-Reply-To: <20051124.112632.65222526.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511281115.28735.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: listmember@thiemo.net Subject: Re: Writing a driver for a card reader controller - how? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 17:04:05 -0000 On Thursday 24 November 2005 01:26 pm, M. Warner Losh wrote: > In message: <20051124111241.GB75190@mygiea.ham01.thiemo.net> > > Thiemo Nordenholz writes: > : Hi Warner, > : > : > to be set. Can you send me a pointer to the winbond datasheet you are > : > using? IIRC, this chip has an odd API since it appears to be derived > : > : As I have to wait for some spare time before trying to use the hints I > : have received here, for now I can only answer that question - I found a > : datasheet at > : http://www.winbond.com/e-winbondhtm/partner/PDFresult.asp?Pname=863 which > : is what I try to work with. (That page sends a file "PDFresult.asp", > : which is actually a PDF.) > > I've read through this pdf. As far as I can find, it just talks about > how to setup the base address for each of the sets of registers > without actually talking about the sets of registers themselves. Nor > can I find in the document a pointer to the different register sets. > Do you have one of those as well? It looks fairly easy to program > this device's base addresses or inquire what they are. It is done in > much the same way that super I/O chips are programmed. For an ACPI device you want to use _PRS and _SRS. _PRS will give you a list of candidate resource sets, possibly in groups via DPF tags. You then build a resource and do an _SRS to set it. The problem is that our ACPI bus isn't smart enough to allocate resources for a device when bus_alloc_resource() is called to choose available resources when a device is not configured. This is similar to how you fixed the PCI bus recently to allocate resources for BARs that weren't already allocated by the BIOS. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 17:04:11 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 974F516A446 for ; Mon, 28 Nov 2005 17:04:11 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2737343D4C for ; Mon, 28 Nov 2005 17:04:07 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2741927 for multiple; Mon, 28 Nov 2005 12:04:17 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jASH3rCK058457; Mon, 28 Nov 2005 12:04:03 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 28 Nov 2005 11:32:11 -0500 User-Agent: KMail/1.8.2 References: <438505D6.7090202@mawer.org> In-Reply-To: <438505D6.7090202@mawer.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511281132.12192.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Antony Mawer Subject: Re: libutil properties_read() bug: patch for review X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 17:04:11 -0000 On Wednesday 23 November 2005 07:14 pm, Antony Mawer wrote: > Hi, > > I recently hit upon a bug in sysinstall, getting an "Invalid realloc > size of 0" error that caused sysinstall to terminate. I eventually > tracked it down to a bug in the properties_read() function of libutil, > which occurs only when reading a properties file of 4096 bytes or > greater. This is because libutil discards its current state when the > buffer runs out (4096 bytes) and it must refill the buffer, causing the > properties file (*.inf) to be incorrectly read. > > I've made a patch that's attached to the PR I filed, PR 89181, but was > hoping to get some extra eyes on the patch to make sure that there's > nothing amiss with the patch: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=89181 > > Hopefully someone can review this and see about getting it committed for > 6.1! I just committed it to HEAD. It should be MFC'd in time for both 5.5 and 6.1. Thanks! -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 17:04:12 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 8CD7C16A420 for ; Mon, 28 Nov 2005 17:04:12 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3937D43D7B for ; Mon, 28 Nov 2005 17:04:10 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2741928 for multiple; Mon, 28 Nov 2005 12:04:19 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jASH3rCL058457; Mon, 28 Nov 2005 12:04:06 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 28 Nov 2005 11:36:42 -0500 User-Agent: KMail/1.8.2 References: <2b9aedcc0511272049l6252d9ean20c96304424e5183@mail.gmail.com> In-Reply-To: <2b9aedcc0511272049l6252d9ean20c96304424e5183@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511281136.43334.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Anthony Mattke Subject: Re: pc card on watchguard firebox II X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 17:04:12 -0000 On Sunday 27 November 2005 11:49 pm, Anthony Mattke wrote: > I have a WatchGuard Firebox II that I've been working on turning into > a decent router. I see many people have installed monowall > (http://m0n0.ch/wall/) on these boxes with good success. I would be > done myself unless I was setting up a wireless bridge. > > These boxes are basicly custom pentium 200's with 3 ethernet ports, a > few serial ports, 2 pcmcia card slots, a 44pin ide header, a keyboard > header, and 2 backwards facing pci slots. > > The problem I am having is with getting a pc card to be detected, it > knows they're there, it just wont register them. > First off, I'm new to BSD. > Second, I know this is not straight up BSD, but if given direction I > can make anything happen that needs to for testing, I have a 5.3 box > setup for testing, altho I'm having trouble getting it to boot on the > firebox ( i need to recompile and disabe psm0 detection) > > Anyway, this is what I'm seeing. > > pci_cfgintr: can't route an interrupt to 0:16 INTA > pcic0: at device 16.0 on pci0 > pcic0: PCI Memory allocated: 0x88000000 > pci_cfgintr: can't route an interrupt to 0:16 INTA > pcic0: No PCI interrupt routed, trying ISA. > pcic0: Polling mode > pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr > save][CSC serial isa irq] > pccard0: on pcic0 Ask Warner about this. It looks like your BIOS is rather lame such that it doesn't set an IRQ for your card slot and doesn't tell the OS how to figure out which IRQ to use either. pcic0 might really want an interrupt to work correctly on this system. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 17:14:40 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 6C9F516A41F; Mon, 28 Nov 2005 17:14:40 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACEB543D77; Mon, 28 Nov 2005 17:14:23 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jASHB1df010329; Mon, 28 Nov 2005 10:11:01 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 28 Nov 2005 10:11:19 -0700 (MST) Message-Id: <20051128.101119.131838249.imp@bsdimp.com> To: jhb@freebsd.org From: "M. Warner Losh" In-Reply-To: <200511281115.28735.jhb@freebsd.org> References: <20051124111241.GB75190@mygiea.ham01.thiemo.net> <20051124.112632.65222526.imp@bsdimp.com> <200511281115.28735.jhb@freebsd.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 28 Nov 2005 10:11:02 -0700 (MST) Cc: freebsd-hackers@freebsd.org, listmember@thiemo.net Subject: Re: Writing a driver for a card reader controller - how? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 17:14:40 -0000 In message: <200511281115.28735.jhb@freebsd.org> John Baldwin writes: : On Thursday 24 November 2005 01:26 pm, M. Warner Losh wrote: : > In message: <20051124111241.GB75190@mygiea.ham01.thiemo.net> : > : > Thiemo Nordenholz writes: : > : Hi Warner, : > : : > : > to be set. Can you send me a pointer to the winbond datasheet you are : > : > using? IIRC, this chip has an odd API since it appears to be derived : > : : > : As I have to wait for some spare time before trying to use the hints I : > : have received here, for now I can only answer that question - I found a : > : datasheet at : > : http://www.winbond.com/e-winbondhtm/partner/PDFresult.asp?Pname=863 which : > : is what I try to work with. (That page sends a file "PDFresult.asp", : > : which is actually a PDF.) : > : > I've read through this pdf. As far as I can find, it just talks about : > how to setup the base address for each of the sets of registers : > without actually talking about the sets of registers themselves. Nor : > can I find in the document a pointer to the different register sets. : > Do you have one of those as well? It looks fairly easy to program : > this device's base addresses or inquire what they are. It is done in : > much the same way that super I/O chips are programmed. : : For an ACPI device you want to use _PRS and _SRS. _PRS will give you a list : of candidate resource sets, possibly in groups via DPF tags. You then build : a resource and do an _SRS to set it. The problem is that our ACPI bus isn't : smart enough to allocate resources for a device when bus_alloc_resource() is : called to choose available resources when a device is not configured. This : is similar to how you fixed the PCI bus recently to allocate resources for : BARs that weren't already allocated by the BIOS. Ah, I see. Sounds like time to jump into the ACPI code and do someting similar... Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 17:21:56 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 1968816A41F for ; Mon, 28 Nov 2005 17:21:56 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E88443D75 for ; Mon, 28 Nov 2005 17:21:46 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jASHLdLX039840; Mon, 28 Nov 2005 19:21:39 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 23117-02-5; Mon, 28 Nov 2005 19:21:39 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jASHJsOf039714 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Nov 2005 19:19:55 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jASHJjjO063020; Mon, 28 Nov 2005 19:19:45 +0200 (EET) (envelope-from ru) Date: Mon, 28 Nov 2005 19:19:45 +0200 From: Ruslan Ermilov To: Iasen Kostov Message-ID: <20051128171945.GD62631@ip.net.ua> References: <1133186851.70996.11.camel@DraGoN.OTEL.net> <077601c5f426$9aeac960$c3e7a8c0@david> <1133188691.70996.18.camel@DraGoN.OTEL.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T7mxYSe680VjQnyC" Content-Disposition: inline In-Reply-To: <1133188691.70996.18.camel@DraGoN.OTEL.net> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: FreeBSD Hackers , "David S. Madole" Subject: Re: Loading gzipped mfsroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 17:21:56 -0000 --T7mxYSe680VjQnyC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 28, 2005 at 04:38:11PM +0200, Iasen Kostov wrote: > On Mon, 2005-11-28 at 09:18 -0500, David S. Madole wrote: > > From: "Iasen Kostov" > >=20 > > > I've seen a lot of examples where peeple load gzipped mfsroot images > > > and everything looks fine for them, but not for me. It loads > > > uncompressed image and boots ok, it loads compressed image and does n= ot > > > uncompress it and then tries to mount ufs directly on it which fails > > > ofcourse. As I saw bay default loader(and pxeboot porbably - its a > > > diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT > > > defined so I think I should have gzip support in loader. > > > > > > Here is the loader.conf: > > > > > > rootfs_load=3D"YES" > > > rootfs_name=3D"dlroot.gz" > > > rootfs_type=3D"mfs_root" > >=20 > > I've not users this in quite a while, so I may be wrong here, but I thi= nk=20 > > what you need is: > >=20 > > rootfs_name=3D"dlroot" > >=20 > > If gzip support is compiled in, it will automatically try to fetch=20 > > dlroot.gz first and if it succeeds, it will uncompress and use it. The= =20 > > way you have configured it, it tries dlroot.gz.gz, which fails, so then= =20 > > it tried to load dlroot.gz as an uncompressed file. > >=20 > > David > >=20 >=20 > Thanks a lot ! That do the trick :) > It will realy be good if this is documented somewhere - probably in > loader(8) manual page ... And will save people some hours of "blessing" > loader(8) :) >=20 loader(8) has no business documenting this; it's already documented (though not too verbose) in the libstand(3) manpage. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --T7mxYSe680VjQnyC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDizwxqRfpzJluFF4RAjzeAJ4lNQE/OZ8URi1qFU4iQ1EVWtVfkQCcCmMQ hmuqf9uW/Rrk4S7cQy/mQt8= =/sQn -----END PGP SIGNATURE----- --T7mxYSe680VjQnyC-- From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 19:57:02 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 D1E1316A422 for ; Mon, 28 Nov 2005 19:57:02 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17B1543D4C for ; Mon, 28 Nov 2005 19:56:59 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jASJuu2n015445; Mon, 28 Nov 2005 11:56:56 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jASJuuXq015444; Mon, 28 Nov 2005 11:56:56 -0800 (PST) (envelope-from jmg) Date: Mon, 28 Nov 2005 11:56:56 -0800 From: John-Mark Gurney To: kylin Message-ID: <20051128195656.GK885@funkthat.com> Mail-Followup-To: kylin , "freebsd-hackers@freebsd.org" References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> <20051127.164001.61158282.imp@bsdimp.com> <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> <868xv8by8x.fsf@xps.des.no> <87ab37ab0511280804q30c84a51te515facc30e81ff4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ab37ab0511280804q30c84a51te515facc30e81ff4@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: "freebsd-hackers@freebsd.org" Subject: Re: to list all the devices in freebsd &definition analyse X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 19:57:03 -0000 kylin wrote this message on Tue, Nov 29, 2005 at 00:04 +0800: > > > > devclass is the information about all instances of the device. > > > > device_t is an instance of the device. The only difference between a > > > > bus and a device is that a bus has children. > > > but pcib and cbb still have pci or cardbus as there children ,and pcib > > > and cbb is bridge rather than bus :( > > > i am puzzle with the definition:( > > > > as far as the kernel is concerned, any devices that other devices > > attach to is a bus. > no .device_get_parent of a pci bus we get pcib > > > we who r about to die,salute u! so?? In FreeBSD land, a device_t is a bus if it has one or more children.. To put it more simply, all busses are devices... As for your example of device_get_parent.. you don't realize that the pci bus is also a device... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 06:02:01 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 9CCE916A41F for ; Tue, 29 Nov 2005 06:02:01 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3669443D46 for ; Tue, 29 Nov 2005 06:02:01 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jAT5xJ1D017937; Mon, 28 Nov 2005 22:59:19 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 28 Nov 2005 22:59:48 -0700 (MST) Message-Id: <20051128.225948.82990411.imp@bsdimp.com> To: fierykylin@gmail.com From: "M. Warner Losh" In-Reply-To: <87ab37ab0511280850y1bca554n1da9b11c321be34b@mail.gmail.com> References: <87ab37ab0511280850y1bca554n1da9b11c321be34b@mail.gmail.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 28 Nov 2005 22:59:19 -0700 (MST) Cc: freebsd-hackers@freebsd.org Subject: Re: puzzle about the pci_add_child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 06:02:01 -0000 In message: <87ab37ab0511280850y1bca554n1da9b11c321be34b@mail.gmail.com> kylin writes: : i am reading the pci code of freeBSD 53 ,and come to the puzzle of : pci_add_child. : 1 : why should we =09pci_cfg_save(dinfo->cfg.dev, dinfo, 0); after we have : already fill the cfg in pci_read_device ? It hasn't been completely filled in by pci_read_device. : 2 : what 's the purpose of the function couple : pci_cfg_save(dinfo->cfg.dev, dinfo, 0); : pci_cfg_restore(dinfo->cfg.dev, dinfo) : below is the function ,thank u Power state gets set to D0 as a side effect so that the device is live for the probe. Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 06:08:17 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG 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 3507E16A41F; Tue, 29 Nov 2005 06:08:17 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id A487143D55; Tue, 29 Nov 2005 06:08:16 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jAT65sqX018007; Mon, 28 Nov 2005 23:05:54 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 28 Nov 2005 23:06:23 -0700 (MST) Message-Id: <20051128.230623.10169191.imp@bsdimp.com> To: jhb@FreeBSD.ORG From: "M. Warner Losh" In-Reply-To: <200511281136.43334.jhb@freebsd.org> References: <2b9aedcc0511272049l6252d9ean20c96304424e5183@mail.gmail.com> <200511281136.43334.jhb@freebsd.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 28 Nov 2005 23:05:54 -0700 (MST) Cc: freebsd-hackers@FreeBSD.ORG, a.mattke@gmail.com Subject: Re: pc card on watchguard firebox II X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 06:08:17 -0000 In message: <200511281136.43334.jhb@freebsd.org> John Baldwin writes: : On Sunday 27 November 2005 11:49 pm, Anthony Mattke wrote: : > I have a WatchGuard Firebox II that I've been working on turning into : > a decent router. I see many people have installed monowall : > (http://m0n0.ch/wall/) on these boxes with good success. I would be : > done myself unless I was setting up a wireless bridge. : > : > These boxes are basicly custom pentium 200's with 3 ethernet ports, a : > few serial ports, 2 pcmcia card slots, a 44pin ide header, a keyboard : > header, and 2 backwards facing pci slots. : > : > The problem I am having is with getting a pc card to be detected, it : > knows they're there, it just wont register them. : > First off, I'm new to BSD. : > Second, I know this is not straight up BSD, but if given direction I : > can make anything happen that needs to for testing, I have a 5.3 box : > setup for testing, altho I'm having trouble getting it to boot on the : > firebox ( i need to recompile and disabe psm0 detection) : > : > Anyway, this is what I'm seeing. : > : > pci_cfgintr: can't route an interrupt to 0:16 INTA : > pcic0: at device 16.0 on pci0 : > pcic0: PCI Memory allocated: 0x88000000 : > pci_cfgintr: can't route an interrupt to 0:16 INTA : > pcic0: No PCI interrupt routed, trying ISA. : > pcic0: Polling mode : > pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr : > save][CSC serial isa irq] : > pccard0: on pcic0 : : Ask Warner about this. It looks like your BIOS is rather lame such that it : doesn't set an IRQ for your card slot and doesn't tell the OS how to figure : out which IRQ to use either. pcic0 might really want an interrupt to work : correctly on this system. The first thing I notie is that pcic0 is OLDCARD. You should be using NEWCARD since I've forgotten all about OLDCARD. If you are using 4.x, then try 6.0. The interrupt routing code is much better there. 200MHz pentium is right about the time when PCI BIOS was newish, so maybe the BIOS in this machine isn't setting up the PIR correctly. Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 11:02:47 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 2626E16A420; Tue, 29 Nov 2005 11:02:47 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from mail.otel.net (ll.otel.net [212.36.8.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D3B943D58; Tue, 29 Nov 2005 11:02:44 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from dragon.otel.net ([212.36.8.135]) by mail.otel.net with esmtp (Exim 4.30; FreeBSD) id 1Eh3Fy-0008Ga-Cg; Tue, 29 Nov 2005 13:02:42 +0200 From: Iasen Kostov To: Ruslan Ermilov In-Reply-To: <20051128171945.GD62631@ip.net.ua> References: <1133186851.70996.11.camel@DraGoN.OTEL.net> <077601c5f426$9aeac960$c3e7a8c0@david> <1133188691.70996.18.camel@DraGoN.OTEL.net> <20051128171945.GD62631@ip.net.ua> Content-Type: text/plain Date: Tue, 29 Nov 2005 13:02:41 +0200 Message-Id: <1133262161.70996.24.camel@DraGoN.OTEL.net> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers Subject: Re: Loading gzipped mfsroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 11:02:47 -0000 On Mon, 2005-11-28 at 19:19 +0200, Ruslan Ermilov wrote: > On Mon, Nov 28, 2005 at 04:38:11PM +0200, Iasen Kostov wrote: > > On Mon, 2005-11-28 at 09:18 -0500, David S. Madole wrote: > > > From: "Iasen Kostov" > > > > > > > I've seen a lot of examples where peeple load gzipped mfsroot images > > > > and everything looks fine for them, but not for me. It loads > > > > uncompressed image and boots ok, it loads compressed image and does not > > > > uncompress it and then tries to mount ufs directly on it which fails > > > > ofcourse. As I saw bay default loader(and pxeboot porbably - its a > > > > diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT > > > > defined so I think I should have gzip support in loader. > > > > > > > > Here is the loader.conf: > > > > > > > > rootfs_load="YES" > > > > rootfs_name="dlroot.gz" > > > > rootfs_type="mfs_root" > > > > > > I've not users this in quite a while, so I may be wrong here, but I think > > > what you need is: > > > > > > rootfs_name="dlroot" > > > > > > If gzip support is compiled in, it will automatically try to fetch > > > dlroot.gz first and if it succeeds, it will uncompress and use it. The > > > way you have configured it, it tries dlroot.gz.gz, which fails, so then > > > it tried to load dlroot.gz as an uncompressed file. > > > > > > David > > > > > > > Thanks a lot ! That do the trick :) > > It will realy be good if this is documented somewhere - probably in > > loader(8) manual page ... And will save people some hours of "blessing" > > loader(8) :) > > > loader(8) has no business documenting this; it's already documented > (though not too verbose) in the libstand(3) manpage. > > Yaik I don't think thats obvious to the "normal" user :) It should be somewhere in handbook atleast around diskless operations chapter. Probably this will make it searchable via google and etc... From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 17:18:10 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 974A916A41F for ; Tue, 29 Nov 2005 17:18:10 +0000 (GMT) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D67A43D5A for ; Tue, 29 Nov 2005 17:18:03 +0000 (GMT) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Eh8wd-00041M-N6 for freebsd-hackers@freebsd.org; Tue, 29 Nov 2005 18:07:07 +0100 Received: from gw205.f5.com ([205.229.151.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Nov 2005 18:07:07 +0100 Received: from atkin901 by gw205.f5.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Nov 2005 18:07:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: othermark Date: Tue, 29 Nov 2005 08:54:35 -0800 Lines: 28 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gw205.f5.com User-Agent: KNode/0.9.3 Sender: news Subject: i915 DRM module question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 17:18:10 -0000 I have a newer Dell gx280 at work that I have -current running on and I was curious about trying out the i915 DRM module. However the kernel doesn't pickup my device, although it looks like the DRM module will: drm_pciids.h: 244 {0x8086, 0x2582, 0, "Intel i915G"}, \ I think this an embedded pci-e device, so I'm not sure adding the id to the agp_intel.c would do any good. Does the kernel have to pick up the controller (like through agp_intel.c) in order for the DRM module to work? none0@pci0:2:0: class=0x030000 card=0x01791028 chip=0x25828086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '82915G/GV/GL, 82910GL Integrated Graphics Device' class = display subclass = VGA none1@pci0:2:1: class=0x038000 card=0x01791028 chip=0x27828086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '82915G/GV/GL, 82910GL Graphics Controller (??)' class = display -- othermark atkin901 at nospam dot yahoo dot com (!wired)?(coffee++):(wired); From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 19:54:48 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 7C99D16A41F for ; Tue, 29 Nov 2005 19:54:48 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01E7843D5E for ; Tue, 29 Nov 2005 19:54:45 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2822662 for multiple; Tue, 29 Nov 2005 14:54:57 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jATJse3e074079; Tue, 29 Nov 2005 14:54:40 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 29 Nov 2005 13:33:45 -0500 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511291333.46251.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: othermark Subject: Re: i915 DRM module question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 19:54:48 -0000 On Tuesday 29 November 2005 11:54 am, othermark wrote: > I have a newer Dell gx280 at work that I have -current running on and I was > curious about trying out the i915 DRM module. However the kernel doesn't > pickup my device, although it looks like the DRM module will: > > drm_pciids.h: > 244 {0x8086, 0x2582, 0, "Intel i915G"}, \ > > I think this an embedded pci-e device, so I'm not sure adding the id to the > agp_intel.c would do any good. Does the kernel have to pick up the > controller (like through agp_intel.c) in order for the DRM module to work? > > none0@pci0:2:0: class=0x030000 card=0x01791028 chip=0x25828086 rev=0x04 > hdr=0x00 > vendor = 'Intel Corporation' > device = '82915G/GV/GL, 82910GL Integrated Graphics Device' > class = display > subclass = VGA > none1@pci0:2:1: class=0x038000 card=0x01791028 chip=0x27828086 rev=0x04 > hdr=0x00 > vendor = 'Intel Corporation' > device = '82915G/GV/GL, 82910GL Graphics Controller (??)' > class = display Yes, but you need it added to the agp_i810.c driver which is for the integrated graphics as opposed to agp_intel.c driver which is for when you are using an external AGP graphics adapter. -- 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 Nov 29 19:55:00 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 E151C16A422 for ; Tue, 29 Nov 2005 19:54:59 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01D3C43D6A for ; Tue, 29 Nov 2005 19:54:51 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2822667 for multiple; Tue, 29 Nov 2005 14:55:02 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jATJse3g074079; Tue, 29 Nov 2005 14:54:45 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: kylin Date: Tue, 29 Nov 2005 14:49:44 -0500 User-Agent: KMail/1.8.2 References: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> <200511061007.03634.jhb@FreeBSD.org> <87ab37ab0511100248n474f3ee1wd952ae3f12cbecc3@mail.gmail.com> In-Reply-To: <87ab37ab0511100248n474f3ee1wd952ae3f12cbecc3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511291449.46391.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-hackers@freebsd.org Subject: Re: misc questions about the device&driver arch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 19:55:00 -0000 On Thursday 10 November 2005 05:48 am, kylin wrote: > Sir ,i am still puzzled by the windows and freebsd arch similar. > 1 > the window TPS say that windwo allocate the resource window in default > size of 1M or 2M,so there may be hole ,does that happen in freebsd 5 > or 6? No. > 2 > in my view i believe that freebsd us the "just enough "tactics,so > the nexus level of resource view is ===continuous====with NO hole in > a boot up system, IF hot remove do not happen .am i right? Sorta. We actually will use whatever the BIOS uses by default. We only try to alloc resources if the BIOS doesn't, and I'm not sure how we handle a bridge running out of resources. I think we might just fail the allocation. > 3 > IF i do a PCI hotplug under a bridge, and the bridge 's MEM Window is > full ,i have to do reballacne (including use the device_pause > method:)), and if i can not declaim the resource from other bridge > because "nexus level of resource view is ===continuous====with NO hole > ", can i extend the physical address space beyond the boot time > locate range to PCI host bridge ? Well, if you had device_pause() you would be able to shuffle resources from one bridge to another perhaps. Preallocating bigger chunks as your first question suggested might be a lot simpler though not completely fool proof. > On 11/6/05, John Baldwin wrote: > > On Sunday 06 November 2005 06:14 am, kylin wrote: > > > On 11/6/05, M. Warner Losh wrote: > > > > In message: > > > > <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> > > > > > > > > kylin writes: > > > > : /////////////// > > > > : pci bridge dynamic resize > > > > : ///////////// > > > > : it seems that the device arch of freebsd is similar to what is > > > > : revealed in window OS. i have read the pcie hotplug tps of windows > > > > : longhorn ,it is said that with some hardware mechanisms the pci > > > > : bridge driver can do global pci resource window reconfiguration.so > > > > : good to the hotplugin pci device for it avoid prelocating resource > > > > : for the device . > > > > : i wonder ,if the mem /io/irq reconfiguration possible under freebsd > > > > : .:) 1 > > > > > > > > Yes. Cardbus does it all the time. However, there's no pcie > > > > hot-plug support yet, so the process for kicking off configuration of > > > > the new device doesn't happen. > > > > > > > > Warner > > > > > > sorry for my poor grammar ,i think i confused the public:) i will make > > > myself clear with the words below about the PCI Multi-level Rebalance > > > > > > PCI Multi-level Rebalance in Windows Longhorn > > > Updated: November 25, 2003 > > > > No, FreeBSD doesn't currently do what this decribes yet. It would be > > possible to do it by adding a new device_pause() method that drivers > > would be required to implement while the resources were shuffled around > > though and possibly a device_unpause() method so that they could update > > their state if their resources were changed while the device was paused. > > > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > > "Power Users Use the Power to Serve" = http://www.FreeBSD.org > > -- > we who r about to die,salute u! -- 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 Nov 29 20:24:12 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 8B3DE16A41F; Tue, 29 Nov 2005 20:24:12 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 923AC43D8F; Tue, 29 Nov 2005 20:24:02 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jATKMAEN029650; Tue, 29 Nov 2005 13:22:10 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 29 Nov 2005 13:22:10 -0700 (MST) Message-Id: <20051129.132210.71114005.imp@bsdimp.com> To: jhb@freebsd.org From: Warner Losh In-Reply-To: <200511291449.46391.jhb@freebsd.org> References: <200511061007.03634.jhb@FreeBSD.org> <87ab37ab0511100248n474f3ee1wd952ae3f12cbecc3@mail.gmail.com> <200511291449.46391.jhb@freebsd.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 29 Nov 2005 13:22:10 -0700 (MST) Cc: freebsd-hackers@freebsd.org, fierykylin@gmail.com Subject: Re: misc questions about the device&driver arch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 20:24:12 -0000 > We only try > to alloc resources if the BIOS doesn't, and I'm not sure how we handle a > bridge running out of resources. I think we might just fail the allocation. Yes. The allocation would fail. Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 21:11:27 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 E965C16A428 for ; Tue, 29 Nov 2005 21:11:27 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E9B443DA6 for ; Tue, 29 Nov 2005 21:10:40 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so68906wxc for ; Tue, 29 Nov 2005 13:09:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=euB16SnHgyk8bh4wwnKH7C4HHTyZqDixZTNR2zeviN0KxH9G3Uhac5uPHaTp3RljECSlv+cfxyO7cRQd3Bn/5IfAyFpTAitdzE1pd3umrB1ZMesQI+9Z/dUq0ASxhxSae0s0KKpfqrX7AwGPQ/lHuaL+pBcJrN2mJdIGZIGGYwY= Received: by 10.70.82.3 with SMTP id f3mr209746wxb; Tue, 29 Nov 2005 13:09:15 -0800 (PST) Received: by 10.70.7.2 with HTTP; Tue, 29 Nov 2005 13:09:15 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2005 02:39:15 +0530 From: Jayesh Jayan To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 21:11:28 -0000 Hi, Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't work. Below is a sample script which I used. ****************************************************** #!/bin/bash array=3D( zero one two three four); echo "Elements in array0: ${array[@]}" ****************************************************** It works fine on RedHat server. Below is the output. # sh array.sh Elements in array0: zero one two three four Below is the out put from the FreeBSD server using the same code. -bash-2.05b# sh aa.sh aa.sh: 3: Syntax error: word unexpected (expecting ")") Please guide me on how to use arrays on freebsd too. -- Jayesh Jayan "The box said "Requires Windows 95, NT, or better", so I installed Linux." Visit my homepage @ http://www.jayeshjayan.com From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 21:27:35 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 F050916A41F; Tue, 29 Nov 2005 21:27:35 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B75843D62; Tue, 29 Nov 2005 21:27:33 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jATLRWld051162; Tue, 29 Nov 2005 13:27:32 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jATLRWjw051161; Tue, 29 Nov 2005 13:27:32 -0800 (PST) (envelope-from jmg) Date: Tue, 29 Nov 2005 13:27:32 -0800 From: John-Mark Gurney To: Jayesh Jayan Message-ID: <20051129212732.GL885@funkthat.com> Mail-Followup-To: Jayesh Jayan , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 21:27:36 -0000 Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 02:39 +0530: > Below is the output. > > # sh array.sh Install the bash port (as root: pkg_add -r bas), and then try again using bash... FreeBSD doesn't have bash installed by default (and hence, /bin/sh is not bash like it is usually on Linux), and our sh doesn't have that feature... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 21:29:26 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 7E03D16A41F; Tue, 29 Nov 2005 21:29:26 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0BA743D8F; Tue, 29 Nov 2005 21:29:05 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2827609 for multiple; Tue, 29 Nov 2005 16:28:49 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jATLSuFU074701; Tue, 29 Nov 2005 16:28:57 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 29 Nov 2005 16:17:15 -0500 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511291617.16666.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Jayesh Jayan , freebsd-questions@freebsd.org Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 21:29:26 -0000 On Tuesday 29 November 2005 04:09 pm, Jayesh Jayan wrote: > Hi, > > Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't > work. > > Below is a sample script which I used. > > ****************************************************** > > #!/bin/bash > > array=( zero one two three four); > echo "Elements in array0: ${array[@]}" > > ****************************************************** > > It works fine on RedHat server. > > Below is the output. > > # sh array.sh > Elements in array0: zero one two three four > > Below is the out put from the FreeBSD server using the same code. > > -bash-2.05b# sh aa.sh > aa.sh: 3: Syntax error: word unexpected (expecting ")") > > Please guide me on how to use arrays on freebsd too. sh != bash You can either install bash from ports, or you can write your scripts in sh without using bash extensions. For example, with sh you can do things like: array="zero one to three four" for x in $array; do echo $x done However, you can't easily get the count of items. You could maybe do something like: set $array echo "$# items" but that's somewhat hackish. -- 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 Nov 29 21:34:57 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 9CDE916A41F for ; Tue, 29 Nov 2005 21:34:57 +0000 (GMT) (envelope-from fcash-ml@sd73.bc.ca) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B08543D8C for ; Tue, 29 Nov 2005 21:34:27 +0000 (GMT) (envelope-from fcash-ml@sd73.bc.ca) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id AAA0D8A0106 for ; Tue, 29 Nov 2005 13:35:26 -0800 (PST) Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (mailtest.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 42667-01-85 for ; Tue, 29 Nov 2005 13:35:25 -0800 (PST) Received: from [192.168.0.157] (unknown [192.168.0.157]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 45A038A0102 for ; Tue, 29 Nov 2005 13:35:25 -0800 (PST) From: Freddie Cash Organization: School District 73 To: freebsd-hackers@freebsd.org Date: Tue, 29 Nov 2005 13:34:12 -0800 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511291334.13467.fcash-ml@sd73.bc.ca> X-Virus-Scanned: by amavisd-new using ClamAV at sd73.bc.ca X-Mailman-Approved-At: Tue, 29 Nov 2005 21:44:29 +0000 Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 21:34:57 -0000 On November 29, 2005 01:09 pm, Jayesh Jayan wrote: > Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't > work. > Below is a sample script which I used. > ****************************************************** > #!/bin/bash > array=( zero one two three four); > echo "Elements in array0: ${array[@]}" > ****************************************************** > It works fine on RedHat server. > Below is the output. > # sh array.sh > Elements in array0: zero one two three four /bin/sh on Linux is actually /bin/bash. > Below is the out put from the FreeBSD server using the same code. > -bash-2.05b# sh aa.sh > aa.sh: 3: Syntax error: word unexpected (expecting ")") /bin/sh on FreeBSD is /bin/sh, the original Bourne shell. It doesn't use that syntax > Please guide me on how to use arrays on freebsd too. Install the bash1, bash2, or bash port and use /usr/local/bin/bash to execute the script. Works correctly on my 5.4 and 6.0 systems using the bash-emulation in zsh. -- Freddie Cash, LPIC-1 CCNT CCLP Helpdesk / Network Support Tech. School District 73 (250) 377-HELP [377-4357] fcash-ml@sd73.bc.ca From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 21:49:46 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 4EF5E16A41F for ; Tue, 29 Nov 2005 21:49:46 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51B3343D4C for ; Tue, 29 Nov 2005 21:49:45 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so79744wxc for ; Tue, 29 Nov 2005 13:49:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=syr2AXunMTD+t//8TKBZSdmSwHKaTU/01qCpn2ECcqvyUysS5A51t5P5Q9KbaEWIF3PdZLQkRxVRJC5wQ8ZgvPpxWckJ/Sm2ai+XHVDftLVB5sNroIFg9yr8KtzGz1/8d5XeA52hPAVmV6ftz17gdpWEjj23NrWtAh+flc7FPgU= Received: by 10.70.7.18 with SMTP id 18mr1525623wxg; Tue, 29 Nov 2005 13:49:43 -0800 (PST) Received: by 10.70.7.2 with HTTP; Tue, 29 Nov 2005 13:49:43 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2005 03:19:43 +0530 From: Jayesh Jayan To: John-Mark Gurney , Jayesh Jayan , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <20051129212732.GL885@funkthat.com> MIME-Version: 1.0 References: <20051129212732.GL885@funkthat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 21:49:46 -0000 Hi John, I already have bash installed from ports. It is bash 2.05b. On 11/30/05, John-Mark Gurney wrote: > > Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 02:39 +0530: > > Below is the output. > > > > # sh array.sh > > Install the bash port (as root: pkg_add -r bas), and then try again > using bash... > > FreeBSD doesn't have bash installed by default (and hence, /bin/sh is > not bash like it is usually on Linux), and our sh doesn't have that > feature... > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > -- Jayesh Jayan "The box said "Requires Windows 95, NT, or better", so I installed Linux." Visit my homepage @ http://www.jayeshjayan.com From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 21:50:50 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 A6E3816A420 for ; Tue, 29 Nov 2005 21:50:50 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DEEA43D5C for ; Tue, 29 Nov 2005 21:50:45 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so80019wxc for ; Tue, 29 Nov 2005 13:50:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Z5S9ZedX3b1u/WPFQQzoyK/puqhT28zdJLvKZQxi1daXgRC3u46OR/M5A6Tf7Kl08g3vXA9J/FAp/dF1X6TNfmr3PgG5vYzSemBueatJfD9J4kMeqBQ+jNyHsWGPKx1c9e2VtkFwNzw204eoWNLIiuQ+gptjOJkYVxKNZSn32lw= Received: by 10.70.12.9 with SMTP id 9mr2728824wxl; Tue, 29 Nov 2005 13:50:42 -0800 (PST) Received: by 10.70.7.2 with HTTP; Tue, 29 Nov 2005 13:50:42 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2005 03:20:42 +0530 From: Jayesh Jayan To: John Baldwin In-Reply-To: <200511291617.16666.jhb@freebsd.org> MIME-Version: 1.0 References: <200511291617.16666.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 21:50:50 -0000 Hi John, Thank you. It seems to work like a charm. On 11/30/05, John Baldwin wrote: > > On Tuesday 29 November 2005 04:09 pm, Jayesh Jayan wrote: > > Hi, > > > > Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't > > work. > > > > Below is a sample script which I used. > > > > ****************************************************** > > > > #!/bin/bash > > > > array=3D( zero one two three four); > > echo "Elements in array0: ${array[@]}" > > > > ****************************************************** > > > > It works fine on RedHat server. > > > > Below is the output. > > > > # sh array.sh > > Elements in array0: zero one two three four > > > > Below is the out put from the FreeBSD server using the same code. > > > > -bash-2.05b# sh aa.sh > > aa.sh: 3: Syntax error: word unexpected (expecting ")") > > > > Please guide me on how to use arrays on freebsd too. > > sh !=3D bash > > You can either install bash from ports, or you can write your scripts in > sh > without using bash extensions. For example, with sh you can do things > like: > > array=3D"zero one to three four" > for x in $array; do > echo $x > done > > However, you can't easily get the count of items. You could maybe do > something like: > > set $array > echo "$# items" > > but that's somewhat hackish. > > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org > -- Jayesh Jayan "The box said "Requires Windows 95, NT, or better", so I installed Linux." Visit my homepage @ http://www.jayeshjayan.com From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 21:54:39 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 633FC16A41F for ; Tue, 29 Nov 2005 21:54:39 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7635843D67 for ; Tue, 29 Nov 2005 21:54:38 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so81009wxc for ; Tue, 29 Nov 2005 13:54:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=LaHwjrisQ2RiWkCN8R+/kXJ3PGSsnEJv6d5t/FcJqv+9TWdxOsyRwy4Pb3VUi/xRNx0s75Y8pCgNDp5GfRx2Df0hod6aBpUWOIyYTxtlyrhi3ZEfcAOoBTYppl1ZSPon4TDnRypz5cqRNW6C+4o8Qg53r3nA6eSWGQyMC6qVZOU= Received: by 10.70.40.14 with SMTP id n14mr2674106wxn; Tue, 29 Nov 2005 13:54:37 -0800 (PST) Received: by 10.70.7.2 with HTTP; Tue, 29 Nov 2005 13:54:37 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2005 03:24:37 +0530 From: Jayesh Jayan To: Freddie Cash In-Reply-To: <200511291334.13467.fcash-ml@sd73.bc.ca> MIME-Version: 1.0 References: <200511291334.13467.fcash-ml@sd73.bc.ca> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 21:54:39 -0000 Hi Freddie, Thank you. I have only installed bash2. I hope that may be one reason. Anyhow I have got the solution for other people in the list. Thank you once again. On 11/30/05, Freddie Cash wrote: > > On November 29, 2005 01:09 pm, Jayesh Jayan wrote: > > Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't > > work. > > > Below is a sample script which I used. > > ****************************************************** > > #!/bin/bash > > > array=3D( zero one two three four); > > echo "Elements in array0: ${array[@]}" > > ****************************************************** > > > It works fine on RedHat server. > > Below is the output. > > > # sh array.sh > > Elements in array0: zero one two three four > > /bin/sh on Linux is actually /bin/bash. > > > Below is the out put from the FreeBSD server using the same code. > > -bash-2.05b# sh aa.sh > > aa.sh: 3: Syntax error: word unexpected (expecting ")") > > /bin/sh on FreeBSD is /bin/sh, the original Bourne shell. It doesn't use > that syntax > > > Please guide me on how to use arrays on freebsd too. > > Install the bash1, bash2, or bash port and use /usr/local/bin/bash to > execute the script. > > Works correctly on my 5.4 and 6.0 systems using the bash-emulation in zsh= . > > -- > Freddie Cash, LPIC-1 CCNT CCLP Helpdesk / Network Support Tech. > School District 73 (250) 377-HELP [377-4357] > fcash-ml@sd73.bc.ca > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > -- Jayesh Jayan "The box said "Requires Windows 95, NT, or better", so I installed Linux." Visit my homepage @ http://www.jayeshjayan.com From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 22:09:56 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 3A03716A420; Tue, 29 Nov 2005 22:09:56 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97A3A43D6E; Tue, 29 Nov 2005 22:09:55 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jATM9sb6052423; Tue, 29 Nov 2005 14:09:54 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jATM9sOI052422; Tue, 29 Nov 2005 14:09:54 -0800 (PST) (envelope-from jmg) Date: Tue, 29 Nov 2005 14:09:54 -0800 From: John-Mark Gurney To: Jayesh Jayan Message-ID: <20051129220954.GN885@funkthat.com> Mail-Followup-To: Jayesh Jayan , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org References: <20051129212732.GL885@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 22:09:56 -0000 Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 03:19 +0530: > I already have bash installed from ports. It is bash 2.05b. But below you were running sh, and not bash... if you do sh array.sh, it will not reinterpet the #!/bin/bash line, and re-exec it with the program in part because /bin/bash doesn't exist on the system, as bash is installed in /usr/local/bin/bash... Please try with: bash array.sh instead, and see if that works.. > On 11/30/05, John-Mark Gurney wrote: > > > > Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 02:39 +0530: > > > Below is the output. > > > > > > # sh array.sh > > > > Install the bash port (as root: pkg_add -r bas), and then try again > > using bash... > > > > FreeBSD doesn't have bash installed by default (and hence, /bin/sh is > > not bash like it is usually on Linux), and our sh doesn't have that > > feature... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 22:19:17 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 01C1016A423 for ; Tue, 29 Nov 2005 22:19:17 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3F4B43D81 for ; Tue, 29 Nov 2005 22:18:43 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so86986wxc for ; Tue, 29 Nov 2005 14:18:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qSWgKvcNHf7n0eNxZvAt0zmOCIHVW2BlZlazynehnAe3JE71l5H0fAKIWz8OpztWRuICbB9G2fpox70+w5Iit+I7QV4SOmI8TsuXOX1TGsZUViIJBCTtPDAPK+iD6G/TWT5lK4xahd6hv+40Cz8xijTjusQoon9pOVI6k0JWkJI= Received: by 10.70.52.19 with SMTP id z19mr2731889wxz; Tue, 29 Nov 2005 14:18:40 -0800 (PST) Received: by 10.70.7.2 with HTTP; Tue, 29 Nov 2005 14:18:40 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2005 03:48:40 +0530 From: Jayesh Jayan To: John-Mark Gurney , Jayesh Jayan , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <20051129220954.GN885@funkthat.com> MIME-Version: 1.0 References: <20051129212732.GL885@funkthat.com> <20051129220954.GN885@funkthat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 22:19:18 -0000 Hi John, yes it works when executed with bash aa.sh. Thank you :) On 11/30/05, John-Mark Gurney wrote: > > Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 03:19 +0530: > > I already have bash installed from ports. It is bash 2.05b. > > But below you were running sh, and not bash... if you do sh array.sh, > it will not reinterpet the #!/bin/bash line, and re-exec it with the > program in part because /bin/bash doesn't exist on the system, as bash > is installed in /usr/local/bin/bash... > > Please try with: > bash array.sh > instead, and see if that works.. > > > On 11/30/05, John-Mark Gurney wrote: > > > > > > Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 02:39 +0530: > > > > Below is the output. > > > > > > > > # sh array.sh > > > > > > Install the bash port (as root: pkg_add -r bas), and then try again > > > using bash... > > > > > > FreeBSD doesn't have bash installed by default (and hence, /bin/sh is > > > not bash like it is usually on Linux), and our sh doesn't have that > > > feature... > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > -- Jayesh Jayan "The box said "Requires Windows 95, NT, or better", so I installed Linux." Visit my homepage @ http://www.jayeshjayan.com From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 22:21:14 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 3302E16A433; Tue, 29 Nov 2005 22:21:14 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2CCD43DD8; Tue, 29 Nov 2005 22:19:53 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2830398 for multiple; Tue, 29 Nov 2005 17:19:19 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jATMJYrJ075142; Tue, 29 Nov 2005 17:19:34 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 29 Nov 2005 17:19:00 -0500 User-Agent: KMail/1.8.2 References: <20051129212732.GL885@funkthat.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511291719.01872.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: John-Mark Gurney , Jayesh Jayan , freebsd-questions@freebsd.org Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 22:21:14 -0000 On Tuesday 29 November 2005 04:49 pm, Jayesh Jayan wrote: > Hi John, > > I already have bash installed from ports. It is bash 2.05b. Then use 'bash foo.sh' :) -- 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 Nov 29 23:24:55 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 2F4B616A420; Tue, 29 Nov 2005 23:24:55 +0000 (GMT) (envelope-from marcogi.lists@email.it) Received: from vsmtp21alice.tin.it (vsmtp21.tin.it [212.216.176.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id 504A143D9C; Tue, 29 Nov 2005 23:24:41 +0000 (GMT) (envelope-from marcogi.lists@email.it) Received: from flyby (82.52.159.86) by vsmtp21alice.tin.it (7.2.060.1) id 437B155F0020D135; Wed, 30 Nov 2005 00:24:39 +0100 Received: from marco by flyby with local (Exim 3.36 #1 (Debian)) id 1EhEpz-00076C-00; Wed, 30 Nov 2005 00:24:39 +0100 Date: Wed, 30 Nov 2005 00:24:39 +0100 From: Marco Gigante To: Jayesh Jayan Message-ID: <20051129232439.GA26903@linuxhost> Mail-Followup-To: Jayesh Jayan , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 23:24:55 -0000 On Wed, Nov 30, 2005 at 02:39:15AM +0530, Jayesh Jayan wrote: > Hi, > > Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't > work. > > Below is a sample script which I used. > > ****************************************************** > > #!/bin/bash > > array=( zero one two three four); > echo "Elements in array0: ${array[@]}" > > ****************************************************** > > It works fine on RedHat server. > > Below is the output. > > # sh array.sh > Elements in array0: zero one two three four > > Below is the out put from the FreeBSD server using the same code. > > -bash-2.05b# sh aa.sh > aa.sh: 3: Syntax error: word unexpected (expecting ")") You should use: bash array.sh On FreeBSD sh != bash $ ls -l `which sh` -r-xr-xr-x 1 root wheel 763316 Sep 3 08:37 /bin/sh $ ls -l `which bash` -rwxr-xr-x 2 root wheel 471136 Jun 12 01:13 /usr/local/bin/bash Cheers -- Marco Gigante From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 02:07:41 2005 Return-Path: X-Original-To: hackers@freebsd.org 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 B8A0716A41F for ; Wed, 30 Nov 2005 02:07:41 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 589ED43D69 for ; Wed, 30 Nov 2005 02:07:38 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: by ion.gank.org (mail, from userid 1001) id C723A2BF5C; Tue, 29 Nov 2005 20:07:37 -0600 (CST) Date: Tue, 29 Nov 2005 20:07:35 -0600 From: Craig Boston To: hackers@freebsd.org Message-ID: <20051130020734.GA6577@nowhere> Mail-Followup-To: Craig Boston , hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 02:07:41 -0000 Hi, I'm working on getting this laptop up and running and need some advice from PCI gurus. I am running into a really odd problem with PCI interrupts. After a while they simply stop being delivered. ACPI makes the problem much worse, but it happens eventually without ACPI too. The system looks like this: pcib0 pci0 ohci0 pcib2 pci9 cbb0 rl0 ath0 However, the problem affects ohci0 as well so I don't think the PCI bridge is the culprit. Actually, the only PCI device in the system that doesn't seem to be affected is the ATA controller, and I think that's because it uses ISA interrupts 14-15. With both ACPI & APIC enabled, it only lasts a few seconds. Each pin on the I/O APIC manages about 10-50 interrupts before they simply stop coming. The number of interrupts seems to be the deciding factor rather than time -- I can wait a minute and ohci0 will work until I move a USB mouse around for a while. With ACPI disabled, the system panics because the mptable is broken. However, I was able to hack the kernel to override the mptable and route the interrupts to the correct pins (actually it rewrites parts of the mptable as it's being parsed). In this configuration, everything works fine for a while, but it eventually dies. ath0 is usually the first to go since it generates a steady stream of interrupts, but given enough time they eventually all stop. Sometimes it happens after 50,000 sometimes 500,000. I also tried ACPI enabled but APIC disabled. The FreeBSD ACPI code seems to assume APIC interrupt model for i386, so it took some modifications to get this working. Everything ends up on IRQ 11, though I'm not sure if it's getting reprogrammed to be level triggered or not. Symptoms are the same as with APIC on -- after 10-50 interrupts it just stops. The final thing I tried is both APIC & ACPI disabled -- route everything through the 8259. In this mode, cbb0 fails to attach (Unable to map IRQ). Everything else ends up on IRQ 11, however it does seem to work indefinitely. Oh, when APIC is being used, vmstat -i reports the lapic timer interrupt happily churning away without problem. I've checked everything I can think of -- no reports of interrupt storms, everything looks normal in verbose boot. I was just going to run in PIC mode until I discovered that cardbus didn't work. Any ideas on things to try to debug this? First thing that comes to mind is to see if the IRQ is being intentionally masked for some reason, but I can't think of an easy way to check that. Thanks, Craig P.S. Yes, it does sound like a wonky PCI bus, but stock XP runs with ACPI & APIC with no problems. From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 02:50:31 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 E032A16A420; Wed, 30 Nov 2005 02:50:31 +0000 (GMT) (envelope-from nielsen-list@memberwebs.com) Received: from mail.npubs.com (mail.zoneseven.net [209.66.100.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE38043D72; Wed, 30 Nov 2005 02:50:13 +0000 (GMT) (envelope-from nielsen-list@memberwebs.com) Message-ID: <438D0896.1070808@memberwebs.com> From: Nate Nielsen User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-net@freebsd.org, freebsd-current@freebsd.org References: <438CE0A8.4010205@memberwebs.com> In-Reply-To: <438CE0A8.4010205@memberwebs.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Date: Wed, 30 Nov 2005 03:04:44 +0000 (GMT) Cc: Subject: Re: Memory leak in net80211 on FBSD 6.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nielsen@memberwebs.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 02:50:32 -0000 Nate Nielsen wrote: > I'm experiencing a memory leak in the net80211 code. I have two atheros > 5213-A cards on two embedded systems running FreeBSD 6.0. They are setup > as IBSS (adhoc) stations. After roughly 15 seconds of ~14Mbps TCP > traffic (single stream) I promptly run out of memory: > >>login: panic: kmem_malloc(4096): kmem_map too small: 25165824 total allocated >>Uptime: 3m0s >>Cannot dump. No dump device defined. >>Automatic reboot in 5 seconds - press a key on the console to abort >>Rebooting... > > The boxes have 64MB of memory each. > vmstat -m reports the following just before the panic: > >> Type InUse MemUse HighUse Requests Size(s) >> >> 80211node 20554 20554K - 20559 512,1024 I've put debugging code in node_alloc() and node_free() (in net80211/ieee80211_node.c) and can confirm that thousands of ieee80211_node structures are being allocated, at a cost of 1K a piece. I'll continue to look into this (stumbling about), but if anyone has any advice or ideas of where to look, I'd be eternally grateful. Cheers, Nate From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 08:59:01 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 B737016A41F for ; Wed, 30 Nov 2005 08:59:01 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail28.syd.optusnet.com.au (mail28.syd.optusnet.com.au [211.29.133.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id A25C943D69 for ; Wed, 30 Nov 2005 08:58:59 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail28.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id jAU8wtan004803 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 30 Nov 2005 19:58:56 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id jAU8wsHh034311; Wed, 30 Nov 2005 19:58:55 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id jAU8wsce034310; Wed, 30 Nov 2005 19:58:54 +1100 (EST) (envelope-from pjeremy) Date: Wed, 30 Nov 2005 19:58:53 +1100 From: Peter Jeremy To: Freddie Cash Message-ID: <20051130085853.GC32006@cirb503493.alcatel.com.au> References: <200511291334.13467.fcash-ml@sd73.bc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511291334.13467.fcash-ml@sd73.bc.ca> User-Agent: Mutt/1.4.2.1i X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc Cc: freebsd-hackers@freebsd.org Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 08:59:01 -0000 On Tue, 2005-Nov-29 13:34:12 -0800, Freddie Cash wrote: >/bin/sh on FreeBSD is /bin/sh, the original Bourne shell. Not quite. The FreeBSD shell has a number extensions beyond the original Bourne shell - it's more like the Korn shell. The aim is to make the FreeBSD shell a full POSIX shell. -- Peter Jeremy From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 14:08:09 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 A819216A41F for ; Wed, 30 Nov 2005 14:08:09 +0000 (GMT) (envelope-from shanu@shankerbalan.net) Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 374B243D58 for ; Wed, 30 Nov 2005 14:08:09 +0000 (GMT) (envelope-from shanu@shankerbalan.net) Received: from buffy.bangalore.corp.yahoo.com (buffy.bangalore.corp.yahoo.com [172.24.90.212]) by mrout2.yahoo.com (8.13.4/8.13.4/y.out) with ESMTP id jAUE6BZS084937 for ; Wed, 30 Nov 2005 06:06:12 -0800 (PST) Received: from buffy.bangalore.corp.yahoo.com (localhost [127.0.0.1]) by buffy.bangalore.corp.yahoo.com (8.13.4/8.13.4) with ESMTP id jAUE6AhO088100 for ; Wed, 30 Nov 2005 19:36:10 +0530 (IST) (envelope-from shanu@shankerbalan.net) Received: (from shanker@localhost) by buffy.bangalore.corp.yahoo.com (8.13.4/8.13.4/Submit) id jAUE69u0088099 for freebsd-hackers@freebsd.org; Wed, 30 Nov 2005 19:36:09 +0530 (IST) (envelope-from shanu@shankerbalan.net) X-Authentication-Warning: buffy.bangalore.corp.yahoo.com: shanker set sender to shanu@shankerbalan.net using -f Date: Wed, 30 Nov 2005 19:36:09 +0530 From: Shanker Balan To: freebsd-hackers@freebsd.org Message-ID: <20051130140609.GC65464@yahoo-inc.com> Mail-Followup-To: Shanker Balan , freebsd-hackers@freebsd.org References: <200511291333.46251.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511291333.46251.jhb@freebsd.org> Organisation: http://www.yahoo.com/ User-Agent: Mutt/1.5.11 Subject: Re: i915 DRM module question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 14:08:09 -0000 Hello, John Baldwin wrote, > On Tuesday 29 November 2005 11:54 am, othermark wrote: > > I have a newer Dell gx280 at work that I have -current running on and I was > > curious about trying out the i915 DRM module. However the kernel doesn't > > pickup my device, although it looks like the DRM module will: > > > > drm_pciids.h: > > 244 {0x8086, 0x2582, 0, "Intel i915G"}, \ > > > > I think this an embedded pci-e device, so I'm not sure adding the id to the > > agp_intel.c would do any good. Does the kernel have to pick up the > > controller (like through agp_intel.c) in order for the DRM module to work? > > > > none0@pci0:2:0: class=0x030000 card=0x01791028 chip=0x25828086 rev=0x04 > > hdr=0x00 > > vendor = 'Intel Corporation' > > device = '82915G/GV/GL, 82910GL Integrated Graphics Device' > > class = display > > subclass = VGA > > none1@pci0:2:1: class=0x038000 card=0x01791028 chip=0x27828086 rev=0x04 > > hdr=0x00 > > vendor = 'Intel Corporation' > > device = '82915G/GV/GL, 82910GL Graphics Controller (??)' > > class = display > > Yes, but you need it added to the agp_i810.c driver which is for the > integrated graphics as opposed to agp_intel.c driver which is for when you > are using an external AGP graphics adapter. http://marc.theaimsgroup.com/?l=freebsd-current&m=112536216708625&w=2 I really hope i915 DRM makes it though. -- Shanker Balan From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 15:49:52 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 8F08216A41F; Wed, 30 Nov 2005 15:49:52 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8213043D7C; Wed, 30 Nov 2005 15:49:46 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2877016 for multiple; Wed, 30 Nov 2005 10:47:42 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jAUFnda9081472; Wed, 30 Nov 2005 10:49:39 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Wed, 30 Nov 2005 10:35:13 -0500 User-Agent: KMail/1.8.2 References: <20051130020734.GA6577@nowhere> In-Reply-To: <20051130020734.GA6577@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511301035.14284.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Craig Boston , hackers@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 15:49:52 -0000 On Tuesday 29 November 2005 09:07 pm, Craig Boston wrote: > Hi, > > I'm working on getting this laptop up and running and need some advice > from PCI gurus. I am running into a really odd problem with PCI > interrupts. After a while they simply stop being delivered. ACPI makes > the problem much worse, but it happens eventually without ACPI too. > > The system looks like this: > pcib0 > pci0 > ohci0 > pcib2 > pci9 > cbb0 > rl0 > ath0 > > However, the problem affects ohci0 as well so I don't think the PCI > bridge is the culprit. Actually, the only PCI device in the system that > doesn't seem to be affected is the ATA controller, and I think that's > because it uses ISA interrupts 14-15. > > With both ACPI & APIC enabled, it only lasts a few seconds. Each pin on > the I/O APIC manages about 10-50 interrupts before they simply stop > coming. The number of interrupts seems to be the deciding factor rather > than time -- I can wait a minute and ohci0 will work until I move a USB > mouse around for a while. You didn't have to futz with the routing in this case? > With ACPI disabled, the system panics because the mptable is broken. > However, I was able to hack the kernel to override the mptable and route > the interrupts to the correct pins (actually it rewrites parts of the > mptable as it's being parsed). In this configuration, everything works > fine for a while, but it eventually dies. ath0 is usually the first to > go since it generates a steady stream of interrupts, but given enough > time they eventually all stop. Sometimes it happens after 50,000 > sometimes 500,000. You know that you can override individual routings just using tunables without having to hack the table. Just use something like: hw.pci0.2.INTA.irq=17 to route pci bus 0, slot 2, pin A# to IRQ 17 (apic 0, intpin 17). Determining the correct intpins can be tricky though. > I also tried ACPI enabled but APIC disabled. The FreeBSD ACPI code > seems to assume APIC interrupt model for i386, so it took some > modifications to get this working. Everything ends up on IRQ 11, though > I'm not sure if it's getting reprogrammed to be level triggered or not. > Symptoms are the same as with APIC on -- after 10-50 interrupts it just > stops. The code does not assume APIC at all. What does an unmolested kernel actually do with ACPI enabled but APIC disabled? > The final thing I tried is both APIC & ACPI disabled -- route everything > through the 8259. In this mode, cbb0 fails to attach (Unable to map > IRQ). Everything else ends up on IRQ 11, however it does seem to work > indefinitely. Do you have a dmesg from this? Preferably a verbose one to see if your $PIR has routing info for cbb0. > Oh, when APIC is being used, vmstat -i reports the lapic timer interrupt > happily churning away without problem. Yes, it's a interrupt internal to the CPU. > I've checked everything I can think of -- no reports of interrupt > storms, everything looks normal in verbose boot. I was just going to > run in PIC mode until I discovered that cardbus didn't work. > > Any ideas on things to try to debug this? First thing that comes to > mind is to see if the IRQ is being intentionally masked for some reason, > but I can't think of an easy way to check that. We mask the IRQs in the PIC while their ithread runs. If your routing is all screwed up that might result in the problems you are seeing. Can you boot into Windows and jot down the IRQs it uses for each device and then (if you are up to it), provide verbose dmesg's of an unpatched kernel for the 4 cases of + ACPI + APIC, - ACPI + APIC, + ACPI - APIC, - ACPI - APIC? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 15:49:52 2005 Return-Path: X-Original-To: hackers@freebsd.org 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 8F08216A41F; Wed, 30 Nov 2005 15:49:52 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8213043D7C; Wed, 30 Nov 2005 15:49:46 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2877016 for multiple; Wed, 30 Nov 2005 10:47:42 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jAUFnda9081472; Wed, 30 Nov 2005 10:49:39 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Wed, 30 Nov 2005 10:35:13 -0500 User-Agent: KMail/1.8.2 References: <20051130020734.GA6577@nowhere> In-Reply-To: <20051130020734.GA6577@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511301035.14284.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Craig Boston , hackers@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 15:49:52 -0000 On Tuesday 29 November 2005 09:07 pm, Craig Boston wrote: > Hi, > > I'm working on getting this laptop up and running and need some advice > from PCI gurus. I am running into a really odd problem with PCI > interrupts. After a while they simply stop being delivered. ACPI makes > the problem much worse, but it happens eventually without ACPI too. > > The system looks like this: > pcib0 > pci0 > ohci0 > pcib2 > pci9 > cbb0 > rl0 > ath0 > > However, the problem affects ohci0 as well so I don't think the PCI > bridge is the culprit. Actually, the only PCI device in the system that > doesn't seem to be affected is the ATA controller, and I think that's > because it uses ISA interrupts 14-15. > > With both ACPI & APIC enabled, it only lasts a few seconds. Each pin on > the I/O APIC manages about 10-50 interrupts before they simply stop > coming. The number of interrupts seems to be the deciding factor rather > than time -- I can wait a minute and ohci0 will work until I move a USB > mouse around for a while. You didn't have to futz with the routing in this case? > With ACPI disabled, the system panics because the mptable is broken. > However, I was able to hack the kernel to override the mptable and route > the interrupts to the correct pins (actually it rewrites parts of the > mptable as it's being parsed). In this configuration, everything works > fine for a while, but it eventually dies. ath0 is usually the first to > go since it generates a steady stream of interrupts, but given enough > time they eventually all stop. Sometimes it happens after 50,000 > sometimes 500,000. You know that you can override individual routings just using tunables without having to hack the table. Just use something like: hw.pci0.2.INTA.irq=17 to route pci bus 0, slot 2, pin A# to IRQ 17 (apic 0, intpin 17). Determining the correct intpins can be tricky though. > I also tried ACPI enabled but APIC disabled. The FreeBSD ACPI code > seems to assume APIC interrupt model for i386, so it took some > modifications to get this working. Everything ends up on IRQ 11, though > I'm not sure if it's getting reprogrammed to be level triggered or not. > Symptoms are the same as with APIC on -- after 10-50 interrupts it just > stops. The code does not assume APIC at all. What does an unmolested kernel actually do with ACPI enabled but APIC disabled? > The final thing I tried is both APIC & ACPI disabled -- route everything > through the 8259. In this mode, cbb0 fails to attach (Unable to map > IRQ). Everything else ends up on IRQ 11, however it does seem to work > indefinitely. Do you have a dmesg from this? Preferably a verbose one to see if your $PIR has routing info for cbb0. > Oh, when APIC is being used, vmstat -i reports the lapic timer interrupt > happily churning away without problem. Yes, it's a interrupt internal to the CPU. > I've checked everything I can think of -- no reports of interrupt > storms, everything looks normal in verbose boot. I was just going to > run in PIC mode until I discovered that cardbus didn't work. > > Any ideas on things to try to debug this? First thing that comes to > mind is to see if the IRQ is being intentionally masked for some reason, > but I can't think of an easy way to check that. We mask the IRQs in the PIC while their ithread runs. If your routing is all screwed up that might result in the problems you are seeing. Can you boot into Windows and jot down the IRQs it uses for each device and then (if you are up to it), provide verbose dmesg's of an unpatched kernel for the 4 cases of + ACPI + APIC, - ACPI + APIC, + ACPI - APIC, - ACPI - APIC? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 17:23:06 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 2F9DF16A41F; Wed, 30 Nov 2005 17:23:06 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id E68AF43D45; Wed, 30 Nov 2005 17:23:03 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 7EC392D686; Wed, 30 Nov 2005 11:23:03 -0600 (CST) Date: Wed, 30 Nov 2005 11:23:03 -0600 From: Craig Boston To: John Baldwin Message-ID: <20051130172303.GA57453@nowhere> References: <20051130020734.GA6577@nowhere> <200511301035.14284.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511301035.14284.jhb@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 17:23:06 -0000 On Wed, Nov 30, 2005 at 10:35:13AM -0500, John Baldwin wrote: > > With both ACPI & APIC enabled, it only lasts a few seconds. > > You didn't have to futz with the routing in this case? No, I just took the default routing specified by ACPI. > > With ACPI disabled, the system panics because the mptable is broken. > > However, I was able to hack the kernel to override the mptable and > > route the interrupts to the correct pins. > > You know that you can override individual routings just using tunables > without having to hack the table. Just use something like: Oh yeah, thanks, I forgot about that. Though I think I would have to hack the table anyway just to get the system booted -- it panics due to the bogus entries long before it tries to route any INTs. > hw.pci0.2.INTA.irq=17 to route pci bus 0, slot 2, pin A# to IRQ 17 > (apic 0, intpin 17). Determining the correct intpins can be tricky > though. I studied the _PRT entries in the DSDT and compared with what Windows was using to figure out where they should go, I'm 99% sure it's correct. > The code does not assume APIC at all. What does an unmolested kernel > actually do with ACPI enabled but APIC disabled? Whoops, you're right. The first time I tried that I must have made a typo in the hint to disable the APIC because it "ignored" me and used it anyway. Then I read sys/i386/acpica/madt.c to mean that if an MADT table is present it flips on APIC mode unconditionally. A GENERIC kernel with ACPI but no APIC does the same thing, however. Everything ends up on IRQ 11 and it does just that much quicker. vmstat -i shows IRQ 11 frozen at 55 interrupts (the number varies per boot). > > The final thing I tried is both APIC & ACPI disabled > > Do you have a dmesg from this? Preferably a verbose one to see if > your $PIR has routing info for cbb0. Yes, I have verbose dmesgs up at http://www.gank.org/freebsd/l25/ (I've been running RELENG_6, but reverted to a 6.0 GENERIC to create these as to rule out any local patches) 8259.txt is the one with both APIC & ACPI disabled. I don't see a $PIR table anywhere though -- I don't think this board was intended to be run without ACPI... > We mask the IRQs in the PIC while their ithread runs. If your routing > is all screwed up that might result in the problems you are seeing. > Can you boot into Windows and jot down the IRQs it uses for each > device I'm pretty sure the routing is OK, but am game to try anything that might help. I don't have Windows on this machine anymore, so I called a friend with an identical laptop and had him go through device manager. Highlights include USB on IRQ 19, the integrated RealTek NIC on IRQ 21, and the MiniPCI wireless on IRQ 22. It matched exactly with with the IRQ lines that BSD uses with APIC, with or without ACPI. > and then (if you are up to it), provide verbose dmesg's of an > unpatched kernel for the 4 cases of + ACPI + APIC, - ACPI + APIC, + > ACPI - APIC, - ACPI - APIC? Sure, see the link above. The files are: 8259.txt - ACPI - APIC acpi+apic.txt + ACPI + APIC acpi.txt + ACPI - APIC I couldn't get one for - ACPI + APIC as it panics on bootup and this machine doesn't have a serial port. I did post a verbose boot with my patched kernel for that under apic+patches.txt. Also in there is mptable.txt, which shows the broken mptable. mptable-fixed.txt is the output of the mptable command when running with a patched kernel in APIC (no ACPI) mode. Craig From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 30 23:00:28 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 4F9AC16A422 for ; Wed, 30 Nov 2005 23:00:28 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A1A043D69 for ; Wed, 30 Nov 2005 23:00:26 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so140305wxc for ; Wed, 30 Nov 2005 15:00:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Ud9KeX/lbtL2IfpIWhNSikwRRNlTbkTVhda24jOAkWmO0K1w6cTadFXTHp0G5Y+6WVgMY/NwhgblSqc7R85A8bjKdrS9mdPtKFoU1+R8XM+vakP3DpxzHV8lGH9LE5bF8mnSo85UMjfMvHbCspSfPqCUrJqCioJTavWPPeBs3nc= Received: by 10.70.14.11 with SMTP id 11mr987458wxn; Wed, 30 Nov 2005 15:00:25 -0800 (PST) Received: by 10.70.7.2 with HTTP; Wed, 30 Nov 2005 15:00:25 -0800 (PST) Message-ID: Date: Thu, 1 Dec 2005 04:30:25 +0530 From: Jayesh Jayan To: Jayesh Jayan , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <20051129232439.GA26903@linuxhost> MIME-Version: 1.0 References: <20051129232439.GA26903@linuxhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 23:00:28 -0000 Hi Marco, Yes you are correct. It is as you have given :) Thank you. On 11/30/05, Marco Gigante wrote: > > On Wed, Nov 30, 2005 at 02:39:15AM +0530, Jayesh Jayan wrote: > > Hi, > > > > Today I was trying to script using arrays in FreeBSD 5.4 but it doesn't > > work. > > > > Below is a sample script which I used. > > > > ****************************************************** > > > > #!/bin/bash > > > > array=3D( zero one two three four); > > echo "Elements in array0: ${array[@]}" > > > > ****************************************************** > > > > It works fine on RedHat server. > > > > Below is the output. > > > > # sh array.sh > > Elements in array0: zero one two three four > > > > Below is the out put from the FreeBSD server using the same code. > > > > -bash-2.05b# sh aa.sh > > aa.sh: 3: Syntax error: word unexpected (expecting ")") > > You should use: bash array.sh > On FreeBSD sh !=3D bash > > $ ls -l `which sh` > -r-xr-xr-x 1 root wheel 763316 Sep 3 08:37 /bin/sh > $ ls -l `which bash` > -rwxr-xr-x 2 root wheel 471136 Jun 12 01:13 /usr/local/bin/bash > > Cheers > > -- > Marco Gigante > -- Jayesh Jayan "The box said "Requires Windows 95, NT, or better", so I installed Linux." Visit my homepage @ http://www.jayeshjayan.com From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 06:44:55 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 C8B5A16A41F for ; Thu, 1 Dec 2005 06:44:55 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: from smtp114.sbc.mail.mud.yahoo.com (smtp114.sbc.mail.mud.yahoo.com [68.142.198.213]) by mx1.FreeBSD.org (Postfix) with SMTP id 808F743D5D for ; Thu, 1 Dec 2005 06:44:41 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: (qmail 35734 invoked from network); 1 Dec 2005 06:44:32 -0000 Received: from unknown (HELO ?192.168.0.190?) (dr2867.business@pacbell.net@68.126.181.25 with plain) by smtp114.sbc.mail.mud.yahoo.com with SMTP; 1 Dec 2005 06:44:32 -0000 Message-ID: <438E9BDF.4060902@pacbell.net> Date: Wed, 30 Nov 2005 22:44:47 -0800 From: Daniel Rudy User-Agent: Mozilla/5.0 (X11R6; UNIX; FreeBSD/i386 5.4-RELEASE-p7; en-US; ja-JP; rv:1.7.12) Gecko/20050915 MultiZilla/1.6.2.0c Mnenhy/0.7.2.0 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Page fault in kernel mode from LKM X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 06:44:55 -0000 http://pastebin.com/444571 I'm not sure WHY it keeps panicing the system. This is code that is part of a klm that I'm writing. Any ideas? -- Daniel Rudy From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 07:18:02 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 448B316A41F for ; Thu, 1 Dec 2005 07:18:02 +0000 (GMT) (envelope-from SRS0=bYBb3nBG=Z6=metro.cx=fbsd@sonologic.nl) Received: from mx1.sonologic.nl (mx1.sonologic.nl [82.94.245.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ECBC43D5F for ; Thu, 1 Dec 2005 07:18:00 +0000 (GMT) (envelope-from SRS0=bYBb3nBG=Z6=metro.cx=fbsd@sonologic.nl) Received: from [192.168.0.24] ([212.41.157.237]) (authenticated bits=0) by mx1.sonologic.nl (8.13.3/8.13.3) with ESMTP id jB17Hprv027624 for ; Thu, 1 Dec 2005 07:17:57 GMT Message-ID: <438EA3C7.4070509@metro.cx> Date: Thu, 01 Dec 2005 08:18:31 +0100 From: Koen Martens Organization: Sonologic User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050317 Thunderbird/1.0.2 Mnenhy/0.7.2.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Helo-Milter-Authen: gmc@sonologic.nl, fbsd@metro.cx, mx1 Received-SPF: pass (mx1.sonologic.nl: 212.41.157.237 is authenticated by a trusted mechanism) Subject: RELENG-5 20050101 panic X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 07:18:02 -0000 Hi All, I am wondering if the trace below rings a bell to someone. I'm trying to find out what is wrong with 5.4 on a certain box i have (see panic in propagate priority thread earlier on). Since debugging did not seem to help much, i'm now trying the hard way: cvsupping kernels from RELENG-5 at points along the 5.3 --> 5.4 dates, effectivelly doing a binary search to pinpoint where the problem was introduced (5.3 runs fine on the problem boxes). But now i am getting the trace below, since it is different from what I had before, i am wondering if this is maybe some bug that got fixed long ago. The kernel i have running now is from 2005-01-01. For some more info on my original problem, i put some stuff online at http://www.sonologic.nl/fbsd/. Best, Koen (ps, upgrading to 6.x is not an option at this point, since i now it to be running fine on 5.3 but not on 5.4, i want to find out first whether this particular unstability was fixed in 6.x because once i'm on 6.x, downgrading to 5.3 is less feasible if things turn out to go even worse) Limiting closed port RST response from 247 to 200 packets/sec Limiting closed port RST response from 237 to 200 packets/sec mode = 0100600, inum = 652933, fs = /var panic: ffs_valloc: dup alloc cpuid = 1 KDB: stack backtrace: kdb_backtrace(100,c32567d0,c58e8e38,603,c3086000) at kdb_backtrace+0x29 panic(c069abcc,c069abab,8180,9f685,c30860d4) at panic+0x114 ffs_valloc(c3b80000,8180,c32d7680,e8fc0900,e8fc094c) at ffs_valloc+0x149 ufs_makeinode(8180,c3b80000,e8fc0bf8,e8fc0c0c) at ufs_makeinode+0x59 ufs_create(e8fc0a84,e8fc0b40,c0552c20,e8fc0a84,d6ea7648) at ufs_create+0x26 ufs_vnoperate(e8fc0a84) at ufs_vnoperate+0x13 vn_open_cred(e8fc0be4,e8fc0ce4,180,c32d7680,18a) at vn_open_cred+0x174 vn_open(e8fc0be4,e8fc0ce4,180,18a,c3f1b000) at vn_open+0x1e kern_open(c32567d0,97fca20,0,603,180) at kern_open+0xe3 open(c32567d0,e8fc0d14,3,c65,286) at open+0x18 syscall(2f,2f,bfbf002f,602,180) at syscall+0x283 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (5, FreeBSD ELF32, open), eip = 0x283876bb, esp = 0xbfbfd01c, ebp = 0xbfbfd048 --- KDB: enter: panic [thread 100185] Stopped at kdb_enter+0x2b: nop db> continue -- K.F.J. Martens, Sonologic, http://www.sonologic.nl/ Networking, hosting, embedded systems, unix, artificial intelligence. Public PGP key: http://www.metro.cx/pubkey-gmc.asc Wondering about the funny attachment your mail program can't read? Visit http://www.openpgp.org/ From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 11:45:55 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 7E8B216A41F for ; Thu, 1 Dec 2005 11:45:55 +0000 (GMT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.ntu-kpi.kiev.ua (comsys.ntu-kpi.kiev.ua [195.245.194.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id E52F343D49 for ; Thu, 1 Dec 2005 11:45:46 +0000 (GMT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from pm513-1.comsys.ntu-kpi.kiev.ua (pm513-1.comsys.ntu-kpi.kiev.ua [10.18.52.101]) (authenticated bits=0) by comsys.ntu-kpi.kiev.ua (8.12.10/8.12.10) with ESMTP id jB1Bu8VO053245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 1 Dec 2005 13:56:09 +0200 (EET) Received: by pm513-1.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1001) id 2AB965C023; Thu, 1 Dec 2005 13:45:47 +0200 (EET) Date: Thu, 1 Dec 2005 13:45:47 +0200 From: Andrey Simonenko To: Daniel Rudy Message-ID: <20051201114547.GA1843@pm513-1.comsys.ntu-kpi.kiev.ua> References: <438E9BDF.4060902@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <438E9BDF.4060902@pacbell.net> User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on comsys.ntu-kpi.kiev.ua X-Virus-Scanned: ClamAV 0.82/1198/Tue Nov 29 12:05:20 2005 on comsys.ntu-kpi.kiev.ua X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: Page fault in kernel mode from LKM X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 11:45:55 -0000 On Wed, Nov 30, 2005 at 10:44:47PM -0800, Daniel Rudy wrote: > > > http://pastebin.com/444571 > > I'm not sure WHY it keeps panicing the system. This is code that is > part of a klm that I'm writing. Any ideas? > It would be better to insert code of your KLD in your letter. I think your KLD module has some problems. You cannot access vm_map without holding lock on vm_map, use vm_map_lock() and vm_map_unlock() for this. If some program is multithreaded, then some thread can use sbrk() (which calls obreak()) and you will have race condition between your functions mod_xfrom_allocate() and mod_xform_free(). As I understand mod_syscall_open() is a wrapper for open() syscall and its address is setuped in p_sysent->sv_table. If my assumption is correct, then your wrapper gets pointer to uap, which is already in the kernel space. Read i386/trap.c:syscall(), copyin() already was called for the address in the user space. Why you do not see this mistake? Because return value of copyin() and copyout() should be checked. I think you get EFAULT from copyin, since uap is in stack, which is in KVM. You correctly noticed that original open() returns EFAULT, this is because supplied buffer has garbage. If I understood your code correctly, then it looks like, that you need to revisit logic of your wrapper, and allocate memory only for arguments which are in the user space. Also, I'm not sure why you decided (again incorrectly) to copy *uap back to user space, it can confuse program. Hope this can help. From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 12:06:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 8C74116A41F for ; Thu, 1 Dec 2005 12:06:16 +0000 (GMT) (envelope-from rzhe@agava.com) Received: from agava.mipt.ru (ofc2.agava.net [81.5.88.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7CDB43D45 for ; Thu, 1 Dec 2005 12:06:15 +0000 (GMT) (envelope-from rzhe@agava.com) Received: by agava.mipt.ru (Postfix, from userid 426) id CF76EC9A5F4; Thu, 1 Dec 2005 15:00:13 +0300 (MSK) Received: from mailhub (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 726B0C9A5E4 for ; Thu, 1 Dec 2005 15:00:13 +0300 (MSK) Received: from rzhe.agava-dubna.local (unknown [213.33.195.194]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by agava.mipt.ru (Postfix) with ESMTP id 08388C9A5EF for ; Thu, 1 Dec 2005 15:00:12 +0300 (MSK) Date: Thu, 1 Dec 2005 15:06:08 +0300 From: Dmitry Agaphonov To: freebsd-hackers@freebsd.org Message-ID: <20051201150608.5e8d49f1@rzhe.agava-dubna.local> Organization: AGAVA Software X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd4.11) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Kevent(2) doesn't notify about EVFILT_WRITE filter event X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 12:06:16 -0000 Hello all, I have two applications (server A and server B, A asks B for data to serve clients) communicating via UNIX-domain socket. Testing local clients interact to server A via UNIX-domain sockets too. Server A uses kqueue(2) to handle clients and server B. When about 20 clients start requesting server A without delay, kevent(2) doesn't notify about requested EVFILT_WRITE after only few small requests. Dumping kevent(2) changelist and eventlist gives the following: Server A asks for write event (with EV_ONESHOT flag set) to server B: [13:45:36][DBG] Changing SysEvent: ident: 8, filter: -2, flags: 0x11, fflags: 0, data: 0, udata: 0x0 [13:45:36][DBG] Received SysEvent: ident: 8, filter: -2, flags: 0x11, fflags: 0, data: 8192, udata: 0x0 So, the socket send buffer has 8192 bytes free. Then A sends 426 bytes to B. Then server A asks for write event again: [13:45:36][DBG] Changing SysEvent: ident: 8, filter: -2, flags: 0x11, fflags: 0, data: 0, udata: 0x0 After this, EVFILT_WRITE event is not returned. Noone else writes to this socket. How it is possible? When I only turn on some additional logging which makes nothing but logs something and thus makes some small delays between kevent(2) calls -- all works fine, kevent(2) notifies about all write events. Could anyone please give thoughts about why kevent(2) can behave so? I have definitely no idea where the problem can be. This happens on FreeBSD 4.11-STABLE (cvsup'ed Nov 20 2005), SMP kernel, P4 with HT. From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 13:20:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 990AC16A41F for ; Thu, 1 Dec 2005 13:20:16 +0000 (GMT) (envelope-from jf@trispen.com) Received: from brolloks.trispen.com (brolloks.trispen.com [196.22.177.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF37443D6E for ; Thu, 1 Dec 2005 13:20:10 +0000 (GMT) (envelope-from jf@trispen.com) Received: from localhost (unknown [127.0.0.1]) by brolloks.trispen.com (Postfix) with ESMTP id 416ED283 for ; Thu, 1 Dec 2005 15:20:05 +0200 (SAST) Received: from brolloks.trispen.com ([127.0.0.1]) by localhost (brolloks.trispen.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 96953-04 for ; Thu, 1 Dec 2005 15:20:03 +0200 (SAST) Received: from jf64x2.trispen.com (tpnnat.trispen.com [196.22.177.50]) by brolloks.trispen.com (Postfix) with ESMTP id 5D0732F for ; Thu, 1 Dec 2005 15:20:03 +0200 (SAST) References: Message-ID: To: freebsd-hackers@freebsd.org From: "Jacques Fourie" Organization: Trispen Technologies Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 01 Dec 2005 15:20:02 +0200 In-Reply-To: User-Agent: Opera M2/8.50 (Win32, build 7700) X-Virus-Scanned: amavisd-new at trispen.com Subject: 4.11 SMP issues on Intel SE7501CW2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 13:20:16 -0000 Hi, With reference to the following thread : http://groups.google.com/group/mailing.freebsd.smp/browse_thread/thread/bd45afab721e1a85/f66c8476272952af?lnk=st&q=%2Bfreebsd+%2B%22failed!%22+%2Bpanic&rnum=80#f66c8476272952af I am seeing the same issue on an Intel SE7501CW2 dual Xeon machine. 6.0 as well as -current exhibits the same behaviour. Various postings to the above thread suggests that this may be due to the APIC ID that the BIOS claims is assigned to the CPU not being the actual APIC ID assigned to the CPU. Does anyone have any new information on this issue? If the subsequent panic succeeded in rebooting the machine this would not be a big issue for me but unfortunately the machine hangs after pressing 'y' to the "panic [y/n]" prompt. Is there a way in which to initiate a hard reset in software? regards, jacques From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 13:55:45 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 DE08116A428 for ; Thu, 1 Dec 2005 13:55:45 +0000 (GMT) (envelope-from aanton@spintech.ro) Received: from smtpx.spintech.ro (smtpx.spintech.ro [81.180.92.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34EA943D5C for ; Thu, 1 Dec 2005 13:55:44 +0000 (GMT) (envelope-from aanton@spintech.ro) Received: from laura-axiomeda (unknown [11.0.0.25]) by smtpx.spintech.ro (Postfix) with ESMTP id 96BCD3A49A; Thu, 1 Dec 2005 14:02:50 +0000 (UTC) X-Laura: version 0.0.1b10-frustratus proxied X-Laura-Remote-IP: 10.0.0.2 Received: from [10.0.0.2] (beastie [10.0.0.2]) by smtpx.spintech.ro (Postfix) with ESMTP id 2CDFA3A498; Thu, 1 Dec 2005 14:02:50 +0000 (UTC) Message-ID: <438F00D8.4040302@spintech.ro> Date: Thu, 01 Dec 2005 15:55:36 +0200 From: Alin-Adrian Anton Organization: Spintech Security Systems User-Agent: Mozilla Thunderbird 1.0 (X11/20041229) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: cwnd and sstresh monitor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aanton@spintech.ro List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 13:55:46 -0000 Dear Hackers, I would like to monitor the changes of cwnd and sstresh values during TCP traffic, in order to plot graphs and interpret congestion. So I need (cwnd, timestamp) and (sstresh, timestamp) records to be taken everytime one of the two variables is modified. I'd like to ask you for suggestions, which would be the best aproach (kernel patch, kernel module, etc?), and how would this be done best? (the interception of values, the storage of snapshots, etc)? Thanks a lot for your time and valuable informations, I really appreciate any suggestions. Yours Sincerely, -- Alin-Adrian Anton GPG keyID 0x183087BA (B129 E8F4 7B34 15A9 0785 2F7C 5823 ABA0 1830 87BA) gpg --keyserver pgp.mit.edu --recv-keys 0x183087BA "It is dangerous to be right when the government is wrong." - Voltaire From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 13:59:27 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 C934616A45D for ; Thu, 1 Dec 2005 13:59:27 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63BAB43D46 for ; Thu, 1 Dec 2005 13:59:27 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so31249nzo for ; Thu, 01 Dec 2005 05:59:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lBIIwjzWLOatcbB3zFloekEL3tKZMG4qGesBGogEhrc+dNyh3r+ACKbEaM3kw2AEQM4gRNoxWFDTwbjLd1xnRxWDDwzwFHNrIQ1l3NhtHIOzObt8VGdX2yUOFqYge+XiTyQQS88GpVLoRxVV74pPnha9x/TINwoLR4yY37E6rGY= Received: by 10.37.18.31 with SMTP id v31mr1456513nzi; Thu, 01 Dec 2005 05:59:26 -0800 (PST) Received: by 10.36.86.11 with HTTP; Thu, 1 Dec 2005 05:59:26 -0800 (PST) Message-ID: <79722fad0512010559n29e957f5j47c99586ebbd3a0f@mail.gmail.com> Date: Thu, 1 Dec 2005 15:59:26 +0200 From: Vlad GALU To: freebsd-hackers@freebsd.org In-Reply-To: <438F00D8.4040302@spintech.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <438F00D8.4040302@spintech.ro> Subject: Re: cwnd and sstresh monitor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 13:59:28 -0000 On 12/1/05, Alin-Adrian Anton wrote: > Dear Hackers, > > I would like to monitor the changes of cwnd and sstresh values du= ring > TCP traffic, in order to plot graphs and interpret congestion. > > So I need (cwnd, timestamp) and (sstresh, timestamp) records to b= e > taken everytime one of the two variables is modified. > > I'd like to ask you for suggestions, which would be the best apro= ach > (kernel patch, kernel module, etc?), and how would this be done best? > (the interception of values, the storage of snapshots, etc)? > Does exporting them via sysctl, and graph them using anything (rrdtool) sound reasonable ? -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 15:12:54 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 D33E616A41F for ; Thu, 1 Dec 2005 15:12:54 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2684343D5E for ; Thu, 1 Dec 2005 15:12:49 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 6B3BB46BCF; Thu, 1 Dec 2005 10:12:47 -0500 (EST) Date: Thu, 1 Dec 2005 15:12:47 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Vlad GALU In-Reply-To: <79722fad0512010559n29e957f5j47c99586ebbd3a0f@mail.gmail.com> Message-ID: <20051201150949.W56270@fledge.watson.org> References: <438F00D8.4040302@spintech.ro> <79722fad0512010559n29e957f5j47c99586ebbd3a0f@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: cwnd and sstresh monitor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 15:12:55 -0000 On Thu, 1 Dec 2005, Vlad GALU wrote: > On 12/1/05, Alin-Adrian Anton wrote: >> Dear Hackers, >> >> I would like to monitor the changes of cwnd and sstresh values during >> TCP traffic, in order to plot graphs and interpret congestion. >> >> So I need (cwnd, timestamp) and (sstresh, timestamp) records to be >> taken everytime one of the two variables is modified. >> >> I'd like to ask you for suggestions, which would be the best aproach >> (kernel patch, kernel module, etc?), and how would this be done best? >> (the interception of values, the storage of snapshots, etc)? >> > > Does exporting them via sysctl, and graph them using anything > (rrdtool) sound reasonable ? I've not used it, but there is a TCPDEBUG kernel option that gathers TCP state information for debugging and tracing purposes. I know this has been used quite effectively in the past for this sort of work, but unfortunately I know very little about it. With all the TCP changes in the last few years (SACK, etc), it could be that it needs some enhancements, cleanups, fixes, etc. In addition, in FreeBSD 6.0, I've added support for a subset of the TCP_INFO API, which allows applications to poll various pieces of TCP connection state information using a socket option, TCP_INFO. Unfortunately, it's polled, not event-driven, so it is possible to miss state transitions. Another thing that I've been thinking about for a while is adding new KTR(4) traces for TCP events. This would be quite straight forward to do, but is more of a debugging feature than a live real-world use feature, as KTR is more of a debugging trace system. However, it's very easy to instrument new data gathering into KTR -- take a look at the various CTR calls in the kernel, and also at the KTR<->ALQ support that lets KTR dump trace data to a file. Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 16:53:40 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 F274916A41F for ; Thu, 1 Dec 2005 16:53:39 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36A3143D55 for ; Thu, 1 Dec 2005 16:53:39 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2947412 for multiple; Thu, 01 Dec 2005 11:51:38 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB1GrXu2090409; Thu, 1 Dec 2005 11:53:34 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 1 Dec 2005 11:33:09 -0500 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512011133.10441.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Subject: Re: 4.11 SMP issues on Intel SE7501CW2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 16:53:40 -0000 On Thursday 01 December 2005 08:20 am, Jacques Fourie wrote: > Hi, > > With reference to the following thread : > http://groups.google.com/group/mailing.freebsd.smp/browse_thread/thread/bd4 >5afab721e1a85/f66c8476272952af?lnk=st&q=%2Bfreebsd+%2B%22failed!%22+%2Bpanic >&rnum=80#f66c8476272952af > > I am seeing the same issue on an Intel SE7501CW2 dual Xeon machine. 6.0 as > well as -current exhibits the same behaviour. Various postings to the > above thread suggests that this may be due to the APIC ID that the BIOS > claims is assigned to the CPU not being the actual APIC ID assigned to the > CPU. Does anyone have any new information on this issue? If the subsequent > panic succeeded in rebooting the machine this would not be a big issue for > me but unfortunately the machine hangs after pressing 'y' to the "panic > [y/n]" prompt. Is there a way in which to initiate a hard reset in > software? No, there hasn't been any recent info on this and I haven't had any recent reports of these problems, at least not on 5.x or 6.x. Can you try booting up a 5.4 or 6.0 CD to see if they boot up ok? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 18:42:30 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 C43AC16A41F; Thu, 1 Dec 2005 18:42:30 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 115F343D64; Thu, 1 Dec 2005 18:42:27 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2953326 for multiple; Thu, 01 Dec 2005 13:40:25 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB1IgKC8091047; Thu, 1 Dec 2005 13:42:20 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Craig Boston Date: Thu, 1 Dec 2005 13:42:18 -0500 User-Agent: KMail/1.8.2 References: <20051130020734.GA6577@nowhere> <200511301035.14284.jhb@freebsd.org> <20051130172303.GA57453@nowhere> In-Reply-To: <20051130172303.GA57453@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512011342.19417.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-hackers@freebsd.org, imp@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 18:42:30 -0000 On Wednesday 30 November 2005 12:23 pm, Craig Boston wrote: > On Wed, Nov 30, 2005 at 10:35:13AM -0500, John Baldwin wrote: > > > With both ACPI & APIC enabled, it only lasts a few seconds. > > > > You didn't have to futz with the routing in this case? > > No, I just took the default routing specified by ACPI. Ok. > > > With ACPI disabled, the system panics because the mptable is broken. > > > However, I was able to hack the kernel to override the mptable and > > > route the interrupts to the correct pins. > > > > You know that you can override individual routings just using tunables > > without having to hack the table. Just use something like: > > Oh yeah, thanks, I forgot about that. Though I think I would have to > hack the table anyway just to get the system booted -- it panics due to > the bogus entries long before it tries to route any INTs. Ah. > A GENERIC kernel with ACPI but no APIC does the same thing, however. > Everything ends up on IRQ 11 and it does just that much quicker. > vmstat -i shows IRQ 11 frozen at 55 interrupts (the number varies per > boot). Ok. > > > The final thing I tried is both APIC & ACPI disabled > > > > Do you have a dmesg from this? Preferably a verbose one to see if > > your $PIR has routing info for cbb0. > > Yes, I have verbose dmesgs up at > http://www.gank.org/freebsd/l25/ > > (I've been running RELENG_6, but reverted to a 6.0 GENERIC to create > these as to rule out any local patches) > > 8259.txt is the one with both APIC & ACPI disabled. I don't see a $PIR > table anywhere though -- I don't think this board was intended to be > run without ACPI... Yeah, odd, no $PIR. You can get your cbb0 to work though using a tunable in the loader. Something like: hw.pci9.1.INTA.irq=11 should do the trick to get your box working in the !ACPI and !APIC case at least and you can see if it has the same issue with freezing up then. > > We mask the IRQs in the PIC while their ithread runs. If your routing > > is all screwed up that might result in the problems you are seeing. > > Can you boot into Windows and jot down the IRQs it uses for each > > device > > I'm pretty sure the routing is OK, but am game to try anything that > might help. I don't have Windows on this machine anymore, so I called a > friend with an identical laptop and had him go through device manager. > Highlights include USB on IRQ 19, the integrated RealTek NIC on IRQ 21, > and the MiniPCI wireless on IRQ 22. It matched exactly with with the > IRQ lines that BSD uses with APIC, with or without ACPI. Hmm, ok. > > and then (if you are up to it), provide verbose dmesg's of an > > unpatched kernel for the 4 cases of + ACPI + APIC, - ACPI + APIC, + > > ACPI - APIC, - ACPI - APIC? > > Sure, see the link above. The files are: > 8259.txt - ACPI - APIC > acpi+apic.txt + ACPI + APIC > acpi.txt + ACPI - APIC > > I couldn't get one for - ACPI + APIC as it panics on bootup and this > machine doesn't have a serial port. I did post a verbose boot with my > patched kernel for that under apic+patches.txt. > > Also in there is mptable.txt, which shows the broken mptable. > mptable-fixed.txt is the output of the mptable command when running with > a patched kernel in APIC (no ACPI) mode. Heh, yes, that's a screwed up MP table alright. Hmm. I think I may have figured out your problem. FreeBSD's PCI bus is allocating the same resources to cbb0 that ath0 is already setup to use. This is probably Warner's fault. :-/ (cc'd) Your !ACPI and !APIC case is probably working because cbb0 didn't attach. For a test, you can try compiling cbb out of your kernel and seeing if the box works ok. Note in your ACPI + APIC dmesg: pcib2: at device 20.4 on pci0 pcib2: secondary bus 9 pcib2: subordinate bus 14 pcib2: I/O decode 0xa000-0xafff pcib2: memory decode 0xd0200000-0xd02fffff pcib2: prefetched decode 0xfff00000-0xfffff pcib2: Subtractively decoded bridge. Since this is subtractice, does this even need mem decode ranges setup? pci9: on pcib2 pci9: physical bus=9 found-> vendor=0x104c, dev=0xac56, revid=0x00 bus=9, slot=1, func=0 class=06-07-00, hdrtype=0x02, mfdev=0 cmdreg=0x0000, statreg=0x0210, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x40 (16000 ns), maxlat=0x03 (750 ns) intpin=a, irq=255 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type 1, range 32, base 00000000, size 12, memory disabled That's cbb0 and it has no address assigned to BAR 0x10 (nor an IRQ). Resources for re0: found-> vendor=0x10ec, dev=0x8139, revid=0x10 bus=9, slot=2, func=0 map[10]: type 4, range 32, base 0000a000, size 8, enabled pcib2: (null) requested I/O range 0xa000-0xa0ff: in range map[14]: type 1, range 32, base d0210000, size 8, enabled pcib2: (null) requested memory range 0xd0210000-0xd02100ff: good Resources for ath0: found-> vendor=0x168c, dev=0x001a, revid=0x01 bus=9, slot=4, func=0 map[10]: type 1, range 32, base d0200000, size 16, enabled pcib2: (null) requested memory range 0xd0200000-0xd020ffff: good Then when cbb0 attaches we try to give it some resources: cbb0: at device 1.0 on pci9 pcib2: cbb0 requested memory range 0xd0200000-0xd02fffff: good cbb0: Lazy allocation of 0x1000 bytes rid 0x10 type 3 at 0xd0211000 Hmm, maybe the message is just confusing and it gets resources at 0xd0211000 which would be ok. Hmm, back to square 1 I guess. I'd still be interested to hear how the broken kernels fair if you take cbb out and how the 8259 kernel does with the variable set to fix cbb0's interrupt. You could also try moving one of the links to IRQ 10 in the ACPI case via a tunable such as: hw.acpi.LNKA.irq=10 or some such (can't recall if that's the right name). -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 18:55:35 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 AF0CE16A41F for ; Thu, 1 Dec 2005 18:55:35 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1137E43DA5 for ; Thu, 1 Dec 2005 18:55:26 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jB1ItFsS014560; Thu, 1 Dec 2005 10:55:15 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jB1ItEgj014559; Thu, 1 Dec 2005 10:55:14 -0800 (PST) (envelope-from jmg) Date: Thu, 1 Dec 2005 10:55:14 -0800 From: John-Mark Gurney To: Dmitry Agaphonov Message-ID: <20051201185514.GP885@funkthat.com> Mail-Followup-To: Dmitry Agaphonov , freebsd-hackers@freebsd.org References: <20051201150608.5e8d49f1@rzhe.agava-dubna.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051201150608.5e8d49f1@rzhe.agava-dubna.local> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org Subject: Re: Kevent(2) doesn't notify about EVFILT_WRITE filter event X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 18:55:35 -0000 Dmitry Agaphonov wrote this message on Thu, Dec 01, 2005 at 15:06 +0300: > I have two applications (server A and server B, A asks B for data to > serve clients) communicating via UNIX-domain socket. Testing local > clients interact to server A via UNIX-domain sockets too. Server A > uses kqueue(2) to handle clients and server B. > > When about 20 clients start requesting server A without delay, kevent(2) > doesn't notify about requested EVFILT_WRITE after only few small > requests. > > > Dumping kevent(2) changelist and eventlist gives the following: > > Server A asks for write event (with EV_ONESHOT flag set) to server B: > [13:45:36][DBG] Changing SysEvent: ident: 8, filter: -2, flags: 0x11, fflags: 0, data: 0, udata: 0x0 > [13:45:36][DBG] Received SysEvent: ident: 8, filter: -2, flags: 0x11, fflags: 0, data: 8192, udata: 0x0 > > So, the socket send buffer has 8192 bytes free. Then A sends 426 > bytes to B. > > Then server A asks for write event again: > [13:45:36][DBG] Changing SysEvent: ident: 8, filter: -2, flags: 0x11, fflags: 0, data: 0, udata: 0x0 > > After this, EVFILT_WRITE event is not returned. Noone else writes to > this socket. How it is possible? are you checking the output from the kevent that sets the sysevent? kevent if you do something "stupid" like set a _ONESHOT in kevent, and provide space for events to be returned to userland, the _ONESHOT will be immediately returned and cleared... It could also be an error is trying to be set, but can't be if you don't provide return space... so w/o seeing your code, I'd make sure when setting you are able to receive some events, and check what events you get back... > When I only turn on some additional logging which makes nothing but > logs something and thus makes some small delays between kevent(2) > calls -- all works fine, kevent(2) notifies about all write events. > > > Could anyone please give thoughts about why kevent(2) can behave so? > I have definitely no idea where the problem can be. > > This happens on FreeBSD 4.11-STABLE (cvsup'ed Nov 20 2005), SMP kernel, > P4 with HT. If you could post the parts of your code around kevent calls, I could better help you... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 19:01:23 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 9E25D16A41F for ; Thu, 1 Dec 2005 19:01:23 +0000 (GMT) (envelope-from jacques.fourie@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C48E43D79 for ; Thu, 1 Dec 2005 19:01:23 +0000 (GMT) (envelope-from jacques.fourie@gmail.com) Received: by zproxy.gmail.com with SMTP id j2so121682nzf for ; Thu, 01 Dec 2005 11:01:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cmHY4ioZY2kkhzBf4IZspDN8U7hZiqZCxkr0WjUqS1ZxMABAMQQUw4cNCWUPbc+htsBy5lswpksrmGzwFK7kMcF6biK1voqBnUfqQR49HpUsDRydflJUCBeEnpxSfrgpMOjGZ1GC09IVdkKoAZWpLYKuo3JTSj7R1eKgK9Lnbrg= Received: by 10.65.204.20 with SMTP id g20mr1053279qbq; Thu, 01 Dec 2005 11:01:22 -0800 (PST) Received: by 10.65.158.14 with HTTP; Thu, 1 Dec 2005 11:01:22 -0800 (PST) Message-ID: Date: Thu, 1 Dec 2005 21:01:22 +0200 From: Jacques Fourie To: John Baldwin In-Reply-To: <200512011133.10441.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200512011133.10441.jhb@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: 4.11 SMP issues on Intel SE7501CW2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 19:01:23 -0000 Hi John, I booted a 6.0-RELEASE CD and the same thing (panic that freezes the machine) happens. Can you think of any way in which to reliably reboot the machine if this situation occurs? regards, jacques On 12/1/05, John Baldwin wrote: > On Thursday 01 December 2005 08:20 am, Jacques Fourie wrote: > > Hi, > > > > With reference to the following thread : > > http://groups.google.com/group/mailing.freebsd.smp/browse_thread/thread= /bd4 > >5afab721e1a85/f66c8476272952af?lnk=3Dst&q=3D%2Bfreebsd+%2B%22failed!%22+= %2Bpanic > >&rnum=3D80#f66c8476272952af > > > > I am seeing the same issue on an Intel SE7501CW2 dual Xeon machine. 6.0= as > > well as -current exhibits the same behaviour. Various postings to the > > above thread suggests that this may be due to the APIC ID that the BIOS > > claims is assigned to the CPU not being the actual APIC ID assigned to = the > > CPU. Does anyone have any new information on this issue? If the subsequ= ent > > panic succeeded in rebooting the machine this would not be a big issue = for > > me but unfortunately the machine hangs after pressing 'y' to the "panic > > [y/n]" prompt. Is there a way in which to initiate a hard reset in > > software? > > No, there hasn't been any recent info on this and I haven't had any recen= t > reports of these problems, at least not on 5.x or 6.x. Can you try booti= ng > up a 5.4 or 6.0 CD to see if they boot up ok? > > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 22:52:52 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 DC80716A41F for ; Thu, 1 Dec 2005 22:52:52 +0000 (GMT) (envelope-from omen@omenlabs.com) Received: from mail.dopp.net (mail.dopp.net [199.199.210.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C43543D46 for ; Thu, 1 Dec 2005 22:52:52 +0000 (GMT) (envelope-from omen@omenlabs.com) Received: from shell.dopp.net (shell.dopp.net [199.199.210.137]) by mail.dopp.net (Postfix) with ESMTP id 6042819282B for ; Thu, 1 Dec 2005 16:52:50 -0600 (CST) Received: by shell.dopp.net (Postfix, from userid 1002) id 45F20136EC8; Thu, 1 Dec 2005 16:52:50 -0600 (CST) Date: Thu, 1 Dec 2005 16:52:50 -0600 From: omen-pub@omenlabs.com To: freebsd-hackers@freebsd.org Message-ID: <20051201225250.GA73876@shell.dopp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Thu, 01 Dec 2005 22:53:51 +0000 Subject: [PATCH] bootparamd enhancement/fix X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 22:52:53 -0000 Figured I'd throw this out to the list before filing a PR. http://www.omenlabs.com/freebsd/bootparamd.patch This patch is against 6.0-Release There are two issues with bootparamd that I ran into trying to get Solaris Jumpstart working nicely. One was permitting null hostnames. Certain options are passed to the jumpstart client using /etc/bootparams file entries like "term=:vt100". The current implementation only makes an exception for the file "dump=..." and will not return anything else if it can not be resolved. I have added in a check to return an address of 0.0.0.0 if the length of the hostname is zero. The second issue is a little more significant. If a router address is not supplied using the -r option, bootparamd uses the function get_myaddress(3) to determine the address of the host. The bootparamd(8) man page states: -r router The default router (a machine or an IP-address). This defaults to the machine running the server. The function get_myaddress always returns INADDR_LOOPBACK. This qualify as a bug. Using -r solves this problem, unless you are running on multiple networks. The patch attempts to make rpc.bootparamd more intelligent. If -r is not supplied, the ip address of the client is checked against all configured network interfaces on the host in the function myaddr. If the client is on a local subnet, the ip address of the server on that network is returned (if not, INADDR_LOOPBACK). This allows for whoami on multiple networks. John From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 01:31:50 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 089FB16A422; Fri, 2 Dec 2005 01:31:50 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 944DB43D60; Fri, 2 Dec 2005 01:31:49 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 25B502D405; Thu, 1 Dec 2005 19:31:49 -0600 (CST) Date: Thu, 1 Dec 2005 19:31:46 -0600 From: Craig Boston To: John Baldwin Message-ID: <20051202013146.GA15424@nowhere> Mail-Followup-To: Craig Boston , John Baldwin , freebsd-hackers@freebsd.org, imp@freebsd.org References: <20051130020734.GA6577@nowhere> <200511301035.14284.jhb@freebsd.org> <20051130172303.GA57453@nowhere> <200512011342.19417.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512011342.19417.jhb@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, imp@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 01:31:50 -0000 On Thu, Dec 01, 2005 at 01:42:18PM -0500, John Baldwin wrote: > Yeah, odd, no $PIR. You can get your cbb0 to work though using a tunable in > the loader. Something like: > > hw.pci9.1.INTA.irq=11 That does fix cbb0. With that line, the cardbus works in plain-old-PIC mode. I suspect that really old 16-bit PCMCIA cards with non-sharable interrupts wouldn't work, but does NEWCARD even support those anyway? > should do the trick to get your box working in the !ACPI and !APIC case at > least and you can see if it has the same issue with freezing up then. So far it seems to be working fine with !ACPI !APIC and that tunable. I'm pingflooding some "volunteers" on the wired and wireless LANs, and transferring 16MB/s from an external drive over firewire (cardbus fwohci). So far it's been running for about 30 minutes with a sustained interrupt rate of ~6000. That would be more than enough to kill it in the plain APIC (no ACPI) case. Still, this thing doesn't have apm so if I want any sort of power management I'll need to figure out why ACPI & APIC are broken. > For a test, you can try compiling cbb out of your kernel and seeing if > the box works ok. No luck, still fails exactly the same in ACPI mode with cbb removed from the kernel. > That's cbb0 and it has no address assigned to BAR 0x10 (nor an IRQ). Unfortunately the BIOS is no help here either -- the only thing configurable is the boot order... > I'd still be interested to hear how the broken kernels fair if you > take cbb out and how the 8259 kernel does with the variable set to fix > cbb0's interrupt. All 3 (broken) combinations of ACPI and APIC behave exactly the same with cbb/pccard/cardbus removed from the kernel. :( > You could also try moving one of the links to IRQ 10 in the ACPI case > via a tunable such as: > hw.acpi.LNKA.irq=10 or some such (can't recall if that's the right > name). Looks like it's hw.pci.link.LNKA.irq. However, there are a couple problems: 1. The ASL for this machine expects to be notified of the interrupt model via the _PIC method. It changes the _PRT depending on which model is in use. For APIC, it doesn't use the PCI link objects at all and just hardcodes all the vectors. For PIC, it uses the LNK objects (which are constrained to IRQ 10 or 11). If I'm reading the code correctly, it appears that we call _PIC and set the interrupt model to APIC, *if an MADT table exists*, regardless if we're actually using the I/O APIC or not. This is what initially had me thinking ACPI/PIC wasn't supported at all. 2. I "solved" the previous problem by modifying the ASL to assume PIC mode, and then the tunables started working. It was only able to move devices on the "near" side of the bridge (i.e. on pci0), but they did work briefly on IRQ 10 before freezing just as before. I think this is unrelated to my problem, however, as I get the same behavior both with and without that modification (but it may be a bug that needs to be fixed). Argh, this is driving me up the wall. I had a hunch that it was somehow connected to level-triggered interrupts. That seems to not be the case, as upon closer inspection the SCI interrupt (9) gets reprogrammed to level/low. I can read the ACPI status all day long and the count for IRQ 9 goes up and up without freezing... Craig From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 01:51:52 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 2D72C16A41F; Fri, 2 Dec 2005 01:51:52 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E8DC43D69; Fri, 2 Dec 2005 01:51:51 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 6641F2D405; Thu, 1 Dec 2005 19:51:51 -0600 (CST) Date: Thu, 1 Dec 2005 19:51:49 -0600 From: Craig Boston To: John Baldwin , freebsd-hackers@freebsd.org, imp@freebsd.org Message-ID: <20051202015149.GB15424@nowhere> Mail-Followup-To: Craig Boston , John Baldwin , freebsd-hackers@freebsd.org, imp@freebsd.org References: <20051130020734.GA6577@nowhere> <200511301035.14284.jhb@freebsd.org> <20051130172303.GA57453@nowhere> <200512011342.19417.jhb@freebsd.org> <20051202013146.GA15424@nowhere> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051202013146.GA15424@nowhere> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 01:51:52 -0000 On Thu, Dec 01, 2005 at 07:31:46PM -0600, Craig Boston wrote: > If I'm reading the code correctly, it appears that we call _PIC and set > the interrupt model to APIC, *if an MADT table exists*, regardless if > we're actually using the I/O APIC or not. This is what initially had me > thinking ACPI/PIC wasn't supported at all. No, scratch that, the enumerator never gets called unless a local apic device attaches. The code is correct. Bizarre, I wonder why the tunable to override LNK[A-H] wasn't working before. Craig From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 02:11:20 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 8B4E816A41F; Fri, 2 Dec 2005 02:11:20 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFCE243D5D; Fri, 2 Dec 2005 02:11:19 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jB22AYuQ064550; Thu, 1 Dec 2005 19:10:34 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 01 Dec 2005 19:11:10 -0700 (MST) Message-Id: <20051201.191110.19781274.imp@bsdimp.com> To: craig@tobuj.gank.org From: "M. Warner Losh" In-Reply-To: <20051202013146.GA15424@nowhere> References: <20051130172303.GA57453@nowhere> <200512011342.19417.jhb@freebsd.org> <20051202013146.GA15424@nowhere> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 01 Dec 2005 19:10:34 -0700 (MST) Cc: freebsd-hackers@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 02:11:20 -0000 In message: <20051202013146.GA15424@nowhere> Craig Boston writes: : I suspect that really old 16-bit PCMCIA cards with non-sharable : interrupts wouldn't work, but does NEWCARD even support those anyway? Yes. There's no such thing as a PCMCIA card whose interrupts are non-sharable. NEWCARD works great with them. Warner From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 02:20:17 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 3867416A41F for ; Fri, 2 Dec 2005 02:20:17 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC71E43D46 for ; Fri, 2 Dec 2005 02:20:16 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: by ion.gank.org (mail, from userid 1001) id A9E962BD66; Thu, 1 Dec 2005 20:20:16 -0600 (CST) Date: Thu, 1 Dec 2005 20:20:14 -0600 From: Craig Boston To: "M. Warner Losh" Message-ID: <20051202022014.GC15424@nowhere> Mail-Followup-To: Craig Boston , "M. Warner Losh" , freebsd-hackers@freebsd.org References: <20051130172303.GA57453@nowhere> <200512011342.19417.jhb@freebsd.org> <20051202013146.GA15424@nowhere> <20051201.191110.19781274.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051201.191110.19781274.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 02:20:17 -0000 On Thu, Dec 01, 2005 at 07:11:10PM -0700, M. Warner Losh wrote: > In message: <20051202013146.GA15424@nowhere> > Craig Boston writes: > : I suspect that really old 16-bit PCMCIA cards with non-sharable > : interrupts wouldn't work, but does NEWCARD even support those anyway? > > Yes. There's no such thing as a PCMCIA card whose interrupts are > non-sharable. NEWCARD works great with them. Heh, guess I shouldn't believe what I read on pages hosted at microsoft.com :) http://www.microsoft.com/whdc/system/bus/cardbus/PCMCIA-IRQrouting.mspx (found via google search for "cardbus interrupt routing") It's probably talking about legacy device drivers that didn't know how to properly share IRQs. Craig From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 04:08:21 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 4398316A41F for ; Fri, 2 Dec 2005 04:08:21 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DCF043D62 for ; Fri, 2 Dec 2005 04:08:20 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jB248Ac8065480; Thu, 1 Dec 2005 21:08:11 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 01 Dec 2005 21:08:47 -0700 (MST) Message-Id: <20051201.210847.88001018.imp@bsdimp.com> To: craig@tobuj.gank.org From: "M. Warner Losh" In-Reply-To: <20051202022014.GC15424@nowhere> References: <20051202013146.GA15424@nowhere> <20051201.191110.19781274.imp@bsdimp.com> <20051202022014.GC15424@nowhere> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 01 Dec 2005 21:08:11 -0700 (MST) Cc: freebsd-hackers@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 04:08:21 -0000 In message: <20051202022014.GC15424@nowhere> Craig Boston writes: : On Thu, Dec 01, 2005 at 07:11:10PM -0700, M. Warner Losh wrote: : > In message: <20051202013146.GA15424@nowhere> : > Craig Boston writes: : > : I suspect that really old 16-bit PCMCIA cards with non-sharable : > : interrupts wouldn't work, but does NEWCARD even support those anyway? : > : > Yes. There's no such thing as a PCMCIA card whose interrupts are : > non-sharable. NEWCARD works great with them. : : Heh, guess I shouldn't believe what I read on pages hosted at : microsoft.com :) : : http://www.microsoft.com/whdc/system/bus/cardbus/PCMCIA-IRQrouting.mspx : (found via google search for "cardbus interrupt routing") : : It's probably talking about legacy device drivers that didn't know how : to properly share IRQs. You are right. It is talking about Legacy drivers that do the wrong thing when they get an interrupt that's not for them. Warner From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 10:00:19 2005 Return-Path: X-Original-To: hackers@freebsd.org 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 D4BF616A41F; Fri, 2 Dec 2005 10:00:19 +0000 (GMT) (envelope-from yuri@irfu.se) Received: from colibri.its.uu.se (colibri.its.UU.SE [130.238.4.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8BB043D66; Fri, 2 Dec 2005 10:00:15 +0000 (GMT) (envelope-from yuri@irfu.se) Received: by colibri.its.uu.se (Postfix, from userid 211) id C0C48D6D0; Fri, 2 Dec 2005 11:00:14 +0100 (NFT) Received: from colibri.its.uu.se(127.0.0.1) by colibri.its.uu.se via virus-scan id s14350; Fri, 2 Dec 05 11:00:07 +0100 Received: from hq.irfu.se (hq.irfu.se [130.238.30.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by colibri.its.uu.se (Postfix) with ESMTP id BC831D6D0; Fri, 2 Dec 2005 11:00:06 +0100 (NFT) Received: from ice.irfu.se (ice.irfu.se [130.238.30.157]) (authenticated bits=0) by hq.irfu.se (8.13.4/8.13.4) with ESMTP id jB2A03tt033705 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 2 Dec 2005 11:00:04 +0100 (CET) (envelope-from yuri@irfu.se) From: Yuri Khotyaintsev Organization: Swedish Institute of Space Physics To: freebsd-stable@freebsd.org Date: Fri, 2 Dec 2005 11:00:02 +0100 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512021100.03167.yuri@irfu.se> X-Spam-Status: No, score=-1.4 required=7.0 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on hq.irfu.se X-Mailman-Approved-At: Fri, 02 Dec 2005 13:01:30 +0000 Cc: hackers@freebsd.org Subject: Fatal trap 12: page fault while in kernel mode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 10:00:20 -0000 I have the following panic occurring several times a week. The machine is a= n=20 NFS server, and it usually panics early in the morning, when first people t= ry=20 to access it. After reboot it may work OK for 1-2 days, and then panics=20 again. I have tried changing memory and replacing disk which was exported v= ia=20 NFS, but nothing helped :( Any suggestion on how to fix this panic will be very much appreciated !=20 /Yuri [root@XXX][/var/crash]# uname -a =46reeBSD XXX.irfu.se 6.0-STABLE FreeBSD 6.0-STABLE #0: Tue Nov 29 13:31:15= CET=20 2005 root@XXX.irfu.se:/usr/obj/usr/src/sys/HEM i386 [root@XXX][/var/crash]# kgdb /usr/obj/usr/src/sys/HEM/kernel.debug vmcore.7 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:= =20 Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: kernel trap 12 with interrupts disabled =46atal trap 12: page fault while in kernel mode fault virtual address =3D 0x74 fault code =3D supervisor read, page not present instruction pointer =3D 0x20:0xc053a426 stack pointer =3D 0x28:0xd56c0b88 frame pointer =3D 0x28:0xd56c0b8c code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 77 (vnlru) trap number =3D 12 panic: page fault Uptime: 2d12h22m11s Dumping 511 MB (2 chunks) chunk 0: 1MB (160 pages) ... ok chunk 1: 511MB (130800 pages) 495 479 463 447 431 415 399 383 367 351 335= =20 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:165 165 pcpu.h: No such file or directory. in pcpu.h (kgdb) where #0 doadump () at pcpu.h:165 #1 0xc051577a in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:3= 99 #2 0xc0515a84 in panic (fmt=3D0xc06ce475 "%s")=20 at /usr/src/sys/kern/kern_shutdown.c:555 #3 0xc06b4815 in trap_fatal (frame=3D0xd56c0b48, eva=3D0) at /usr/src/sys/i386/i386/trap.c:836 #4 0xc06b3f2d in trap (frame=3D {tf_fs =3D 1133445128, tf_es =3D 40, tf_ds =3D 40, tf_edi =3D -101799= 7312,=20 tf_esi =3D -1020120704, tf_ebp =3D -714339444, tf_isp =3D -714339468, tf_eb= x =3D=20 =2D1012942272, tf_edx =3D -1020120704, tf_ecx =3D 0, tf_eax =3D 0, tf_trapn= o =3D 12,=20 tf_err =3D 0, tf_eip =3D -1068260314, tf_cs =3D 32, tf_eflags =3D 589831, t= f_esp =3D=20 =2D1020120704, tf_ss =3D -714339408}) at /usr/src/sys/i386/i386/trap.c:269 #5 0xc06a24fa in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #6 0xc053a426 in turnstile_setowner (ts=3D0xc39fba40, owner=3D0x0) at /usr/src/sys/kern/subr_turnstile.c:417 #7 0xc053a752 in turnstile_wait (lock=3D0xc461fe00, owner=3D0x0) at /usr/src/sys/kern/subr_turnstile.c:576 #8 0xc050b511 in _mtx_lock_sleep (m=3D0xc461fe00, tid=3D3274846592, opts= =3D0,=20 file=3D0x0, line=3D0) at /usr/src/sys/kern/kern_mutex.c:555 #9 0xc064becd in ufsdirhash_free (ip=3D0xc4a33840) at /usr/src/sys/ufs/ufs/ufs_dirhash.c:289 #10 0xc064de66 in ufs_reclaim (ap=3D0x0) at /usr/src/sys/ufs/ufs/ufs_inode.= c:175 #11 0xc06bef38 in VOP_RECLAIM_APV (vop=3D0x0, a=3D0xc3323180) at vnode_if.c= :1589 #12 0xc057adfe in vgonel (vp=3D0xc3cf3aa0) at vnode_if.h:818 #13 0xc0577530 in vtryrecycle (vp=3D0xc3cf3aa0)=20 at /usr/src/sys/kern/vfs_subr.c:840 #14 0xc0576ec6 in vnlru_free (count=3D1376) at /usr/src/sys/kern/vfs_subr.c= :668 #15 0xc0577019 in vnlru_proc () at /usr/src/sys/kern/vfs_subr.c:703 #16 0xc04fc310 in fork_exit (callout=3D0xc0576f24 , arg=3D0x0,= =20 frame=3D0x0) at /usr/src/sys/kern/kern_fork.c:789 #17 0xc06a255c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:= 208 (kgdb) quit =2D-=20 Dr. Yuri Khotyaintsev Institutet f=F6r rymdfysik (IRF), Uppsala From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 13:25:17 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 87E7016A41F; Fri, 2 Dec 2005 13:25:17 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF04743D5A; Fri, 2 Dec 2005 13:25:05 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 3006823 for multiple; Fri, 02 Dec 2005 08:23:03 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB2DOvod002243; Fri, 2 Dec 2005 08:24:59 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Craig Boston Date: Fri, 2 Dec 2005 08:17:53 -0500 User-Agent: KMail/1.8.3 References: <20051130020734.GA6577@nowhere> <200512011342.19417.jhb@freebsd.org> <20051202013146.GA15424@nowhere> In-Reply-To: <20051202013146.GA15424@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512020817.55769.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-hackers@freebsd.org, imp@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 13:25:17 -0000 On Thursday 01 December 2005 08:31 pm, Craig Boston wrote: > On Thu, Dec 01, 2005 at 01:42:18PM -0500, John Baldwin wrote: > > Yeah, odd, no $PIR. You can get your cbb0 to work though using a tunab= le > > in the loader. Something like: > > > > hw.pci9.1.INTA.irq=3D11 > > That does fix cbb0. With that line, the cardbus works in plain-old-PIC > mode. Ok. > > For a test, you can try compiling cbb out of your kernel and seeing if > > the box works ok. > > No luck, still fails exactly the same in ACPI mode with cbb removed from > the kernel. Grrr. > > You could also try moving one of the links to IRQ 10 in the ACPI case > > via a tunable such as: > > > > hw.acpi.LNKA.irq=3D10 or some such (can't recall if that's the right > > name). > > Looks like it's hw.pci.link.LNKA.irq. However, there are a couple > problems: > > 1. The ASL for this machine expects to be notified of the interrupt > model via the _PIC method. It changes the _PRT depending on which model > is in use. For APIC, it doesn't use the PCI link objects at all and > just hardcodes all the vectors. For PIC, it uses the LNK objects (which > are constrained to IRQ 10 or 11). That's normal. > If I'm reading the code correctly, it appears that we call _PIC and set > the interrupt model to APIC, *if an MADT table exists*, regardless if > we're actually using the I/O APIC or not. This is what initially had me > thinking ACPI/PIC wasn't supported at all. If an MADT exists we do use the APIC and don't use ATPICs. That's normal. > 2. I "solved" the previous problem by modifying the ASL to assume PIC > mode, and then the tunables started working. It was only able to move > devices on the "near" side of the bridge (i.e. on pci0), but they did > work briefly on IRQ 10 before freezing just as before. You shouldn't have to do that. The ACPI standard clearly states that machi= nes=20 boot up in PIC mode by default and you only need to call _PIC to switch to= =20 either APIC or SAPIC (ia64) mode. Did you disable APIC before trying the=20 tunables BTW? > I think this is unrelated to my problem, however, as I get the same > behavior both with and without that modification (but it may be a bug > that needs to be fixed). > > Argh, this is driving me up the wall. I had a hunch that it was somehow > connected to level-triggered interrupts. That seems to not be the case, > as upon closer inspection the SCI interrupt (9) gets reprogrammed to > level/low. I can read the ACPI status all day long and the count for > IRQ 9 goes up and up without freezing... Interesting. How about IRQ 11 in non-APIC mode, is it programmed to=20 level/low? I've seen BIOSes that do very stupid things like have the link= =20 devices set to level/hi or edge/lo or even edge/hi. A verbose boot should= =20 tell you if any settings are changed though, and in the APIC case you shoul= d=20 see the initial defaults as well. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 13:42:24 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 DA11816A41F; Fri, 2 Dec 2005 13:42:24 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id C723443D66; Fri, 2 Dec 2005 13:42:23 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 3007596 for multiple; Fri, 02 Dec 2005 08:40:22 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB2DgHqC002352; Fri, 2 Dec 2005 08:42:18 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Craig Boston Date: Fri, 2 Dec 2005 08:39:06 -0500 User-Agent: KMail/1.8.3 References: <20051130020734.GA6577@nowhere> <200512011342.19417.jhb@freebsd.org> <20051202013146.GA15424@nowhere> In-Reply-To: <20051202013146.GA15424@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512020839.08139.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-hackers@freebsd.org, imp@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 13:42:25 -0000 On Thursday 01 December 2005 08:31 pm, Craig Boston wrote: > On Thu, Dec 01, 2005 at 01:42:18PM -0500, John Baldwin wrote: > > Yeah, odd, no $PIR. You can get your cbb0 to work though using a tunab= le > > in the loader. Something like: > > > > hw.pci9.1.INTA.irq=3D11 > > That does fix cbb0. With that line, the cardbus works in plain-old-PIC > mode. Also, try this hint with ACPI without APIC. It looks like your BIOS doesn'= t=20 include entries for the PCI9 bus in the PIC version of the _PRT (see no PRT= =20 messages in ACPI dmesg) so cbb0 doesn't get an IRQ there either. I'd be=20 interested in seeing your ASL to see what the _PRT for PCI9 looks like. =20 Looks like this BIOS has only been tested with ACPI + APIC. :( It has no=20 $PIR, and the MP Table and non-APIC _PRT entries for the PCI9 bus are all=20 busted. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 13:54:28 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 CE00B16A41F; Fri, 2 Dec 2005 13:54:28 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C1E943D53; Fri, 2 Dec 2005 13:54:27 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 3008241 for multiple; Fri, 02 Dec 2005 08:52:29 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB2DsN0I002436; Fri, 2 Dec 2005 08:54:24 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Fri, 2 Dec 2005 08:54:18 -0500 User-Agent: KMail/1.8.3 References: <200512021100.03167.yuri@irfu.se> In-Reply-To: <200512021100.03167.yuri@irfu.se> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512020854.20959.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Yuri Khotyaintsev , freebsd-stable@freebsd.org Subject: Re: Fatal trap 12: page fault while in kernel mode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 13:54:28 -0000 On Friday 02 December 2005 05:00 am, Yuri Khotyaintsev wrote: > I have the following panic occurring several times a week. The machine is > an NFS server, and it usually panics early in the morning, when first > people try to access it. After reboot it may work OK for 1-2 days, and th= en > panics again. I have tried changing memory and replacing disk which was > exported via NFS, but nothing helped :( > > Any suggestion on how to fix this panic will be very much appreciated ! This panic (in propagate_priority) is usually caused when a thread goes to= =20 sleep while holding a mutex (which is forbidden). If you enable INVARIANTS= =20 and/or WITNESS you should get a better panic, and with WITNESS you will eve= n=20 be warned when a thread goes to sleep while holding a mutex. However, thes= e=20 options do introduce considerable execution overhead, and sometimes that=20 overhead changes the timing enough to hide the race. :( =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 2 14:47:31 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 043D016A420; Fri, 2 Dec 2005 14:47:31 +0000 (GMT) (envelope-from yuri@irfu.se) Received: from colibri.its.uu.se (colibri.its.uu.se [130.238.4.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E6A343D6B; Fri, 2 Dec 2005 14:47:29 +0000 (GMT) (envelope-from yuri@irfu.se) Received: by colibri.its.uu.se (Postfix, from userid 211) id 3B00CF77; Fri, 2 Dec 2005 15:47:27 +0100 (NFT) Received: from colibri.its.uu.se(127.0.0.1) by colibri.its.uu.se via virus-scan id s14344; Fri, 2 Dec 05 15:47:17 +0100 Received: from hq.irfu.se (hq.irfu.se [130.238.30.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by colibri.its.uu.se (Postfix) with ESMTP id B29E3F77; Fri, 2 Dec 2005 15:47:17 +0100 (NFT) Received: from ice.irfu.se (ice.irfu.se [130.238.30.157]) (authenticated bits=0) by hq.irfu.se (8.13.4/8.13.4) with ESMTP id jB2ElGkx037263 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 2 Dec 2005 15:47:17 +0100 (CET) (envelope-from yuri@irfu.se) From: Yuri Khotyaintsev Organization: Swedish Institute of Space Physics To: John Baldwin Date: Fri, 2 Dec 2005 15:47:16 +0100 User-Agent: KMail/1.8.3 References: <200512021100.03167.yuri@irfu.se> <200512020854.20959.jhb@freebsd.org> In-Reply-To: <200512020854.20959.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512021547.16841.yuri@irfu.se> X-Spam-Status: No, score=-1.4 required=7.0 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on hq.irfu.se X-Mailman-Approved-At: Fri, 02 Dec 2005 14:54:09 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Fatal trap 12: page fault while in kernel mode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 14:47:31 -0000 On Friday 02 December 2005 14.54, John Baldwin wrote: > On Friday 02 December 2005 05:00 am, Yuri Khotyaintsev wrote: > > I have the following panic occurring several times a week. The machine = is > > an NFS server, and it usually panics early in the morning, when first > > people try to access it. After reboot it may work OK for 1-2 days, and > > then panics again. I have tried changing memory and replacing disk which > > was exported via NFS, but nothing helped :( > > > > Any suggestion on how to fix this panic will be very much appreciated ! > > This panic (in propagate_priority) is usually caused when a thread goes to > sleep while holding a mutex (which is forbidden). If you enable INVARIAN= TS > and/or WITNESS you should get a better panic, and with WITNESS you will > even be warned when a thread goes to sleep while holding a mutex. Howeve= r, > these options do introduce considerable execution overhead, and sometimes > that overhead changes the timing enough to hide the race. :( I am compiling a new kernel with INVARIANTS and WITNESS now. Will wait for = a=20 "better" panic ;-) =2D-=20 Dr. Yuri Khotyaintsev Institutet f=F6r rymdfysik (IRF), Uppsala From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 3 00:51:06 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 3AECA16A420; Sat, 3 Dec 2005 00:51:06 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB11043D53; Sat, 3 Dec 2005 00:51:05 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 380852AF4E; Fri, 2 Dec 2005 18:51:05 -0600 (CST) Date: Fri, 2 Dec 2005 18:51:04 -0600 From: Craig Boston To: John Baldwin Message-ID: <20051203005104.GA22567@nowhere> References: <20051130020734.GA6577@nowhere> <200512011342.19417.jhb@freebsd.org> <20051202013146.GA15424@nowhere> <200512020817.55769.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512020817.55769.jhb@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, imp@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 00:51:06 -0000 On Fri, Dec 02, 2005 at 08:17:53AM -0500, John Baldwin wrote: > If an MADT exists we do use the APIC and don't use ATPICs. That's > normal. > > > 2. I "solved" the previous problem by modifying the ASL to assume > > PIC mode, and then the tunables started working. It was only able > > to move devices on the "near" side of the bridge (i.e. on pci0), but > > they did work briefly on IRQ 10 before freezing just as before. > > You shouldn't have to do that. The ACPI standard clearly states that > machines boot up in PIC mode by default and you only need to call _PIC > to switch to either APIC or SAPIC (ia64) mode. Yeah, that was my bad. I misread apic_register_enumerator as acpi_register_enumerator. After tracing it down I see that the MADT check is called after the check for hint.apic.0.disabled. > Did you disable APIC before trying the tunables BTW? Yes, however the first time I only tried tunables for LNKA, B, and C (was typing them by hand). Later I tried with loader.conf and set all 8. Another odd thing is that the dmesg lines for the LNK objects still report irq 11, though the devices themselves do attach to 10. > Interesting. How about IRQ 11 in non-APIC mode, is it programmed to > level/low? If it's not mentioned in verbose dmesg, how do I tell what it's programmed to? Is there already some way to do it that's easier than writing something to read the PIC registers? > hw.pci9.1.INTA.irq=11 > Also, try this hint with ACPI without APIC. It looks like your BIOS doesn't > include entries for the PCI9 bus in the PIC version of the _PRT (see no PRT > messages in ACPI dmesg) so cbb0 doesn't get an IRQ there either. The hint "works" with ACPI, in that cbb0 attaches. However by the time I'm able to insert a card, irq 11 has already died so nothing happens. Craig From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 3 01:26:12 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 1A46D16A422; Sat, 3 Dec 2005 01:26:12 +0000 (GMT) (envelope-from aanton@spintech.ro) Received: from smtpx.spintech.ro (smtpx.spintech.ro [81.180.92.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF70D43D5E; Sat, 3 Dec 2005 01:26:00 +0000 (GMT) (envelope-from aanton@spintech.ro) Received: from laura-axiomeda (unknown [11.0.0.25]) by smtpx.spintech.ro (Postfix) with ESMTP id 705E73A4AC; Sat, 3 Dec 2005 01:33:28 +0000 (UTC) X-Laura: version 0.0.1b10-frustratus proxied X-Laura-Remote-IP: 10.0.0.2 Received: from [10.0.0.2] (beastie [10.0.0.2]) by smtpx.spintech.ro (Postfix) with ESMTP id D15223A4A6; Sat, 3 Dec 2005 01:33:27 +0000 (UTC) Message-ID: <4390F425.5060600@spintech.ro> Date: Sat, 03 Dec 2005 03:25:57 +0200 From: Alin-Adrian Anton Organization: Spintech Security Systems User-Agent: Mozilla Thunderbird 1.0 (X11/20041229) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Watson References: <438F00D8.4040302@spintech.ro> <79722fad0512010559n29e957f5j47c99586ebbd3a0f@mail.gmail.com> <20051201150949.W56270@fledge.watson.org> In-Reply-To: <20051201150949.W56270@fledge.watson.org> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Vlad GALU Subject: Re: cwnd and sstresh monitor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aanton@spintech.ro List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 01:26:12 -0000 Robert Watson wrote: > > On Thu, 1 Dec 2005, Vlad GALU wrote: > >> On 12/1/05, Alin-Adrian Anton wrote: >> >>> Dear Hackers, >>> >>> I would like to monitor the changes of cwnd and sstresh >>> values during >>> TCP traffic, in order to plot graphs and interpret congestion. >>> >>> So I need (cwnd, timestamp) and (sstresh, timestamp) records >>> to be >>> taken everytime one of the two variables is modified. >>> >>> I'd like to ask you for suggestions, which would be the best >>> aproach >>> (kernel patch, kernel module, etc?), and how would this be done best? >>> (the interception of values, the storage of snapshots, etc)? >>> >> >> Does exporting them via sysctl, and graph them using anything >> (rrdtool) sound reasonable ? I thought about this too, however, this loses precision and provides constant units of time. Knowing the timestamps for each packet may be interesting to underline timeouts on the graphic. > > > I've not used it, but there is a TCPDEBUG kernel option that gathers TCP > state information for debugging and tracing purposes. I know this has > been used quite effectively in the past for this sort of work, but > unfortunately I know very little about it. With all the TCP changes in > the last few years (SACK, etc), it could be that it needs some > enhancements, cleanups, fixes, etc. > I used it now, and with a small patch it shows exactly what I need (seq, ack, timestamp, cwnd and ssthresh). I just added my knob to trpt.c . I also modified the iptime() function to provide microsecond resolution instead of miliseconds, because most of the packets have the same timestamp attached. Still, a decent number of packets have the same timestamp. I'm looking at them only on one side of the connection (the transmitter), I wonder if there is any better solution then timestamping them on both sides - and mixing the values. Thanks guys for the precious information, it helped a lot! Yours Sincerely, -- Alin-Adrian Anton GPG keyID 0x183087BA (B129 E8F4 7B34 15A9 0785 2F7C 5823 ABA0 1830 87BA) gpg --keyserver pgp.mit.edu --recv-keys 0x183087BA "It is dangerous to be right when the government is wrong." - Voltaire From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 3 01:43:57 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 D16F716A41F; Sat, 3 Dec 2005 01:43:57 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62DE443D5E; Sat, 3 Dec 2005 01:43:57 +0000 (GMT) (envelope-from craig@tobuj.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 21C262BF5B; Fri, 2 Dec 2005 19:43:57 -0600 (CST) Date: Fri, 2 Dec 2005 19:43:56 -0600 From: Craig Boston To: John Baldwin Message-ID: <20051203014356.GC22567@nowhere> References: <20051130020734.GA6577@nowhere> <200512011342.19417.jhb@freebsd.org> <20051202013146.GA15424@nowhere> <200512020817.55769.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512020817.55769.jhb@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, imp@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 01:43:58 -0000 On Fri, Dec 02, 2005 at 08:17:53AM -0500, John Baldwin wrote: > > Argh, this is driving me up the wall. I had a hunch that it was somehow > > connected to level-triggered interrupts. That seems to not be the case, > > as upon closer inspection the SCI interrupt (9) gets reprogrammed to > > level/low. I can read the ACPI status all day long and the count for > > IRQ 9 goes up and up without freezing... > > Interesting. How about IRQ 11 in non-APIC mode, is it programmed to > level/low? I've seen BIOSes that do very stupid things like have the link > devices set to level/hi or edge/lo or even edge/hi. A verbose boot should > tell you if any settings are changed though, and in the APIC case you should > see the initial defaults as well. Added some printfs to i386/isa/atpic.c. At bootup, everything is programmed by the BIOS to edge/high, except IRQ 11 which is set to level/low. FreeBSD doesn't seem to be changing that as far as I can tell. (this is -APIC -ACPI) Craig From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 3 18:47:34 2005 Return-Path: X-Original-To: hackers@freebsd.org 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 948EE16A420 for ; Sat, 3 Dec 2005 18:47:34 +0000 (GMT) (envelope-from kbottner@comcast.net) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE02B43D49 for ; Sat, 3 Dec 2005 18:47:33 +0000 (GMT) (envelope-from kbottner@comcast.net) Received: from juxtapose (c-67-162-177-139.hsd1.tx.comcast.net[67.162.177.139]) by comcast.net (sccrmhc11) with SMTP id <2005120318473201100aidcae>; Sat, 3 Dec 2005 18:47:32 +0000 From: "Keith Bottner" To: "FreeBSD Hackers" Date: Sat, 3 Dec 2005 12:47:12 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Thread-Index: AcX4OffUH8H8Y/S8T4y9fXEH1099nQ== Message-Id: <20051203184733.DE02B43D49@mx1.FreeBSD.org> Cc: Subject: Building an ISO installer, docs anyone? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 18:47:34 -0000 I am interested in the process used for building the FreeBSD CD iso images that are then distributed on the net. I was wondering if anyone has any knowledge of documentation, HOWTOs, HTML, etc that could help me find anything regarding this information. Thanks, Keith From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 3 18:58:23 2005 Return-Path: X-Original-To: hackers@freebsd.org 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 9F55E16A41F for ; Sat, 3 Dec 2005 18:58:23 +0000 (GMT) (envelope-from rink@charm.il.fontys.nl) Received: from mail.unilogicnetworks.net (mail-out.unilogicnetworks.net [62.133.192.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1141D43D53 for ; Sat, 3 Dec 2005 18:58:22 +0000 (GMT) (envelope-from rink@charm.il.fontys.nl) Received: from mail.il.fontys.nl (unknown [194.26.13.7]) by mail.unilogicnetworks.net (Postfix) with ESMTP id 408EDEF1EB; Sat, 3 Dec 2005 19:58:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.il.fontys.nl (Postfix/VSRI) with ESMTP id 848DB1704F; Sat, 3 Dec 2005 20:02:54 +0100 (CET) Received-Locally: from mail.il.fontys.nl ([127.0.0.1]) by localhost (sukke.il.fontys.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 49116-07; Sat, 3 Dec 2005 20:02:54 +0100 (CET) Received: from charm.il.fontys.nl (www.il.fontys.nl [IPv6:2001:4128:1000:1000::10]) by mail.il.fontys.nl (Postfix) with ESMTP; Sat, 3 Dec 2005 20:02:54 +0100 (CET) Received: by charm.il.fontys.nl (Postfix, from userid 1678) id A60994045; Sat, 3 Dec 2005 19:57:39 +0100 (CET) Date: Sat, 3 Dec 2005 19:57:39 +0100 From: Rink Springer To: Keith Bottner Message-ID: <20051203185739.GA54605@il.fontys.nl> References: <20051203184733.DE02B43D49@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <20051203184733.DE02B43D49@mx1.FreeBSD.org> X-Editor: Vim http://www.vim.org/ X-Info: http://rink.nu/ X-Operating-System: FreeBSD 6.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at il.fontys.nl Cc: FreeBSD Hackers Subject: Re: Building an ISO installer, docs anyone? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 18:58:23 -0000 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, > I am interested in the process used for building the FreeBSD CD iso images > that are then distributed on the net. I was wondering if anyone has any > knowledge of documentation, HOWTOs, HTML, etc that could help me find > anything regarding this information. The release engineering page has a lot of details, you can find it at http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/index.html. Futhermore, 'man release' is quite verbose as well. --=20 Rink P.W. Springer - http://rink.nu "Richter: Tribute? You steal men's souls, and make them your slaves! Dracula: Perhaps the same could be said of all religions." - Castlevania: Symphony of the Night --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDkeqib3O60uztv/8RAmiqAKCec0Lj0NahOu+V1mQbUR8caFrZVACdGE1x 53TQd6tS4GqNz6KHnWho8/A= =E7CU -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn-- From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 3 19:06:05 2005 Return-Path: X-Original-To: hackers@freebsd.org 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 2CE1416A41F for ; Sat, 3 Dec 2005 19:06:05 +0000 (GMT) (envelope-from garyj@jennejohn.org) Received: from peedub.jennejohn.org (J8146.j.pppool.de [85.74.129.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A97643D5E for ; Sat, 3 Dec 2005 19:06:04 +0000 (GMT) (envelope-from garyj@jennejohn.org) Received: from jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.13.4/8.11.6) with ESMTP id jB3J5xhK010315; Sat, 3 Dec 2005 20:06:00 +0100 (CET) (envelope-from garyj@jennejohn.org) Message-Id: <200512031906.jB3J5xhK010315@peedub.jennejohn.org> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.0.4 To: "Keith Bottner" In-Reply-To: Message from "Keith Bottner" of "Sat, 03 Dec 2005 12:47:12 CST." <20051203184733.DE02B43D49@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 03 Dec 2005 20:05:59 +0100 From: Gary Jennejohn Cc: FreeBSD Hackers Subject: Re: Building an ISO installer, docs anyone? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 19:06:05 -0000 "Keith Bottner" writes: > I am interested in the process used for building the FreeBSD CD iso images > that are then distributed on the net. I was wondering if anyone has any > knowledge of documentation, HOWTOs, HTML, etc that could help me find > anything regarding this information. > release(7) and /usr/src/release. --- Gary Jennejohn / garyjATjennejohnDOTorg gjATfreebsdDOTorg garyjATdenxDOTde From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 3 21:35:46 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 D85E416A420; Sat, 3 Dec 2005 21:35:46 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2AAD43D5E; Sat, 3 Dec 2005 21:35:45 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 3086643 for multiple; Sat, 03 Dec 2005 16:33:47 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB3LZemW020949; Sat, 3 Dec 2005 16:35:40 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Craig Boston Date: Sat, 3 Dec 2005 16:29:19 -0500 User-Agent: KMail/1.8.3 References: <20051130020734.GA6577@nowhere> <200512020817.55769.jhb@freebsd.org> <20051203014356.GC22567@nowhere> In-Reply-To: <20051203014356.GC22567@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512031629.20992.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-hackers@freebsd.org, imp@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 21:35:47 -0000 On Friday 02 December 2005 08:43 pm, Craig Boston wrote: > On Fri, Dec 02, 2005 at 08:17:53AM -0500, John Baldwin wrote: > > > Argh, this is driving me up the wall. I had a hunch that it was > > > somehow connected to level-triggered interrupts. That seems to not be > > > the case, as upon closer inspection the SCI interrupt (9) gets > > > reprogrammed to level/low. I can read the ACPI status all day long a= nd > > > the count for IRQ 9 goes up and up without freezing... > > > > Interesting. How about IRQ 11 in non-APIC mode, is it programmed to > > level/low? I've seen BIOSes that do very stupid things like have the > > link devices set to level/hi or edge/lo or even edge/hi. A verbose boot > > should tell you if any settings are changed though, and in the APIC case > > you should see the initial defaults as well. > > Added some printfs to i386/isa/atpic.c. At bootup, everything is > programmed by the BIOS to edge/high, except IRQ 11 which is set to > level/low. FreeBSD doesn't seem to be changing that as far as I can > tell. (this is -APIC -ACPI) Ok. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 3 21:35:48 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 0FC3316A420; Sat, 3 Dec 2005 21:35:48 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A5F443D55; Sat, 3 Dec 2005 21:35:47 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 3086644 for multiple; Sat, 03 Dec 2005 16:33:49 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB3LZemX020949; Sat, 3 Dec 2005 16:35:42 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Craig Boston Date: Sat, 3 Dec 2005 16:30:58 -0500 User-Agent: KMail/1.8.3 References: <20051130020734.GA6577@nowhere> <200512020817.55769.jhb@freebsd.org> <20051203005104.GA22567@nowhere> In-Reply-To: <20051203005104.GA22567@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512031630.59476.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-hackers@freebsd.org, imp@freebsd.org Subject: Re: Weird PCI interrupt delivery problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 21:35:48 -0000 On Friday 02 December 2005 07:51 pm, Craig Boston wrote: > On Fri, Dec 02, 2005 at 08:17:53AM -0500, John Baldwin wrote: > Yes, however the first time I only tried tunables for LNKA, B, and C > (was typing them by hand). Later I tried with loader.conf and set all > 8. Another odd thing is that the dmesg lines for the LNK objects still > report irq 11, though the devices themselves do attach to 10. That's becuase the dmesg prints out what their current setting was before t= he=20 pci_link driver attached to them. It's basically what the BIOS set them up= =20 as. > > hw.pci9.1.INTA.irq=3D11 > > Also, try this hint with ACPI without APIC. It looks like your BIOS > > doesn't include entries for the PCI9 bus in the PIC version of the _PRT > > (see no PRT messages in ACPI dmesg) so cbb0 doesn't get an IRQ there > > either. > > The hint "works" with ACPI, in that cbb0 attaches. However by the time > I'm able to insert a card, irq 11 has already died so nothing happens. Grrr. I'm pretty much out of ideas at this point. At least you have it=20 working in -ACPI -APIC mode. :-/ =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org