From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 7 20:49:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6877616A4CE for ; Sat, 7 Aug 2004 20:49:47 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (80-219-164-131.dclient.hispeed.ch [80.219.164.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C30843D41 for ; Sat, 7 Aug 2004 20:49:44 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:50db:a483:0:20e:2eff:fe06:2376]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id i77KneT00933 verified NO) for ; Sat, 7 Aug 2004 22:49:42 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id i77KneE00932; Sat, 7 Aug 2004 22:49:40 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Sat, 7 Aug 2004 22:49:40 +0200 (CEST) Message-Id: <200408072049.i77KneE00932@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma To: FreeBSD Hackers X-Mailman-Approved-At: Sun, 08 Aug 2004 11:48:37 +0000 Subject: ISA card and if_ed as module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 20:49:47 -0000 [keep replies to the list and I'll catch up later, thanks] Hallowed hackers: Is it to be expected that the kernel if_ed.ko module appears to be unable to probe and attach an ISA NIC, while when I build the ed* support into the kernel, it works? This is with RELENG_4. Or should kernel modules be able to probe and attach ISA as well as pci/pccard devices? Sorry if this is a questions@ type of question, but I'd like an explanation too... I've added a bunch of debuggery to see which routines get invoked at `kldload' time. I see that ed_pci_probe is called a couple of times, and at boot a couple more times. However, in neither case does my debugging to indicate that any ISA probe might be happening, show up, which reflects the total absence of any ed0 messages at boot, unless I build the device into the kernel. If there's a good reason why, I'll be happy to keep ed* in my kernel (maybe, I'm not sure if the presence of `miibus' as well causes problems with the autoloading of module miibus when other NIC modules get loaded...) thanks barry bouwsma From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 8 14:45:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D17CC16A4CE for ; Sun, 8 Aug 2004 14:45:06 +0000 (GMT) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id F012843D39 for ; Sun, 8 Aug 2004 14:45:05 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.12.11/8.12.11) with ESMTP id i78Ej0SD005665 for ; Sun, 8 Aug 2004 10:45:00 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.11/8.12.11/Submit) id i78Ej0bs005658 for freebsd-hackers@freebsd.org; Sun, 8 Aug 2004 10:45:00 -0400 (EDT) (envelope-from bv) Date: Sun, 8 Aug 2004 10:45:00 -0400 From: Bill Vermillion To: freebsd-hackers@freebsd.org Message-ID: <20040808144459.GB5303@wjv.com> References: <20040808120050.9052B16A4CE@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040808120050.9052B16A4CE@hub.freebsd.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.6i Subject: Re: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2004 14:45:06 -0000 > Send freebsd-hackers mailing list submissions to > freebsd-hackers@freebsd.org > ------------------------------ > Message: 2 > Date: Fri, 6 Aug 2004 18:13:51 -0700 (PDT) > From: stheg olloydson > Subject: Re: Fwd: How to read bad blocks error message & marking of > same > To: questions@FreeBSD.ORG > Cc: hackers@FreeBSD.ORG > Message-ID: <20040807011351.51693.qmail@web61309.mail.yahoo.com> > Content-Type: text/plain; charset=us-ascii ** [the posted message had the original writers attributions removed ** - I've reformated to take out excessive >'s inserted by one of ** the posters mail reader/reply system and to bring back standard ** paragraph formatting and line lengths. I used 'par' from the ** /usr/ports/textproc in FreeBSD - wjv] > it was said: > > > >>>Modern drives deal with bad block substitution all by > > > >>>themselves. > > > >>Umm - not quite, right? That is, if a block "goes bad" > > > >>and you get a read error, the drive isn't going to do any > > > >>"substituting" at that point. You'll just continue to get > > > >>the read error if you try to access (read) that block. > > > >>It's only when you allow another *write* to that block > > > >>(e.g. by deleting the original file and writing new files) > > > >>that the drive will automatically substitute a spare block > > > >>for the one that went bad. > > > >SCSI drives, at least, may do automatic reallocation on > > > >both reads and writes ( camcontrol mode da0 -m 1, the ARRE > > > >and AWRE flags ). If the drive had to reread the block or > > > >had to use ECC to recover data, AND the entire block was > > > >recovered, it will relocate the data if ARRE is set. > > > Good to know, although I stopped buying SCSI disks (for home > > > use) years ago. I presumed the more common case these days, > > > that we were talking about IDE disks. In fact doesn't this > > > (from the original question): > > > ad0s1a: hard error > > > necessarily refer to an ATA (IDE) disk? I don't believe > > > any (current) ATA disks will do automatic reallocation on > > > reads, will they? Though of course serial ATA drives seem to > > > be "the future" and are taking on more and more SCSI-like > > > features as time goes by. > > Both ATA and SCSI drives may relocate blocks that were difficult > > to read (e.g. correctable errors, took multiple attempts, etc). > > But if the block can't be recovered at all, the drive will still > > report an error to the OS (in addition to relocation). > Hello, > A tool that all may find useful is SpinRite 6.0 available from > Gibson Research at http://www.grc.com/sr/spinrite.htm. It's not > open source or freeware but anybody with an Intel, AMD, or TiVO > system that uses a harddrive ought to have it. Note: I am in > no way affiliated with Gibson Research, other than having used > SpinRite since the days of manually interleaving MFM drives. Having watched Gibson Reasearch from it's earliest days I've formed the personal opinion that Steve spreads a lot of FUD that may have a grain of truth but takes that grain and sows and entire field with it. I've also been using Unix systems since 1983 and Gibson's products are targetted more toward the MS world. He originally promoted his products with the idea that you had to reformat the hard drive every few months as the domains start losing their magnetiziation. That's pretty much hogwash. However what he said may have been true but not for the reasons he stated. HDs all used stepper motors in that era. His program could overcome the problem that a worn stepper could cause - not positioning properly over the tracks as they were originally formatted with new steppers. Then we went to dedicated servo platters - which elminated the stepper but that >could< have problems if the heads on the stalks changed for some reason. Embedded servo writing took care of all that as the servo was in the same track as the data and was self-aligning. Spinrite or others are a very good tool in the MS oriented world, but I find them [my own observation and that of people I know and trust] un-needed in Unix systems if you use decent hardware. The Spinrite article says a drive may last a decade if you turn it and the computer off every night. Other shcools of thought say that can cause more problems than it cures as you have daily current inrush and thermal changes. I've never had a drive last a decade as I've always needed something larger. My two longest lasting HDs were both running 24x7 - one on a news machine and one on a mail server. The first was an ESDI with additional sectors on each track so that any failed read would turn on ECC and the track would be re-written with the bad sector numbered as zero and hence invisiible. If you used up the spare sector then the ECC would write that track to a new track and make the old track invisible. This was in the HD and totally transparent to the OS. That drive ran for 7 years 2 months and 2 weeks. I would see the notifications in a message to the console any time a track was reformatted and/or moved to another place. I decided to see how long the drive would go - and in the end I was unable to determine if the drive failed or the controller failed. And by that time 15Mhz ESDI controllers were impossible to find. The drive was a Maxtor. The other drive that ran almost 7 years migrated from one ISP to another. I replaced it after I made one of my rare trips to the colo and noticed there was noise from the HD that was heard above the noise of the 4 Liebert air-handlers in the colo. That was a SCSI 'cudda. The bearings were getting really bad. As one of the other posters notice SCSI and drives designed for server work - not made to be the cheapest desk-top just run and run. I bought a half-dozen 'as-is' HDs that had been pulled. A couple were totally shot. These were IDE in the 10MB range. I dl'ed the manufacturers utitlities for the drives that had them, ran them, and things came to life. I found Spanish versions of Windows. The MS format and 'recovery' utilities had failed on these, just as Spinrite indicates. I've found no need for things such as SpinRite in the Unix world. I'd like to hear from others who have found the opposite. Bill -- Bill Vermillion - bv @ wjv . com From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 01:08:30 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F002E16A4CE for ; Mon, 9 Aug 2004 01:08:29 +0000 (GMT) Received: from sana.init-main.com (104.194.138.210.bn.2iij.net [210.138.194.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4436C43D5E for ; Mon, 9 Aug 2004 01:08:29 +0000 (GMT) (envelope-from takawata@init-main.com) Received: from init-main.com (localhost [127.0.0.1]) by sana.init-main.com (8.12.11/8.12.11) with ESMTP id i7918C9x060958 for ; Mon, 9 Aug 2004 10:08:12 +0900 (JST) (envelope-from takawata@init-main.com) Message-Id: <200408090108.i7918C9x060958@sana.init-main.com> To: freebsd-hackers@freebsd.org From: takawata@jp.freebsd.org Date: Mon, 09 Aug 2004 10:08:12 +0900 Sender: takawata@init-main.com Subject: Driver for Thinkpad Hotkeys. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 01:08:30 -0000 Hi, I updated ThinkPad Hotkey driver so that it can * Read Brightness * Read Volume * Read Mute status * Read Keylight status * AccessIBM, Zoom Screen(Fn+Sp) toggle. ToDo lists * Set Brightness * Set Volume * Bluetooth attach/detach. * Userland worker. These features will come Real Soon Now. * Wireless LAN indicator Will be take more time. I wrote for ThinkPad X31, but it may work on some other ThinkPad X,R,T,S series. Enjoy! http://www.init-main.com/acpi_tpkey/ From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 02:03:29 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C6C016A4CE for ; Mon, 9 Aug 2004 02:03:29 +0000 (GMT) Received: from coruscant.rfc1149.org (coruscant.rfc1149.org [217.160.130.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 345EF43D39 for ; Mon, 9 Aug 2004 02:03:29 +0000 (GMT) (envelope-from arne@rfc2549.org) Received: by coruscant.rfc1149.org (Postfix, from userid 110) id 481733CE5; Mon, 9 Aug 2004 04:03:28 +0200 (CEST) Received: from kamino.rfc1149.org (kamino.rfc1149.org [2001:8d8:81:11::2]) by coruscant.rfc1149.org (Postfix) with ESMTP id 98EBF3CA3; Mon, 9 Aug 2004 04:03:24 +0200 (CEST) Received: by kamino.rfc1149.org (Postfix, from userid 1001) id 9090D40D3; Mon, 9 Aug 2004 04:03:18 +0200 (CEST) To: takawata@jp.freebsd.org In-Reply-To: <200408090108.i7918C9x060958@sana.init-main.com>+0900") References: <200408090108.i7918C9x060958@sana.init-main.com> From: Arne Schwabe Date: Mon, 09 Aug 2004 04:03:18 +0200 Message-ID: <86k6w92hll.fsf@kamino.rfc1149.org> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on coruscant.rfc1149.org X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Level: cc: freebsd-hackers@freebsd.org Subject: Re: Driver for Thinkpad Hotkeys. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 02:03:29 -0000 takawata@jp.freebsd.org writes: > > * Wireless LAN indicator > > Will be take more time. > IIrc correct the WLAN indicator is wired to the minipci for Thinkpads, at least the linux madwifi (which is basically our ath driver but our ath has not been updated for some very long time) has support for the IBM thinkpad wlan led. Maybe that is not the only method of talking to the LED :) Arne From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 03:24:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50A5516A4CE for ; Mon, 9 Aug 2004 03:24:35 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6063D43D1F for ; Mon, 9 Aug 2004 03:24:34 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 371F465211; Mon, 9 Aug 2004 04:24:32 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 49103-03; Mon, 9 Aug 2004 04:24:31 +0100 (BST) Received: from empiric.dek.spc.org (dhcp94.icir.org [192.150.187.94]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 1BEBE651EB; Mon, 9 Aug 2004 04:24:23 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 3AD0C62C9; Sun, 8 Aug 2004 20:24:20 -0700 (PDT) Date: Sun, 8 Aug 2004 20:24:20 -0700 From: Bruce M Simpson To: Arne Schwabe Message-ID: <20040809032419.GA5037@empiric.icir.org> Mail-Followup-To: Arne Schwabe , takawata@jp.freebsd.org, freebsd-hackers@freebsd.org References: <200408090108.i7918C9x060958@sana.init-main.com> <86k6w92hll.fsf@kamino.rfc1149.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86k6w92hll.fsf@kamino.rfc1149.org> cc: freebsd-hackers@freebsd.org Subject: Re: Driver for Thinkpad Hotkeys. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 03:24:35 -0000 On Mon, Aug 09, 2004 at 04:03:18AM +0200, Arne Schwabe wrote: > IIrc correct the WLAN indicator is wired to the minipci for Thinkpads, > at least the linux madwifi (which is basically our ath driver but our > ath has not been updated for some very long time) has support for the > IBM thinkpad wlan led. Maybe that is not the only method of talking to > the LED :) GPIO pins, twiddled by the driver, according to Sam. The madwifi stuff does this. A more significant backport of ath features should really be done. If I find time, I'll certainly help, given that ath is now my primary wireless connection. BMS From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 09:43:25 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC20D16A4CE for ; Mon, 9 Aug 2004 09:43:25 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F8D443D1F for ; Mon, 9 Aug 2004 09:43:25 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1Bu6ge-000PcT-JY for freebsd-hackers@freebsd.org; Mon, 09 Aug 2004 12:43:24 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 09 Aug 2004 12:43:24 +0300 From: Danny Braniss Message-Id: <20040809094325.6F8D443D1F@mx1.FreeBSD.org> Subject: how to logically disable memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 09:43:25 -0000 hi, is there an 'easy' way to mark some memory as unusable? thanks, danny From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 8 20:00:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E9BD16A4CE for ; Sun, 8 Aug 2004 20:00:11 +0000 (GMT) Received: from smtp2.fuse.net (mail-out2.fuse.net [216.68.8.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE03D43D2D for ; Sun, 8 Aug 2004 20:00:10 +0000 (GMT) (envelope-from cokane@cokane.org) Received: from gx4.fuse.net ([216.196.253.14]) by smtp2.fuse.net (InterMail vM.6.01.03.03 201-2131-111-105-20040624) with ESMTP id <20040808200009.WJLR969.smtp2.fuse.net@gx4.fuse.net> for ; Sun, 8 Aug 2004 16:00:09 -0400 Received: from [192.168.1.33] (really [216.196.253.14]) by gx4.fuse.net (InterMail vG.1.00.00.00 201-2136-104-20040331) with ESMTP id <20040808200009.JUHH9892.gx4.fuse.net@[192.168.1.33]>; Sun, 8 Aug 2004 16:00:09 -0400 From: Coleman Kane To: Maksim Yevmenkin In-Reply-To: <41140139.5080803@savvis.net> References: <346a8022040806145018a5e18@mail.gmail.com> <41140139.5080803@savvis.net> Content-Type: text/plain Message-Id: <1091995205.13151.7.camel@schizophreniac> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 08 Aug 2004 16:00:05 -0400 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 09 Aug 2004 11:59:56 +0000 cc: hackers@freebsd.org Subject: Re: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2004 20:00:11 -0000 That patch seems to have fixed it. It seemed strange that setting an inet address to the interface set it running, however setting the inet6 does not do this. It is possible this behavior affacts other interface types as well? On Fri, 2004-08-06 at 18:07, Maksim Yevmenkin wrote: > > 2) Is there a way to set this interface flag without assigning an IPv4 > > address (or any address for that matter) first? > > > > Mainly for number two, I would like to be able to run interfaces > > bridged together without having to also give all of them addresses. > > please try the attached (untested!) patch. it should set iff_running > flag on the interface as soon as the control device is opened. > > max > > ______________________________________________________________________ > --- if_tap.c.orig Fri Aug 6 15:02:06 2004 > +++ if_tap.c Fri Aug 6 15:04:14 2004 > @@ -336,15 +336,15 @@ > tapopen(dev, flag, mode, td) > struct cdev *dev; > int flag; > int mode; > struct thread *td; > { > struct tap_softc *tp = NULL; > - int error; > + int error, s; > > if ((error = suser(td)) != 0) > return (error); > > if ((dev2unit(dev) & CLONE_UNITMASK) > TAPMAXUNIT) > return (ENXIO); > > @@ -365,14 +365,19 @@ > return (EBUSY); > } > > bcopy(tp->arpcom.ac_enaddr, tp->ether_addr, sizeof(tp->ether_addr)); > tp->tap_pid = td->td_proc->p_pid; > tp->tap_flags |= TAP_OPEN; > mtx_unlock(&tp->tap_mtx); > + > + s = splimp(); > + tp->tap_if.if_flags |= IFF_RUNNING; > + tp->tap_if.if_flags &= ~IFF_OACTIVE; > + splx(s); > > TAPDEBUG("%s is open. minor = %#x\n", > tp->tap_if.if_xname, minor(dev)); > > return (0); > } /* tapopen */ > From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 15:53:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D482616A4CE for ; Mon, 9 Aug 2004 15:53:06 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72F1F43D4C for ; Mon, 9 Aug 2004 15:53:06 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i79FoOPL060048 for ; Mon, 9 Aug 2004 09:50:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 09 Aug 2004 09:50:23 -0600 (MDT) Message-Id: <20040809.095023.103125553.imp@bsdimp.com> To: freebsd-hackers@freebsd.org From: "M. Warner Losh" In-Reply-To: <200408072049.i77KneE00932@Mail.NOSPAM.DynDNS.dK> References: <200408072049.i77KneE00932@Mail.NOSPAM.DynDNS.dK> 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 Subject: Re: ISA card and if_ed as module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 15:53:07 -0000 In message: <200408072049.i77KneE00932@Mail.NOSPAM.DynDNS.dK> Barry Bouwsma writes: : Is it to be expected that the kernel if_ed.ko module appears to : be unable to probe and attach an ISA NIC, while when I build the : ed* support into the kernel, it works? This is with RELENG_4. Yes and No. If the ISA nic is PNP, it will just work. IF not, you have to have the 'hints' in the kernel. I have the hints framework backported, but I don't know if it was ever committed. : Or should kernel modules be able to probe and attach ISA as well : as pci/pccard devices? Sorry if this is a questions@ type of : question, but I'd like an explanation too... pci and pccard are like PNP because the busses are self identifying. ISA generally isn't a self identifying bus (but pnp changes it just enough to make things automatic). : I've added a bunch of debuggery to see which routines get invoked : at `kldload' time. I see that ed_pci_probe is called a couple of : times, and at boot a couple more times. However, in neither case : does my debugging to indicate that any ISA probe might be happening, : show up, which reflects the total absence of any ed0 messages at : boot, unless I build the device into the kernel. Right. Adding it to the config file puts the 'hints' in the right place. : If there's a good reason why, I'll be happy to keep ed* in my kernel : (maybe, I'm not sure if the presence of `miibus' as well causes : problems with the autoloading of module miibus when other NIC : modules get loaded...) I think you should for 4.x. In 5, you can set the hints directly and leave it as automatic loading. Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 18:56:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 937CB16A4CE for ; Mon, 9 Aug 2004 18:56:17 +0000 (GMT) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA6DA43D5E for ; Mon, 9 Aug 2004 18:56:16 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr1.xs4all.nl (8.12.11/8.12.11) with ESMTP id i79IuFnM056907 for ; Mon, 9 Aug 2004 20:56:15 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.11/8.12.9) with ESMTP id i79IuF9g060540 for ; Mon, 9 Aug 2004 20:56:15 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.12.11/8.12.11/Submit) id i79IuFjl060539 for hackers@freebsd.org; Mon, 9 Aug 2004 20:56:15 +0200 (CEST) (envelope-from wb) Date: Mon, 9 Aug 2004 20:56:15 +0200 From: Wilko Bulte To: hackers@freebsd.org Message-ID: <20040809185615.GA60496@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-OS: FreeBSD 4.10-STABLE X-PGP: finger wilko@freebsd.org X-Virus-Scanned: by XS4ALL Virus Scanner Subject: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 18:56:17 -0000 How standard are DVD writers these days? In the sense of: can I expect an ATAPI DVDwriter to 'just work' with FreeBSD or are there brands/models to avoid or to prefer? Any experiences with a NEC ND-2510 ? Good/bad? -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 19:46:08 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF47416A4CE for ; Mon, 9 Aug 2004 19:46:08 +0000 (GMT) Received: from tinker.exit.com (tinker.exit.com [206.223.0.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54AE843D54 for ; Mon, 9 Aug 2004 19:46:08 +0000 (GMT) (envelope-from frank@exit.com) Received: from realtime.exit.com (realtime [206.223.0.5]) by tinker.exit.com (8.12.11/8.12.9) with ESMTP id i79Jjnoe024816; Mon, 9 Aug 2004 12:45:49 -0700 (PDT) (envelope-from frank@exit.com) Received: from realtime.exit.com (localhost [127.0.0.1]) by realtime.exit.com (8.12.11/8.12.9) with ESMTP id i79Jjnaw066589; Mon, 9 Aug 2004 12:45:49 -0700 (PDT) (envelope-from frank@realtime.exit.com) Received: (from frank@localhost) by realtime.exit.com (8.12.11/8.12.11/Submit) id i79JjnW2066588; Mon, 9 Aug 2004 12:45:49 -0700 (PDT) (envelope-from frank) From: Frank Mayhar Message-Id: <200408091945.i79JjnW2066588@realtime.exit.com> In-Reply-To: <20040809185615.GA60496@freebie.xs4all.nl> To: Wilko Bulte Date: Mon, 9 Aug 2004 12:45:49 -0700 (PDT) X-Copyright0: Copyright 2004 Frank Mayhar. All Rights Reserved. X-Copyright1: Permission granted for electronic reproduction as Usenet News or email only. X-Mailer: ELM [version 2.4ME+ PL116 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: frank@exit.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 19:46:08 -0000 Wilko Bulte wrote: > Any experiences with a NEC ND-2510 ? Good/bad? I just bought one of these wrapped in an IDE<->USB/Firewire interface. I haven't tried the dual-layer disks yet (none lying around), but it appears to work just fine with regular DVD+R. The only gotcha is that USB is really too slow; I'll be connecting it via firewire shortly. Otherwise, no problems so far. -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/ From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 20:29:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AF8C16A4CE for ; Mon, 9 Aug 2004 20:29:54 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id A399743D39 for ; Mon, 9 Aug 2004 20:29:53 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i79KTkp1044155; Mon, 9 Aug 2004 22:29:51 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4117DEAF.1000500@DeepCore.dk> Date: Mon, 09 Aug 2004 22:29:35 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Wilko Bulte References: <20040809185615.GA60496@freebie.xs4all.nl> In-Reply-To: <20040809185615.GA60496@freebie.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-mail-scanned: by DeepCore Virus & Spam killer v1.4 cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 20:29:54 -0000 Wilko Bulte wrote: > How standard are DVD writers these days? In the sense > of: can I expect an ATAPI DVDwriter to 'just work' > with FreeBSD or are there brands/models to avoid or > to prefer? >=20 > Any experiences with a NEC ND-2510 ? Good/bad? Bought one of those a couble of weeks ago, it has burnt CDR, CDRW,=20 DVD+/-R and DVD+/-RW media for me with no problems at all. Havn't tried=20 duallayer media yet as I havn't been able to locate any that didn't cost = an arm and a leg :) Oh, its slow for ripping as they have put in a lock for that, you can=20 get around it by loading new firmware that removes that lock (and region = locking as well if needed) from here http://tdb.rpc1.org/index.htm -S=F8ren From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 20:49:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FF9B16A4CE for ; Mon, 9 Aug 2004 20:49:16 +0000 (GMT) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD8543D41 for ; Mon, 9 Aug 2004 20:49:15 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) i79Kn8qH047302; Mon, 9 Aug 2004 22:49:08 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.11/8.12.9) with ESMTP id i79Kn7q5061565; Mon, 9 Aug 2004 22:49:07 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.12.11/8.12.11/Submit) id i79Kn7e6061564; Mon, 9 Aug 2004 22:49:07 +0200 (CEST) (envelope-from wb) Date: Mon, 9 Aug 2004 22:49:07 +0200 From: Wilko Bulte To: =?iso-8859-1?Q?S=F8ren?= Schmidt Message-ID: <20040809204907.GA61539@freebie.xs4all.nl> References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4117DEAF.1000500@DeepCore.dk> User-Agent: Mutt/1.4.1i X-OS: FreeBSD 4.10-STABLE X-PGP: finger wilko@freebsd.org X-Virus-Scanned: by XS4ALL Virus Scanner cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 20:49:16 -0000 On Mon, Aug 09, 2004 at 10:29:35PM +0200, Søren Schmidt wrote.. > Wilko Bulte wrote: > >How standard are DVD writers these days? In the sense > >of: can I expect an ATAPI DVDwriter to 'just work' > >with FreeBSD or are there brands/models to avoid or > >to prefer? > > > >Any experiences with a NEC ND-2510 ? Good/bad? > > Bought one of those a couble of weeks ago, it has burnt CDR, CDRW, > DVD+/-R and DVD+/-RW media for me with no problems at all. Havn't tried SOunds good... > duallayer media yet as I havn't been able to locate any that didn't cost > an arm and a leg :) > Oh, its slow for ripping as they have put in a lock for that, you can > get around it by loading new firmware that removes that lock (and region > locking as well if needed) from here http://tdb.rpc1.org/index.htm Ah, have you tried that f/w? thanks a bunch! W/ -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 21:14:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F08216A4CE for ; Mon, 9 Aug 2004 21:14:40 +0000 (GMT) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3841343D2D for ; Mon, 9 Aug 2004 21:14:40 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 9 Aug 2004 16:14:39 -0500 Received: from savvis.net ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 9 Aug 2004 16:14:39 -0500 Message-ID: <4117E93D.8060100@savvis.net> Date: Mon, 09 Aug 2004 14:14:37 -0700 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031207 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Coleman References: <346a8022040806145018a5e18@mail.gmail.com> <41140139.5080803@savvis.net> <1091862376.7840.3.camel@berloga.shadowland> <20040807092347.GB39835@comp.chem.msu.su> <1092084486.65806.12.camel@schemer> In-Reply-To: <1092084486.65806.12.camel@schemer> Content-Type: multipart/mixed; boundary="------------080009080300040502030002" X-OriginalArrivalTime: 09 Aug 2004 21:14:39.0408 (UTC) FILETIME=[E1844B00:01C47E55] cc: hackers@freebsd.org cc: Yar Tikhiy cc: Alex Lyashkov Subject: Re: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 21:14:40 -0000 This is a multi-part message in MIME format. --------------080009080300040502030002 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, > Here, I pushed that section of code up before the prior > mtx_unlock(&tp->tap_mtx) above it, then removed the splimp/splx > calls. Is this what you were referring to (attached)? Also, I noticed > splx and splimp are called in a number of other places in this > driver, even under -CURRENT. You want those out too? The patch is a > patch on the original -CURRENT version of the driver and not a patch > to the previous patch I received. ok, the "tap_mtx" lock is used to protect fields which belongs to the "struct tap_softc". the IFF_xxx flags are set in the "if_flags" field, which belongs to the "struct ifnet". note that other parts of the system will access the same "struct ifnet", and, thus separate lock is required to protect all fields inside the "struct ifnet". currently it is done (or rather not done) with splimp(9)/splx(9) calls. i guess this will be fixed some time in the future. my original patch was not 100% correct. i have attached better (imo) patch. please try it out, and, if there are no objections, i will commit it. thanks, max --------------080009080300040502030002 Content-Type: text/plain; name="if_tap.c.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="if_tap.c.diff.txt" --- if_tap.c.orig Fri Aug 6 15:02:06 2004 +++ if_tap.c Mon Aug 9 13:57:48 2004 @@ -340,7 +340,8 @@ struct thread *td; { struct tap_softc *tp = NULL; - int error; + struct ifnet *ifp = NULL; + int error, s; if ((error = suser(td)) != 0) return (error); @@ -368,10 +369,15 @@ bcopy(tp->arpcom.ac_enaddr, tp->ether_addr, sizeof(tp->ether_addr)); tp->tap_pid = td->td_proc->p_pid; tp->tap_flags |= TAP_OPEN; + ifp = &tp->tap_if; mtx_unlock(&tp->tap_mtx); - TAPDEBUG("%s is open. minor = %#x\n", - tp->tap_if.if_xname, minor(dev)); + s = splimp(); + ifp->if_flags |= IFF_RUNNING; + ifp->if_flags &= ~IFF_OACTIVE; + splx(s); + + TAPDEBUG("%s is open. minor = %#x\n", ifp->if_xname, minor(dev)); return (0); } /* tapopen */ --------------080009080300040502030002-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 00:24:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ADB416A4CE for ; Tue, 10 Aug 2004 00:24:26 +0000 (GMT) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B3D6D43D3F for ; Tue, 10 Aug 2004 00:24:25 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 48780 invoked from network); 10 Aug 2004 00:24:24 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 10 Aug 2004 00:24:24 -0000 X-pair-Authenticated: 209.68.2.70 Date: Mon, 9 Aug 2004 19:26:56 -0500 (CDT) From: Mike Silbersack To: Wilko Bulte In-Reply-To: <20040809204907.GA61539@freebie.xs4all.nl> Message-ID: <20040809192442.O715@odysseus.silby.com> References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> <20040809204907.GA61539@freebie.xs4all.nl> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-241309457-1092097616=:715" cc: hackers@freebsd.org cc: =?iso-8859-1?Q?S=F8ren?= Schmidt Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 00:24:26 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-241309457-1092097616=:715 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 9 Aug 2004, Wilko Bulte wrote: > On Mon, Aug 09, 2004 at 10:29:35PM +0200, S=F8ren Schmidt wrote.. >> duallayer media yet as I havn't been able to locate any that didn't cost >> an arm and a leg :) >> Oh, its slow for ripping as they have put in a lock for that, you can >> get around it by loading new firmware that removes that lock (and region >> locking as well if needed) from here http://tdb.rpc1.org/index.htm > > Ah, have you tried that f/w? > > thanks a bunch! > W/ > -- > Wilko Bulte=09=09=09=09wilko@FreeBSD.org I have a ND-1100A, and it has been working great with the modified=20 firmware. The 1100A only burns +R discs, but it has worked great for me=20 so far; I don't think that it has burned a single coaster yet. However, I have only used it under Windows, I can't speak for its FreeBSD= =20 compatibility. If I was to upgrade, I would definitely choose another NEC burner. (Which= =20 is funny, because I bought the original because it was the cheapest one=20 for sale at a local store at the time. Only after I got it home and out=20 of the box did I find out that it was a rebranded NEC. I'm lucky that I=20 didn't get a piece of junk!) Mike "Silby" Silbersack --0-241309457-1092097616=:715-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 01:29:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25B1916A4CE for ; Tue, 10 Aug 2004 01:29:50 +0000 (GMT) Received: from mail.asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E49043D1F for ; Tue, 10 Aug 2004 01:29:49 +0000 (GMT) SRS0=SKjgfk80=LA=asarian-host.net=admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.13.1/8.13.1) id i7A1TlgT013007 for freebsd-hackers@freebsd.org; Tue, 10 Aug 2004 03:29:47 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Received-SPF: pass (asarian-host.net: domain of admin@asarian-host.net designates sender IP as SASL permitted sender) Message-Id: <200408100129.I7A1TLSQ012997@asarian-host.net> Date: Tue, 10 Aug 2004 01:29:47 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: PJRuzc9EyJ2ct3C6YwTUXRyPlEFT/gnzkm/Leta67mQ4RD+W7FJn5unTt8uCFfUWn+08G2utGkIGrbuTln4ZTA== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers, otherwise we are unable to process your complaint Organization: Asarian-host To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Auth: Asarian-host PGP signature iQEVAwUAQRglCzFqW1BleBN9AQGdVwf/SeIqYsTNc153vDvM+62qhJi/FmPTIZzg M5KVGgu08dRMypHA5sE9Pjtj+kO8GONjxm89UprLO4X3+Ro6D/1dRIp9ASLfbkMS 1p4zhPcYS4pVYrMhvdeegMRACbLT3nCufK4IKOq6LcyH0Il6AgEW2scDBqiBdQAT OKoYBXqwLSeRJIso2VZ4JVi5Ei24i0EPNUPRPcLhM/4itN9GbmzujU5c0vndBaIk MLZ5JAUsw8ID8TCkKKvUOMS7Fm62A0Aq/+havdVl819IW9XuhC//6i9tovlq9Xei VtYb4Hj6wcAUYtVtem7wAgIsiDbWjefc3nUao9gqnL6M1wh7H3FJ3g== =JfNa cc: freebsd-questions@freebsd.org Subject: Fw: Only WDMA2? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 01:29:50 -0000 > Mark wrote: > >>>> In my FreeBSD 4.9R server, I use an ARAID99 1000L RAID system. >>>> However, it only runs at "WDMA2": >>>> >>>> Aug 9 21:08:36 asarian-host /kernel: ad0: 39205MB >>> 1000 Rev 2.5> [79656/16/63] at ata0-master WDMA2 >>> >>>> WDMA2 only offers 16 MB/s, whereas ATA133 of course, offers 133 >>>> MB/s. The question is, is there a reason FreeBSD only uses WDMA2 >>>> for this device? (it contains two MAXTOR 40G ATA133 disks, >>>> connected to an ATA133 IDE port as single master). >>>> >>>> Second question, subsidiary, can I force a higher mode than WDMA2? >>>> (like UDMA 133). > > > Allow me to give some additional info: > > /var/log/dmesg.today:ad0: 39205MB > [79656/16/63] at ata0-master WDMA2 > /var/log/dmesg.today:ad4: 78167MB [158816/16/63] at > ata2-master UDMA133 > /var/log/dmesg.today:acd0: CDROM at ata1-master PIO4 > /var/log/dmesg.today:atapci0: port > 0xa000-0xa00f,0xa400-0xa403,0xa800-0xa807,0xb000-0xb003,0xb400-0xb407 > mem 0xfde00000-0xfde03fff irq 10 at device 12.0 on pci0 > /var/log/dmesg.today:ata2: at 0xb400 on atapci0 > /var/log/dmesg.today:ata3: at 0xa800 on atapci0 > /var/log/dmesg.today:atapci1: port > 0xfc00-0xfc0f at device 15.1 on pci0 > /var/log/dmesg.today:ata0: at 0x1f0 irq 14 on atapci1 > /var/log/dmesg.today:ata1: at 0x170 irq 15 on atapci1 > > This is on a ASUS K8V Deluxe board. It may be the case that FreeBSD 4.9R cannot use ATA 133 on the VIA 8237. I saw 8.10 *does* support the via 8237. I'm unclear as to whether it also supports the ATA 133 modes (hardware notes say: VIA 8237 SATA150). Is there a way I can just upgrade the ata driver, without going all the way to 8.10? I really cannot continue with using WDMA2 on 16 MB/s. That is about ten times as slow as it can be! I appreciate the help, - Mark From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 06:20:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A557616A4CE for ; Tue, 10 Aug 2004 06:20:59 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E20E43D1F for ; Tue, 10 Aug 2004 06:20:59 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1BuQ0H-00003A-V7; Tue, 10 Aug 2004 09:20:57 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: "Julian Stacey" In-reply-to: Your message of Mon, 09 Aug 2004 21:05:19 +0200 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 10 Aug 2004 09:20:57 +0300 From: Danny Braniss Message-Id: <20040810062059.5E20E43D1F@mx1.FreeBSD.org> cc: hackers@freebsd.org Subject: Re: how to logically disable memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 06:20:59 -0000 > Reference: > > From: Danny Braniss > > Date: Mon, 09 Aug 2004 12:43:24 +0300 > > Message-id: <20040809094325.6F8D443D1F@mx1.FreeBSD.org> > > Danny Braniss wrote: > > hi, > > is there an 'easy' way to mark some memory as unusable? > > thanks, > > danny > > You'll hopefully get a better answer than mine, but in case you don't > & need to start hacking code ... > > Way back on 2.2.8 I disabled all above 16M 'cos one certain manufacturers > mboard failed to cache & board went slower with more ram ! > > Can't remember much now, & doubtless patch doesnt apply now (& that > 486 board not in service regularly) but it might give a clue where > to look, looking at > > http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sys/i386/i386/machdep.c.maxmem.diff.ignore > > back then it seemed to be MAXMEM in sys/i386/i386/machdep.c Hi, The short version: I need to disable 'some' physical memory, it's bad, and so far can't find it to change it :-). The long version: this is an IBM Thinkpad X40, quiet new, that lost it's warranty because somehow 'some liquid' was spilled on the keyboard. It seems to have some 512M of memory on the motherboard, which after an almost total dissasembly could not find. Windows crashes too often, but FreeBSD is doing fine. So if i can just disable parts of it (memtest has found the bad memory) then this is a neat notebook. danny From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 11:19:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B407516A4CE for ; Tue, 10 Aug 2004 11:19:22 +0000 (GMT) Received: from grummit.biaix.org (86.Red-213-97-212.pooles.rima-tde.net [213.97.212.86]) by mx1.FreeBSD.org (Postfix) with SMTP id 4EDA343D2F for ; Tue, 10 Aug 2004 11:19:21 +0000 (GMT) (envelope-from lists-freebsd-hackers@biaix.org) Received: (qmail 50097 invoked by uid 1000); 10 Aug 2004 11:17:49 -0000 Date: Tue, 10 Aug 2004 13:17:49 +0200 From: Joan Picanyol To: freebsd-hackers@freebsd.org Message-ID: <20040810111749.GA48836@grummit.biaix.org> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20040809094325.6F8D443D1F@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040809094325.6F8D443D1F@mx1.FreeBSD.org> User-Agent: Mutt/1.4.1i Subject: Re: how to logically disable memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 11:19:22 -0000 * Danny Braniss [20040809 11:42]: > is there an 'easy' way to mark some memory as unusable? thanks, Linux has BadRAM: http://rick.vanrein.org/linux/badram/index.html, I think someone was thinking of porting it to FreeBSD... (or maybe it was you ;) qvb -- pica From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 13:52:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A36EB16A4CE for ; Mon, 9 Aug 2004 13:52:02 +0000 (GMT) Received: from fw1.caa.army.mil (fw1.caa.army.mil [192.153.92.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B07243D1F for ; Mon, 9 Aug 2004 13:51:58 +0000 (GMT) (envelope-from ed.smithiii@us.army.mil) Received: from uncl-mail.caa.army.mil (uncl-mail.caa.army.mil [192.153.92.7]) by fw1.caa.army.mil with ESMTP id i79EHVKW020223 for ; Mon, 9 Aug 2004 10:17:31 -0400 (EDT) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Mon, 9 Aug 2004 09:50:02 -0400 Message-ID: <1FFD627BFDAEE0468AA006E0AD632470E47804@uncl-mail.caa.army.mil> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Kernel Development thread-index: AcR8gfuj9RBnTy1JT0iXzLjPa7L/5gBlW5Fw From: "Smith III, Edward Mr. CAA/ISC" To: "Daniel O'Connor" , X-Mailman-Approved-At: Tue, 10 Aug 2004 11:40:49 +0000 Subject: RE: Kernel Development X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 13:52:02 -0000 Yeah, this page: http://people.freebsd.org/~phk/TODO/ was one that I looked at and wasn't sure what the status was on the = projects that were listed. One in particular was the PCI device driver = library item. Does anyone know the status on this? I would like to = pick this up if it is still open. Thanks. ed -----Original Message----- From: Daniel O'Connor [mailto:doconnor@gsoft.com.au] Sent: Saturday, August 07, 2004 9:25 AM To: freebsd-hackers@freebsd.org Cc: Smith III, Edward Mr. CAA/ISC Subject: Re: Kernel Development -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 6 Aug 2004 23:57, Smith III, Edward Mr. CAA/ISC wrote: > Hey- > I am an experienced developer and have been using FreeBSD for several = years > now. I am looking to get involved in FreeBSD system development and = was > wondering if there were any projects that need developers. I have = been > programming for years but am somewhat new to the BSD kernel. I found = some > project pages on the websites but almost all of them are out of date. = The > hardware that I have on hand currently is all x86 with no exotic > peripherals although I am hoping to get an alpha and/or a sparc by the = end > of the year. Any help on this would be appreciated. v/r Not sure which pae you went to, but perhaps this one may help you -> http://people.freebsd.org/~phk/TODO/ Hmm although it looks 12 months old :( Certainly something _I'd_ appreciate would be to robustify the USB code = :) - --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBFNhO5ZPcIHs/zowRAs0xAJ0UhRXoFlZIff3aePFyRzBUsPdxuQCfQgt5 q2LJMFVilmHHFlthbTC3HHI=3D =3DH00c -----END PGP SIGNATURE----- _______________________________________________ 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 Mon Aug 9 20:00:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20C7216A4D0 for ; Mon, 9 Aug 2004 20:00:06 +0000 (GMT) Received: from koala.domainit.com (koala.domainit.com [206.21.217.15]) by mx1.FreeBSD.org (Postfix) with SMTP id C4B4D43D2D for ; Mon, 9 Aug 2004 20:00:05 +0000 (GMT) (envelope-from cokane@cokane.org) Received: (qmail 52243 invoked by uid 85); 9 Aug 2004 20:03:00 -0000 X-Remote-IP: 216.196.247.106 Received: from ddsl-216-196-247-106.fuse.net (HELO ?192.168.2.251?) (216.196.247.106) by mail.domainit.com with SMTP; 9 Aug 2004 20:03:00 -0000 From: Coleman To: Yar Tikhiy In-Reply-To: <20040807092347.GB39835@comp.chem.msu.su> References: <346a8022040806145018a5e18@mail.gmail.com> <1091862376.7840.3.camel@berloga.shadowland> <20040807092347.GB39835@comp.chem.msu.su> Content-Type: text/plain Message-Id: <1092081623.65806.3.camel@schemer> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 09 Aug 2004 16:00:24 -0400 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 10 Aug 2004 11:40:49 +0000 cc: hackers@freebsd.org cc: Alex Lyashkov Subject: Re: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 20:00:06 -0000 Seems to work in both -RELEASE and -CURRENT, though I needed to manually apply the patch as line numbers were off in -RELEASE. I can see how the locking could become a problem in -CURRENT. On Sat, 2004-08-07 at 05:23, Yar Tikhiy wrote: > On Sat, Aug 07, 2004 at 10:06:17AM +0300, Alex Lyashkov wrote: > > > > not better move this under tp->tap_mtx mutex without using splX > > functions? > > ...especially taking into account that splX do nothing > in CURRENT anyway. Mutex locking framework adopted by > the interface driver should be used of course. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 20:47:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AF3516A4CF for ; Mon, 9 Aug 2004 20:47:48 +0000 (GMT) Received: from koala.domainit.com (koala.domainit.com [206.21.217.15]) by mx1.FreeBSD.org (Postfix) with SMTP id ECEA943D1D for ; Mon, 9 Aug 2004 20:47:47 +0000 (GMT) (envelope-from cokane@cokane.org) Received: (qmail 81442 invoked by uid 85); 9 Aug 2004 20:50:43 -0000 X-Remote-IP: 216.196.247.106 Received: from ddsl-216-196-247-106.fuse.net (HELO ?192.168.2.251?) (216.196.247.106) by mail.domainit.com with SMTP; 9 Aug 2004 20:50:43 -0000 From: Coleman To: Yar Tikhiy In-Reply-To: <20040807092347.GB39835@comp.chem.msu.su> References: <346a8022040806145018a5e18@mail.gmail.com> <1091862376.7840.3.camel@berloga.shadowland> <20040807092347.GB39835@comp.chem.msu.su> Content-Type: multipart/mixed; boundary="=-NcuASJXk0RQjgaZBLv5j" Message-Id: <1092084486.65806.12.camel@schemer> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 09 Aug 2004 16:48:06 -0400 X-Mailman-Approved-At: Tue, 10 Aug 2004 11:40:49 +0000 cc: hackers@freebsd.org cc: Alex Lyashkov Subject: Re: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 20:47:48 -0000 --=-NcuASJXk0RQjgaZBLv5j Content-Type: text/plain Content-Transfer-Encoding: 7bit Here, I pushed that section of code up before the prior mtx_unlock(&tp->tap_mtx) above it, then removed the splimp/splx calls. Is this what you were referring to (attached)? Also, I noticed splx and splimp are called in a number of other places in this driver, even under -CURRENT. You want those out too? The patch is a patch on the original -CURRENT version of the driver and not a patch to the previous patch I received. -- coleman kane On Sat, 2004-08-07 at 05:23, Yar Tikhiy wrote: > On Sat, Aug 07, 2004 at 10:06:17AM +0300, Alex Lyashkov wrote: > > > > not better move this under tp->tap_mtx mutex without using splX > > functions? > > ...especially taking into account that splX do nothing > in CURRENT anyway. Mutex locking framework adopted by > the interface driver should be used of course. --=-NcuASJXk0RQjgaZBLv5j Content-Description: Content-Disposition: attachment; filename=if_tap.c.diff Content-Type: text/x-patch; charset=ASCII Content-Transfer-Encoding: 7bit --- if_tap.c.orig Thu Jun 24 13:16:35 2004 +++ if_tap.c Mon Aug 9 16:42:40 2004 @@ -368,6 +368,12 @@ bcopy(tp->arpcom.ac_enaddr, tp->ether_addr, sizeof(tp->ether_addr)); tp->tap_pid = td->td_proc->p_pid; tp->tap_flags |= TAP_OPEN; + + /* Set the interface to RUNNING state while the device is + opened + */ + tp->tap_if.if_flags |= IFF_RUNNING; + tp->tap_if.if_flags &= ~IFF_OACTIVE; mtx_unlock(&tp->tap_mtx); TAPDEBUG("%s is open. minor = %#x\n", --=-NcuASJXk0RQjgaZBLv5j-- From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 21:47:36 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E75F16A4CE for ; Mon, 9 Aug 2004 21:47:36 +0000 (GMT) Received: from koala.domainit.com (koala.domainit.com [206.21.217.15]) by mx1.FreeBSD.org (Postfix) with SMTP id F33E143D2D for ; Mon, 9 Aug 2004 21:47:35 +0000 (GMT) (envelope-from cokane@cokane.org) Received: (qmail 17611 invoked by uid 85); 9 Aug 2004 21:50:30 -0000 X-Remote-IP: 216.196.247.106 Received: from ddsl-216-196-247-106.fuse.net (HELO ?192.168.2.251?) (216.196.247.106) by mail.domainit.com with SMTP; 9 Aug 2004 21:50:30 -0000 From: Coleman To: Maksim Yevmenkin In-Reply-To: <4117E93D.8060100@savvis.net> References: <346a8022040806145018a5e18@mail.gmail.com> <1091862376.7840.3.camel@berloga.shadowland> <20040807092347.GB39835@comp.chem.msu.su> <1092084486.65806.12.camel@schemer> <4117E93D.8060100@savvis.net> Content-Type: text/plain Message-Id: <1092088073.65806.29.camel@schemer> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 09 Aug 2004 17:47:54 -0400 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 10 Aug 2004 11:40:49 +0000 cc: hackers@freebsd.org cc: Yar Tikhiy cc: Alex Lyashkov Subject: Re: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 21:47:36 -0000 Ah yes, now I see. There is no mutex on struct ifnet then? And I suppose those splimp/splx calls should remain. I'll look at whats available and relay my findings to you guys. On Mon, 2004-08-09 at 17:14, Maksim Yevmenkin wrote: > Hello, > > > Here, I pushed that section of code up before the prior > > mtx_unlock(&tp->tap_mtx) above it, then removed the splimp/splx > > calls. Is this what you were referring to (attached)? Also, I noticed > > splx and splimp are called in a number of other places in this > > driver, even under -CURRENT. You want those out too? The patch is a > > patch on the original -CURRENT version of the driver and not a patch > > to the previous patch I received. > > ok, the "tap_mtx" lock is used to protect fields which belongs to the > "struct tap_softc". the IFF_xxx flags are set in the "if_flags" field, > which belongs to the "struct ifnet". note that other parts of the system > will access the same "struct ifnet", and, thus separate lock is required > to protect all fields inside the "struct ifnet". currently it is done > (or rather not done) with splimp(9)/splx(9) calls. i guess this will be > fixed some time in the future. > > my original patch was not 100% correct. i have attached better (imo) > patch. please try it out, and, if there are no objections, i will commit it. > > thanks, > max > > > ______________________________________________________________________ > --- if_tap.c.orig Fri Aug 6 15:02:06 2004 > +++ if_tap.c Mon Aug 9 13:57:48 2004 > @@ -340,7 +340,8 @@ > struct thread *td; > { > struct tap_softc *tp = NULL; > - int error; > + struct ifnet *ifp = NULL; > + int error, s; > > if ((error = suser(td)) != 0) > return (error); > @@ -368,10 +369,15 @@ > bcopy(tp->arpcom.ac_enaddr, tp->ether_addr, sizeof(tp->ether_addr)); > tp->tap_pid = td->td_proc->p_pid; > tp->tap_flags |= TAP_OPEN; > + ifp = &tp->tap_if; > mtx_unlock(&tp->tap_mtx); > > - TAPDEBUG("%s is open. minor = %#x\n", > - tp->tap_if.if_xname, minor(dev)); > + s = splimp(); > + ifp->if_flags |= IFF_RUNNING; > + ifp->if_flags &= ~IFF_OACTIVE; > + splx(s); > + > + TAPDEBUG("%s is open. minor = %#x\n", ifp->if_xname, minor(dev)); > > return (0); > } /* tapopen */ From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 01:12:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D404016A4CE; Tue, 10 Aug 2004 01:12:01 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 942D543D5D; Tue, 10 Aug 2004 01:12:01 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-127-84-57.dsl.snfc21.pacbell.net [67.127.84.57]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id i7A1Bu8U012863; Mon, 9 Aug 2004 18:11:56 -0700 Message-ID: <411820DC.6080801@root.org> Date: Mon, 09 Aug 2004 18:11:56 -0700 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.7 (X11/20040702) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Takanori Watanabe References: <200408090105.i7915GWE060933@sana.init-main.com> In-Reply-To: <200408090105.i7915GWE060933@sana.init-main.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 10 Aug 2004 11:40:49 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-acpi@freebsd.org Subject: Re: Driver for Thinkpad Hotkeys. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 01:12:02 -0000 Takanori Watanabe wrote: > Hi, I updated ThinkPad Hotkey driver so that it can > > * Read Brightness > * Read Volume > * Read Mute status > * Read Keylight status > * AccessIBM, Zoom Screen(Fn+Sp) toggle. > > ToDo lists > > * Set Brightness > * Set Volume > * Bluetooth attach/detach. > * Userland worker. > > These features will come Real Soon Now. > > * Wireless LAN indicator > > Will be take more time. > > I wrote for ThinkPad X31, but it may work on some other ThinkPad X,R,T,S > series. > > Enjoy! > > http://www.init-main.com/acpi_tpkey/ Thanks for working on this. After 5.3-RELEASE, I think it would be good to import it. -Nate From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 07:39:03 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9AF216A4CF for ; Tue, 10 Aug 2004 07:39:03 +0000 (GMT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id B811643D31 for ; Tue, 10 Aug 2004 07:39:00 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (pD950E293.dip.t-dialin.net [217.80.226.147]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id i7A7bZhB045741; Tue, 10 Aug 2004 09:37:35 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from king.jhs.private (king.jhs.private [192.168.91.46]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id i7A7bMkM001831; Tue, 10 Aug 2004 09:37:22 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from king.jhs.private (localhost [127.0.0.1]) by king.jhs.private (8.12.9p2/8.12.9) with ESMTP id i7A7asx5000574; Tue, 10 Aug 2004 09:37:07 +0200 (CEST) (envelope-from jhs@king.jhs.private) Message-Id: <200408100737.i7A7asx5000574@king.jhs.private> To: Danny Braniss From: "Julian Stacey" Organization: http://berklix.com/~jhs/ Munich Unix, BSD, Internet User-agent: EXMH http://beedub.com/exmh/ on FreeBSD http://freebsd.org In-reply-to: Your message of "Tue, 10 Aug 2004 09:20:57 +0300." <200408100621.i7A6L2hB045341@tower.berklix.org> Date: Tue, 10 Aug 2004 09:36:54 +0200 Sender: jhs@flat.berklix.net X-Mailman-Approved-At: Tue, 10 Aug 2004 11:40:49 +0000 cc: hackers@freebsd.org Subject: Re: how to logically disable memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 07:39:04 -0000 > > Danny Braniss wrote: > > > hi, > > > is there an 'easy' way to mark some memory as unusable? > > > thanks, > > > danny > > > > You'll hopefully get a better answer than mine, but in case you don't > > & need to start hacking code ... > > > > Way back on 2.2.8 I disabled all above 16M 'cos one certain manufacturers > > mboard failed to cache & board went slower with more ram ! > > > > Can't remember much now, & doubtless patch doesnt apply now (& that > > 486 board not in service regularly) but it might give a clue where > > to look, looking at > > > > http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sys/i386/i386/machdep > .c.maxmem.diff.ignore > > > > back then it seemed to be MAXMEM in sys/i386/i386/machdep.c > > Hi, > The short version: I need to disable 'some' physical memory, it's bad, > and so far can't find it to change it :-). > > The long version: this is an IBM Thinkpad X40, quiet new, that > lost it's warranty because somehow 'some liquid' was spilled on the keyboard. > It seems to have some 512M of memory on the motherboard, which after an > almost total dissasembly could not find. Windows crashes too often, but > FreeBSD is doing fine. So if i can just disable parts of it (memtest has > found the bad memory) then this is a neat notebook. > > danny Is the low boundary of what memtest shows, too low to sacrifice all above by patching out all above ? It would get you up & stable, with low performance. If after that you don't find an answer on hackers, probably best contact author of the swapper, who probably reads current@, or whose name may be found in CVS. If desperate, You might want to offer some incentive, eg bottle of Whisky or whatever, to whoever will write you some custom hacks to the swapper to patch out one range permanently ? Good luck. - Julian Stacey. Unix C & Net Services Consultant, Munich. http://berklix.com Mail Ascii plain text. Html dumped as Spam. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 11:56:14 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A55C016A4CE for ; Tue, 10 Aug 2004 11:56:14 +0000 (GMT) Received: from abigail.blackend.org (blackend.org [212.11.35.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id C247943D39 for ; Tue, 10 Aug 2004 11:56:13 +0000 (GMT) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (localhost [127.0.0.1]) i7ABu4HQ023547; Tue, 10 Aug 2004 13:56:04 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: (from marc@localhost) by abigail.blackend.org (8.12.11/8.12.11/Submit) id i7ABu0Z7023546; Tue, 10 Aug 2004 13:56:00 +0200 (CEST) (envelope-from marc) Date: Tue, 10 Aug 2004 13:55:59 +0200 From: Marc Fonvieille To: =?iso-8859-1?Q?S=F8ren?= Schmidt Message-ID: <20040810115559.GD18950@abigail.blackend.org> References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4117DEAF.1000500@DeepCore.dk> User-Agent: Mutt/1.4.2.1i X-Useless-Header: blackend.org X-Operating-System: FreeBSD 4.10-PRERELEASE cc: Wilko Bulte cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 11:56:14 -0000 On Mon, Aug 09, 2004 at 10:29:35PM +0200, Søren Schmidt wrote: > Wilko Bulte wrote: > >How standard are DVD writers these days? In the sense > >of: can I expect an ATAPI DVDwriter to 'just work' > >with FreeBSD or are there brands/models to avoid or > >to prefer? > > > >Any experiences with a NEC ND-2510 ? Good/bad? > > Bought one of those a couble of weeks ago, it has burnt CDR, CDRW, > DVD+/-R and DVD+/-RW media for me with no problems at all. Havn't tried > duallayer media yet as I havn't been able to locate any that didn't cost > an arm and a leg :) [...] Did you use growisofs or a new burncd allowing DVD+/-R burning? Have you any plan on supporting DVD+/-R write with burncd? Marc From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 13:12:10 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F21416A4CE; Tue, 10 Aug 2004 13:12:10 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id A186A43D45; Tue, 10 Aug 2004 13:12:09 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i7ADC1pi053611; Tue, 10 Aug 2004 15:12:06 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4118C996.8090201@DeepCore.dk> Date: Tue, 10 Aug 2004 15:11:50 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marc Fonvieille References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> <20040810115559.GD18950@abigail.blackend.org> In-Reply-To: <20040810115559.GD18950@abigail.blackend.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-mail-scanned: by DeepCore Virus & Spam killer v1.4 cc: Wilko Bulte cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 13:12:10 -0000 Marc Fonvieille wrote: > On Mon, Aug 09, 2004 at 10:29:35PM +0200, S=F8ren Schmidt wrote: >=20 >>Wilko Bulte wrote: >> >>>How standard are DVD writers these days? In the sense >>>of: can I expect an ATAPI DVDwriter to 'just work' >>>with FreeBSD or are there brands/models to avoid or >>>to prefer? >>> >>>Any experiences with a NEC ND-2510 ? Good/bad? >> >>Bought one of those a couble of weeks ago, it has burnt CDR, CDRW,=20 >>DVD+/-R and DVD+/-RW media for me with no problems at all. Havn't tried= =20 >>duallayer media yet as I havn't been able to locate any that didn't cos= t=20 >>an arm and a leg :) >=20 > Did you use growisofs or a new burncd allowing DVD+/-R burning? > Have you any plan on supporting DVD+/-R write with burncd? I used my own creation that at some point could replace burncd, but for=20 now it is just a skunkworks project (and no I wont hand out copies :) ) I would think that growisofs will work (I do have an ATA version of that = somewhere IIRC). Burncd support DVD+R to some extent, depends on burner doing what I=20 think it should. But as you might infer from the above I'm thinking of=20 changing that :) -S=F8ren From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 13:29:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D04116A4CE for ; Tue, 10 Aug 2004 13:29:53 +0000 (GMT) Received: from abigail.blackend.org (blackend.org [212.11.35.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAADA43D54 for ; Tue, 10 Aug 2004 13:29:50 +0000 (GMT) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (localhost [127.0.0.1]) i7ADTeWb024983; Tue, 10 Aug 2004 15:29:41 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: (from marc@localhost) by abigail.blackend.org (8.12.11/8.12.11/Submit) id i7ADTeFA024982; Tue, 10 Aug 2004 15:29:40 +0200 (CEST) (envelope-from marc) Date: Tue, 10 Aug 2004 15:29:40 +0200 From: Marc Fonvieille To: =?iso-8859-1?Q?S=F8ren?= Schmidt Message-ID: <20040810132940.GF18950@abigail.blackend.org> References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> <20040810115559.GD18950@abigail.blackend.org> <4118C996.8090201@DeepCore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4118C996.8090201@DeepCore.dk> User-Agent: Mutt/1.4.2.1i X-Useless-Header: blackend.org X-Operating-System: FreeBSD 4.10-PRERELEASE cc: Wilko Bulte cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 13:29:53 -0000 On Tue, Aug 10, 2004 at 03:11:50PM +0200, Søren Schmidt wrote: > > I used my own creation that at some point could replace burncd, but for > now it is just a skunkworks project (and no I wont hand out copies :) ) > > I would think that growisofs will work (I do have an ATA version of that > somewhere IIRC). > You meant a growisofs version that does not require ATAPICAM? (Currently growisofs+ATAPICAM work like a charm) > Burncd support DVD+R to some extent, depends on burner doing what I > think it should. But as you might infer from the above I'm thinking of > changing that :) > great! Marc From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 13:37:09 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2E7A16A4CE for ; Tue, 10 Aug 2004 13:37:09 +0000 (GMT) Received: from mail.asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3339443D4C for ; Tue, 10 Aug 2004 13:37:09 +0000 (GMT) SRS0=SKjgfk80=LA=asarian-host.net=admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.13.1/8.13.1) id i7ADb7C8031456 for freebsd-hackers@freebsd.org; Tue, 10 Aug 2004 15:37:07 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Received-SPF: pass (asarian-host.net: domain of admin@asarian-host.net designates sender IP as SASL permitted sender) Message-Id: <200408101337.I7ADB7MJ031446@asarian-host.net> Date: Tue, 10 Aug 2004 13:37:07 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: 3x8IEhD+t/PsabrFcOw3BJxoWwSvsMTpJUbdoRgOn8XQFzHgJ0//RHJVdeFCijkwmZ/ZtB7h1MNzkKrKXDEYZg== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers, otherwise we are unable to process your complaint Organization: Asarian-host To: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Auth: Asarian-host PGP signature iQEVAwUAQRjPgzFqW1BleBN9AQGUGwf/YjnHrsUZ4CRRpgm/+CSfc9UYXiE9QNnV aK3kPXKOtC6iVfSQF2N74+1cF8Sv7ZavwEeM37D/de2gn7arGO40rGlblkfHFCc4 MoTom5rQgNdaJ+F+iis1ff3w0TT+Uwk+Fm6FWrCeA5qRII/8FNRc3iblyICPTsDk 2hdTblqlVua5PVDps/mOuLUSrVpBj8OtNE+Lqn7kAYLtwjBaixiuhCVhJw/arl1C WVt6uHL/Y3Co9D7pCJxk2d2ptl6YoST7SVQpXNGk5I0z1GXJlHyZzd1zXED0ZywB HTMXnHvKJKJR+jc8+5QK8DsTPh0gRqStzKQSRI38dIPQoOLcV/V+Xg== =qtB8 Subject: Using the VIA 8237 ATA133 IDE ports X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 13:37:10 -0000 Dear Sirs: Using FreeBSD 4.9R-p3, I cannot use the VIA 8237 ATA133 IDE ports: > /var/log/dmesg.today:atapci1: port > 0xfc00-0xfc0f at device 15.1 on pci0 > /var/log/dmesg.today:ata0: at 0x1f0 irq 14 on atapci1 > /var/log/dmesg.today:ata1: at 0x170 irq 15 on atapci1 I saw 8.10, however, *does* support the VIA 8237. Is there a way I can just upgrade the ata driver, without going all the way to 8.10? I really cannot continue with using WDMA2 on 16 MB/s. I am not sure whether it is at all possible to upgrade the ata(4) driver in this fashion. If it is a matter of recompiling the kernel, I can do that. I am sorry if this sounds like a stupid question. But I have searched the FreeBSD site and Google; but I cannot find anything which deals with upgrading the ata(4) drivers. I appreciate the help, - Mark From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 13:44:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B8B716A4CE; Tue, 10 Aug 2004 13:44:22 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7252443D48; Tue, 10 Aug 2004 13:44:21 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i7ADiEd7053929; Tue, 10 Aug 2004 15:44:19 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4118D123.8030204@DeepCore.dk> Date: Tue, 10 Aug 2004 15:44:03 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marc Fonvieille References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> <20040810115559.GD18950@abigail.blackend.org> <4118C996.8090201@DeepCore.dk> <20040810132940.GF18950@abigail.blackend.org> In-Reply-To: <20040810132940.GF18950@abigail.blackend.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-mail-scanned: by DeepCore Virus & Spam killer v1.4 cc: Wilko Bulte cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 13:44:22 -0000 Marc Fonvieille wrote: > On Tue, Aug 10, 2004 at 03:11:50PM +0200, S=F8ren Schmidt wrote: >=20 >>I used my own creation that at some point could replace burncd, but for= =20 >>now it is just a skunkworks project (and no I wont hand out copies :) )= >> >>I would think that growisofs will work (I do have an ATA version of tha= t=20 >>somewhere IIRC). >> >=20 > You meant a growisofs version that does not require ATAPICAM? Yes, one that uses the ATA userland interface instead, just as I have=20 versions of cdrecord/cdrdao. > (Currently growisofs+ATAPICAM work like a charm) I wouldn't know :) -S=F8ren From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 14:04:31 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 499AC16A4CE for ; Tue, 10 Aug 2004 14:04:31 +0000 (GMT) Received: from abigail.blackend.org (blackend.org [212.11.35.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3921A43D4C for ; Tue, 10 Aug 2004 14:04:28 +0000 (GMT) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (localhost [127.0.0.1]) i7AE489g025588; Tue, 10 Aug 2004 16:04:09 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: (from marc@localhost) by abigail.blackend.org (8.12.11/8.12.11/Submit) id i7AE48mP025587; Tue, 10 Aug 2004 16:04:08 +0200 (CEST) (envelope-from marc) Date: Tue, 10 Aug 2004 16:04:08 +0200 From: Marc Fonvieille To: =?iso-8859-1?Q?S=F8ren?= Schmidt Message-ID: <20040810140408.GG18950@abigail.blackend.org> References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> <20040810115559.GD18950@abigail.blackend.org> <4118C996.8090201@DeepCore.dk> <20040810132940.GF18950@abigail.blackend.org> <4118D123.8030204@DeepCore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4118D123.8030204@DeepCore.dk> User-Agent: Mutt/1.4.2.1i X-Useless-Header: blackend.org X-Operating-System: FreeBSD 4.10-PRERELEASE cc: Wilko Bulte cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 14:04:31 -0000 On Tue, Aug 10, 2004 at 03:44:03PM +0200, Søren Schmidt wrote: > > > >You meant a growisofs version that does not require ATAPICAM? > > Yes, one that uses the ATA userland interface instead, just as I have > versions of cdrecord/cdrdao. > I used in past your cdrecord version when it was available on your site. Is there any new version freely available? :) Maybe it's difficult to maintain, I don't know, but what about having an ATA cdrecord or cdrdao port in our Ports Collection? Marc From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 14:09:07 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EA6416A4CE; Tue, 10 Aug 2004 14:09:07 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1FAE43D46; Tue, 10 Aug 2004 14:09:06 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i7AE8xrH054163; Tue, 10 Aug 2004 16:09:04 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4118D6F0.4010100@DeepCore.dk> Date: Tue, 10 Aug 2004 16:08:48 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marc Fonvieille References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> <20040810115559.GD18950@abigail.blackend.org> <4118C996.8090201@DeepCore.dk> <20040810132940.GF18950@abigail.blackend.org> <4118D123.8030204@DeepCore.dk> <20040810140408.GG18950@abigail.blackend.org> In-Reply-To: <20040810140408.GG18950@abigail.blackend.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-mail-scanned: by DeepCore Virus & Spam killer v1.4 cc: Wilko Bulte cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 14:09:07 -0000 Marc Fonvieille wrote: > On Tue, Aug 10, 2004 at 03:44:03PM +0200, S=F8ren Schmidt wrote: >=20 >>>You meant a growisofs version that does not require ATAPICAM? >> >>Yes, one that uses the ATA userland interface instead, just as I have=20 >>versions of cdrecord/cdrdao. >> >=20 > I used in past your cdrecord version when it was available on your site= =2E > Is there any new version freely available? :) They are still at my site actually, butI havn't cared to update them=20 much (dont fix what aint broken)... > Maybe it's difficult to maintain, I don't know, but what about having a= n > ATA cdrecord or cdrdao port in our Ports Collection? By all means, feel free to grap those off my site and "portify" them.. -S=F8ren From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 14:17:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FAE116A4CE for ; Tue, 10 Aug 2004 14:17:11 +0000 (GMT) Received: from abigail.blackend.org (blackend.org [212.11.35.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A7F743D54 for ; Tue, 10 Aug 2004 14:17:10 +0000 (GMT) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (localhost [127.0.0.1]) i7AEH0Va025861; Tue, 10 Aug 2004 16:17:00 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: (from marc@localhost) by abigail.blackend.org (8.12.11/8.12.11/Submit) id i7AEH07Q025860; Tue, 10 Aug 2004 16:17:00 +0200 (CEST) (envelope-from marc) Date: Tue, 10 Aug 2004 16:16:59 +0200 From: Marc Fonvieille To: =?iso-8859-1?Q?S=F8ren?= Schmidt Message-ID: <20040810141659.GH18950@abigail.blackend.org> References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> <20040810115559.GD18950@abigail.blackend.org> <4118C996.8090201@DeepCore.dk> <20040810132940.GF18950@abigail.blackend.org> <4118D123.8030204@DeepCore.dk> <20040810140408.GG18950@abigail.blackend.org> <4118D6F0.4010100@DeepCore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4118D6F0.4010100@DeepCore.dk> User-Agent: Mutt/1.4.2.1i X-Useless-Header: blackend.org X-Operating-System: FreeBSD 4.10-PRERELEASE cc: Wilko Bulte cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 14:17:11 -0000 On Tue, Aug 10, 2004 at 04:08:48PM +0200, Søren Schmidt wrote: > > > >I used in past your cdrecord version when it was available on your site. > >Is there any new version freely available? :) > > They are still at my site actually, butI havn't cared to update them > much (dont fix what aint broken)... > [...] It seems ftp.freebsd.dk does not accept passive mode :(( Marc From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 15:19:25 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5C3B16A4CE for ; Tue, 10 Aug 2004 15:19:25 +0000 (GMT) Received: from hercules.epicserver.com (hercules.epicserver.com [66.219.52.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id A164443D49 for ; Tue, 10 Aug 2004 15:19:25 +0000 (GMT) (envelope-from justin@blasthosting.com) Received: from cs6669225-10.austin.rr.com ([66.69.225.10] helo=jblaptop00105) by hercules.epicserver.com with asmtp (Exim 4.32; FreeBSD) id 1BuYPB-0002fr-IJ for freebsd-hackers@freebsd.org; Tue, 10 Aug 2004 10:19:13 -0500 From: "Justin Bachus" To: Date: Tue, 10 Aug 2004 10:19:25 -0500 Message-ID: <000401c47eed$6d9b4de0$6f01a8c0@jblaptop00105> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hercules.epicserver.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - blasthosting.com X-Source: X-Source-Args: X-Source-Dir: Subject: Kernel panic in 5.2.1-p9 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 15:19:26 -0000 I have been getting these kernel panics more frequently now and it has become a problem. I have used gdb to provide basic information, but I = am not very experienced in this so let me know what to do to give you any = more information. I have had 2 crashes dump a core, so I will include both (sorry for the length) Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x53 fault code =3D supervisor write, page not present instruction pointer =3D 0x8:0xc05c6857 stack pointer =3D 0x10:0xe00c2be8 frame pointer =3D 0x10:0xe00c2be8 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 45 (syncer) trap number =3D 12 panic: page fault syncing disks, buffers remaining... panic: bremfree: removing a buffer = not on a queue Uptime: 14d17h59m7s kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x24 fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc04fa06c stack pointer =3D 0x10:0xe1adabec frame pointer =3D 0x10:0xe1adabfc 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 3 (g_up) trap number =3D 12 panic: page fault Uptime: 14d17h59m7s Dumping 1022 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 = 320 336 352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 608 = 624 640 656 672 688 704 720 736 752 768 784 800 816 832 848 864 880 896 912 = 928 944 960 976 992 1008 --- Reading symbols from /usr/obj/usr/src/sys/HERCULES/modules/usr/src/sys/modules/acpi/acpi.ko.de= bug ...done. Loaded symbols for /usr/obj/usr/src/sys/HERCULES/modules/usr/src/sys/modules/acpi/acpi.ko.de= bug #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 240 dumping++; (kgdb) where #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 #1 0xc04da545 in boot (howto=3D260) at = /usr/src/sys/kern/kern_shutdown.c:372 #2 0xc04da849 in panic () at /usr/src/sys/kern/kern_shutdown.c:550 #3 0xc0515af7 in bremfreel (bp=3D0xd2d00800) at /usr/src/sys/kern/vfs_bio.c:647 #4 0xc0515a24 in bremfree (bp=3D0xd2d00800) at /usr/src/sys/kern/vfs_bio.c:629 #5 0xc051953c in getblk (vp=3D0xc68c330c, blkno=3D2, size=3D16384, = slpflag=3D0, slptimeo=3D0, flags=3D0) at /usr/src/sys/kern/vfs_bio.c:2468 #6 0xc0515b79 in breadn (vp=3D0xc68c330c, blkno=3D2, size=3D16384, = rablkno=3D0x0, rabsize=3D0x0, cnt=3D0, cred=3D0x0, bpp=3D0x0) at /usr/src/sys/kern/vfs_bio.c:700 #7 0xc0515b44 in bread (vp=3D0xc68c330c, blkno=3D2, size=3D16384, = cred=3D0x0, bpp=3D0xe00c2848) at /usr/src/sys/kern/vfs_bio.c:682 #8 0xc05b642b in ffs_balloc_ufs2 (vp=3D0xc68c330c, startoffset=3D0, = size=3D3872, cred=3D0xc25b7d80, flags=3D65536,=20 bpp=3D0xe00c2994) at /usr/src/sys/ufs/ffs/ffs_balloc.c:601 #9 0xc05ca3ca in ffs_write (ap=3D0xe00c29bc) at /usr/src/sys/ufs/ffs/ffs_vnops.c:698 #10 0xc05d2a98 in dqsync (vp=3D0xc6e7ab2c, dq=3D0xc6f26f40) at = vnode_if.h:432 #11 0xc05d2477 in qsync (mp=3D0xc655e400) at /usr/src/sys/ufs/ufs/ufs_quota.c:775 #12 0xc05c8e90 in ffs_sync (mp=3D0xc655e400, waitfor=3D2, = cred=3D0xc25aae80, td=3D0xc06a17c0) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1204 #13 0xc052a137 in sync (td=3D0xc06a17c0, uap=3D0x0) at /usr/src/sys/kern/vfs_syscalls.c:141 #14 0xc04da0c8 in boot (howto=3D256) at = /usr/src/sys/kern/kern_shutdown.c:281 #15 0xc04da849 in panic () at /usr/src/sys/kern/kern_shutdown.c:550 #16 0xc061ac42 in trap_fatal (frame=3D0xe00c2ba8, eva=3D83) at /usr/src/sys/i386/i386/trap.c:821 #17 0xc061a983 in trap_pfault (frame=3D0xe00c2ba8, usermode=3D0, = eva=3D83) at /usr/src/sys/i386/i386/trap.c:735 #18 0xc061a5a1 in trap (frame=3D {tf_fs =3D 24, tf_es =3D -536084464, tf_ds =3D -1067319280, tf_edi = =3D 3531, tf_esi =3D 0, tf_ebp =3D -536073240, tf_isp =3D -536073260, tf_ebx =3D = -738407384, tf_edx =3D 0, tf_ecx =3D 0, tf_eax =3D -738410444, tf_trapno =3D 12, = tf_err =3D 2, tf_eip =3D -1067685801, tf_cs =3D 8, tf_eflags =3D 66178, tf_esp =3D = -536073116, tf_ss =3D -1067762932}) at /usr/src/sys/i386/i386/trap.c:420 #19 0xc060df38 in calltrap () at {standard input}:94 #20 0xc05b3b0c in ffs_blkfree (fs=3D0xc676c800, devvp=3D0xc67d0c30, bno=3D23149179, size=3D2048, inum=3D3531) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1760 ---Type to continue, or q to quit--- #21 0xc05c0057 in handle_workitem_freefrag (freefrag=3D0xcaabcf40) at /usr/src/sys/ufs/ffs/ffs_softdep.c:1587 #22 0xc05bf007 in process_worklist_item (matchmnt=3D0x0, flags=3D0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:767 #23 0xc05bed6c in softdep_process_worklist (matchmnt=3D0x0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:622 #24 0xc0526bf1 in sched_sync () at /usr/src/sys/kern/vfs_subr.c:1766 #25 0xc04c8581 in fork_exit (callout=3D0xc0526864 , = arg=3D0x0, frame=3D0xe00c2d48) at /usr/src/sys/kern/kern_fork.c:793 Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x1475c0f0 fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc04fa285 stack pointer =3D 0x10:0xebe9d8f0 frame pointer =3D 0x10:0xebe9d8f4 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 97641 (httpd) trap number =3D 12 panic: page fault syncing disks, buffers remaining... panic: bremfree: removing a buffer = not on a queue Uptime: 6d22h51m4s spin lock td_contested held by 0xc6b6f000 for > 5 seconds panic: spin lock held too long Uptime: 6d22h51m4s Dumping 1022 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 = 320 336 352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 608 = 624 640 656 672 688 704 720 736 752 768 784 800 816 832 848 864 880 896 912 = 928 944 960 976 992 1008 --- Reading symbols from /usr/obj/usr/src/sys/HERCULES/modules/usr/src/sys/modules/acpi/acpi.ko.de= bug ...done. Loaded symbols for /usr/obj/usr/src/sys/HERCULES/modules/usr/src/sys/modules/acpi/acpi.ko.de= bug #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 240 dumping++; (kgdb) where #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 #1 0xc04da545 in boot (howto=3D260) at = /usr/src/sys/kern/kern_shutdown.c:372 #2 0xc04da849 in panic () at /usr/src/sys/kern/kern_shutdown.c:550 #3 0xc0515af7 in bremfreel (bp=3D0xd2f475f0) at /usr/src/sys/kern/vfs_bio.c:647 #4 0xc0515a24 in bremfree (bp=3D0xd2f475f0) at /usr/src/sys/kern/vfs_bio.c:629 #5 0xc051953c in getblk (vp=3D0xc69dc000, blkno=3D2, size=3D16384, = slpflag=3D0, slptimeo=3D0, flags=3D0) at /usr/src/sys/kern/vfs_bio.c:2468 #6 0xc0515b79 in breadn (vp=3D0xc69dc000, blkno=3D2, size=3D16384, = rablkno=3D0x0, rabsize=3D0x0, cnt=3D0, cred=3D0x0, bpp=3D0x0) at /usr/src/sys/kern/vfs_bio.c:700 #7 0xc0515b44 in bread (vp=3D0xc69dc000, blkno=3D2, size=3D16384, = cred=3D0x0, bpp=3D0xebe9d578) at /usr/src/sys/kern/vfs_bio.c:682 #8 0xc05b642b in ffs_balloc_ufs2 (vp=3D0xc69dc000, startoffset=3D0, = size=3D608, cred=3D0xc25b7d80, flags=3D65536,=20 bpp=3D0xebe9d6c4) at /usr/src/sys/ufs/ffs/ffs_balloc.c:601 #9 0xc05ca3ca in ffs_write (ap=3D0xebe9d6ec) at /usr/src/sys/ufs/ffs/ffs_vnops.c:698 #10 0xc05d2a98 in dqsync (vp=3D0xc6af3e38, dq=3D0xc68dcac0) at = vnode_if.h:432 #11 0xc05d2477 in qsync (mp=3D0xc676d400) at /usr/src/sys/ufs/ufs/ufs_quota.c:775 #12 0xc05c8e90 in ffs_sync (mp=3D0xc676d400, waitfor=3D2, = cred=3D0xc25aae80, td=3D0xc06a17c0) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1204 #13 0xc052a137 in sync (td=3D0xc06a17c0, uap=3D0x0) at /usr/src/sys/kern/vfs_syscalls.c:141 #14 0xc04da0c8 in boot (howto=3D256) at = /usr/src/sys/kern/kern_shutdown.c:281 #15 0xc04da849 in panic () at /usr/src/sys/kern/kern_shutdown.c:550 #16 0xc061ac42 in trap_fatal (frame=3D0xebe9d8b0, eva=3D343261424) at /usr/src/sys/i386/i386/trap.c:821 #17 0xc061a3ed in trap (frame=3D {tf_fs =3D -1068433384, tf_es =3D -757137392, tf_ds =3D = -757137392, tf_edi =3D -963154240, tf_esi =3D -961089536, tf_ebp =3D -336996108, tf_isp =3D = -336996132, tf_ebx =3D -963154240, tf_edx =3D -961089536, tf_ecx =3D 343261316, = tf_eax =3D -961089504, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1068522875, = tf_cs =3D 8, tf_eflags =3D 65538, tf_esp =3D -1068391432, tf_ss =3D -336996076}) at /usr/src/sys/i386/i386/trap.c:250 #18 0xc060df38 in calltrap () at {standard input}:94 #19 0xc04fa5e4 in turnstile_wait (ts=3D0xc6976ec0, lock=3D0xc051a3f8, owner=3D0x1475c084) at /usr/src/sys/kern/subr_turnstile.c:458 #20 0xc04d2219 in _mtx_lock_sleep (m=3D0xc051a3f8, opts=3D0, file=3D0x0, = line=3D0) at /usr/src/sys/kern/kern_mutex.c:476 #21 0xc05181ea in getnewbuf (slpflag=3D0, slptimeo=3D0, size=3D4096, maxsize=3D16384) at /usr/src/sys/kern/vfs_bio.c:1836 #22 0xc05196f7 in getblk (vp=3D0xca2e9c30, blkno=3D5, size=3D4096, = slpflag=3D0, slptimeo=3D0, flags=3D0) at /usr/src/sys/kern/vfs_bio.c:2575 #23 0xc05b66df in ffs_balloc_ufs2 (vp=3D0xca2e9c30, startoffset=3D0, = size=3D3805, cred=3D0xca075180, flags=3D117506048,=20 bpp=3D0xebe9dba8) at /usr/src/sys/ufs/ffs/ffs_balloc.c:644 #24 0xc05ca3ca in ffs_write (ap=3D0xebe9dbe0) at /usr/src/sys/ufs/ffs/ffs_vnops.c:698 #25 0xc0531a75 in vn_write (fp=3D0xc6ab7e58, uio=3D0xebe9dc88, active_cred=3D0xca075180, flags=3D0, td=3D0xc6b6f000) at vnode_if.h:432 #26 0xc04fb21f in dofilewrite (td=3D0xc6b6f000, fp=3D0xc6ab7e58, fd=3D5, buf=3D0x88e1000, nbyte=3D3805, offset=3D0, flags=3D0) at /usr/src/sys/sys/file.h:249 #27 0xc04fb0d2 in write (td=3D0xc6b6f000, uap=3D0xebe9dd14) at /usr/src/sys/kern/sys_generic.c:331 #28 0xc061af2b in syscall (frame=3D {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D 143527936, = tf_esi =3D 3805, tf_ebp =3D -1077947304, tf_isp =3D -336994956, tf_ebx =3D = 674367808, tf_edx =3D 674442144, tf_ecx =3D 674442144, tf_eax =3D 4, tf_trapno =3D 0, = tf_err =3D 2, tf_eip =3D 673884295, tf_cs =3D 31, tf_eflags =3D 530, tf_esp =3D = -1077947332, tf_ss =3D 47}) at /usr/src/sys/i386/i386/trap.c:1010 #29 0xc060df8d in Xint0x80_syscall () at {standard input}:136 ---Can't read userspace from dump, or kernel process--- FreeBSD hercules.epicserver.com 5.2.1-RELEASE-p9 FreeBSD = 5.2.1-RELEASE-p9 #11: Mon Jul 5 16:50:10 CDT 2004 =20 admin@hercules.epicserver.com:/usr/obj/usr/src/sys/HERCULES i386 Both seem to have completely different origins, but maybe there is some = sort of correlation. Thank You, Justin Bachus From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 15:34:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECE3816A4CE for ; Tue, 10 Aug 2004 15:34:33 +0000 (GMT) Received: from polaris.canweb.ca (polaris.canweb.ca [204.225.44.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E95143D31 for ; Tue, 10 Aug 2004 15:34:33 +0000 (GMT) (envelope-from david@canweb.ca) Received: (from root@localhost) by polaris.canweb.ca (8.12.6/8.12.6) id i7AFYWxO043007 for freebsd-hackers@freebsd.org; Tue, 10 Aug 2004 11:34:32 -0400 (EDT) (envelope-from david@canweb.ca) Received: from ceti ([192.168.45.133]) by polaris.canweb.ca (8.12.6/8.12.6av) with ESMTP id i7AFXkHp042898 for ; Tue, 10 Aug 2004 11:33:50 -0400 (EDT) (envelope-from david@canweb.ca) Message-Id: <200408101533.i7AFXkHp042898@polaris.canweb.ca> From: "David Grant" To: Date: Tue, 10 Aug 2004 11:33:46 -0400 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcR+3NGvlddjVr3hRAG3ugSOdDcOOAAEC7zg X-Virus-Scanned: by AMaViS perl-11 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: FW: Anyone tried new Dell PowerEdge 2850 Server Box? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 15:34:34 -0000 Has anyone tried either Stable or Current on the new Dell 1850 or 2850 boxes (looks like identical motherboard)? Or any other platform using the Intel E7520 chipset? Comments? Dave ---- David Grant CanWeb Internet Services From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 15:36:14 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EF8916A4CE; Tue, 10 Aug 2004 15:36:14 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 661DE43D49; Tue, 10 Aug 2004 15:36:13 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i7AFa5io055162; Tue, 10 Aug 2004 17:36:11 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4118EB5A.6090001@DeepCore.dk> Date: Tue, 10 Aug 2004 17:35:54 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marc Fonvieille References: <20040809185615.GA60496@freebie.xs4all.nl> <4117DEAF.1000500@DeepCore.dk> <20040810115559.GD18950@abigail.blackend.org> <4118C996.8090201@DeepCore.dk> <20040810132940.GF18950@abigail.blackend.org> <4118D123.8030204@DeepCore.dk> <20040810140408.GG18950@abigail.blackend.org> <4118D6F0.4010100@DeepCore.dk> <20040810141659.GH18950@abigail.blackend.org> In-Reply-To: <20040810141659.GH18950@abigail.blackend.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-mail-scanned: by DeepCore Virus & Spam killer v1.4 cc: Wilko Bulte cc: hackers@freebsd.org Subject: Re: ATAPI DVDwriters (not) to buy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 15:36:14 -0000 Marc Fonvieille wrote: > On Tue, Aug 10, 2004 at 04:08:48PM +0200, S=F8ren Schmidt wrote: >=20 >>>I used in past your cdrecord version when it was available on your sit= e. >>>Is there any new version freely available? :) >> >>They are still at my site actually, butI havn't cared to update them=20 >>much (dont fix what aint broken)... >> >=20 > [...] >=20 > It seems ftp.freebsd.dk does not accept passive mode :(( Sorry, glitch, fixed... -S=F8ren From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 16:46:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1A7316A4CE for ; Tue, 10 Aug 2004 16:46:54 +0000 (GMT) Received: from cydem.org (S0106000103ce4c9c.ed.shawcable.net [68.149.254.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 575B743D49 for ; Tue, 10 Aug 2004 16:46:54 +0000 (GMT) (envelope-from soralx@cydem.org) Received: from [68.149.254.171] (S01060020ed3972ba.ed.shawcable.net [68.149.254.171]) by cydem.org (Postfix/FreeBSD) with ESMTP id 2E7B538258; Tue, 10 Aug 2004 10:46:54 -0600 (MDT) From: To: freebsd-hackers@freebsd.org Date: Tue, 10 Aug 2004 10:46:50 -0600 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408101046.50543.soralx@cydem.org> cc: breath@unix.net Subject: Re: Reboots after "OR AL,1 MOV CR0, EAX" on some computers. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 16:46:54 -0000 > good free environment for initialization and further running. Shortly: ON > SOME COMPUTERS (MAYBE CPUS) I GET REBOOTING JUST ON 'JMP' INSTRUCTION > AFTER PE BIT IS ENABLED. I've got no reboots on all i386, i486, i586 > computers that I tryed to boot from. I have a Pentium III Celeron > (Coppermine) 900MHz - no reboots. Also tested on some Pentium II 400MHz - > no reboots. But on other side Pentium IV (don't remember speed) gave me a > reboot. And other computer I was not able to see processor model (maybe > PentiumIV !?) gave me a reboot too. Using endless loop stop points I > figured out that reboot is before any instruction pointed by 'protected' > label and that reboot happens after setting the PE bit. I've tested the code on a Dual-CPU P-166 - the system always goes into cold reboot. I first thought that SMP systems need some special procedure to switch to protected mode (the fact that all Pentium IV CPUs have second logical processor helps the idea), but then I tested it on Athlon XP system - reboots also. I'll play with it later. Maybe somebody at freebsd-hackers know the answer? Timestamp: 0x4118F317 [SorAlx] http://cydem.org.ua/ ridin' VN1500-B2 From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 17:04:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E81616A4CF for ; Tue, 10 Aug 2004 17:04:35 +0000 (GMT) Received: from north-zone.net (wh1.north-zone.net [65.110.60.200]) by mx1.FreeBSD.org (Postfix) with SMTP id 68F7843D2D for ; Tue, 10 Aug 2004 17:04:30 +0000 (GMT) (envelope-from nicobn@quebecbsd.org) Received: (qmail 860 invoked by uid 80); 10 Aug 2004 17:04:46 -0000 Received: from 69.70.227.33 (SquirrelMail authenticated user nicobn@quebecbsd.org) by webmail.north-zone.net with HTTP; Tue, 10 Aug 2004 17:04:46 -0000 (GMT) Message-ID: <3298.69.70.227.33.1092157486.squirrel@webmail.north-zone.net> Date: Tue, 10 Aug 2004 17:04:46 -0000 (GMT) From: Nicolas =?iso-8859-1?Q?B=E9rard_Nault?= To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: [Fwd: Re: Which architecture] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: nicobn@quebecbsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 17:04:35 -0000 jean-marc tallet said: > Hi, > > > I have a typical pc where I run windows and wish to > install FreeBSD. Which platform should I choose? > My processor is x86 family 6 model 4. > > > Sorry also I wanted to know which architecture to pick > up on the mirror site, between pc98 and i386! > You'll need FreeBSD 4.10 i386. 5.2.1 is a developpement release and PC98 is totally another architecture. -- Nicolas Bérard Nault (nicobn@quebecbsd.org) http://staff.xeatech.net/nicobn PGP public key: 0x64159509 From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 17:24:10 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ADF216A4CE for ; Tue, 10 Aug 2004 17:24:10 +0000 (GMT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0B7B43D1F for ; Tue, 10 Aug 2004 17:24:09 +0000 (GMT) (envelope-from cubez@start.no) Received: from khonsu (chasm.nu [80.203.235.133]) by mail.broadpark.no (Postfix) with ESMTP id 217423C92 for ; Tue, 10 Aug 2004 19:24:37 +0200 (MEST) From: "christian astrup bakke // chasm" To: Date: Tue, 10 Aug 2004 19:25:56 +0200 Organization: c a b consulting 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.2800.1441 thread-index: AcR+/xh29DuGADV+RIqgbphFR4Bl5A== Message-Id: <20040810172437.217423C92@mail.broadpark.no> Subject: piespy on freebsd 4.10 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cubez@start.no List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 17:24:10 -0000 hi! has anyone here successfully installed piespy (link further down) in a 4.10(-release) enviroment? it needs java, and a paragraph on the piespy page says: "If you run PieSpy in a non-graphical environment (e.g. a Unix console that does not have access to an X server) you will need to pass the following command line parameter to java: -Djava.awt.headless=true. Note that PieSpy may not function properly on FreeBSD. This is because Java on FreeBSD handles floating point calculations incorrectly." i indeed plan to use it from the console on my server. neither piespy og java has been installed at this point, because i'd like some feedback on it first. so, what do you guys and girls think? is this "floating point calculations" thing still a problem? link til piespy: http://www.jibble.org/piespy/ thanks in advance! -- with regards, christian astrup bakke // chasm. http://chasm.nu/ - chasm at chasm dot nu pgp key id: 0xF0FB7BB7 pgp fp: 9EB1 AA42 1142 2A7C CD24 65CA 584E 537C F0FB 7BB7 (scanned with norton antivirus 2004) From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 17:52:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C7E516A4CE for ; Tue, 10 Aug 2004 17:52:02 +0000 (GMT) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE37743D2D for ; Tue, 10 Aug 2004 17:52:01 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from [198.60.22.205] (helo=mgr5.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1Buan3-0000Ul-02; Tue, 10 Aug 2004 11:52:01 -0600 Received: from [166.70.56.15] (helo=misty.eyesbeyond.com) by mgr5.xmission.com with esmtp (Exim 4.32) id 1Buan2-0007J1-R2; Tue, 10 Aug 2004 11:52:01 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) i7AHpxQq094668; Tue, 10 Aug 2004 11:51:59 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.11/8.12.11/Submit) id i7AHpw7W094667; Tue, 10 Aug 2004 11:51:58 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 10 Aug 2004 11:51:58 -0600 From: Greg Lewis To: christian astrup bakke // chasm Message-ID: <20040810175158.GA94493@misty.eyesbeyond.com> References: <20040810172437.217423C92@mail.broadpark.no> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <20040810172437.217423C92@mail.broadpark.no> User-Agent: Mutt/1.4.2.1i Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mgr5.xmission.com X-Spam-Level: X-Spam-Status: No, hits=-1.5 required=8.0 tests=BAYES_01 autolearn=no version=2.63 X-SA-Exim-Connect-IP: 166.70.56.15 X-SA-Exim-Mail-From: glewis@eyesbeyond.com X-SA-Exim-Version: 4.0 (built Sat, 24 Apr 2004 12:31:30 +0200) X-SA-Exim-Scanned: Yes (on mgr5.xmission.com) cc: freebsd-hackers@freebsd.org Subject: Re: piespy on freebsd 4.10 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 17:52:02 -0000 On Tue, Aug 10, 2004 at 07:25:56PM +0200, christian astrup bakke // chasm wrote: > has anyone here successfully installed piespy (link further down) in a > 4.10(-release) enviroment? it needs java, and a paragraph on the piespy page > says: > > "If you run PieSpy in a non-graphical environment (e.g. a Unix console that > does not have access to an X server) you will need to pass the following > command line parameter to java: -Djava.awt.headless=true. Note that PieSpy > may not function properly on FreeBSD. This is because Java on FreeBSD > handles floating point calculations incorrectly." > > i indeed plan to use it from the console on my server. neither piespy og > java has been installed at this point, because i'd like some feedback on it > first. > > so, what do you guys and girls think? is this "floating point calculations" > thing still a problem? > > link til piespy: http://www.jibble.org/piespy/ Firstly, this is better asked on freebsd-java, not freebsd-hackers. In response to your question, both the 1.3 and 1.4 JDK implementations have passed all the extensive floating point tests in the JCK compliance suite. The statement they made may have been true in the early days of porting the JDK, but is currently without any factual basis. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 18:39:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E46516A4CE for ; Tue, 10 Aug 2004 18:39:06 +0000 (GMT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 122D643D45 for ; Tue, 10 Aug 2004 18:39:05 +0000 (GMT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from localhost (localhost [127.0.0.1]) by cactus.fi.uba.ar (8.12.11/8.12.11) with ESMTP id i6UKqO5B031747; Fri, 30 Jul 2004 17:52:24 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Fri, 30 Jul 2004 17:52:24 -0300 (ART) From: Fernando Gleiser To: freebsd-hackers@freebsd.org In-Reply-To: <20040729201909.GA12370@shellma.zin.lublin.pl> Message-ID: <20040730174754.F30938@cactus.fi.uba.ar> References: <200407281145.27824.db@traceroute.dk> <200407281502.46395.max@love2party.net> <20040729201909.GA12370@shellma.zin.lublin.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -104.901 () BAYES_00,USER_IN_WHITELIST X-Scanned-By: MIMEDefang 2.42 cc: Max Laier Subject: Re: Ready or not? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 18:39:06 -0000 On Thu, 29 Jul 2004, Pawel Malachowski wrote: > On Wed, Jul 28, 2004 at 03:02:38PM +0200, Max Laier wrote: > > Hello, > > > as PF+ALTQ gateway in production environment. For ALTQ there is the problem > > of "will your driver be supported?". > > Could You please explain a bit, why ALTQ model is placed so close > to network adapter driver (that they have to be modified) instead > of placing it in upper layers (and leaving NIC drivers untouched)? Short answer: ALTQ is short for "alternate queueing", it works by changing the default (FIFO) queueing discipline of the NIC. For the details and design criteria, look here: ftp://ftp.csl.sony.co.jp/pub/kjc/papers/dissertation.ps.gz http://www.csl.sony.co.jp/person/kjc/kjc/papers/usenix98/ Fer From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 22:06:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FD6216A4CE for ; Tue, 10 Aug 2004 22:06:48 +0000 (GMT) Received: from minerva.int.gov.br (nat.int.gov.br [200.20.196.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2DA743D2D for ; Tue, 10 Aug 2004 22:06:46 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from jonny.eng.br (jonny.int.gov.br [10.0.8.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by minerva.int.gov.br (Postfix) with ESMTP id 8D9D5BE516 for ; Tue, 10 Aug 2004 19:06:44 -0300 (BRT) Message-ID: <411946F4.7030508@jonny.eng.br> Date: Tue, 10 Aug 2004 19:06:44 -0300 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20040809094325.6F8D443D1F@mx1.FreeBSD.org> <20040810111749.GA48836@grummit.biaix.org> In-Reply-To: <20040810111749.GA48836@grummit.biaix.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Realtime memory testing - Was: Re: how to logically disable memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 22:06:48 -0000 Porting is probably not an option, since the memory managers are very different. But the same idea could be applied. Indeed, in my college times, I had a class about memory testing procedures, and had an idea to patch the FreeBSD kernel to do realtime memory tests and lock bad memory. This way, the system would be a lot more stable, even with bad hardware (common in poor countries like Brasil). The solution is probably near the VM core. At that time I was thinking in changing the page mapper, but now I know this would just make the system more i386 specific, and the solution could be architecture generic. No, unfortunatly I never let this idea grow into a solution. Probably because I never got the guts to fully understand the FreeBSD VM engine. ;-) Joan Picanyol wrote: > * Danny Braniss [20040809 11:42]: > >>is there an 'easy' way to mark some memory as unusable? thanks, > > > Linux has BadRAM: http://rick.vanrein.org/linux/badram/index.html, I > think someone was thinking of porting it to FreeBSD... (or maybe it was > you ;) > > qvb From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 23:20:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C84DC16A4D2 for ; Tue, 10 Aug 2004 23:20:20 +0000 (GMT) Received: from mail.asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id E020F43D1D for ; Tue, 10 Aug 2004 23:20:19 +0000 (GMT) SRS0=SKjgfk80=LA=asarian-host.net=admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.13.1/8.13.1) id i7ANKGVD003996 for freebsd-hackers@freebsd.org; Wed, 11 Aug 2004 01:20:16 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Received-SPF: pass (asarian-host.net: domain of admin@asarian-host.net designates sender IP as SASL permitted sender) Message-Id: <200408102320.I7ANKGCW003986@asarian-host.net> Date: Tue, 10 Aug 2004 23:20:16 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: QeONdX8orrQc72fDwND2URFerzOJHQgfRfLDc3X6gFSRSLxIBGKgP7tMICS+JR6pUjRkCGKHcbFuOF3y/OCHeA== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers, otherwise we are unable to process your complaint Organization: Asarian-host To: X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Auth: Asarian-host PGP signature iQEVAwUAQRlYMDFqW1BleBN9AQGs6Af/eC6zihaYnCn7lI76lH964bXwdti/vuXd O+yFT6fOQCSkdpepoVNexjXTok4HKeWMUprww5EeLFkBF6ItuCK6cmplnjFkaza1 RYn6zEfvNdZrVudInx+91e/2k26yx/8vKuVfPmaIIWb+03LwZZFx/PuaizDSV8Uk 29mQ+sI3EUkeSFE1HU6MxsFQ3L+dMujYkT0C6tA7sTubn/d9PbOV7UX21fzwNkAw 7eeaotdQXoGBZIexK084qYszgpNmmOyy366/L9bHvI6nzYP3Jm77atxP+5JnsO/F OlWubpOUA1VH6txEynhxiI1qZjs589TO4D91aGCAwLz8koNWEQFbwA== =2Omb Subject: Re: Using the VIA 8237 ATA133 IDE ports X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 23:20:20 -0000 Heikki Turunen wrote: >> Ok, I am now about to upgrade. I can still not tell, from the >> hardware notes, whether 4.10R will actually support the VIA 8237 ATA >> 133 as well (it only talks about VIA 8237 SATA 150). I hope so. > > I'm using 4.10-STABLE and VIA 8237 works just fine. > > --------8<-------- > localhost/heikki:$ dmesg | grep atapci1 > atapci1: port 0x9000-0x900f irq 14 at > device 15.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci1 > ata1: at 0x170 irq 15 on atapci1 > -------->8-------- I overcame my reluctance, upgraded to 4.10-RELEASE-p2, and now everything is working again! :) atapci1: port 0xd000-0xd0ff,0xd400-0xd40f,0xd800-0xd803,0xe000-0xe007,0xe400-0xe403,0xe800 -0xe807 irq 10 at device 15.0 on pci0 ata4: at 0xe800 on atapci1 ata5: at 0xe000 on atapci1 atapci2: port 0xfc00-0xfc0f at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci2 ata1: at 0x170 irq 15 on atapci2 ad0: 39205MB [79656/16/63] at ata0-master UDMA133 ad4: 78167MB [158816/16/63] at ata2-master UDMA133 Long live 4.10 FreeBSD VIA 8237 support! Now I will never have to start using 5.x series. :) Yay! - Mark From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 03:51:14 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E32A816A4CE for ; Wed, 11 Aug 2004 03:51:14 +0000 (GMT) Received: from angryfist.fasttrackmonkey.com (angryfist.fasttrackmonkey.com [216.223.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id F007A43D48 for ; Wed, 11 Aug 2004 03:51:11 +0000 (GMT) (envelope-from spork@fasttrackmonkey.com) Received: (qmail 19533 invoked by uid 2003); 11 Aug 2004 03:49:28 -0000 Received: from spork@fasttrackmonkey.com by angryfist.fasttrackmonkey.com by uid 1001 with qmail-scanner-1.20 (clamscan: 0.65. Clear:RC:1(216.220.116.154):. Processed in 0.041809 secs); 11 Aug 2004 03:49:28 -0000 Received: from unknown (HELO toad.nat.fasttrackmonkey.com) (216.220.116.154) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 11 Aug 2004 03:49:27 -0000 Date: Tue, 10 Aug 2004 23:52:01 -0400 (EDT) From: Charles Sprickman X-X-Sender: spork@toad.nat.fasttrackmonkey.com To: freebsd-hackers@freebsd.org Message-ID: <20040810234448.A709@toad.nat.fasttrackmonkey.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: fsck and lost+found space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 03:51:15 -0000 Hi, I've worked through most of the problems I had with trying to recover some data from a dd image of a wrecked filesystem. Thanks very much to everyone that helped me out with the basics and with the vnconfig stuff to mount it. Right now I'm working on another copy of this same image, and I could use a bit of help with a problem I'm having while running fsck. At some point during the check, fsck starts complaining that there's not enough space in "lost+found" and that the file it just rescued will be trashed instead of being stashed in lost+found. >From what I've seen digging through Google this isn't an issue of not enough space on the device itself, but some limitation on how many files/directories that fsck can create in lost+found. Some folks here have suggested creating and then deleting a large number of files in that directory and then re-running fsck. I have tried that, but since I'm mounting a dirty filesystem r/w to do that all of my attempts have ended in the box panicing. Is there any other option? I know that when I hit the stage where fsck starts running out of space I'm losing about 5GB of stuff. The reason there are such a large number of files is that this is the remnants of a mailserver that used Maildirs... I was hoping for some option in fsck to allow an alternate lost+found directory on another device, but no such luck. Is there anything else that I'm overlooking? I'm willing to try anything since I'm doing all this on a junk box with a ton of space that I can panic without it bothering anyone. Thanks again, Charles From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 06:17:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0AA716A4CE for ; Wed, 11 Aug 2004 06:17:48 +0000 (GMT) Received: from pc5.i.0x5.de (n.0x5.de [213.146.113.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CA2C43D1D for ; Wed, 11 Aug 2004 06:17:47 +0000 (GMT) (envelope-from nicolas@i.0x5.de) Received: from pc5.i.0x5.de (nicolas@localhost [127.0.0.1]) by pc5.i.0x5.de (8.12.11/8.12.11) with ESMTP id i7B6HeSM064876; Wed, 11 Aug 2004 08:17:40 +0200 (CEST) (envelope-from nicolas@pc5.i.0x5.de) Received: (from nicolas@localhost) by pc5.i.0x5.de (8.12.11/8.12.11/Submit) id i7B6Hd07064875; Wed, 11 Aug 2004 08:17:39 +0200 (CEST) (envelope-from nicolas) Date: Wed, 11 Aug 2004 08:17:39 +0200 From: Nicolas Rachinsky To: Charles Sprickman Message-ID: <20040811061739.GD63484@pc5.i.0x5.de> Mail-Followup-To: Charles Sprickman , freebsd-hackers@freebsd.org References: <20040810234448.A709@toad.nat.fasttrackmonkey.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040810234448.A709@toad.nat.fasttrackmonkey.com> X-Powered-by: FreeBSD X-Homepage: http://www.rachinsky.de X-PGP-Keyid: C11ABC0E X-PGP-Fingerprint: 19DB 8392 8FE0 814A 7362 EEBD A53B 526A C11A BC0E X-PGP-Key: http://www.rachinsky.de/nicolas/nicolas_rachinsky.asc User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: fsck and lost+found space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 06:17:48 -0000 * Charles Sprickman [2004-08-10 23:52 -0400]: > I was hoping for some option in fsck to allow an alternate lost+found > directory on another device, but no such luck. Is there anything else > that I'm overlooking? I'm willing to try anything since I'm doing all > this on a junk box with a ton of space that I can panic without it > bothering anyone. I'm not sure whether this has been suggested before. Can you stop fsck just before it begins to throw away files? Then you could perhaps rename lost+found (perhaps with fsdb) and rerun fsck. Just an idea, Nicolas From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 07:54:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E87416A4CE for ; Wed, 11 Aug 2004 07:54:49 +0000 (GMT) Received: from mail003.syd.optusnet.com.au (mail003.syd.optusnet.com.au [211.29.132.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEC6743D1F for ; Wed, 11 Aug 2004 07:54:47 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) i7B7sbU09890; Wed, 11 Aug 2004 17:54:37 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])i7B7saxP010451; Wed, 11 Aug 2004 17:54:36 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)i7B7sasf010450; Wed, 11 Aug 2004 17:54:36 +1000 (EST) (envelope-from pjeremy) Date: Wed, 11 Aug 2004 17:54:35 +1000 From: Peter Jeremy To: Charles Sprickman , freebsd-hackers@freebsd.org Message-ID: <20040811075435.GA423@cirb503493.alcatel.com.au> References: <20040810234448.A709@toad.nat.fasttrackmonkey.com> <20040811061739.GD63484@pc5.i.0x5.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040811061739.GD63484@pc5.i.0x5.de> User-Agent: Mutt/1.4.2i Subject: Re: fsck and lost+found space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 07:54:49 -0000 On Wed, 2004-Aug-11 08:17:39 +0200, Nicolas Rachinsky wrote: >* Charles Sprickman [2004-08-10 23:52 -0400]: >> I was hoping for some option in fsck to allow an alternate lost+found >> directory on another device, but no such luck. This isn't possible - all fsck does is to create a directory entry pointing to the file. You could add an option to fsck to allow you to specify the directory name but you are still limited by fsck's inability to use indirect blocks for the fsck directory. >Can you stop fsck just before it begins to throw away files? Then you >could perhaps rename lost+found (perhaps with fsdb) and rerun fsck. I've done this. The problem is stopping fsck before it starts throwing away files. Once you stop fsck, you need to do a 'mount -f ...', rename lost+found to something else, unmount the filesystem and start lost+found again. -- Peter Jeremy From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 07:58:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4A3F16A4CE for ; Wed, 11 Aug 2004 07:58:35 +0000 (GMT) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id E482043D1D for ; Wed, 11 Aug 2004 07:58:34 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) i7B7wLfd076127; Wed, 11 Aug 2004 09:58:21 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.11/8.12.9) with ESMTP id i7B7wL4L072240; Wed, 11 Aug 2004 09:58:21 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.12.11/8.12.11/Submit) id i7B7wLL5072239; Wed, 11 Aug 2004 09:58:21 +0200 (CEST) (envelope-from wb) Date: Wed, 11 Aug 2004 09:58:21 +0200 From: Wilko Bulte To: Peter Jeremy Message-ID: <20040811075821.GB72196@freebie.xs4all.nl> References: <20040810234448.A709@toad.nat.fasttrackmonkey.com> <20040811061739.GD63484@pc5.i.0x5.de> <20040811075435.GA423@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040811075435.GA423@cirb503493.alcatel.com.au> User-Agent: Mutt/1.4.1i X-OS: FreeBSD 4.10-STABLE X-PGP: finger wilko@freebsd.org X-Virus-Scanned: by XS4ALL Virus Scanner cc: Charles Sprickman cc: freebsd-hackers@freebsd.org Subject: Re: fsck and lost+found space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 07:58:35 -0000 On Wed, Aug 11, 2004 at 05:54:35PM +1000, Peter Jeremy wrote.. > On Wed, 2004-Aug-11 08:17:39 +0200, Nicolas Rachinsky wrote: > >* Charles Sprickman [2004-08-10 23:52 -0400]: > >> I was hoping for some option in fsck to allow an alternate lost+found > >> directory on another device, but no such luck. > > This isn't possible - all fsck does is to create a directory entry > pointing to the file. You could add an option to fsck to allow you > to specify the directory name but you are still limited by fsck's > inability to use indirect blocks for the fsck directory. Is this the same thing I remember from SysV days where we used to create a ton of files in lost+found and then delete them so that in case fsck ever needed dir entries it could re-use them? (memory is very dim..) -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 10:00:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8755F16A4CF for ; Wed, 11 Aug 2004 10:00:27 +0000 (GMT) Received: from mail020.syd.optusnet.com.au (mail020.syd.optusnet.com.au [211.29.132.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 810DD43D39 for ; Wed, 11 Aug 2004 10:00:26 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) i7BA0F007299; Wed, 11 Aug 2004 20:00:15 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])i7BA0ExP010658; Wed, 11 Aug 2004 20:00:14 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)i7BA0E5E010657; Wed, 11 Aug 2004 20:00:14 +1000 (EST) (envelope-from pjeremy) Date: Wed, 11 Aug 2004 20:00:14 +1000 From: Peter Jeremy To: Wilko Bulte Message-ID: <20040811100014.GC423@cirb503493.alcatel.com.au> References: <20040810234448.A709@toad.nat.fasttrackmonkey.com> <20040811061739.GD63484@pc5.i.0x5.de> <20040811075435.GA423@cirb503493.alcatel.com.au> <20040811075821.GB72196@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040811075821.GB72196@freebie.xs4all.nl> User-Agent: Mutt/1.4.2i cc: Charles Sprickman cc: freebsd-hackers@freebsd.org Subject: Re: fsck and lost+found space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 10:00:27 -0000 On Wed, 2004-Aug-11 09:58:21 +0200, Wilko Bulte wrote: >On Wed, Aug 11, 2004 at 05:54:35PM +1000, Peter Jeremy wrote.. >> On Wed, 2004-Aug-11 08:17:39 +0200, Nicolas Rachinsky wrote: >> >* Charles Sprickman [2004-08-10 23:52 -0400]: >> >> I was hoping for some option in fsck to allow an alternate lost+found >> >> directory on another device, but no such luck. >> >> This isn't possible - all fsck does is to create a directory entry >> pointing to the file. You could add an option to fsck to allow you >> to specify the directory name but you are still limited by fsck's >> inability to use indirect blocks for the fsck directory. > >Is this the same thing I remember from SysV days where we used to create >a ton of files in lost+found and then delete them so that in case fsck >ever needed dir entries it could re-use them? The quick answer is no. I got the impression that Charles wanted to have fsck recover files to a different filesystem - this is not currently possible and would be non-trivial to add (the file data would need to be copied). OTOH, it would be trivial to change the "lost+found" string in fsck to something else or even make it an option. I remember using S5FS. S5FS didn't shrink directories and fsck couldn't expand the lost+found directory so you had to pre-grow it by creating and deleting lots of files. I don't know if there was any restriction on growing the directory enough to need indirect blocks (I don't think I ever had a FS go so bad that it mattered). When FFS gained the ability to shrink directories, it was no longer safe to rely on a pre-allocated lost+found so fsck needed to learn how to expand lost+found. Presumably to simplify the code, fsck doesn't have the logic to handle indirect blocks in directories. It shouldn't be that difficult to add the necessary code but there shouldn't be much call for fsck to recover >~5000 files. -- Peter Jeremy From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 22:36:18 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C531016A4CE for ; Tue, 10 Aug 2004 22:36:18 +0000 (GMT) Received: from outmx001.isp.belgacom.be (outmx001.isp.belgacom.be [195.238.3.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 486C843D2D for ; Tue, 10 Aug 2004 22:36:18 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx001.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i7AMaEsP004290 for ; Wed, 11 Aug 2004 00:36:14 +0200 (envelope-from ) Received: from lori.mine.nu (163-139.244.81.adsl.skynet.be [81.244.139.163]) with ESMTP id i7AMa7Sl004218 for ; Wed, 11 Aug 2004 00:36:07 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id A645E8E5; Wed, 11 Aug 2004 00:36:06 +0200 (CEST) Date: Wed, 11 Aug 2004 00:36:06 +0200 From: Geert Hendrickx To: freebsd-hackers@freebsd.org Message-ID: <20040810223606.GA75648@lori.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-GPG-Key: http://lori.mine.nu/gnupgkey.asc X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en X-Mailman-Approved-At: Wed, 11 Aug 2004 12:43:44 +0000 Subject: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 22:36:18 -0000 Hi, is there any way (or could it be implemented) to rebuild only the changes in world and kernel sources after a cvsup? DragonFly BSD features "make quickworld" and "make quickkernel" which does exactly that. I understand this might result in some conflicts, and DragonFly also advises to do a full buildkernel and buildworld in case of problems. But on the other hand, it's very frustrating to see all the stuff like gcc, perl, sendmail, ... being recompiled just because of some minor changes in some other, unrelated part of the OS. And in the end, that is exactly what make has been designed for: only rebuild the changes (and whatever depends on that). Any thoughts? GH PS: please CC me in reply. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 23:51:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8305116A4CE for ; Tue, 10 Aug 2004 23:51:16 +0000 (GMT) Received: from coverity.dreamhost.com (coverity.dreamhost.com [66.33.192.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77E1843D2F for ; Tue, 10 Aug 2004 23:51:16 +0000 (GMT) (envelope-from tedu@coverity.com) Received: from coverity.com (dsl093-171-098.sfo4.dsl.speakeasy.net [66.93.171.98]) by coverity.dreamhost.com (Postfix) with ESMTP id 34F2590888 for ; Tue, 10 Aug 2004 16:51:16 -0700 (PDT) Message-ID: <41195E44.6070207@coverity.com> Date: Tue, 10 Aug 2004 16:46:12 -0700 From: Ted Unangst User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 11 Aug 2004 12:43:44 +0000 Subject: buglet in nfs_mountroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 23:51:16 -0000 in freebsd 4.10 nfs/nfs_vfsops.c:nfs_mountroot, the handling of swap_mp is incorrect. the code at line 498 appears useless, and furthermore uses swap_mp without initialization. From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 11:07:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E08F816A4CE for ; Wed, 11 Aug 2004 11:07:26 +0000 (GMT) Received: from mx.nsu.ru (mx.nsu.ru [212.192.164.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D6DA43D1D for ; Wed, 11 Aug 2004 11:07:25 +0000 (GMT) (envelope-from danfe@regency.nsu.ru) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.34) id 1Bur7h-0000no-Ps; Wed, 11 Aug 2004 18:18:25 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.12.10/8.12.10) with ESMTP id i7BB7W0m083307; Wed, 11 Aug 2004 18:07:32 +0700 (NOVST) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.12.10/8.12.10/Submit) id i7BB7VY9083272; Wed, 11 Aug 2004 18:07:31 +0700 (NOVST) (envelope-from danfe) Date: Wed, 11 Aug 2004 18:07:31 +0700 From: Alexey Dokuchaev To: eta@lclark.edu Message-ID: <20040811110731.GA74988@regency.nsu.ru> 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: Wed, 11 Aug 2004 12:43:44 +0000 cc: hackers@freebsd.org cc: dri-devel@lists.sourceforge.net Subject: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 11:07:27 -0000 Hi there, Judging from /sys/dev/drm/ contents, and listed kernel options in NOTES, there's currently evidence of support for i810/830 chips in FreeBSD, which (I suspect) is the probable reason why DRI is not enabled on my box (FreeBSD 5.2-CURRENT from yesterday, latest X.Org). I also found traces of i810/830 support in FDo CVS (http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/drm/bsd/i830/), getting me to the fact that i8x0 files were removed from the BSD side, since they were not actually ported. (Unfinished? broken? unstable?) Googling also revealed that back in 2002, someone (namely, moto kawasaki ) was compiling FreeBSD's DRM with signs of i830 in it (https://lists.csociety.org/pipermail/freebsd-xfree86/2002-April/000189.html): %%% cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstr ict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fform at-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -I../../contri b/ipfilter -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 ../../dev/drm/i830_dma.c ../../dev/drm/i830_dma.c: In function `i830_getbuf': ../../dev/drm/i830_dma.c:1506: `current' undeclared (first use in this function) ../../dev/drm/i830_dma.c:1506: (Each undeclared identifier is reported only once ../../dev/drm/i830_dma.c:1506: for each function it appears in.) *** Error Code 1 Stop in /usr/src/sys/compile/KAWASAKI %%% I would be most grateful to anyone that could shine a bit of light on current situation, or at least give authoritative and complete answer on whether I can or cannot use DRM/DRI on FreeBSD with i830 for today. On Eric's page (http://people.freebsd.org/~anholt/dri/) there's a TODO item that says "Port the i810 driver". What is current status of this item? Is there anything I can help with? In case there something that can be done to hack it around and make it work, I'd really love to hear how. (Maybe there some untested or broken patches are floating around that one can make use of.) Thanks in advance. Any information/pointers are most welmome. ./danfe From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 12:47:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3631816A4CE for ; Wed, 11 Aug 2004 12:47:17 +0000 (GMT) Received: from eddie.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id A946543D2D for ; Wed, 11 Aug 2004 12:47:16 +0000 (GMT) (envelope-from simon@eddie.nitro.dk) Received: by eddie.nitro.dk (Postfix, from userid 1000) id 0B05D11811; Wed, 11 Aug 2004 14:47:14 +0200 (CEST) Date: Wed, 11 Aug 2004 14:47:14 +0200 From: "Simon L. Nielsen" To: Geert Hendrickx Message-ID: <20040811124714.GA51160@eddie.nitro.dk> References: <20040810223606.GA75648@lori.mine.nu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <20040810223606.GA75648@lori.mine.nu> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 12:47:17 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2004.08.11 00:36:06 +0200, Geert Hendrickx wrote: > Hi,=20 >=20 > is there any way (or could it be implemented) to rebuild only the > changes in world and kernel sources after a cvsup? DragonFly BSD > features "make quickworld" and "make quickkernel" which does exactly > that. =20 You can do that already: make buildworld buildkernel -DNOCLEAN --=20 Simon L. Nielsen FreeBSD Documentation Team --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBGhVSh9pcDSc1mlERAshqAJ9ZXrXyRdGzrknKHM+rN7D7PQuYqACePGzL 4PA+2ke9YPrWlxD1MjZEOK8= =Quh/ -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu-- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 12:49:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EAF016A4CE for ; Wed, 11 Aug 2004 12:49:12 +0000 (GMT) Received: from av6-2-sn2.hy.skanova.net (av6-2-sn2.hy.skanova.net [81.228.8.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 302E243D1F for ; Wed, 11 Aug 2004 12:49:11 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av6-2-sn2.hy.skanova.net (Postfix, from userid 502) id CE99537E47; Wed, 11 Aug 2004 14:49:09 +0200 (CEST) Received: from smtp2-2-sn2.hy.skanova.net (smtp2-2-sn2.hy.skanova.net [81.228.8.178]) by av6-2-sn2.hy.skanova.net (Postfix) with ESMTP id BD80C37E42 for ; Wed, 11 Aug 2004 14:49:09 +0200 (CEST) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp2-2-sn2.hy.skanova.net (Postfix) with SMTP id 3A23D37E42 for ; Wed, 11 Aug 2004 14:49:08 +0200 (CEST) Received: (qmail 73911 invoked by uid 1001); 11 Aug 2004 12:49:08 -0000 Date: Wed, 11 Aug 2004 14:49:08 +0200 From: Erik Trulsson To: Geert Hendrickx Message-ID: <20040811124908.GA73891@falcon.midgard.homeip.net> Mail-Followup-To: Geert Hendrickx , freebsd-hackers@freebsd.org References: <20040810223606.GA75648@lori.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040810223606.GA75648@lori.mine.nu> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 12:49:12 -0000 On Wed, Aug 11, 2004 at 12:36:06AM +0200, Geert Hendrickx wrote: > Hi, > > is there any way (or could it be implemented) to rebuild only the > changes in world and kernel sources after a cvsup? DragonFly BSD > features "make quickworld" and "make quickkernel" which does exactly > that. 'make -DNOCLEAN buildworld' seems to work fine for me. > > I understand this might result in some conflicts, and DragonFly also > advises to do a full buildkernel and buildworld in case of problems. > But on the other hand, it's very frustrating to see all the stuff like > gcc, perl, sendmail, ... being recompiled just because of some minor > changes in some other, unrelated part of the OS. And in the end, that > is exactly what make has been designed for: only rebuild the changes > (and whatever depends on that). > > Any thoughts? > > GH > > PS: please CC me in reply. > _______________________________________________ > 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" -- Erik Trulsson ertr1013@student.uu.se From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 15:07:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C578416A4CE for ; Wed, 11 Aug 2004 15:07:22 +0000 (GMT) Received: from mail13.svc.cra.dublin.eircom.net (mail13.svc.cra.dublin.eircom.net [159.134.118.29]) by mx1.FreeBSD.org (Postfix) with SMTP id D8E6243D48 for ; Wed, 11 Aug 2004 15:07:21 +0000 (GMT) (envelope-from sarunas@eircom.net) Received: (qmail 96442 messnum 5112619 invoked from network[194.125.183.22/194-125-183-22.as1.dbc.drogheda.eircom.net]); 11 Aug 2004 15:07:20 -0000 Received: from 194-125-183-22.as1.dbc.drogheda.eircom.net (HELO laserbeam.sv.org) (194.125.183.22) by mail13.svc.cra.dublin.eircom.net (qp 96442) with SMTP; 11 Aug 2004 15:07:20 -0000 Received: by laserbeam.sv.org (Postfix, from userid 1001) id A713C5FA0; Wed, 11 Aug 2004 16:07:21 +0000 (GMT) Date: Wed, 11 Aug 2004 16:07:21 +0000 From: Sarunas Vancevicius To: Geert Hendrickx Message-ID: <20040811160721.GA955@laserbeam.sv.org> Mail-Followup-To: Sarunas Vancevicius , Geert Hendrickx , hackers References: <20040810223606.GA75648@lori.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040810223606.GA75648@lori.mine.nu> User-Agent: Mutt/1.5.6i cc: hackers Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 15:07:22 -0000 On 00:36, Wed 11 Aug 04, Geert Hendrickx wrote: > ers@freebsd.org > X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on laserbeam.sv.org > X-Spam-Level: > X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=ham version=2.63 > Status: RO > Content-Length: 941 > Lines: 24 > > Hi, > > is there any way (or could it be implemented) to rebuild only the > changes in world and kernel sources after a cvsup? DragonFly BSD > features "make quickworld" and "make quickkernel" which does exactly > that. No, the documentation was ahead of actual code, so there is no 'quickkernel', yet, just 'quickworld'. As few people already mentioned, add -DCNOCLEAN flag after makeworld or makekernel. And you can disable the building of most contributed packages, like gdb, sendmail, cvs, games, etc. See make.conf(5). -- Sarunas Vancevicius From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 15:22:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F8EB16A4CE for ; Wed, 11 Aug 2004 15:22:24 +0000 (GMT) Received: from mail04.svc.cra.dublin.eircom.net (mail04.svc.cra.dublin.eircom.net [159.134.118.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B09A943D39 for ; Wed, 11 Aug 2004 15:22:23 +0000 (GMT) (envelope-from sarunas@eircom.net) Received: (qmail 51173 messnum 5059751 invoked from network[194.125.180.44/194-125-180-44.as1.dbc.drogheda.eircom.net]); 11 Aug 2004 15:22:22 -0000 Received: from 194-125-180-44.as1.dbc.drogheda.eircom.net (HELO laserbeam.sv.org) (194.125.180.44) by mail04.svc.cra.dublin.eircom.net (qp 51173) with SMTP; 11 Aug 2004 15:22:22 -0000 Received: by laserbeam.sv.org (Postfix, from userid 1001) id E32E85F66; Wed, 11 Aug 2004 16:22:23 +0000 (GMT) Date: Wed, 11 Aug 2004 16:22:23 +0000 From: Sarunas Vancevicius To: hackers Message-ID: <20040811162223.GA1666@laserbeam.sv.org> Mail-Followup-To: Sarunas Vancevicius , hackers , Geert Hendrickx References: <20040810223606.GA75648@lori.mine.nu> <20040811160721.GA955@laserbeam.sv.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040811160721.GA955@laserbeam.sv.org> User-Agent: Mutt/1.5.6i cc: Geert Hendrickx Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 15:22:24 -0000 On 16:07, Wed 11 Aug 04, Sarunas Vancevicius wrote: > On 00:36, Wed 11 Aug 04, Geert Hendrickx wrote: > > ers@freebsd.org > > X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on laserbeam.sv.org > > X-Spam-Level: > > X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=ham version=2.63 > > Status: RO > > Content-Length: 941 > > Lines: 24 > > > > Hi, > > > > is there any way (or could it be implemented) to rebuild only the > > changes in world and kernel sources after a cvsup? DragonFly BSD > > features "make quickworld" and "make quickkernel" which does exactly > > that. [snip] > As few people already mentioned, add -DCNOCLEAN flag after > makeworld or makekernel. s/-DCNOCLEAN/-DNOCLEAN [snip] -- Sarunas Vancevicius From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 15:25:43 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 897DD16A4CE for ; Wed, 11 Aug 2004 15:25:43 +0000 (GMT) Received: from ktts.kharkov.ua (ktts.kharkov.ua [193.124.57.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 428A343D3F for ; Wed, 11 Aug 2004 15:25:42 +0000 (GMT) (envelope-from igor@ktts.kharkov.ua) Received: from ktts.kharkov.ua (smmsp@localhost [127.0.0.1]) by ktts.kharkov.ua (8.12.10/8.12.9) with ESMTP id i7BFPeTY014817 for ; Wed, 11 Aug 2004 18:25:41 +0300 (EEST) Received: (from igor@localhost) by ktts.kharkov.ua (8.12.10/8.12.9/Submit) id i7BFPdUf014815 for freebsd-hackers@freebsd.org; Wed, 11 Aug 2004 18:25:39 +0300 (EEST) Message-Id: <200408111525.i7BFPdUf014815@ktts.kharkov.ua> To: freebsd-hackers@freebsd.org Date: Wed, 11 Aug 2004 18:25:39 +0300 (EEST) From: igor@ktts.kharkov.ua X-Flames-To: /dev/null X-Header: /usr/include gives great headers X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: 5.2.1 performance problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: igor@ktts.kharkov.ua List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 15:25:43 -0000 Folks, My box is Dell PowerEdge 4600 with: Dual Xeon 2.4GHz aac0 Dell PERC 3/Di with 10x 70Gb HDDs, em0 82544EI, bge0, fxp0, 6GB RAM of which only 4GB being used, This is a Usenet server running INN 2.4.1 (release) connected to Cisco GSR 12416 with Gigabit Ethernet em0; physical connection is 1000SX Full-Duplex. Yesterday I upgraded my news server from 5.1-p17 to 5.2.1-p9 and ran into a performance problem. Want to say from the beginning that during upgrade I transferred all my sysctl and other settings from 5.1 into 5.2.1 This server has about 50 NNTP peers (about 400 TCP connections) and traffic flow used to be at least 100mbit/160mbit in/out repectively. However after upgrade these number dropped down to 90/80mbit (input/output respectively), which is not normal for a Usenet server - now traffic is too low and output traffic must be about as twice higher than input traffic. I tried to do some FTP with nearby servers - along with news traffic it gave something like 380kbytes/sec transfer rate, so total output traffic doesn't exceed 100mbit/sec. I noticed that box started getting input errors on em0. In order to fix that I increased EM_MAX_TXD from 256 to 1024 and EM_MAX_RXD from 256 to 2048. After that Input errors disappeared but I continued getting intr_queue_drops counter increasing. I also observe full Send-Q for many TCP connections. I increased intr_queue_maxlen several times, from 400 up to 1200 with 200 increments, but it's still increasing. I changed kern.hz from 100 to 1000; also played with hw.em0.{tx,rx}_int_delay - neither one helped. Here are my modified sysctl values: kern.ipc.maxsockbuf=524288 net.inet.ip.intr_queue_maxlen=900 net.inet.tcp.sendspace=65536 net.inet.tcp.recvspace=131072 net.inet.tcp.tcbhashsize=16384 net.inet.tcp.rfc1323=1 net.isr.enable=1 net.inet.tcp.path_mtu_discovery=0 net.inet.tcp.delayed_ack=0 net.inet.tcp.newreno=0 net.inet6.ip6.accept_rtadv=1 Also from loader.conf: kern.ipc.nmbclusters=64512 kern.ipc.nmbufs=129024 net.inet.tcp.tcbhashsize=16384 kern.maxdsiz=1342177280 # deprecated in 5.2.1 if_em_load="YES" # made this driver as a module to play with tunables in if_em.h kern.hz="1000" My friend from OpenBSD core team advised to try to increase IFQ_MAXLEN from 50 to 500, but it didn't help too. If anybody has any ideas or suggestions, all are welcome and appreciated. -- Thanks and regards, Igor. If TCP/IP handshaking was less formal, perhaps SYN/ACK would be YO!/SUP! instead... From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 15:38:18 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0140D16A4CE for ; Wed, 11 Aug 2004 15:38:18 +0000 (GMT) Received: from mail10.svc.cra.dublin.eircom.net (mail10.svc.cra.dublin.eircom.net [159.134.118.26]) by mx1.FreeBSD.org (Postfix) with SMTP id 6F29543D5E for ; Wed, 11 Aug 2004 15:38:17 +0000 (GMT) (envelope-from sarunas@eircom.net) Received: (qmail 49056 messnum 1969226 invoked from network[194.125.181.41/194-125-181-41.as1.dbc.drogheda.eircom.net]); 11 Aug 2004 15:38:15 -0000 Received: from 194-125-181-41.as1.dbc.drogheda.eircom.net (HELO laserbeam.sv.org) (194.125.181.41) by mail10.svc.cra.dublin.eircom.net (qp 49056) with SMTP; 11 Aug 2004 15:38:15 -0000 Received: by laserbeam.sv.org (Postfix, from userid 1001) id 9A9435F66; Wed, 11 Aug 2004 16:38:17 +0000 (GMT) Date: Wed, 11 Aug 2004 16:38:17 +0000 From: Sarunas Vancevicius To: hackers Message-ID: <20040811163817.GA1948@laserbeam.sv.org> Mail-Followup-To: Sarunas Vancevicius , hackers , Geert Hendrickx References: <20040810223606.GA75648@lori.mine.nu> <20040811160721.GA955@laserbeam.sv.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040811160721.GA955@laserbeam.sv.org> User-Agent: Mutt/1.5.6i cc: Sarunas Vancevicius cc: Geert Hendrickx Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 15:38:18 -0000 On 16:07, Wed 11 Aug 04, Sarunas Vancevicius wrote: > On 00:36, Wed 11 Aug 04, Geert Hendrickx wrote: > > Hi, > > > > is there any way (or could it be implemented) to rebuild only the > > changes in world and kernel sources after a cvsup? DragonFly BSD > > features "make quickworld" and "make quickkernel" which does exactly > > that. > > No, the documentation was ahead of actual code, so there is > no 'quickkernel', yet, just 'quickworld'. > > As few people already mentioned, add -DCNOCLEAN flag after > makeworld or makekernel. > Ehmm, thats: s/makeworld/buildworld s/makekernel/buildkernel Sorry everyone, for spamming the list, again, because of my mistakes. -- Sarunas Vancevicius From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 17:07:31 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87CC716A4CE for ; Wed, 11 Aug 2004 17:07:31 +0000 (GMT) Received: from pimout3-ext.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08FC643D39 for ; Wed, 11 Aug 2004 17:07:30 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (adsl-68-121-219-69.dsl.snfc21.pacbell.net [68.121.219.69])i7BH7P3d206098; Wed, 11 Aug 2004 13:07:26 -0400 Message-ID: <411A524C.7030308@elischer.org> Date: Wed, 11 Aug 2004 10:07:24 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4b) Gecko/20030524 X-Accept-Language: en, hu MIME-Version: 1.0 To: Sarunas Vancevicius References: <20040810223606.GA75648@lori.mine.nu> <20040811160721.GA955@laserbeam.sv.org> <20040811163817.GA1948@laserbeam.sv.org> In-Reply-To: <20040811163817.GA1948@laserbeam.sv.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Geert Hendrickx cc: hackers Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 17:07:31 -0000 Sarunas Vancevicius wrote: > On 16:07, Wed 11 Aug 04, Sarunas Vancevicius wrote: > >>On 00:36, Wed 11 Aug 04, Geert Hendrickx wrote: >> >>>Hi, >>> >>>is there any way (or could it be implemented) to rebuild only the >>>changes in world and kernel sources after a cvsup? DragonFly BSD >>>features "make quickworld" and "make quickkernel" which does exactly >>>that. >> >>No, the documentation was ahead of actual code, so there is >>no 'quickkernel', yet, just 'quickworld'. >> >>As few people already mentioned, add -DCNOCLEAN flag after >>makeworld or makekernel. >> > > > Ehmm, thats: > > s/makeworld/buildworld > s/makekernel/buildkernel in fact "make everything" seems to be what the doctor orderred.. unless the include files have changed. > > Sorry everyone, for spamming the list, again, because of my mistakes. > From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 19:05:32 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E52C16A4D9 for ; Wed, 11 Aug 2004 19:05:32 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F43943D5A for ; Wed, 11 Aug 2004 19:05:08 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 15982 invoked from network); 11 Aug 2004 19:05:08 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 11 Aug 2004 19:05:08 -0000 Received: from [10.50.41.91] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7BJ516S093561; Wed, 11 Aug 2004 15:05:04 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Wed, 11 Aug 2004 12:20:11 -0400 User-Agent: KMail/1.6.2 References: <20040811110731.GA74988@regency.nsu.ru> In-Reply-To: <20040811110731.GA74988@regency.nsu.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408111220.11512.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Alexey Dokuchaev cc: hackers@FreeBSD.org cc: eta@lclark.edu cc: dri-devel@lists.sourceforge.net Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 19:05:32 -0000 On Wednesday 11 August 2004 07:07 am, Alexey Dokuchaev wrote: > Hi there, > > Judging from /sys/dev/drm/ contents, and listed kernel options in NOTES, > there's currently evidence of support for i810/830 chips in FreeBSD, > which (I suspect) is the probable reason why DRI is not enabled on my > box (FreeBSD 5.2-CURRENT from yesterday, latest X.Org). I also found > traces of i810/830 support in FDo CVS > (http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/drm/bsd/i830/), > getting me to the fact that i8x0 files were removed from the BSD side, > since they were not actually ported. (Unfinished? broken? unstable?) The i830 DRM stuff is ported in a branch of DRI, but it's not in DRI head because of a security problem with the code. -- 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 Aug 11 19:05:32 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F52316A4EC for ; Wed, 11 Aug 2004 19:05:32 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9076743D5C for ; Wed, 11 Aug 2004 19:05:08 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 15982 invoked from network); 11 Aug 2004 19:05:08 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 11 Aug 2004 19:05:08 -0000 Received: from [10.50.41.91] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7BJ516S093561; Wed, 11 Aug 2004 15:05:04 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Wed, 11 Aug 2004 12:20:11 -0400 User-Agent: KMail/1.6.2 References: <20040811110731.GA74988@regency.nsu.ru> In-Reply-To: <20040811110731.GA74988@regency.nsu.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408111220.11512.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Alexey Dokuchaev cc: hackers@FreeBSD.org cc: eta@lclark.edu cc: dri-devel@lists.sourceforge.net Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 19:05:33 -0000 On Wednesday 11 August 2004 07:07 am, Alexey Dokuchaev wrote: > Hi there, > > Judging from /sys/dev/drm/ contents, and listed kernel options in NOTES, > there's currently evidence of support for i810/830 chips in FreeBSD, > which (I suspect) is the probable reason why DRI is not enabled on my > box (FreeBSD 5.2-CURRENT from yesterday, latest X.Org). I also found > traces of i810/830 support in FDo CVS > (http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/drm/bsd/i830/), > getting me to the fact that i8x0 files were removed from the BSD side, > since they were not actually ported. (Unfinished? broken? unstable?) The i830 DRM stuff is ported in a branch of DRI, but it's not in DRI head because of a security problem with the code. -- 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 Aug 11 19:32:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32C0B16A4CE for ; Wed, 11 Aug 2004 19:32:47 +0000 (GMT) Received: from smtp.mi.is (smtp.mi.is [217.151.180.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8239B43D46 for ; Wed, 11 Aug 2004 19:32:46 +0000 (GMT) (envelope-from thib@mi.is) Received: from caulfield.bitcode.org (bofh.bitcode.org [217.151.165.254] (may be forged)) by smtp.mi.is (8.12.10/8.12.10/1.0.1) with SMTP id i7BJWiiv012989 for ; Wed, 11 Aug 2004 19:32:45 GMT Date: Wed, 11 Aug 2004 19:32:54 +0000 From: "Thordur Ivar B." To: freebsd-hackers@freebsd.org Message-Id: <20040811193254.6f0be2c2.thib@mi.is> Organization: n/a X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Where is strnlen() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 19:32:47 -0000 While porting software from a friend wich was developed under Linux, I stumbled upon an error: src/socket.c:236: warning: implicit declaration of function `strnlen' Now my programming experience is nothing to brag about but I wonder why strnlen is not a part of FreeBSD's libc. I think that the use of strlen() insted of strnlen() could resault in buffer-overflow risks and my fellows (most of them are more experienced in the art of programming say that bounds checking is always good.) I have not found anything on google about this subject and if there is something that i overlooked then I'm real sorry for spamming this list. PS: I know that I could use glibc but GPL disgusts me ;) For more information about strnlen() see: http://www.linuxbase.org/spec/refspecs/LSB_1.2.0/gLSB/baselib-strnlen-3.html kv, thib[att]mi(dot).is -- As far as the laws of mathematics refer to reality, they are not certain, and as far as they are certain, they do not refer to reality. -- Albert Einstein From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 20:01:03 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DBAB16A4CE for ; Wed, 11 Aug 2004 20:01:03 +0000 (GMT) Received: from angryfist.fasttrackmonkey.com (angryfist.fasttrackmonkey.com [216.223.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06E6F43D49 for ; Wed, 11 Aug 2004 20:01:01 +0000 (GMT) (envelope-from spork@fasttrackmonkey.com) Received: (qmail 15844 invoked by uid 2003); 11 Aug 2004 19:59:17 -0000 Received: from spork@fasttrackmonkey.com by angryfist.fasttrackmonkey.com by uid 1001 with qmail-scanner-1.20 (clamscan: 0.65. Clear:RC:1(216.220.116.154):. Processed in 0.042604 secs); 11 Aug 2004 19:59:16 -0000 Received: from unknown (HELO toad.nat.fasttrackmonkey.com) (216.220.116.154) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 11 Aug 2004 19:59:16 -0000 Date: Wed, 11 Aug 2004 16:01:49 -0400 (EDT) From: Charles Sprickman X-X-Sender: spork@toad.nat.fasttrackmonkey.com To: John Baldwin In-Reply-To: <200408111220.11512.jhb@FreeBSD.org> Message-ID: <20040811155942.W709@toad.nat.fasttrackmonkey.com> References: <20040811110731.GA74988@regency.nsu.ru> <200408111220.11512.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@FreeBSD.org cc: eta@lclark.edu cc: dri-devel@lists.sourceforge.net Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 20:01:03 -0000 On Wed, 11 Aug 2004, John Baldwin wrote: > The i830 DRM stuff is ported in a branch of DRI, but it's not in DRI head > because of a security problem with the code. Just out of curiousity, does this support the original i810 chipset? ie: agp0: mem 0xff000000-0xff07ffff,0xf4000000-0xf7ffffff irq 9 at device 1.0 on pci0 Thanks, Charles > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - 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 Wed Aug 11 20:03:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4635616A4CE for ; Wed, 11 Aug 2004 20:03:27 +0000 (GMT) Received: from ylpvm15.prodigy.net (ylpvm15-ext.prodigy.net [207.115.57.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0365D43D1F for ; Wed, 11 Aug 2004 20:03:27 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (adsl-67-115-74-195.dsl.lsan03.pacbell.net [67.115.74.195]) i7BK3Tjx011736; Wed, 11 Aug 2004 16:03:30 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 09EB651F8B; Wed, 11 Aug 2004 13:03:23 -0700 (PDT) Date: Wed, 11 Aug 2004 13:03:23 -0700 From: Kris Kennaway To: "Thordur Ivar B." Message-ID: <20040811200323.GA37059@xor.obsecurity.org> References: <20040811193254.6f0be2c2.thib@mi.is> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20040811193254.6f0be2c2.thib@mi.is> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: Where is strnlen() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 20:03:27 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 11, 2004 at 07:32:54PM +0000, Thordur Ivar B. wrote: > While porting software from a friend wich was developed under Linux, I st= umbled > upon an error: src/socket.c:236: warning: implicit declaration of function > `strnlen' >=20 > Now my programming experience is nothing to brag about but I wonder why s= trnlen > is not a part of FreeBSD's libc. I think that the use of strlen() insted = of > strnlen() could resault in buffer-overflow risks and my fellows (most of = them > are more experienced in the art of programming say that bounds checking is > always good.)=20 That's not a standard function outside the Linux world, and it's not very necessary for security..no matter how you calculate the string size, you still have to have your brain engaged when you copy it into the destination buffer. Kris --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBGnuLWry0BWjoQKURAo9TAKCtLrKibhSx0TSb9hx0fU9XWZPVwwCg8eyQ 7/1TH486mZdz7hEcgQActEE= =ibQW -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm-- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 20:06:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E659316A4CE for ; Wed, 11 Aug 2004 20:06:51 +0000 (GMT) Received: from thehousleys.net (frenchknot.ne.client2.attbi.com [24.62.118.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F59743D39 for ; Wed, 11 Aug 2004 20:06:51 +0000 (GMT) (envelope-from jim@Thehousleys.net) Received: from localhost (localhost [127.0.0.1]) by thehousleys.net (8.12.11/8.12.11) with ESMTP id i7BK6oYa099378; Wed, 11 Aug 2004 16:06:50 -0400 (EDT) (envelope-from jim@Thehousleys.net) Received: from thehousleys.net ([127.0.0.1]) by localhost (cat.int.thehousleys.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 99004-08; Wed, 11 Aug 2004 16:06:47 -0400 (EDT) Received: from [192.168.0.100] (baby.int.thehousleys.net [192.168.0.100]) (authenticated bits=0) by thehousleys.net (8.12.11/8.12.11) with ESMTP id i7BK6eHT099372; Wed, 11 Aug 2004 16:06:41 -0400 (EDT) (envelope-from jim@Thehousleys.net) Message-ID: <411A7C4F.9060500@Thehousleys.net> Date: Wed, 11 Aug 2004 16:06:39 -0400 From: James Housley User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040810 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Thordur Ivar B." References: <20040811193254.6f0be2c2.thib@mi.is> In-Reply-To: <20040811193254.6f0be2c2.thib@mi.is> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms080708030605080308010601" X-Virus-Scanned: by amavisd-new at thehousleys.net cc: freebsd-hackers@freebsd.org Subject: Re: Where is strnlen() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 20:06:52 -0000 This is a cryptographically signed message in MIME format. --------------ms080708030605080308010601 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Thordur Ivar B. wrote: > While porting software from a friend wich was developed under Linux, I stumbled > upon an error: src/socket.c:236: warning: implicit declaration of function > `strnlen' > > Now my programming experience is nothing to brag about but I wonder why strnlen > is not a part of FreeBSD's libc. I think that the use of strlen() insted of > strnlen() could resault in buffer-overflow risks and my fellows (most of them > are more experienced in the art of programming say that bounds checking is > always good.) > I see one small, specialiezed use. That is in a structure were a string for max length doesn't get the terminator, this would prevent reading throught the rest of the data to find a null somewhere. Jim -- /"\ ASCII Ribbon Campaign . \ / - NO HTML/RTF in e-mail . X - NO Word docs in e-mail . / \ ----------------------------------------------------------------- jeh@FreeBSD.org http://www.FreeBSD.org The Power to Serve jim@TheHousleys.Net http://www.TheHousleys.net --------------------------------------------------------------------- It's always a long day, 86400 doesn't fit into a short. --------------ms080708030605080308010601 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJIzCC AuwwggJVoAMCAQICAwucmTANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwMTMxMTkxMTAwWhcNMDUwMTMwMTkxMTAw WjBeMRAwDgYDVQQEEwdIb3VzbGV5MQ4wDAYDVQQqEwVKYW1lczEWMBQGA1UEAxMNSmFtZXMg SG91c2xleTEiMCAGCSqGSIb3DQEJARYTamltQHRoZWhvdXNsZXlzLm5ldDCCASIwDQYJKoZI hvcNAQEBBQADggEPADCCAQoCggEBAM70siVrpNeIN29fGXTeZx4DuD8BQDzS4F9QLhypRRv2 aL+B1DvaX3spU9O7TktIKeXwJ4pN7iiL6RFXX53QdyXht96ILFVuSsYxM3vaAI+M446KmMKL 1PT033SFCQVb8/DsbJPGQqMauWfon9hdjx8B+PqZyMDRoprj2mJrlUtaGwUGDMYzsE+qG+dY v20Z9JH1nXVxMpsktz1kON2oFWmemobcoGO2swhb5CmG7KYiKKZW/ItsDwhu5ZebeB63UkUl SL/+GiUPiieGxnptEDYf5RH/wdN/29I7IeZuab8YajAk2WO+68vAYA3+d/nTgX9YCeGdkPS6 9KxDELa7c8MCAwEAAaMwMC4wHgYDVR0RBBcwFYETamltQHRoZWhvdXNsZXlzLm5ldDAMBgNV HRMBAf8EAjAAMA0GCSqGSIb3DQEBBAUAA4GBALGpfU4DorG1pNJyzuGAeJY0QWUrZMDmryk/ r08DfcBpE/BicfJXEuee41NWh+7Y2Y4fVdaAo5UAtjDjj8novARRt2rtGv9M9+7OKoTsx20O JKNBCiJWc53MscEapsc4fvvCl2Cf/TBl1AESJgTkjHHxoyTDNaadvV0lowHakwhOMIIC7DCC AlWgAwIBAgIDC5yZMA0GCSqGSIb3DQEBBAUAMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxU aGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwg RnJlZW1haWwgSXNzdWluZyBDQTAeFw0wNDAxMzExOTExMDBaFw0wNTAxMzAxOTExMDBaMF4x EDAOBgNVBAQTB0hvdXNsZXkxDjAMBgNVBCoTBUphbWVzMRYwFAYDVQQDEw1KYW1lcyBIb3Vz bGV5MSIwIAYJKoZIhvcNAQkBFhNqaW1AdGhlaG91c2xleXMubmV0MIIBIjANBgkqhkiG9w0B AQEFAAOCAQ8AMIIBCgKCAQEAzvSyJWuk14g3b18ZdN5nHgO4PwFAPNLgX1AuHKlFG/Zov4HU O9pfeylT07tOS0gp5fAnik3uKIvpEVdfndB3JeG33ogsVW5KxjEze9oAj4zjjoqYwovU9PTf dIUJBVvz8Oxsk8ZCoxq5Z+if2F2PHwH4+pnIwNGimuPaYmuVS1obBQYMxjOwT6ob51i/bRn0 kfWddXEymyS3PWQ43agVaZ6ahtygY7azCFvkKYbspiIoplb8i2wPCG7ll5t4HrdSRSVIv/4a JQ+KJ4bGem0QNh/lEf/B03/b0jsh5m5pvxhqMCTZY77ry8BgDf53+dOBf1gJ4Z2Q9Lr0rEMQ trtzwwIDAQABozAwLjAeBgNVHREEFzAVgRNqaW1AdGhlaG91c2xleXMubmV0MAwGA1UdEwEB /wQCMAAwDQYJKoZIhvcNAQEEBQADgYEAsal9TgOisbWk0nLO4YB4ljRBZStkwOavKT+vTwN9 wGkT8GJx8lcS557jU1aH7tjZjh9V1oCjlQC2MOOPyei8BFG3au0a/0z37s4qhOzHbQ4ko0EK IlZzncyxwRqmxzh++8KXYJ/9MGXUARImBOSMcfGjJMM1pp29XSWjAdqTCE4wggM/MIICqKAD AgECAgENMA0GCSqGSIb3DQEBBQUAMIHRMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVy biBDYXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xGjAYBgNVBAoTEVRoYXd0ZSBDb25zdWx0aW5n MSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMSQwIgYDVQQDExtU aGF3dGUgUGVyc29uYWwgRnJlZW1haWwgQ0ExKzApBgkqhkiG9w0BCQEWHHBlcnNvbmFsLWZy ZWVtYWlsQHRoYXd0ZS5jb20wHhcNMDMwNzE3MDAwMDAwWhcNMTMwNzE2MjM1OTU5WjBiMQsw CQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoG A1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwgZ8wDQYJKoZIhvcN AQEBBQADgY0AMIGJAoGBAMSmPFVzVftOucqZWh5owHUEcJ3f6f+jHuy9zfVb8hp2vX8MOmHy v1HOAdTlUAow1wJjWiyJFXCO3cnwK4Vaqj9xVsuvPAsH5/EfkTYkKhPPK9Xzgnc9A74r/rsY Pge/QIACZNenprufZdHFKlSFD0gEf6e20TxhBEAeZBlyYLf7AgMBAAGjgZQwgZEwEgYDVR0T AQH/BAgwBgEB/wIBADBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vY3JsLnRoYXd0ZS5jb20v VGhhd3RlUGVyc29uYWxGcmVlbWFpbENBLmNybDALBgNVHQ8EBAMCAQYwKQYDVR0RBCIwIKQe MBwxGjAYBgNVBAMTEVByaXZhdGVMYWJlbDItMTM4MA0GCSqGSIb3DQEBBQUAA4GBAEiM0VCD 6gsuzA2jZqxnD3+vrL7CF6FDlpSdf0whuPg2H6otnzYvwPQcUCCTcDz9reFhYsPZOhl+hLGZ GwDFGguCdJ4lUJRix9sncVcljd2pnDmOjCBPZV+V2vf3h9bGCE6u9uo05RAaWzVNd+NWIXiC 3CEZNd4ksdMdRv9dX2VPMYIDOzCCAzcCAQEwaTBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMc VGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFs IEZyZWVtYWlsIElzc3VpbmcgQ0ECAwucmTAJBgUrDgMCGgUAoIIBpzAYBgkqhkiG9w0BCQMx CwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNDA4MTEyMDA2MzlaMCMGCSqGSIb3DQEJ BDEWBBSDn35k9C+k4rP5IAShOtRunInN0DBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMH MA4GCCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIB KDB4BgkrBgEEAYI3EAQxazBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29u c3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg SXNzdWluZyBDQQIDC5yZMHoGCyqGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMG A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBl cnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAwucmTANBgkqhkiG9w0BAQEFAASCAQApik5t To6x/vgF03OamB7Ftekmdahu6GIML85fSo8+lJG1kwt4jRXN2OpEUFMqARy7gc2wFRj7WUFy +1V/pgy2BuAW5CX0VXtvDpBrC1h3zedcnLUZcxB02MfTSOQQ2iOgHcSSTSh8dvOFWPv31gCQ FqfXl186nc6UVZ3jL1JNGnfr7lUjuhZzOmjTC2uya+Jq2CY/VrOZmhVfwc+CJURt2XJ6fxKX sNig02kGdxJTK0aCf/kWKI8evOt+lE0njg/kRZtLuPXoqoEdB6HwUtM2FdIIScrUFXXE++pO g1tMoAqAdv4g1RrPVNXNj9PpTkrTWrhmakRVrnzzqUDsxlwHAAAAAAAA --------------ms080708030605080308010601-- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 20:38:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E318116A4CE for ; Wed, 11 Aug 2004 20:38:23 +0000 (GMT) Received: from smtp.mi.is (smtp.mi.is [217.151.180.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 571F343D46 for ; Wed, 11 Aug 2004 20:38:23 +0000 (GMT) (envelope-from thib@mi.is) Received: from caulfield.bitcode.org (bofh.bitcode.org [217.151.165.254] (may be forged)) by smtp.mi.is (8.12.10/8.12.10/1.0.1) with SMTP id i7BKcMiv024195 for ; Wed, 11 Aug 2004 20:38:22 GMT Date: Wed, 11 Aug 2004 20:38:32 +0000 From: "Thordur Ivar B." To: freebsd-hackers@freebsd.org Message-Id: <20040811203832.728c915b.thib@mi.is> In-Reply-To: <20040811200323.GA37059@xor.obsecurity.org> References: <20040811193254.6f0be2c2.thib@mi.is> <20040811200323.GA37059@xor.obsecurity.org> Organization: n/a X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Where is strnlen() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 20:38:24 -0000 On Wed, 11 Aug 2004 13:03:23 -0700 Kris Kennaway wrote: > On Wed, Aug 11, 2004 at 07:32:54PM +0000, Thordur Ivar B. wrote: > > While porting software from a friend wich was developed under Linux, I > > stumbled upon an error: src/socket.c:236: warning: implicit declaration of > > function`strnlen' > > > > Now my programming experience is nothing to brag about but I wonder why > > strnlen is not a part of FreeBSD's libc. I think that the use of strlen() > > insted of strnlen() could resault in buffer-overflow risks and my fellows > > (most of them are more experienced in the art of programming say that bounds > > checking is always good.) > > That's not a standard function outside the Linux world, and it's not > very necessary for security..no matter how you calculate the string > size, you still have to have your brain engaged when you copy it into > the destination buffer. > > Kris > A notable point. Still I would think that strnlen is a pretty neat functions to avoid dumb mistakes (actually malformed code.) But since it is non-standard, I guess I will have to "turn my brain on" ;> Anyway thanks for the responses. kv, thib[att]mi(dot).is -- A man can do as he will, but not will as he will. -- Arthur Schopenhauer From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 21:38:58 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5963516A4CE for ; Wed, 11 Aug 2004 21:38:58 +0000 (GMT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 419BD43D1D for ; Wed, 11 Aug 2004 21:38:58 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) i7BLctds057868; Wed, 11 Aug 2004 14:38:55 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id i7BLctsM057865; Wed, 11 Aug 2004 14:38:55 -0700 (PDT) (envelope-from dillon) Date: Wed, 11 Aug 2004 14:38:55 -0700 (PDT) From: Matthew Dillon Message-Id: <200408112138.i7BLctsM057865@apollo.backplane.com> To: Sarunas Vancevicius References: <20040810223606.GA75648@lori.mine.nu> <20040811160721.GA955@laserbeam.sv.org> cc: Geert Hendrickx cc: hackers Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 21:38:58 -0000 :As few people already mentioned, add -DCNOCLEAN flag after :makeworld or makekernel. : :And you can disable the building of most contributed :packages, like gdb, sendmail, cvs, games, etc. See make.conf(5). : :-- :Sarunas Vancevicius What 'quickworld' does in DFly is skip the bootstrap, buildtools, and cross-build steps. Since cleaning occurs before bootstrap, it also effectively skips cleaning. We have a 'realquickworld' too which also skips the 'depend' step. It's a convenience target for developers, nothing more, and considerably easier to type in then make buildworld -DNOCLEAN. And since it skips several major steps it is a lot faster too. I figure that 99% of the time someone wants to do a make -DNOCLEAN buildworld, they would also be able to skip those steps without creating new issues. 'quickkernel' does not exist yet because I haven't investigating separating out the buildkernel steps yet. The documentation was ahead of the game, there :-) I just cd into /usr/obj/usr/src/sys/ and type 'make' there when I want a quick kernel recompile. -Matt Matthew Dillon From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 21:49:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71F0516A4CE for ; Wed, 11 Aug 2004 21:49:37 +0000 (GMT) Received: from angryfist.fasttrackmonkey.com (angryfist.fasttrackmonkey.com [216.223.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA0B943D39 for ; Wed, 11 Aug 2004 21:49:36 +0000 (GMT) (envelope-from spork@fasttrackmonkey.com) Received: (qmail 52079 invoked by uid 2003); 11 Aug 2004 21:47:52 -0000 Received: from spork@fasttrackmonkey.com by angryfist.fasttrackmonkey.com by uid 1001 with qmail-scanner-1.20 (clamscan: 0.65. Clear:RC:1(216.220.116.154):. Processed in 0.043348 secs); 11 Aug 2004 21:47:52 -0000 Received: from unknown (HELO toad.nat.fasttrackmonkey.com) (216.220.116.154) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 11 Aug 2004 21:47:52 -0000 Date: Wed, 11 Aug 2004 17:50:24 -0400 (EDT) From: Charles Sprickman X-X-Sender: spork@toad.nat.fasttrackmonkey.com To: Peter Jeremy In-Reply-To: <20040811075435.GA423@cirb503493.alcatel.com.au> Message-ID: <20040811174821.N709@toad.nat.fasttrackmonkey.com> References: <20040810234448.A709@toad.nat.fasttrackmonkey.com> <20040811075435.GA423@cirb503493.alcatel.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: fsck and lost+found space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 21:49:37 -0000 On Wed, 11 Aug 2004, Peter Jeremy wrote: > I've done this. The problem is stopping fsck before it starts throwing > away files. Once you stop fsck, you need to do a 'mount -f ...', > rename lost+found to something else, unmount the filesystem and > start lost+found again. This I just tried and while I was able to rename lost+found without the box panicing, it did not create a new lost+found directory, it just kept throwing things in the renamed directory. Right now I'm having a shot at recompiling fsck and having it use a different name on each run. Thanks, Charles > -- > Peter Jeremy > From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 00:24:05 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03C3716A4CE for ; Thu, 12 Aug 2004 00:24:05 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 987CC43D1F for ; Thu, 12 Aug 2004 00:24:04 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i7C0NrIw098001; Wed, 11 Aug 2004 18:23:53 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 11 Aug 2004 18:24:02 -0600 (MDT) Message-Id: <20040811.182402.52418639.imp@bsdimp.com> To: thib@mi.is From: "M. Warner Losh" In-Reply-To: <20040811193254.6f0be2c2.thib@mi.is> References: <20040811193254.6f0be2c2.thib@mi.is> 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 cc: freebsd-hackers@freebsd.org Subject: Re: Where is strnlen() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 00:24:05 -0000 In message: <20040811193254.6f0be2c2.thib@mi.is> "Thordur Ivar B." writes: : While porting software from a friend wich was developed under Linux, I stumbled : upon an error: src/socket.c:236: warning: implicit declaration of function : `strnlen' : : Now my programming experience is nothing to brag about but I wonder why strnlen : is not a part of FreeBSD's libc. I think that the use of strlen() insted of : strnlen() could resault in buffer-overflow risks and my fellows (most of them : are more experienced in the art of programming say that bounds checking is : always good.) : : I have not found anything on google about this subject and if there is something : that i overlooked then I'm real sorry for spamming this list. strnlen() isn't a standardized function. It is a linuxism. Generally FreeBSD only includes functions in libc that are part of Posix (or traditionally been in BSD) to prevent namespace pollution. Warner From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 00:36:07 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDAA116A4CE for ; Thu, 12 Aug 2004 00:36:07 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 609CD43D1D for ; Thu, 12 Aug 2004 00:36:07 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i7C0XdAt098083; Wed, 11 Aug 2004 18:33:40 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 11 Aug 2004 18:33:49 -0600 (MDT) Message-Id: <20040811.183349.65155382.imp@bsdimp.com> To: dillon@apollo.backplane.com From: "M. Warner Losh" In-Reply-To: <200408112138.i7BLctsM057865@apollo.backplane.com> References: <20040810223606.GA75648@lori.mine.nu> <20040811160721.GA955@laserbeam.sv.org> <200408112138.i7BLctsM057865@apollo.backplane.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 cc: hackers@freebsd.org Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 00:36:08 -0000 In message: <200408112138.i7BLctsM057865@apollo.backplane.com> Matthew Dillon writes: : :As few people already mentioned, add -DCNOCLEAN flag after : :makeworld or makekernel. : : : :And you can disable the building of most contributed : :packages, like gdb, sendmail, cvs, games, etc. See make.conf(5). : : : :-- : :Sarunas Vancevicius : : What 'quickworld' does in DFly is skip the bootstrap, buildtools, and : cross-build steps. Since cleaning occurs before bootstrap, it also : effectively skips cleaning. : : We have a 'realquickworld' too which also skips the 'depend' step. Well, quickworld seems easy to implement on FreeBSD (maybe I should have more docs in Makefile.inc1). Sorting in TGTS could be better in this patch too. Maybe quickworld target itself should go somewhere else. realquickworld appears, from your description, to be 'everything' in the FreeBSD 5. Anyway, the following patch appears to work for me. Warner Index: Makefile =================================================================== RCS file: /home/ncvs/src/Makefile,v retrieving revision 1.305 diff -u -r1.305 Makefile --- Makefile 23 Jul 2004 21:21:34 -0000 1.305 +++ Makefile 12 Aug 2004 00:30:34 -0000 @@ -7,6 +7,8 @@ # all kernels on all architectures). # buildworld - Rebuild *everything*, including glue to help do # upgrades. +# quickworld - developer conveince building of the world, don't +# report errors here that a full buildworld fixes. # installworld - Install everything built by "buildworld". # world - buildworld + installworld. # buildkernel - Rebuild the kernel and the kernel-modules. @@ -62,7 +64,7 @@ # developer convenience only. They are intentionally not documented and # completely subject to change without notice. # -TGTS= all all-man buildkernel buildworld checkdpadd clean \ +TGTS= all all-man buildkernel buildworld checkdpadd clean quickworld \ cleandepend cleandir depend distribute distributeworld everything \ hierarchy install installcheck installkernel installkernel.debug\ reinstallkernel reinstallkernel.debug installworld \ Index: Makefile.inc1 =================================================================== RCS file: /home/ncvs/src/Makefile.inc1,v retrieving revision 1.432 diff -u -r1.432 Makefile.inc1 --- Makefile.inc1 28 Jul 2004 05:27:17 -0000 1.432 +++ Makefile.inc1 12 Aug 2004 00:30:34 -0000 @@ -343,6 +343,7 @@ .endif WMAKE_TGTS+= _includes _libraries _depend everything +quickworld: _includes _libraries _depend everything buildworld: ${WMAKE_TGTS} .ORDER: ${WMAKE_TGTS} From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 01:12:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C712B16A4CF for ; Thu, 12 Aug 2004 01:12:21 +0000 (GMT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 793D443D4C for ; Thu, 12 Aug 2004 01:12:21 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) i7C1CKds058926; Wed, 11 Aug 2004 18:12:20 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id i7C1CKkJ058925; Wed, 11 Aug 2004 18:12:20 -0700 (PDT) (envelope-from dillon) Date: Wed, 11 Aug 2004 18:12:20 -0700 (PDT) From: Matthew Dillon Message-Id: <200408120112.i7C1CKkJ058925@apollo.backplane.com> To: "M. Warner Losh" References: <20040810223606.GA75648@lori.mine.nu> <20040811160721.GA955@laserbeam.sv.org> <20040811.183349.65155382.imp@bsdimp.com> cc: hackers@freebsd.org Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 01:12:21 -0000 :Well, quickworld seems easy to implement on FreeBSD (maybe I should :have more docs in Makefile.inc1). Sorting in TGTS could be better in :this patch too. Maybe quickworld target itself should go somewhere :else. realquickworld appears, from your description, to be :'everything' in the FreeBSD 5. : :Anyway, the following patch appears to work for me. : :Warner Looks pretty good. Our's also runs _obj (before _includes), because it is quite common for a developer to commit new code that requires a new object directory. My conclusion was that the saved time wasn't worth the possibility of a buildworld either failing due to the lack of an obj directory for a new module, or improperly creating the objects for the new code in the source tree because no obj directory exists (if the source tree is R+W). I think you will find it a very useful target. I use it all the time and just do a full buildworld on the occassion when quickworld fails. Our developers also know that if quickworld fails they should do a buildworld and we rarely get postings to bugs@ about it. :@@ -343,6 +343,7 @@ : .endif : WMAKE_TGTS+= _includes _libraries _depend everything : :+quickworld: _includes _libraries _depend everything : buildworld: ${WMAKE_TGTS} : .ORDER: ${WMAKE_TGTS} : In dfly it is: quickworld: _obj _includes _libraries _depend everything In dfly the realquickworld is as shown below. Not quite just 'everything'. _includes and _libraries are probably not necessary but I recommend that the _obj target always be run to avoid accidental /usr/src pollution. realquickworld: _obj _includes _libraries everything -Matt Matthew Dillon From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 02:05:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9887C16A4CE for ; Thu, 12 Aug 2004 02:05:40 +0000 (GMT) Received: from north-zone.net (wh1.north-zone.net [65.110.60.200]) by mx1.FreeBSD.org (Postfix) with SMTP id EF84843D31 for ; Thu, 12 Aug 2004 02:05:39 +0000 (GMT) (envelope-from nicobn@quebecbsd.org) Received: (qmail 44801 invoked by uid 80); 12 Aug 2004 02:06:03 -0000 Received: from 69.70.227.33 (SquirrelMail authenticated user nicobn@quebecbsd.org) by webmail.north-zone.net with HTTP; Thu, 12 Aug 2004 02:06:03 -0000 (GMT) Message-ID: <4962.69.70.227.33.1092276363.squirrel@webmail.north-zone.net> Date: Thu, 12 Aug 2004 02:06:03 -0000 (GMT) From: Nicolas =?iso-8859-1?Q?B=E9rard_Nault?= To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: inet_ntop( ) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: nicobn@quebecbsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 02:05:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I wondered, why does inet_ntop() returns addresses in the format x:x:x:x:x:x:x.x.x.x ? This can be very annoying if that's not what you want. Is there another standard function, other than inet_ntop(), to do the same work ? - -- Nicolas Bérard Nault (nicobn@quebecbsd.org) http://staff.xeatech.net/nicobn PGP public key: 0x64159509 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBGtCLPxLPPWQVlQkRAmp1AJ4qNuGvyNv261xvSRRm/2XZ/uP40wCfaC32 oIJRktC9RF+NFNaa7D9dYdY= =B/xe -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 15:17:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0675516A4CE; Wed, 11 Aug 2004 15:17:52 +0000 (GMT) Received: from outmx010.isp.belgacom.be (outmx010.isp.belgacom.be [195.238.3.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 702D443D53; Wed, 11 Aug 2004 15:17:51 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx010.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i7BFHfLq006320; Wed, 11 Aug 2004 17:17:41 +0200 (envelope-from ) Received: from lori.mine.nu (43-23.244.81.adsl.skynet.be [81.244.23.43]) with ESMTP id i7BFHcdM006283; Wed, 11 Aug 2004 17:17:38 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id 41281904; Wed, 11 Aug 2004 17:17:38 +0200 (CEST) Date: Wed, 11 Aug 2004 17:17:38 +0200 From: Geert Hendrickx To: "Simon L. Nielsen" Message-ID: <20040811151738.GB98466@lori.mine.nu> References: <20040810223606.GA75648@lori.mine.nu> <20040811124714.GA51160@eddie.nitro.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040811124714.GA51160@eddie.nitro.dk> User-Agent: Mutt/1.4.2i X-GPG-Key: http://lori.mine.nu/gnupgkey.asc X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en X-Mailman-Approved-At: Thu, 12 Aug 2004 12:00:15 +0000 cc: freebsd-hackers@FreeBSD.org Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 15:17:52 -0000 On Wed, Aug 11, 2004 at 02:47:14PM +0200, Simon L. Nielsen wrote: > On 2004.08.11 00:36:06 +0200, Geert Hendrickx wrote: > > Hi, > > > > is there any way (or could it be implemented) to rebuild only the > > changes in world and kernel sources after a cvsup? DragonFly BSD > > features "make quickworld" and "make quickkernel" which does exactly > > that. > > You can do that already: > > make buildworld buildkernel -DNOCLEAN I knew that flag, but I wasn't sure it does the exact same thing. Apparently it does, so it is what I was looking for, thanks! GH From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 15:22:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E803616A4CE for ; Wed, 11 Aug 2004 15:22:17 +0000 (GMT) Received: from outmx023.isp.belgacom.be (outmx023.isp.belgacom.be [195.238.2.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6385443D1F for ; Wed, 11 Aug 2004 15:22:17 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx023.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i7BFM9sl022446 for ; Wed, 11 Aug 2004 17:22:10 +0200 (envelope-from ) Received: from lori.mine.nu (43-23.244.81.adsl.skynet.be [81.244.23.43]) with ESMTP id i7BFM4Ye022395; Wed, 11 Aug 2004 17:22:05 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id A3CC5904; Wed, 11 Aug 2004 17:22:04 +0200 (CEST) Date: Wed, 11 Aug 2004 17:22:04 +0200 From: Geert Hendrickx To: Sarunas Vancevicius Message-ID: <20040811152204.GC98466@lori.mine.nu> References: <20040811160740.GB955@laserbeam.sv.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040811160740.GB955@laserbeam.sv.org> User-Agent: Mutt/1.4.2i X-GPG-Key: http://lori.mine.nu/gnupgkey.asc X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en X-Mailman-Approved-At: Thu, 12 Aug 2004 12:00:15 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 15:22:18 -0000 On Wed, Aug 11, 2004 at 04:07:40PM +0000, Sarunas Vancevicius wrote: > To not to flood the list, here is why my /etc/make.conf > looks like: > > ( I think full list can be found in > /etc/defaults/make.conf > or > /usr/share/examples/etc/defaults/make.conf) > > # To avoid building various parts of the base system: > #NO_CVS= true # do not build CVS > #NO_CXX= true # do not build C++ and friends > #NO_BIND= true # do not build BIND > #NO_BLUETOOTH= true # do not build Bluetooth related stuff > #NO_FORTRAN= true # do not build g77 and related libraries > #NO_GDB= true # do not build GDB > #NO_I4B= true # do not build isdn4bsd package > #NO_IPFILTER= true # do not build IP Filter package > #NO_PF= true # do not build PF firewall package > #NO_AUTHPF= true # do not build and install authpf (setuid/gid) > #NO_KERBEROS= true # do not build and install Kerberos 5 (KTH Heimdal) > #NO_LPR= true # do not build lpr and related programs > #NO_MAILWRAPPER=true # do not build the mailwrapper(8) MTA selector > #NO_OBJC= true # do not build Objective C support > #NO_OPENSSH= true # do not build OpenSSH > #NO_OPENSSL= true # do not build OpenSSL (implies NO_KERBEROS and > # NO_OPENSSH) > #NO_SENDMAIL= true # do not build sendmail and related programs > #NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs > #NO_TCSH= true # do not build and install /bin/csh (which is tcsh) > #NO_VINUM= true # do not build Vinum utilities > #NO_X= true # do not compile in XWindows support (e.g. doscmd) > #NOCRYPT= true # do not build any crypto code > #NOGAMES= true # do not build games (games/ subdir) > #NOINFO= true # do not make or install info files > #NOLIBC_R= true # do not build libc_r (re-entrant version of libc) > #NOMAN= true # do not build manual pages > #NOPROFILE= true # Avoid compiling profiled libraries > #NOSHARE= true # do not go into the share subdir > #NO_USB=true > > Just uncomment stuff you don't want to build. Yeah I know, but it's not my intention to disable building all this stuff, I just wanted to know whether it was possible to not have to rebuild them everytime (esp. when there are no changes in their sources). -DNOCLEAN seems to do the trick. Thanks for the suggestion, GH > -- Sarunas Vancevicius From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 19:37:09 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9289316A4CE for ; Wed, 11 Aug 2004 19:37:09 +0000 (GMT) Received: from web14924.mail.yahoo.com (web14924.mail.yahoo.com [216.136.225.8]) by mx1.FreeBSD.org (Postfix) with SMTP id 808EC43D48 for ; Wed, 11 Aug 2004 19:37:09 +0000 (GMT) (envelope-from jonsmirl@yahoo.com) Message-ID: <20040811193709.20227.qmail@web14924.mail.yahoo.com> Received: from [68.186.250.143] by web14924.mail.yahoo.com via HTTP; Wed, 11 Aug 2004 12:37:09 PDT Date: Wed, 11 Aug 2004 12:37:09 -0700 (PDT) From: Jon Smirl To: Alexey Dokuchaev , eta@lclark.edu In-Reply-To: <20040811110731.GA74988@regency.nsu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Thu, 12 Aug 2004 12:00:15 +0000 cc: hackers@freebsd.org cc: dri-devel@lists.sourceforge.net Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 19:37:09 -0000 There is a working i830 DRM driver for Linux in the old dri cvs in the drm subdirectory. DRM is still using the old DRI tree CVS. Try current DRM CVS and see if it will build the i830 driver for BSD. I don't run BSD so I can't check. It might now be too much work to port the Linux one over to BSD in the DRM tree. cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri co drm --- Alexey Dokuchaev wrote: > Hi there, > > Judging from /sys/dev/drm/ contents, and listed kernel options in > NOTES, > there's currently evidence of support for i810/830 chips in FreeBSD, > which (I suspect) is the probable reason why DRI is not enabled on my > box (FreeBSD 5.2-CURRENT from yesterday, latest X.Org). I also found > traces of i810/830 support in FDo CVS > (http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/drm/bsd/i830/), > getting me to the fact that i8x0 files were removed from the BSD > side, > since they were not actually ported. (Unfinished? broken? unstable?) > > Googling also revealed that back in 2002, someone (namely, moto > kawasaki > ) was compiling FreeBSD's DRM with signs > of > i830 in it > (https://lists.csociety.org/pipermail/freebsd-xfree86/2002-April/000189.html): > %%% > cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls > -Wnested-externs -Wstr > ict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fform > at-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include > -I../../contri > b/ipfilter -D_KERNEL -include opt_global.h -elf > -mpreferred-stack-boundary=2 > ../../dev/drm/i830_dma.c > ../../dev/drm/i830_dma.c: In function `i830_getbuf': > ../../dev/drm/i830_dma.c:1506: `current' undeclared (first use in > this function) > ../../dev/drm/i830_dma.c:1506: (Each undeclared identifier is > reported only once > ../../dev/drm/i830_dma.c:1506: for each function it appears in.) > *** Error Code 1 > > Stop in /usr/src/sys/compile/KAWASAKI > %%% > > I would be most grateful to anyone that could shine a bit of light on > current situation, or at least give authoritative and complete answer > on > whether I can or cannot use DRM/DRI on FreeBSD with i830 for today. > > On Eric's page (http://people.freebsd.org/~anholt/dri/) there's a > TODO > item that says "Port the i810 driver". What is current status of > this > item? Is there anything I can help with? > > In case there something that can be done to hack it around and make > it > work, I'd really love to hear how. (Maybe there some untested or > broken > patches are floating around that one can make use of.) > > Thanks in advance. Any information/pointers are most welmome. > > ./danfe > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > -- > _______________________________________________ > Dri-devel mailing list > Dri-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dri-devel > ===== Jon Smirl jonsmirl@yahoo.com __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 20:17:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF65E16A4CE; Wed, 11 Aug 2004 20:17:23 +0000 (GMT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id D976E43D45; Wed, 11 Aug 2004 20:17:23 +0000 (GMT) (envelope-from eta@lclark.edu) Received: from [192.168.0.103] (c-24-21-18-195.client.comcast.net[24.21.18.195]) by comcast.net (rwcrmhc11) with SMTP id <20040811201722013001bk6ge>; Wed, 11 Aug 2004 20:17:23 +0000 From: Eric Anholt To: Charles Sprickman In-Reply-To: <20040811155942.W709@toad.nat.fasttrackmonkey.com> References: <20040811110731.GA74988@regency.nsu.ru> <200408111220.11512.jhb@FreeBSD.org> <20040811155942.W709@toad.nat.fasttrackmonkey.com> Content-Type: text/plain Message-Id: <1092255440.884.3.camel@leguin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 11 Aug 2004 13:17:21 -0700 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 12 Aug 2004 12:00:15 +0000 cc: freebsd-hackers@freebsd.org cc: DRI cc: John Baldwin Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 20:17:24 -0000 On Wed, 2004-08-11 at 13:01, Charles Sprickman wrote: > On Wed, 11 Aug 2004, John Baldwin wrote: > > > The i830 DRM stuff is ported in a branch of DRI, but it's not in DRI head > > because of a security problem with the code. > > Just out of curiousity, does this support the original i810 chipset? > > ie: agp0: mem > 0xff000000-0xff07ffff,0xf4000000-0xf7ffffff irq 9 at device 1.0 on pci0 No, it doesnt. Actually, the Intel driver going forward currently is the i915 driver, which is going to be in the next X.Org release, is apparently secure, is ported to FreeBSD (untested iirc -- I'm setting up a machine now), and supports i830-i915. There's been a suggestion that i915 could be extended to support i810 as well, which would deal with the security model issues that I suspect are the same on i810 as i830. That would be the hardest but perhaps best option. The alternate route is to just port the i810 driver as-is. -- Eric Anholt eta@lclark.edu http://people.freebsd.org/~anholt/ anholt@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 11 21:02:18 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2338416A4CE; Wed, 11 Aug 2004 21:02:18 +0000 (GMT) Received: from holly.csn.ul.ie (holly.csn.ul.ie [136.201.105.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9038143D5A; Wed, 11 Aug 2004 21:02:17 +0000 (GMT) (envelope-from airlied@linux.ie) Received: from skynet.csn.ul.ie (skynet [136.201.105.2]) by holly.csn.ul.ie (Postfix) with ESMTP id D09579383B; Wed, 11 Aug 2004 21:02:05 +0000 (Eire) Received: by skynet.csn.ul.ie (Postfix, from userid 2139) id 40417EA24; Wed, 11 Aug 2004 22:01:50 +0100 (IST) Received: from localhost (localhost [127.0.0.1]) by skynet.csn.ul.ie (Postfix) with ESMTP id 3DFF77A0E; Wed, 11 Aug 2004 22:01:50 +0100 (IST) Date: Wed, 11 Aug 2004 22:01:50 +0100 (IST) From: Dave Airlie X-X-Sender: airlied@skynet To: Eric Anholt In-Reply-To: <1092255440.884.3.camel@leguin> Message-ID: References: <20040811110731.GA74988@regency.nsu.ru> <200408111220.11512.jhb@FreeBSD.org><1092255440.884.3.camel@leguin> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Thu, 12 Aug 2004 12:00:15 +0000 cc: Charles Sprickman cc: DRI cc: John Baldwin cc: freebsd-hackers@freebsd.org Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 21:02:18 -0000 > > No, it doesnt. Actually, the Intel driver going forward currently is > the i915 driver, which is going to be in the next X.Org release, is > apparently secure, is ported to FreeBSD (untested iirc -- I'm setting up > a machine now), and supports i830-i915. There's been a suggestion that > i915 could be extended to support i810 as well, which would deal with > the security model issues that I suspect are the same on i810 as i830. > That would be the hardest but perhaps best option. The alternate route > is to just port the i810 driver as-is. The i915 is ported to FreeBSD but I've hadn't the time or FreeBSD skills to actually get it working :-) (I'd suspect my pci_alloc_consistent port isn't correct, ...) porting the i810 driver probably isn't a huge amount of work but I doubt I'll have any time to do it .... Dave. -- David Airlie, Software Engineer http://www.skynet.ie/~airlied / airlied at skynet.ie pam_smb / Linux DECstation / Linux VAX / ILUG person From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 02:38:58 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A970816A4CE; Thu, 12 Aug 2004 02:38:58 +0000 (GMT) Received: from mx.nsu.ru (mx.nsu.ru [212.192.164.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 058E243D4C; Thu, 12 Aug 2004 02:38:58 +0000 (GMT) (envelope-from danfe@regency.nsu.ru) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.34) id 1Bv5fK-0001eV-1G; Thu, 12 Aug 2004 09:50:06 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.12.10/8.12.10) with ESMTP id i7C2dD0m002612; Thu, 12 Aug 2004 09:39:13 +0700 (NOVST) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.12.10/8.12.10/Submit) id i7C2dBhB002593; Thu, 12 Aug 2004 09:39:11 +0700 (NOVST) (envelope-from danfe) Date: Thu, 12 Aug 2004 09:39:11 +0700 From: Alexey Dokuchaev To: John Baldwin Message-ID: <20040812023911.GB89594@regency.nsu.ru> References: <20040811110731.GA74988@regency.nsu.ru> <200408111220.11512.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200408111220.11512.jhb@FreeBSD.org> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Thu, 12 Aug 2004 12:00:15 +0000 cc: hackers@FreeBSD.org cc: eta@lclark.edu cc: dri-devel@lists.sourceforge.net Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 02:38:58 -0000 On Wed, Aug 11, 2004 at 12:20:11PM -0400, John Baldwin wrote: > On Wednesday 11 August 2004 07:07 am, Alexey Dokuchaev wrote: > > Hi there, > > > > Judging from /sys/dev/drm/ contents, and listed kernel options in NOTES, > > there's currently evidence of support for i810/830 chips in FreeBSD, > > which (I suspect) is the probable reason why DRI is not enabled on my > > box (FreeBSD 5.2-CURRENT from yesterday, latest X.Org). I also found > > traces of i810/830 support in FDo CVS > > (http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/drm/bsd/i830/), > > getting me to the fact that i8x0 files were removed from the BSD side, > > since they were not actually ported. (Unfinished? broken? unstable?) > > The i830 DRM stuff is ported in a branch of DRI, but it's not in DRI head > because of a security problem with the code. Thanks. That's a good info to start with. May I ask you the details of security problem you've mentioned, or at least some pointer in this direction? Appropriate maillist and/or google reference would be fine, I guess. ./danfe From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 07:48:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEF9916A4CE; Thu, 12 Aug 2004 07:48:16 +0000 (GMT) Received: from shockwave.systems.pipex.net (shockwave.systems.pipex.net [62.241.160.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2418543D2D; Thu, 12 Aug 2004 07:48:15 +0000 (GMT) (envelope-from keith@tungstengraphics.com) Received: from tungstengraphics.com (81-178-243-177.dsl.pipex.com [81.178.243.177]) by shockwave.systems.pipex.net (Postfix) with ESMTP id DA59A1C0033C; Thu, 12 Aug 2004 08:48:09 +0100 (BST) Message-ID: <411B20B9.5040101@tungstengraphics.com> Date: Thu, 12 Aug 2004 08:48:09 +0100 From: Keith Whitwell User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030922 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Baldwin References: <20040811110731.GA74988@regency.nsu.ru> <200408111220.11512.jhb@FreeBSD.org> In-Reply-To: <200408111220.11512.jhb@FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 12 Aug 2004 12:00:15 +0000 cc: freebsd-hackers@FreeBSD.org cc: hackers@FreeBSD.org cc: eta@lclark.edu cc: dri-devel@lists.sourceforge.net cc: Alexey Dokuchaev Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 07:48:16 -0000 John Baldwin wrote: > On Wednesday 11 August 2004 07:07 am, Alexey Dokuchaev wrote: > >>Hi there, >> >>Judging from /sys/dev/drm/ contents, and listed kernel options in NOTES, >>there's currently evidence of support for i810/830 chips in FreeBSD, >>which (I suspect) is the probable reason why DRI is not enabled on my >>box (FreeBSD 5.2-CURRENT from yesterday, latest X.Org). I also found >>traces of i810/830 support in FDo CVS >>(http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/drm/bsd/i830/), >>getting me to the fact that i8x0 files were removed from the BSD side, >>since they were not actually ported. (Unfinished? broken? unstable?) > > > The i830 DRM stuff is ported in a branch of DRI, but it's not in DRI head > because of a security problem with the code. And there were some persistent issues with older hardware that I never resolved to my satisfaction. The new 'i915' code fixes these problems and is generally much cleaner - it should be the focus for intel chipset development from here out. I don't know any reason why it shouldn't be possible to apply the freebsd changes from the branch to this code on the head. Keith From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 07:48:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEF9916A4CE; Thu, 12 Aug 2004 07:48:16 +0000 (GMT) Received: from shockwave.systems.pipex.net (shockwave.systems.pipex.net [62.241.160.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2418543D2D; Thu, 12 Aug 2004 07:48:15 +0000 (GMT) (envelope-from keith@tungstengraphics.com) Received: from tungstengraphics.com (81-178-243-177.dsl.pipex.com [81.178.243.177]) by shockwave.systems.pipex.net (Postfix) with ESMTP id DA59A1C0033C; Thu, 12 Aug 2004 08:48:09 +0100 (BST) Message-ID: <411B20B9.5040101@tungstengraphics.com> Date: Thu, 12 Aug 2004 08:48:09 +0100 From: Keith Whitwell User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030922 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Baldwin References: <20040811110731.GA74988@regency.nsu.ru> <200408111220.11512.jhb@FreeBSD.org> In-Reply-To: <200408111220.11512.jhb@FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 12 Aug 2004 12:00:15 +0000 cc: freebsd-hackers@FreeBSD.org cc: hackers@FreeBSD.org cc: eta@lclark.edu cc: dri-devel@lists.sourceforge.net cc: Alexey Dokuchaev Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 07:48:16 -0000 John Baldwin wrote: > On Wednesday 11 August 2004 07:07 am, Alexey Dokuchaev wrote: > >>Hi there, >> >>Judging from /sys/dev/drm/ contents, and listed kernel options in NOTES, >>there's currently evidence of support for i810/830 chips in FreeBSD, >>which (I suspect) is the probable reason why DRI is not enabled on my >>box (FreeBSD 5.2-CURRENT from yesterday, latest X.Org). I also found >>traces of i810/830 support in FDo CVS >>(http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/drm/bsd/i830/), >>getting me to the fact that i8x0 files were removed from the BSD side, >>since they were not actually ported. (Unfinished? broken? unstable?) > > > The i830 DRM stuff is ported in a branch of DRI, but it's not in DRI head > because of a security problem with the code. And there were some persistent issues with older hardware that I never resolved to my satisfaction. The new 'i915' code fixes these problems and is generally much cleaner - it should be the focus for intel chipset development from here out. I don't know any reason why it shouldn't be possible to apply the freebsd changes from the branch to this code on the head. Keith From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 08:24:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D4B416A4D8; Thu, 12 Aug 2004 08:24:38 +0000 (GMT) Received: from shockwave.systems.pipex.net (shockwave.systems.pipex.net [62.241.160.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ACA143D3F; Thu, 12 Aug 2004 08:24:38 +0000 (GMT) (envelope-from keith@tungstengraphics.com) Received: from tungstengraphics.com (81-178-243-177.dsl.pipex.com [81.178.243.177]) by shockwave.systems.pipex.net (Postfix) with ESMTP id 8F46F1C003F7; Thu, 12 Aug 2004 09:24:29 +0100 (BST) Message-ID: <411B293D.9060809@tungstengraphics.com> Date: Thu, 12 Aug 2004 09:24:29 +0100 From: Keith Whitwell User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030922 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexey Dokuchaev References: <20040811110731.GA74988@regency.nsu.ru> <200408111220.11512.jhb@FreeBSD.org> <20040812023911.GB89594@regency.nsu.ru> In-Reply-To: <20040812023911.GB89594@regency.nsu.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 12 Aug 2004 12:00:15 +0000 cc: hackers@FreeBSD.org cc: eta@lclark.edu cc: dri-devel@lists.sourceforge.net cc: John Baldwin Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 08:24:38 -0000 Alexey Dokuchaev wrote: > On Wed, Aug 11, 2004 at 12:20:11PM -0400, John Baldwin wrote: > >>On Wednesday 11 August 2004 07:07 am, Alexey Dokuchaev wrote: >> >>>Hi there, >>> >>>Judging from /sys/dev/drm/ contents, and listed kernel options in NOTES, >>>there's currently evidence of support for i810/830 chips in FreeBSD, >>>which (I suspect) is the probable reason why DRI is not enabled on my >>>box (FreeBSD 5.2-CURRENT from yesterday, latest X.Org). I also found >>>traces of i810/830 support in FDo CVS >>>(http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/drm/bsd/i830/), >>>getting me to the fact that i8x0 files were removed from the BSD side, >>>since they were not actually ported. (Unfinished? broken? unstable?) >> >>The i830 DRM stuff is ported in a branch of DRI, but it's not in DRI head >>because of a security problem with the code. > > > Thanks. That's a good info to start with. May I ask you the details of > security problem you've mentioned, or at least some pointer in this > direction? Appropriate maillist and/or google reference would be fine, > I guess. In general, don't bother with the i830.o kernel module or driver any longer, they're deprecated in favour of the new, cleaner implementation in the i915 drivers. Look at the changes on the i865-agp branch and pull those into the i915 driver. Keith From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 13:11:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18AEC16A4CE for ; Thu, 12 Aug 2004 13:11:22 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAA7743D1F for ; Thu, 12 Aug 2004 13:11:21 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 30775 invoked from network); 12 Aug 2004 13:11:21 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 12 Aug 2004 13:11:21 -0000 Received: from [10.50.41.91] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7CDBGbT099702; Thu, 12 Aug 2004 09:11:17 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Wed, 11 Aug 2004 16:41:26 -0400 User-Agent: KMail/1.6.2 References: <20040811110731.GA74988@regency.nsu.ru> <200408111220.11512.jhb@FreeBSD.org> <20040811155942.W709@toad.nat.fasttrackmonkey.com> In-Reply-To: <20040811155942.W709@toad.nat.fasttrackmonkey.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408111641.26867.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Charles Sprickman cc: eta@lclark.edu cc: dri-devel@lists.sourceforge.net Subject: Re: No DRM kernel support for i830 ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 13:11:22 -0000 On Wednesday 11 August 2004 04:01 pm, Charles Sprickman wrote: > On Wed, 11 Aug 2004, John Baldwin wrote: > > The i830 DRM stuff is ported in a branch of DRI, but it's not in DRI head > > because of a security problem with the code. > > Just out of curiousity, does this support the original i810 chipset? > > ie: agp0: mem > 0xff000000-0xff07ffff,0xf4000000-0xf7ffffff irq 9 at device 1.0 on pci0 Not sure. -- 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 Aug 12 16:54:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6857816A4CE for ; Thu, 12 Aug 2004 16:54:20 +0000 (GMT) Received: from gawab.com (v2.gawab.com [204.97.230.42]) by mx1.FreeBSD.org (Postfix) with SMTP id EF15043D3F for ; Thu, 12 Aug 2004 16:54:19 +0000 (GMT) (envelope-from tdamas@gawab.com) Received: (qmail 14139 invoked by uid 1004); 12 Aug 2004 16:54:19 -0000 Message-ID: <20040812165419.14137.qmail@gawab.com> Received: from 143.54.11.199 by www.gawab.com with HTTP; Thu, 12 Aug 2004 16:54:19 GMT From: "Thiago Pinto Damas" To: freebsd-hackers@freebsd.org Date: Thu, 12 Aug 2004 16:54:19 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [143.54.11.199] Subject: ALTQ + FreeBSD 4.10 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 16:54:20 -0000 Where can I find the ALTQ package to work with the FreeBSD 4.10 RELEASE? Someone knows any tool to mark the packets in IPTOS field? Thiago From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 01:52:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAEA216A4CE for ; Fri, 13 Aug 2004 01:52:17 +0000 (GMT) Received: from vsmtp12.tin.it (vsmtp12.tin.it [212.216.176.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F8E043D2F for ; Fri, 13 Aug 2004 01:52:17 +0000 (GMT) (envelope-from gerarra@tin.it) Received: from ims3a.cp.tin.it (192.168.70.103) by vsmtp12.tin.it (7.0.027) id 40B33B8700DEB1A2 for freebsd-hackers@freebsd.org; Fri, 13 Aug 2004 03:52:17 +0200 Received: from [192.168.70.181] by ims3a.cp.tin.it with HTTP; Fri, 13 Aug 2004 03:52:17 +0200 Date: Fri, 13 Aug 2004 03:52:17 +0200 Message-ID: <4119722900001B0D@ims3a.cp.tin.it> From: gerarra@tin.it To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable Subject: Interrupt 0x80 handling X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 01:52:18 -0000 Hi, giving a look to interrupt 0x80 handling code (i386/i386/exception.s), I'= ve met FAKE_MCOUNT/MEXITCOUNT system. FAKE_MCOUNT in the end calls _mcount (libkern/mcount.c) function which seems to be used for profiling purposes= IMHO. It seems (reading comments in sys/gmon.h) that sysctl could be used= to manage syscall profiling (kernel profiling?): Somebody can confirm tha= t or I've misunderstood? I would like to know another thing too: why interr= upt 0x80 handler is implemented through a trap gate? An interrupt gate could not be more logical? thanks for answers, cheers rookie From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 02:06:05 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B32A16A4CE for ; Fri, 13 Aug 2004 02:06:05 +0000 (GMT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87CA843D45 for ; Fri, 13 Aug 2004 02:06:05 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) i7D265la005368; Thu, 12 Aug 2004 19:06:05 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id i7D265rq005367; Thu, 12 Aug 2004 19:06:05 -0700 (PDT) (envelope-from dillon) Date: Thu, 12 Aug 2004 19:06:05 -0700 (PDT) From: Matthew Dillon Message-Id: <200408130206.i7D265rq005367@apollo.backplane.com> To: gerarra@tin.it References: <4119722900001B0D@ims3a.cp.tin.it> cc: freebsd-hackers@freebsd.org Subject: Re: Interrupt 0x80 handling X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 02:06:05 -0000 :Hi, :giving a look to interrupt 0x80 handling code (i386/i386/exception.s), I've :met FAKE_MCOUNT/MEXITCOUNT system. FAKE_MCOUNT in the end calls _mcount :(libkern/mcount.c) function which seems to be used for profiling purposes :IMHO. It seems (reading comments in sys/gmon.h) that sysctl could be used :to manage syscall profiling (kernel profiling?): Somebody can confirm that :or I've misunderstood? I would like to know another thing too: why interrupt :0x80 handler is implemented through a trap gate? An interrupt gate could :not be more logical? : :thanks for answers, :cheers : :rookie An interrupt gate will disable interrupts on entry (cli equivalent), while a trap gate does not. There is no reason to disable interrupts in a system call so a trap gate is used. -Matt From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 06:54:08 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA84B16A4CE for ; Fri, 13 Aug 2004 06:54:08 +0000 (GMT) Received: from www.hexe.com.pl (www.hexe.com.pl [212.160.230.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 031D343D49 for ; Fri, 13 Aug 2004 06:54:08 +0000 (GMT) (envelope-from root@www.hexe.com.pl) Received: from www.hexe.com.pl (smmsp@localhost [127.0.0.1]) i7D6K2jX016273; Fri, 13 Aug 2004 08:20:04 +0200 Received: (from root@localhost) by www.hexe.com.pl (8.12.3/8.12.3/Debian-6.6) id i7D6EsLd016111; Fri, 13 Aug 2004 08:14:54 +0200 Date: Fri, 13 Aug 2004 08:14:54 +0200 Message-Id: <200408130614.i7D6EsLd016111@www.hexe.com.pl> From: To: Auto-Submitted: auto-submitted (antivirus notify) X-Infected-Received-From: aig196.neoplus.adsl.tpnet.pl [83.25.214.196] X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on www X-Virus-Status: Clean cc: postmaster@www.hexe.com.pl cc: bialystok@hexe.com.pl Subject: Virus intercepted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 06:54:08 -0000 A message you sent to contained Worm.SomeFool.X and has not been delivered. From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 11:18:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CAE116A4CE for ; Fri, 13 Aug 2004 11:18:59 +0000 (GMT) Received: from smtp.mi.is (smtp.mi.is [217.151.180.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0D2143D3F for ; Fri, 13 Aug 2004 11:18:58 +0000 (GMT) (envelope-from thib@mi.is) Received: from caulfield.bitcode.org (bofh.bitcode.org [217.151.165.254]) by smtp.mi.is (8.12.10/8.12.10/1.0.1) with SMTP id i7DBIniv021675; Fri, 13 Aug 2004 11:18:49 GMT Date: Fri, 13 Aug 2004 11:18:49 +0000 From: "Thordur Ivar B." To: freebsd-hackers@freebsd.org Message-Id: <20040813111849.047fae64.thib@mi.is> In-Reply-To: <20040812231519.GB7173@gothmog.gr> References: <20040811193254.6f0be2c2.thib@mi.is> <20040811200323.GA37059@xor.obsecurity.org> <20040811203832.728c915b.thib@mi.is> <20040812231519.GB7173@gothmog.gr> Organization: n/a X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: keramida@ceid.upatras.gr Subject: Re: Where is strnlen() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 11:18:59 -0000 On Fri, 13 Aug 2004 02:15:19 +0300 Giorgos Keramidas wrote: > On 2004-08-11 20:38, "Thordur Ivar B." wrote: > > On Wed, 11 Aug 2004 13:03:23 -0700 Kris Kennaway > > wrote: > > > On Wed, Aug 11, 2004 at 07:32:54PM +0000, Thordur Ivar B. wrote: > > > > While porting software from a friend wich was developed under Linux, I > > > > stumbled upon an error: src/socket.c:236: warning: implicit declaration > > > > of function`strnlen' > > > > > > > > Now my programming experience is nothing to brag about but I wonder why > > > > strnlen is not a part of FreeBSD's libc. [...] > > > > > > That's not a standard function outside the Linux world, and it's not > > > very necessary for security..no matter how you calculate the string > > > size, you still have to have your brain engaged when you copy it into > > > the destination buffer. > > > > A notable point. Still I would think that strnlen is a pretty neat > > functions to avoid dumb mistakes (actually malformed code.) But since > > it is non-standard, I guess I will have to "turn my brain on" ;> > > Malformed code that depends on a particular string buffer limit should > probably use that buffer limit when copying the string too. I mean, if > you already know what the maximum allowed length of the string is why > would you want a library call to tell you about it? ;-) > > As someone else posted already, this would probably be useful in code > that includes structures with predefined size limits, i.e.: > > struct buf { > size_t b_len; > char b_data[BUFLEN];; > }; > > But in this case you already know the maximum length of the b_data field > and there's no need for strnlen() to tell you about it. > > The pessimization that results from always copying BUFLEN bytes from > b_data members instead of the "useful" part of the string buffer is the > price that the careless programmer has to pay for forgetting to check > for proper string termination, I guess. > > Instead of introducing new non-standard functions let's fix the broken > programs :) > > I agree but what I was thinking at the time if I'm reciving user input to a program wich uses strlen I might be vonerable to buffer overflow attacks (But that has been cleard up) and ofcourse in most cases you know the length of a string you are using (exept when you are dealing with user input, wich was the case in my porting effort.) And since I'm a pedant I think that interducing new non-standard functions is not an option so I think I will have to "turn-my-brain-on" as I mentioned in a previous post. Anyways thanks for the replays. -- As far as the laws of mathematics refer to reality, they are not certain, and as far as they are certain, they do not refer to reality. -- Albert Einstein From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 11:36:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2853416A4CE for ; Fri, 13 Aug 2004 11:36:51 +0000 (GMT) Received: from vsmtp3.tin.it (vsmtp3alice.tin.it [212.216.176.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80A0243D45 for ; Fri, 13 Aug 2004 11:36:50 +0000 (GMT) (envelope-from gerarra@tin.it) Received: from ims3a.cp.tin.it (192.168.70.103) by vsmtp3.tin.it (7.0.027) id 40F033B60062DBD8 for freebsd-hackers@freebsd.org; Fri, 13 Aug 2004 13:36:49 +0200 Received: from [192.168.70.226] by ims3a.cp.tin.it with HTTP; Fri, 13 Aug 2004 13:36:49 +0200 Date: Fri, 13 Aug 2004 13:36:49 +0200 Message-ID: <4119722900001FCE@ims3a.cp.tin.it> In-Reply-To: <20040813111849.047fae64.thib@mi.is> From: gerarra@tin.it To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable Subject: Re: Where is strnlen() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 11:36:51 -0000 >I agree but what I was thinking at the time if I'm reciving user input to >a >program wich uses strlen I might be vonerable to buffer overflow attacks= >(But >that has been cleard up) and ofcourse in most cases you know the length of >a >string you are using (exept when you are dealing with user input, wich was >the >case in my porting effort.) And since I'm a pedant I think that interduc= ing >new >non-standard functions is not an option so I think I will have to >"turn-my-brain-on" as I mentioned in a previous post. > >Anyways thanks for the replays. I completely agree. Solutions like that (non standard wrappers, run time checking, etc. etc.) ading overhead and could give a false sense of 'secu= rity'; security is a state of mind, if you don't care about your code you can't reach really security. my 2 cents rookie From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 23:16:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7B9B16A4CE for ; Thu, 12 Aug 2004 23:16:42 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B0BF43D1F for ; Thu, 12 Aug 2004 23:16:42 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b147.otenet.gr [212.205.244.155]) i7CNGJhv012718; Fri, 13 Aug 2004 02:16:30 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id i7CNFNUw007321; Fri, 13 Aug 2004 02:15:23 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id i7CNFJ4O007320; Fri, 13 Aug 2004 02:15:19 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 13 Aug 2004 02:15:19 +0300 From: Giorgos Keramidas To: "Thordur Ivar B." Message-ID: <20040812231519.GB7173@gothmog.gr> References: <20040811193254.6f0be2c2.thib@mi.is> <20040811200323.GA37059@xor.obsecurity.org> <20040811203832.728c915b.thib@mi.is> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040811203832.728c915b.thib@mi.is> X-Mailman-Approved-At: Fri, 13 Aug 2004 11:54:49 +0000 cc: freebsd-hackers@FreeBSD.org Subject: Re: Where is strnlen() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 23:16:42 -0000 On 2004-08-11 20:38, "Thordur Ivar B." wrote: > On Wed, 11 Aug 2004 13:03:23 -0700 Kris Kennaway wrote: > > On Wed, Aug 11, 2004 at 07:32:54PM +0000, Thordur Ivar B. wrote: > > > While porting software from a friend wich was developed under Linux, I > > > stumbled upon an error: src/socket.c:236: warning: implicit declaration of > > > function`strnlen' > > > > > > Now my programming experience is nothing to brag about but I wonder why > > > strnlen is not a part of FreeBSD's libc. [...] > > > > That's not a standard function outside the Linux world, and it's not > > very necessary for security..no matter how you calculate the string > > size, you still have to have your brain engaged when you copy it into > > the destination buffer. > > A notable point. Still I would think that strnlen is a pretty neat > functions to avoid dumb mistakes (actually malformed code.) But since > it is non-standard, I guess I will have to "turn my brain on" ;> Malformed code that depends on a particular string buffer limit should probably use that buffer limit when copying the string too. I mean, if you already know what the maximum allowed length of the string is why would you want a library call to tell you about it? ;-) As someone else posted already, this would probably be useful in code that includes structures with predefined size limits, i.e.: struct buf { size_t b_len; char b_data[BUFLEN];; }; But in this case you already know the maximum length of the b_data field and there's no need for strnlen() to tell you about it. The pessimization that results from always copying BUFLEN bytes from b_data members instead of the "useful" part of the string buffer is the price that the careless programmer has to pay for forgetting to check for proper string termination, I guess. Instead of introducing new non-standard functions let's fix the broken programs :) From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 12 23:30:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7AE216A4CE for ; Thu, 12 Aug 2004 23:30:39 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0707443D41 for ; Thu, 12 Aug 2004 23:30:39 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b147.otenet.gr [212.205.244.155]) i7CNUHuM001392; Fri, 13 Aug 2004 02:30:29 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id i7CNTAqv007553; Fri, 13 Aug 2004 02:29:10 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id i7CNT2WU007548; Fri, 13 Aug 2004 02:29:02 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 13 Aug 2004 02:29:02 +0300 From: Giorgos Keramidas To: Nicolas B?rard Nault Message-ID: <20040812232902.GC7173@gothmog.gr> References: <4962.69.70.227.33.1092276363.squirrel@webmail.north-zone.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4962.69.70.227.33.1092276363.squirrel@webmail.north-zone.net> X-Mailman-Approved-At: Fri, 13 Aug 2004 11:54:49 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: inet_ntop( ) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 23:30:39 -0000 On 2004-08-12 02:06, Nicolas B?rard Nault wrote: > > I wondered, why does inet_ntop() returns addresses in the format > x:x:x:x:x:x:x.x.x.x ? This can be very annoying if that's not what you > want. Is there another standard function, other than inet_ntop(), to do > the same work ? Can you show us a minimal program that exhibits this behavior? The function seems to work as expected here. The only case where the format you describe is used is with AF_INET6 addresses, which is not a bug AFAIK. For instance, the following program: #include #include #include #include #include #include #include #define BUFLEN 100 int main(void) { struct in_addr ia; char buf[BUFLEN]; ia.s_addr = htonl(0x7f000001); if (inet_ntop(AF_INET, &ia, buf, BUFLEN - 1) == NULL) err(1, "inet_ntop"); printf("inet: %s\n", buf); return EXIT_SUCCESS; } Prints the following output (note that the inet6 address output is probably an invalid address but still gets printed in the usual format): $ ./foo inet: 127.0.0.1 $ Are you sure you're calling inet_ntop() as you should? - Giorgos From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 03:30:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C24716A4CE; Fri, 13 Aug 2004 03:30:49 +0000 (GMT) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id C731B43D1F; Fri, 13 Aug 2004 03:30:48 +0000 (GMT) (envelope-from craig@olyun.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 60AFC2CBCF; Thu, 12 Aug 2004 22:30:48 -0500 (CDT) Date: Thu, 12 Aug 2004 22:30:48 -0500 From: Craig Boston To: freebsd-hackers@freebsd.org Message-ID: <20040813033048.GA33060@nowhere> 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: Fri, 13 Aug 2004 11:54:49 +0000 cc: smkelly@freebsd.org cc: tjr@freebsd.org Subject: m4 is broken -- can't rename builtins (patch in PR) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 03:30:49 -0000 Hi -hackers: Just wondering if I could get a committer's attention to look at bin/59883. It seems that m4 has been broken for quite some time -- at least in the ability to rename builtin macros -- defn() doesn't work correctly anymore. I've been using the simple patch in the PR locally for the last several months and have yet to run into any problems with it. I guess not many people use the bundled m4 for anything much more complicated than making sendmail.cf files ;) I'm not sure who is the active maintainer for m4 is, or even if there is one. CC: tjr & smkelly as they are the last couple people to touch the code in a while. I hope I'm sending this to the right place :) Thanks! Craig From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 12:18:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29F4416A4CE for ; Fri, 13 Aug 2004 12:18:35 +0000 (GMT) Received: from britannica.bec.de (port-212-202-135-63.static.qsc.de [212.202.135.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAE9343D2F for ; Fri, 13 Aug 2004 12:18:33 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (localhost [127.0.0.1]) by britannica.bec.de (8.12.10/8.12.10) with ESMTP id i7DCHMsE000984 for ; Fri, 13 Aug 2004 14:17:33 +0200 (CEST) (envelope-from joerg@britannica.bec.de) Received: (from joerg@localhost) by britannica.bec.de (8.12.10/8.12.10/Submit) id i7DCHBw6000983 for freebsd-hackers@freebsd.org; Fri, 13 Aug 2004 14:17:11 +0200 (CEST) Date: Fri, 13 Aug 2004 14:17:11 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20040813121711.GC839@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20040811193254.6f0be2c2.thib@mi.is> <20040811200323.GA37059@xor.obsecurity.org> <20040811203832.728c915b.thib@mi.is> <20040812231519.GB7173@gothmog.gr> <20040813111849.047fae64.thib@mi.is> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040813111849.047fae64.thib@mi.is> User-Agent: Mutt/1.4.2.1i Subject: Re: Where is strnlen() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 12:18:35 -0000 On Fri, Aug 13, 2004 at 11:18:49AM +0000, Thordur Ivar B. wrote: > I agree but what I was thinking at the time if I'm reciving user input to a > program wich uses strlen I might be vonerable to buffer overflow attacks (But > that has been cleard up) and ofcourse in most cases you know the length of a > string you are using (exept when you are dealing with user input, wich was the > case in my porting effort.) And since I'm a pedant I think that interducing > new non-standard functions is not an option so I think I will have to > "turn-my-brain-on" as I mentioned in a previous post. size_t strnlen(const void *str, size_t len) { const void *end = memchr(str, '\0', len); if (end == NULL) return -1; /* len ? */ return (size_t)(end - str); } Or similiar in your code should do the trick. Joerg > > Anyways thanks for the replays. > > -- > As far as the laws of mathematics refer to reality, they are not > certain, and as far as they are certain, they do not refer to reality. > -- Albert Einstein > _______________________________________________ > 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 Fri Aug 13 13:53:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBFB316A4CE for ; Fri, 13 Aug 2004 13:53:16 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id BABCD43D41 for ; Fri, 13 Aug 2004 13:53:16 +0000 (GMT) (envelope-from freebsd@joelink.net) Received: from [192.168.0.3] (c-67-162-72-190.client.comcast.net[67.162.72.190]) by comcast.net (rwcrmhc13) with ESMTP id <20040813135310015008vgfhe>; Fri, 13 Aug 2004 13:53:16 +0000 Message-ID: <411CC7C2.8000102@joelink.net> Date: Fri, 13 Aug 2004 08:53:06 -0500 From: Joseph M Link User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nicolas B?rard Nault References: <4962.69.70.227.33.1092276363.squirrel@webmail.north-zone.net> <20040812232902.GC7173@gothmog.gr> In-Reply-To: <20040812232902.GC7173@gothmog.gr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: inet_ntop( ) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 13:53:17 -0000 >>I wondered, why does inet_ntop() returns addresses in the format >>x:x:x:x:x:x:x.x.x.x ? This can be very annoying if that's not what you >>want. Is there another standard function, other than inet_ntop(), to do >>the same work ? I am going to guess you're asking why you're getting that format instead of the straight colon separated version. That format is a standard form for ipv4 mapped or compatible addresses. You can detect this ahead of time with the following macros: IN6_IS_ADDR_V4MAPPED(struct in6_addr *) IN6_IS_ADDR_V4COMPAT(struct in6_addr *) Joe From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 14:35:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FABE16A4D8 for ; Fri, 13 Aug 2004 14:35:11 +0000 (GMT) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9912343D39 for ; Fri, 13 Aug 2004 14:35:10 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru id i7DEW5D6041600 for freebsd-hackers@freebsd.org.checked; (8.12.8/vak/2.1) Fri, 13 Aug 2004 18:32:05 +0400 (MSD) (envelope-from rik@cronyx.ru) Received: from cronyx.ru (hi.cronyx.ru [144.206.181.94]) by hanoi.cronyx.ru with ESMTP id i7DEVHNA041546; (8.12.8/vak/2.1) Fri, 13 Aug 2004 18:31:18 +0400 (MSD) (envelope-from rik@cronyx.ru) Message-ID: <411CD0F3.3020802@cronyx.ru> Date: Fri, 13 Aug 2004 18:32:19 +0400 From: Roman Kurakin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Current , freebsd-net@freebsd.org, freebsd-hackers@freebsd.org, rik@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Sppp & Cronyx (cp(4), ct(4) and cx(4)) testers required X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 14:35:11 -0000 Hi, I am near finish line in mpsafe locking work for sppp and Cronyx adapters drivers, so I need testers for work I've done. Please contact me if you whish to test this code. Best regards, Roman Kurakin From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 14 11:23:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AE1316A4CE for ; Sat, 14 Aug 2004 11:23:42 +0000 (GMT) Received: from zaphod.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0664443D5E for ; Sat, 14 Aug 2004 11:23:42 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 6EB8711AB1; Sat, 14 Aug 2004 13:23:40 +0200 (CEST) Date: Sat, 14 Aug 2004 13:23:40 +0200 From: "Simon L. Nielsen" To: Geert Hendrickx Message-ID: <20040814112339.GA756@zaphod.nitro.dk> References: <20040810223606.GA75648@lori.mine.nu> <20040811124714.GA51160@eddie.nitro.dk> <20040814080337.GA17811@lori.mine.nu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <20040814080337.GA17811@lori.mine.nu> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@FreeBSD.org Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Aug 2004 11:23:42 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2004.08.14 10:03:37 +0200, Geert Hendrickx wrote: > On Wed, Aug 11, 2004 at 02:47:14PM +0200, Simon L. Nielsen wrote: > > On 2004.08.11 00:36:06 +0200, Geert Hendrickx wrote: > > > Hi,=20 > > >=20 > > > is there any way (or could it be implemented) to rebuild only the > > > changes in world and kernel sources after a cvsup? DragonFly BSD > > > features "make quickworld" and "make quickkernel" which does exactly > > > that. =20 > >=20 > > You can do that already: > >=20 > > make buildworld buildkernel -DNOCLEAN >=20 > Does adding "NOCLEAN=3Dtrue" to /etc/make.conf have the same effect? =20 It should (though I haven't tried it); just remember to disable it when things start to blow up :-). --=20 Simon L. Nielsen FreeBSD Documentation Team --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBHfY7h9pcDSc1mlERAlV1AKDDJnh2ZLOpihZy65TT9KMJYvEOlACdEdYl mtZ3xv0EC8ptOM91DckJMec= =vFTt -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--