Re: Order of canonical upgrade sequence

2013-05-29 Thread Warner Losh
[[ summarizing a conversation in irc ]] The below fragment doesn't match UPDATING. Since I don't think the order matters; and since we've had no reports that UPDATING is wrong; and since I think way more people follow updating than the Makefile; we should fix the makefile and make the docs matc

Re: Order of canonical upgrade sequence

2013-05-29 Thread Warner Losh
On May 29, 2013, at 10:02 AM, Chris Rees wrote: > Hi all! > > Back in 2005, when Alexander Leidinger wrote the make delete-old > target, he documented the order of upgrade such that it should be run > before mergemaster [1]; > > # 7. `make installworld' > # 8. `make delete-old' > # 9. `me

Re: considering i386 as a tier 1 architecture

2013-04-02 Thread Warner Losh
On Apr 2, 2013, at 10:27 AM, Chris BeHanna wrote: > Goodness gracious, did no one see the date on the original post? > > What's the limit on this fishing hole? Three internet Trolls, two wise old owls and a april fool in a pear tree from the looks of it. Warner __

Re: considering i386 as a tier 1 architecture

2013-04-02 Thread Warner Losh
On Apr 2, 2013, at 4:10 AM, Mehmet Erol Sanliturk wrote: > On Tue, Apr 2, 2013 at 2:04 AM, Dag-Erling Smørgrav wrote: > >> Wojciech Puchar writes: >>> Lev Serebryakov writes: It is not exact so. Some Atoms on some motherboards with some firmwares are 64-bit CPU. >>> don't know of an

Re: considering i386 as a tier 1 architecture

2013-04-01 Thread Warner Losh
On Apr 1, 2013, at 7:31 AM, Anton Shterenlikht wrote: > From: Eitan Adler > Date: Mon, 1 Apr 2013 00:48:08 -0400 > Subject: considering i386 as a tier 1 architecture > To: freebsd-a...@freebsd.org, FreeBSD Hackers > > > should drop support for the i386 architectu

Re: considering i386 as a tier 1 architecture

2013-04-01 Thread Warner Losh
On Mar 31, 2013, at 11:48 PM, Kimmo Paasiala wrote: > I think the only ones who are going to object are the users of embedded > hardware. Some of them are still using CPUs that are only i586 equivalent. > > Personally I support the notion. > > -Kimmo > > > On Mon, Apr 1, 2013 at 7:48 AM, Eita

Re: [RFC] support -b when starting gdb

2013-01-16 Thread Warner Losh
On Jan 16, 2013, at 9:05 AM, Garrett Cooper wrote: > On Jan 16, 2013, at 7:35 AM, Warner Losh wrote: > >> How does 'set remotebaud' not do what you want? >> >> Warner >> >> On Jan 15, 2013, at 10:15 PM, Adrian Chadd wrote: >> >>&g

Re: [RFC] support -b when starting gdb

2013-01-16 Thread Warner Losh
How does 'set remotebaud' not do what you want? Warner On Jan 15, 2013, at 10:15 PM, Adrian Chadd wrote: > Hi, > > There doesn't seem to be a blessed way to set the baudrate from inside > gdb/kgdb. It seems to be set from '-b' on the command line. > > However kgdb doesn't have this support. >

Re: kernel module parallel build?

2012-12-05 Thread Warner Losh
On Dec 5, 2012, at 9:42 AM, John Baldwin wrote: > On Tuesday, December 04, 2012 2:41:32 pm Ryan Stone wrote: >> On Tue, Dec 4, 2012 at 10:52 AM, John Baldwin wrote: >> >>> Hmm, I certainly see the module directories being built in parallel. Some >>> of >>> the make jobs may not be as obvious s

Re: libc with debugging symbols?

2012-12-04 Thread Warner Losh
On Dec 4, 2012, at 1:24 AM, Myles C. Maxfield wrote: > Hello, all, > I'm interested in learning about the internals of how libc works, so I was > hoping to link a test application with a version of libc that has debugging > symbols (reading the raw sources only gets me so far). The version of lib

Re: [RFQ] make witness panic an option

2012-11-15 Thread Warner Losh
On Nov 15, 2012, at 10:47 AM, Attilio Rao wrote: > On 11/15/12, Ian Lepore wrote: >> On Wed, 2012-11-14 at 22:15 -0800, Adrian Chadd wrote: >>> Hi all, >>> >>> When debugging and writing wireless drivers/stack code, I like to >>> sprinkle lots of locking assertions everywhere. However, this doe

Re: watchdogd, jemalloc, and mlockall

2012-11-04 Thread Warner Losh
On Nov 3, 2012, at 12:50 PM, Ian Lepore wrote: > On Sat, 2012-11-03 at 20:41 +0200, Konstantin Belousov wrote: >> On Sat, Nov 03, 2012 at 12:38:39PM -0600, Ian Lepore wrote: >>> In an attempt to un-hijack the thread about memory usage increase >>> between 6.4 and 9.x, I'm starting a new thread he

Re: [CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

2012-10-26 Thread Warner Losh
On Oct 26, 2012, at 12:11 PM, David O'Brien wrote: > On Fri, Oct 26, 2012 at 12:12:44AM +0200, Baptiste Daroussin wrote: >> Do be able to get the ports tree working with bmake asap, I also asked >> him to MFC it to 9.1, from latest reply he got positive answer from re@ >> about this, but was wait

Re: [CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

2012-10-26 Thread Warner Losh
On Oct 26, 2012, at 11:21 AM, Simon J. Gerraty wrote: > > On Fri, 26 Oct 2012 08:27:06 -0600, Warner Losh writes: >> And we've had the :U and :L for a similar period of time as well. = > > Sorry, I didn't mean to imply age has anything to do with it. > The doc I

Re: [CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

2012-10-26 Thread Warner Losh
On Oct 26, 2012, at 12:23 AM, Simon J. Gerraty wrote: >> In particular, why cannot the ':L' and ':U' support be added ? > > Because they already exist - with different meanings. > They were added to NetBSD make over 10 years ago, from the OSF version > of pmake. And we've had the :U and :L for

Re: problem cross-compiling 9.1

2012-10-09 Thread Warner Losh
On Oct 9, 2012, at 4:46 AM, Daniel Braniss wrote: > [snip] >> any fix? >>> You have found the fix. Remove the WITHOUT_ options from the build >>> that keep it from completing. You'll be able to add them at installworld >>> time w/o a hassle. nanobsd uses this to keep things down, while s

Re: No bus_space_read_8 on x86 ?

2012-10-09 Thread Warner Losh
On Oct 5, 2012, at 10:08 AM, John Baldwin wrote: > On Thursday, October 04, 2012 1:20:52 pm Carl Delsey wrote: >> I noticed that the bus_space_*_8 functions are unimplemented for x86. >> Looking at the code, it seems this is intentional. >> >> Is this done because on 32-bit systems we don't kno

Re: availability of interrupts during bootup process

2012-09-04 Thread Warner Losh
On Sep 4, 2012, at 10:05 AM, John Baldwin wrote: > On Sunday, September 02, 2012 5:31:21 pm Aleksander Dutkowski wrote: >> hello! >> >> I have PMIC (TWL4030) module connected to the SoC (ARM/OMAP3) via i2c > (iicbus). >> Current solution is that i2c_attach calls bus_generic_attach(dev); >> whic

Quick MALLOC_DEBUG patch

2012-08-29 Thread Warner Losh
http://people.freebsd.org/~imp/MALLOC_DEBUG.diff This makes WITH/WITHOUT_MALLOC_DEBUG work. The non-standard PRODUCTION_MALLOC form is retained for compatibility. This also needs to be documented. Comments? Warner ___ freebsd-hackers@freebsd.org ma

Re: Replace bcopy() to update ether_addr

2012-08-22 Thread Warner Losh
On Aug 22, 2012, at 12:54 PM, Adrian Chadd wrote: > On 22 August 2012 05:02, John Baldwin wrote: >> On Tuesday, August 21, 2012 12:34:42 pm Adrian Chadd wrote: >>> Hi, >>> >>> What about just creating an ETHER_ADDR_COPY(dst, src) and putting that >>> in a relevant include file, then hide the ug

Re: Build 32 bit binaries on amd64

2012-08-22 Thread Warner Losh
On Aug 21, 2012, at 10:34 AM, Nathan Whitehorn wrote: > On 08/21/12 08:44, John Baldwin wrote: >> On Tuesday, August 21, 2012 4:49:30 am Konstantin Belousov wrote: >>> On Mon, Aug 20, 2012 at 08:32:41PM -0600, Dan McGregor wrote: Hi. I've been working on porting compiler-rt/clang'

Re: Replace bcopy() to update ether_addr

2012-08-22 Thread Warner Losh
On Aug 22, 2012, at 6:02 AM, John Baldwin wrote: > On Tuesday, August 21, 2012 12:34:42 pm Adrian Chadd wrote: >> Hi, >> >> What about just creating an ETHER_ADDR_COPY(dst, src) and putting that >> in a relevant include file, then hide the ugliness there? >> >> The same benefits will likely app

Re: Replace bcopy() to update ether_addr

2012-08-21 Thread Warner Losh
On Aug 21, 2012, at 1:42 AM, Wojciech Puchar wrote: >> >> Even without this tagging, the code to do a structure level copy of 6 bytes >> is going to be tiny... > > true. > > just to make sure it will be absolutely portable how about > > bcopymacaddress(dst,src) > > and then define it whatev

Re: Replace bcopy() to update ether_addr

2012-08-21 Thread Warner Losh
On Aug 21, 2012, at 5:26 AM, Marius Strobl wrote: > On Mon, Aug 20, 2012 at 01:20:29PM -0600, Warner Losh wrote: >> >> On Aug 20, 2012, at 1:17 PM, Wojciech Puchar wrote: >> >>>>> or use ++. >>>>> >>>>> i think it is always al

Re: Replace bcopy() to update ether_addr

2012-08-20 Thread Warner Losh
On Aug 20, 2012, at 1:17 PM, Wojciech Puchar wrote: >>> or use ++. >>> >>> i think it is always aligned to 2 bytes and this should produce usable code >>> on any CPU? should be 6 instructions on MIPS and PPC IMHO. >> >> We should tag it as __aligned(2) then, no? If so, then the compiler shoul

Re: Replace bcopy() to update ether_addr

2012-08-20 Thread Warner Losh
On Aug 20, 2012, at 10:48 AM, Wojciech Puchar wrote: >> #if defined(__i386__) || defined(__amd64__) >> *dst = *src; >> #else >> bcopy(src, dst, ETHER_ADDR_LEN); > #else > short *tmp1=((*short)src),*tmp2=((*short)dst); > *tmp2=*tmp1; *(tmp2+1)=*(tmp1+1); *(tmp2+2)=*(tmp1+2); > > or use ++. >

Re: Replace bcopy() to update ether_addr

2012-08-20 Thread Warner Losh
On Aug 20, 2012, at 8:46 AM, Mitya wrote: > Hi. > I found some overhead code in /src/sys/net/if_ethersubr.c and > /src/sys/netgraph/ng_ether.c > > It contains strings, like bcopy(src, dst, ETHER_ADDR_LEN); > When src and dst are "struct ether_addr*", and ETHER_ADDR_LEN equal 6. > This code call

Re: FreeBSD 1.x Binaries Work Except under Chroot

2012-08-10 Thread Warner Losh
On Aug 10, 2012, at 6:10 PM, George Mitchell wrote: > On 08/10/12 18:49, Julian H. Stacey wrote: >>> Try to ktrace the binaries to see what is going on. I suspect that >>> sources for 1.1.5 are not in our cvs/svn, so it is troublesome to >>> say anuthing without ktrace dump. >> >> Not that I nee

Re: Consistent use of lex flags

2012-08-09 Thread Warner Losh
All these changes look good. Since they aren't changes to lex itself, but how the base uses standard lex interfaces, I'd say we should just commit it. Warner On Aug 8, 2012, at 2:59 PM, Dan McGregor wrote: > Hi. > > I was just noticing that mkcsmapper doesn't build with clang. I saw two > w

Re: SMALL FreeBSD capable board

2012-08-07 Thread Warner Losh
On Aug 5, 2012, at 8:36 AM, Wojciech Puchar wrote: > i am looking for SMALL and specifically low power board that can run from > battery, can run FreeBSD and have at least one ethernet and one USB port, and > reasonable amount of memory (32MB at least). > WiFi not needed. some more than few MB

Re: On cooperative work [Was: Re: newbus' ivar's limitation..]

2012-08-02 Thread Warner Losh
On Aug 2, 2012, at 10:46 AM, Doug Barton wrote: > Those all sound like nice steps forward, thank you for pointing them > out. Nothing would make me happier than to be proven wrong in this area. > What would be nice I think would be if these steps were formalized, and > shared more openly. Having t

Re: On cooperative work [Was: Re: newbus' ivar's limitation..]

2012-08-01 Thread Warner Losh
On Aug 1, 2012, at 9:28 PM, Arnaud Lacombe wrote: > Hi, > > On Wed, Aug 1, 2012 at 7:28 PM, Warner Losh wrote: >> >> On Aug 1, 2012, at 3:39 PM, Arnaud Lacombe wrote: >> >>> Hi, >>> >>> On Wed, Aug 1, 2012 at 4:06 PM, Adrian Chad

Re: On cooperative work [Was: Re: newbus' ivar's limitation..]

2012-08-01 Thread Warner Losh
On Aug 1, 2012, at 3:39 PM, Arnaud Lacombe wrote: > Hi, > > On Wed, Aug 1, 2012 at 4:06 PM, Adrian Chadd wrote: >> Any interested party is very welcome to approach a developer and get >> added to the developer summits. Plenty of the people at the most >> recent developer summit weren't @freebsd

Re: newbus' ivar's limitation..

2012-07-31 Thread Warner Losh
On Jul 31, 2012, at 9:20 AM, Arnaud Lacombe wrote: > Hi, > > On Mon, Jul 30, 2012 at 11:51 PM, Warner Losh wrote: >> [...] We lack that right now, which is why you're trying to shoe-horn the >> FDT connections into a newbus world and complaining that everything suck

Re: newbus' ivar's limitation..

2012-07-30 Thread Warner Losh
;>>> Hi, >>>> >>>> On Thu, Jul 12, 2012 at 1:20 AM, Warner Losh wrote: >>>>> [..] >>>>> Honestly, though, I think you'll be more pissed when you find out that >> the N:1 interface that you want is being done in the wrong do

Re: geom <-> cam disk

2012-07-25 Thread Warner Losh
On Jul 25, 2012, at 4:29 PM, Andriy Gapon wrote: > BTW, I think that it would be nice if the GEOM work-processing could re-use > the > CAM model. > That is, try to execute GEOM bio transformations in the original thread as > much > as possible, defer work to the GEOM thread as the last resort.

Re: Kernel thread stack size

2012-07-24 Thread Warner Losh
On Jul 24, 2012, at 6:40 PM, Paul Ambrose wrote: > #define PAGE_SHIFT 12 > #define PAGE_SIZE (1< > #define KSTACK_PAGES 2 > #define KSTACK_GUARD_PAGES 2 > > I had a MIPS machine (Loongson 3A) with page size 16KB( could be 4KB, but > had to handle cache alias in OS), IMHO, define KSTACK_PAGE t

Re: kern/170058: [cbb] cardbus slot is not functioning correctly after a resume

2012-07-21 Thread Warner Losh
On Jul 21, 2012, at 5:50 PM, Adrian Chadd wrote: > Hi all, > > I found this in stable/9. I think it's also a problem in -HEAD. > > Would someone with PCI bus clue take a look ? I'll be happy to look at it... just as soon as I get a laptop that suspends/resumes with a cardbus slot to test it

Re: newbus' ivar's limitation..

2012-07-12 Thread Warner Losh
On Jul 12, 2012, at 6:01 AM, John Baldwin wrote: > New-bus is certainly not the only way to organize a device hierarchy and is > not perfect, but in your case I suggest you tone down your language until you > have enough information to develop an informed opinion. It is also not the only way to

Re: newbus' ivar's limitation..

2012-07-11 Thread Warner Losh
On Jul 11, 2012, at 9:47 PM, Arnaud Lacombe wrote: > Hi, > > On Mon, Jul 9, 2012 at 1:17 AM, Arnaud Lacombe wrote: >> Hi, >> >> On Mon, Jul 9, 2012 at 12:37 AM, Warner Losh wrote: >>> >>> On Jul 8, 2012, at 9:46 PM, Arnaud Lacombe wrote: >

Re: newbus' ivar's limitation..

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 9:59 PM, Arnaud Lacombe wrote: > Hi, > > On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wrote: >> >> On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote: >>> Ok, yet another Newbus' limitation. Assuming a device exports more >>> than

Re: newbus' ivar's limitation..

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 9:46 PM, Arnaud Lacombe wrote: > On Sun, Jul 8, 2012 at 11:31 PM, Warner Losh wrote: >> >> On Jul 8, 2012, at 9:26 PM, Arnaud Lacombe wrote: >> >>> Hi, >>> >>> On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wrote: >>>

Re: newbus' ivar's limitation..

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 9:26 PM, Arnaud Lacombe wrote: > Hi, > > On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wrote: >> >> On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote: >>> Ok, yet another Newbus' limitation. Assuming a device exports more >>> than

Re: newbus' ivar's limitation..

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote: > Ok, yet another Newbus' limitation. Assuming a device exports more > than one interface, and one of its child has need to use more than one > interface, each interfaces cannot register, concurrently, its own > ivar. While I try to always have a s

Re: Interfacing devices with multiple parents within newbus

2012-07-07 Thread Warner Losh
On Jul 7, 2012, at 9:45 PM, Arnaud Lacombe wrote: > Hi, > > On Sat, Jul 7, 2012 at 2:47 PM, Ian Lepore > wrote: >> On Fri, 2012-07-06 at 16:45 -0400, Arnaud Lacombe wrote: >>> Hi, >>> >>> On Fri, Jul 6, 2012 at 3:09 PM, Ian Lepore >>> wrote: On Fri, 2012-07-06 at 14:46 -0400, Arnaud Laco

Re: Replacing BIND with unbound (Was: Re: Pull in upstream before 9.1 code freeze?)

2012-07-07 Thread Warner Losh
On Jul 7, 2012, at 5:33 PM, Garrett Wollman wrote: > < said: > >> BIND in the base today comes with a full-featured local resolver >> configuration, which I'm confident that Dag-Erling can do for unbound >> (and which I would be glad to assist with if needed). Other than that, >> what integration

Re: Interfacing devices with multiple parents within newbus

2012-07-07 Thread Warner Losh
On Jul 6, 2012, at 1:09 PM, Ian Lepore wrote: > Just blue-sky dreaming here on the fly... what we really have is a > resource-management problem. A device comes along that needs a GPIO > resource, how does it find and use that resource? I rather like that idea. The connection between devices

Re: Interfacing devices with multiple parents within newbus

2012-07-07 Thread Warner Losh
On Jul 7, 2012, at 6:25 AM, Stefan Bethke wrote: > Am 06.07.2012 um 17:33 schrieb Arnaud Lacombe: > >> I assume you are talking about devclass_get_device()/device_find_child(). >> >> That's neither correct nor robust in a couple of way: >> 1) you have no guarantee a device unit will always give

Re: Interfacing devices with multiple parents within newbus

2012-07-06 Thread Warner Losh
On Jul 6, 2012, at 12:46 PM, Arnaud Lacombe wrote: > Hi, > > On Fri, Jul 6, 2012 at 11:33 AM, Arnaud Lacombe wrote: >> That's neither correct nor robust in a couple of way: >> 1) you have no guarantee a device unit will always give you the same >> resource. > this raises the following question

Re: Training wheels for commandline (was Re: Pull in upstream before 9.1 code freeze?)

2012-07-06 Thread Warner Losh
On Jul 6, 2012, at 10:46 AM, Wojciech Puchar wrote: >> >> The system should be optimized for new users by default. Whether this >> means enabling or disabling a feature is feature-specific. >> > with such attitude it will not take long to turn FreeBSD to useless thing, > not really different f

Re: Interfacing devices with multiple parents within newbus

2012-07-05 Thread Warner Losh
On Jul 5, 2012, at 5:14 PM, Arnaud Lacombe wrote: > Hi folks, > > The problem has been raised in the last BSDCan during a talk, but no > clear answer has been given. Some (pseudo-)devices might require > resources from multiple other (pseudo-)devices. > > For example, a device is sitting on an

Re: Training wheels for commandline (was Re: Pull in upstream before 9.1 code freeze?)

2012-07-05 Thread Warner Losh
On Jul 5, 2012, at 10:45 AM, Damien Fleuriot wrote: > > On 7/5/12 6:38 PM, Wojciech Puchar wrote: >>> inexperienced users. >>> >>> Having to enable it manually defeats its very purpose. >> >> so is FreeBSD future direction to be moron-OS just like linux is now, or >> is that just another stupi

Re: Pull in upstream before 9.1 code freeze?

2012-07-04 Thread Warner Losh
On Jul 4, 2012, at 4:08 PM, Doug Barton wrote: > On 07/04/2012 15:01, Mike Meyer wrote: >> On Wed, 04 Jul 2012 14:19:38 -0700 >> Doug Barton wrote: >>> On 07/04/2012 11:51, Jason Hellenthal wrote: What would be really nice here is a command wrapper hooked into the shell so that when yo

Re: bus device/ivars

2012-05-31 Thread Warner Losh
On May 31, 2012, at 9:54 AM, John Baldwin wrote: > On Thursday, May 31, 2012 4:19:46 am Norbert Koch wrote: >> Hello, >> >> I have written a bus device driver >> which itself is a pci driver. Child devices >> may allocate resources from my bus device. >> >> My bus device does the usual >> manag

Re: ARM + CACHE_LINE_SIZE + DMA

2012-05-23 Thread Warner Losh
Hi Svatopluk, That looks very interesting. You may be interested in the efforts of various people to bring up the armv6 multi-core boards. You can checkout the source from http://svn.freebsd.org/base/projects/armv6 to see where we are in that effort. I believe that many of these issues have b

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-17 Thread Warner Losh
On Jan 17, 2012, at 11:12 AM, John Kozubik wrote: > Again, I'm not suggesting more snapshots - I am suggesting more real, bona > fide releases. This will help people. I tend to agree with you. Our release engineering process isn't serving the needs of users as much as it once did. When Walnu

Re: Reprobing of devices after module load?

2011-11-21 Thread Warner Losh
On Nov 21, 2011, at 9:26 AM, John Baldwin wrote: > On Friday, November 18, 2011 11:48:20 am Paul B. Mahol wrote: >> Hi, >> >> Is there nice way in FreeBSD to force reprobe of devices for specific >> driver like it is done when kernel module is loaded (via >> DRIVER_MODULE(...) stuff)? > > Note

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-21 Thread Warner Losh
On Jul 20, 2011, at 9:13 AM, John Baldwin wrote: > I think this is a harder problem than you expect. It is not just the crt > files > that matter, but every library. You would need CPU-specific versions of every > static library on the build system, and possibly you would want to do this for >

Re: Jails: Setting different times in jails

2011-07-09 Thread Warner Losh
Why on earth would you want this? Warner On Jul 7, 2011, at 2:31 AM, grarpamp wrote: >> possibly achievable in libc? > > I don't know. Where else would it be done? > stat, utimes, gettimeofday, clock_gettime, > adjtime, etc and their variations. > > I've not checked what currently happens, but

Re: [PATCH] __FreeBSD_cc_version in

2011-07-09 Thread Warner Losh
On Jul 5, 2011, at 7:36 AM, Robert Millan wrote: > 2011/7/5 Dimitry Andric : >> As far as I can see, this code only gives warnings when compiled with >> gcc 4.5 or higher, and when using the -Wundef flag. Isn't it easier to >> just remove the -Wundef flag here? > > Here's a patch to remove -Wun

Re: [PATCH] __FreeBSD_kernel__

2011-07-09 Thread Warner Losh
I know this is a little late, but... On Jul 5, 2011, at 2:12 PM, Ed Maste wrote: > On Tue, Jul 05, 2011 at 02:05:27PM -0400, Alexander Kabaev wrote: > >> I agree with all of the above reasons, but none of them change the fact >> that __linux__ is used left and right to identify both kernel and >

Re: misc/157903: automated kldload for USB class devices

2011-06-24 Thread Warner Losh
On Jun 24, 2011, at 7:11 AM, Hans Petter Selasky wrote: > On Friday 24 June 2011 14:59:37 Robert Millan wrote: >> 2011/6/24 Hans Petter Selasky : Very nice. But why not use variable names instead of hardcoding numbers? It makes the output much easier to understand. >>> >>> To save mem

Re: misc/157903: automated kldload for USB class devices

2011-06-23 Thread Warner Losh
How'd you go about generating all these .conf files? I don't see where you defined USB_* as variables in them either. Maybe you could point me at it? Warner On Jun 23, 2011, at 10:00 AM, Robert Millan wrote: > ___ freebsd-hackers@freebsd.org maili

Re: kexec or similar for FreeBSD

2011-06-21 Thread Warner Losh
On Jun 21, 2011, at 2:40 PM, Gleb Kurtsou wrote: > On (16/06/2011 22:35), Russell Cattelan wrote: >> On 6/16/11 3:06 PM, Gleb Kurtsou wrote: >>> On (16/06/2011 13:32), Russell Cattelan wrote: I have been contacted about possibly implementing a fast reboot mechanism for FreeBSD similar t

Re: Shooting trouble on a PCI bus hang

2011-06-20 Thread Warner Losh
On Jun 20, 2011, at 6:49 AM, John Baldwin wrote: > On Sunday, June 19, 2011 12:35:49 pm Ansar Mohammed wrote: >> I appreciate that. The system works fine with NetBSD, LInux and Windows XP, >> so I doubt its hardware. >> >> Interesting though that OpenBSD has the same issue. >> >> A question abo

Re: CONF class of files

2011-06-17 Thread Warner Losh
I like it. I think we should get it in ASAP. Warner On Jun 17, 2011, at 10:40 AM, Chris Rees wrote: > Hi all, > > Macros are being tested for bsd.port.mk that use a new class of files, > in the same vein as the BINOWN variables I have introduced CONFOWN, > CONFGRP, CONFMODE and CONFDIR. > > P

Re: freebsd under qemu - slow

2011-06-10 Thread Warner Losh
On Jun 10, 2011, at 6:14 AM, Atom Smasher wrote: > new laptop: > LENOVO, 4313CTO, ThinkPad T510 > Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz > Integrated Graphics Chipset: Intel(R) Arrandale > 4G RAM (DDR3-10600) > > old laptop: > Acer, Navarro, Aspire 5100 > AMD Turion(tm) 64 Mobile Technology MK

Re: _LP64 and _ILP32

2011-06-05 Thread Warner Losh
On Jun 5, 2011, at 4:13 AM, Ben Laurie wrote: > On 05/06/2011 06:03, Warner Losh wrote: >> I'd add them for all !_LP64 architectures: arm, mips o32, mips n32, i386, >> and powerpc... > > Forgive the stupid question, but ... add them to what? If they aren't a

Re: _LP64 and _ILP32

2011-06-04 Thread Warner Losh
I'd add them for all !_LP64 architectures: arm, mips o32, mips n32, i386, and powerpc... Warner On Jun 4, 2011, at 2:41 PM, Ben Laurie wrote: > It turns out that both clang and gcc define _LP64 when used native on amd64. > > Neither defines _ILP32 on i386 (native or cross-compiled). > > dt_po

Re: sizeof(function pointer)

2011-05-31 Thread Warner Losh
On May 31, 2011, at 5:07 PM, m...@freebsd.org wrote: > I am looking into potentially MFC'ing r212367 and related, that adds > drains to sbufs. The reason for MFC is that several pieces of new > code in CURRENT are using the drain functionality and it would make > MFCing those changes much easier

Re: Include file search path

2011-05-31 Thread Warner Losh
On May 22, 2011, at 9:48 PM, Arnaud Lacombe wrote: > Hi Warner, > > On Sat, Apr 2, 2011 at 6:49 PM, Warner Losh wrote: >> >> On Apr 2, 2011, at 1:10 PM, Robert N. M. Watson wrote: >> >>> On 2 Apr 2011, at 19:47, Warner Losh wrote: >>> >>

Re: [rfc] a few kern.mk and bsd.sys.mk related changes

2011-05-27 Thread Warner Losh
On May 27, 2011, at 12:14 PM, Alexander Best wrote: > On Fri May 27 11, Warner Losh wrote: >> These look generally good. Just one thing I had a question on: >> >> # >> +# Enable FreeBSD kernel-specific printf format specifiers. Also instruct >> gcc to >>

Re: Active slice, only for a next boot

2011-05-27 Thread Warner Losh
On May 27, 2011, at 11:21 AM, Chris Rees wrote: > On 27 May 2011 17:47, wrote: >> >> - Original Message - >> From: Alexander Best >> To: rank1see...@gmail.com >> Cc: hack...@freebsd.org >> Date: Fri, 27 May 2011 13:47:54 + >> Subject: Re: Active slice, only for a next boot >> >>>

Re: Active slice, only for a next boot

2011-05-27 Thread Warner Losh
On May 27, 2011, at 10:47 AM, rank1see...@gmail.com wrote: > - Original Message - > From: Alexander Best > To: rank1see...@gmail.com > Cc: hack...@freebsd.org > Date: Fri, 27 May 2011 13:47:54 + > Subject: Re: Active slice, only for a next boot > >> On Fri May 27 11, rank1see...@gma

Re: [rfc] a few kern.mk and bsd.sys.mk related changes

2011-05-27 Thread Warner Losh
These look generally good. Just one thing I had a question on: # +# Enable FreeBSD kernel-specific printf format specifiers. Also instruct gcc to +# enable some diagnostics, which make it easier to pinpoint tinderbox failures. +CFLAGS+= -fformat-extensions -fdiagnostics-show-option + Does

Re: porting third-party build system to bsd.kmod.mk

2011-05-22 Thread Warner Losh
The usual reason that vnode_if.h doesn't build for me when I'm doing in-tree hacking is because make depend hasn't run to generate it yet. Or more precisely, the arc in the dependency graph from osi_crypto.c to vnode_if.h. I didn't see that as part of the log, so you might try this first (and

Re: [UPDATE] New Boot-Loader Menu -- version 1.3

2011-05-12 Thread Warner Losh
On May 12, 2011, at 2:14 PM, Devin Teske wrote: >> On May 4, 2011, at 1:37 AM, Emanuel Haupt wrote: >> >>> Devin Teske wrote: >>> >>> Hey all, >>> >>> Proud to bring you version 1.3 which completes the followup >>> suggestions made by Olivier Smedts (use autoboot_delay instead of >>> loader_m

Re: Embedded switch instead of stadard PHY

2011-05-10 Thread Warner Losh
On May 8, 2011, at 7:52 AM, Damjan Marion wrote > On May 8, 2011, at 3:16 PM, Marius Strobl wrote: >> On Sat, May 07, 2011 at 07:22:23PM +0200, Damjan Marion wrote: > Yes, my initial idea is to attach manually only to one PHY, but problem > is that either i can attach to PHY12-15 which is reporti

Re: Embedded switch instead of stadard PHY

2011-05-10 Thread Warner Losh
On May 9, 2011, at 12:30 AM, Adrian Chadd wrote: > On 8 May 2011 21:16, Marius Strobl wrote: > > [snip] > >> Depends on what you understand by properly. One idea I particularly >> like is to handle switch ports as pseudo-interfaces hanging off of the >> the MAC driver parent roughly similar to

Re: [UPDATE] New Boot-Loader Menu -- version 1.4

2011-05-06 Thread Warner Losh
On May 5, 2011, at 7:21 PM, Devin Teske wrote: >> -Original Message- >> From: owner-freebsd-hack...@freebsd.org [mailto:owner-freebsd- >> hack...@freebsd.org] On Behalf Of Ivan Voras >> Sent: Thursday, May 05, 2011 8:00 AM >> To: freebsd-hackers@freebsd.org >> Subject: Re: [UPDATE] New Bo

Re: [RELEASE] New Boot-Loader Menu

2011-04-29 Thread Warner Losh
Why not both? Warner On Apr 29, 2011, at 11:08 AM, Mike Meyer wrote: > On Sun, 24 Apr 2011 18:53:11 -0700 > Devin Teske wrote: > >> Hello fellow hackers, >> >> I'd love to finally release (under the BSD license) my code for the revamped >> FreeBSD boot loader menu. >> >> Here's a detailed

Re: make question

2011-04-28 Thread Warner Losh
On Apr 28, 2011, at 7:37 PM, Arnaud Lacombe wrote: > On Thu, Apr 28, 2011 at 11:52 AM, Hartmut Brandt > wrote: >> I think we can change this, because it would break makefiles that assume >> that the entire script is given to the shell in one piece. >> > I'm not sure to parse that. "We can chang

Re: Is there some implicit locking of device methods?

2011-04-26 Thread Warner Losh
On Apr 26, 2011, at 6:17 PM, Bartosz Fabianowski wrote: >> If you needs per-file private data for cdev, you would be better served >> by cdevpriv(9) KPI. Cloning is too hard to use correctly for such task. > > Thanks, I just got that working. To help those going down a similar path in > the fut

Re: Is there some implicit locking of device methods?

2011-04-26 Thread Warner Losh
On Apr 26, 2011, at 7:42 AM, John Baldwin wrote: > - The Giant protection for new-bus should prevent attach/detach from running > concurrently I believe (either that or the USB bus itself should ensure > that the two instances of your device have seperate device_t instances with > separate s

Re: scd and mcd

2011-04-23 Thread Warner Losh
On Apr 23, 2011, at 5:19 PM, per...@pluto.rain.com wrote: > Warner Losh wrote: > >> mcd and scd are ISA-only devices ... They were important for the >> 386 (now not supported) and 486 machines. Since the 486 machines >> in question maxed out at 32MB, and 8.x has troub

Re: scd and mcd

2011-04-23 Thread Warner Losh
On Apr 23, 2011, at 12:02 PM, Andrew Lankford wrote: > While we're talking about recent MFC's for SATA hardware (works for me, but I > still need the old ata drivers for my cdrom), is anyone out there really > still using the mcd (fbsd 1.0 vintage) and scd (2.0.5) drivers? mcd and scd are ISA-o

Re: Need an alternative to DELAY()

2011-04-11 Thread Warner Losh
I don't suppose that your driver could cause the hardware to interrupt after a little time? That would be more resource friendly... Otherwise, 1ms is long enough that a msleep or tsleep would likely work quite nicely. Warner On Apr 11, 2011, at 1:43 PM, dieter...@engineer.com wrote: >>> Free

Re: ifconfig output: ipv4 netmask format

2011-04-08 Thread Warner Losh
On Apr 8, 2011, at 1:00 PM, Sergey Vinogradov wrote: > 08.04.2011 19:55, Mike Bristow пишет: >> On Fri, Apr 08, 2011 at 07:40:56PM +0400, Sergey Vinogradov wrote: >>> On 08.04.2011 19:23, Warner Losh wrote: >>>> On Apr 8, 2011, at 6:08 AM, Sergey Vinogradov wrot

Re: ifconfig output: ipv4 netmask format

2011-04-08 Thread Warner Losh
On Apr 8, 2011, at 9:55 AM, Mike Bristow wrote: > On Fri, Apr 08, 2011 at 07:40:56PM +0400, Sergey Vinogradov wrote: >> On 08.04.2011 19:23, Warner Losh wrote: >>> On Apr 8, 2011, at 6:08 AM, Sergey Vinogradov wrote: >>> If we really wanted to make it human readab

Re: ifconfig output: ipv4 netmask format

2011-04-08 Thread Warner Losh
On Apr 8, 2011, at 6:08 AM, Sergey Vinogradov wrote: > Hi, hackers. > I have a question: why ipv4 netmask is displayed by ifconfig in hex format? > Isn't dot-decimal notation more human-readable? Will the attached patch break > something in the very bad way? This is a gratuitous change that wo

Re: Updating PCI vendors database

2011-04-04 Thread Warner Losh
On Apr 4, 2011, at 10:01 AM, Philip Paeps wrote: >>> I think we should just go with the new list, but I'll hold off for a bit >>> to let others object. ;) >> >> +1, just for the fact that our sources are becoming stale. I wonder though >> what other OSes like NetBSD/OpenBSD/[Open]Solaris/IlluminO

Re: looking for error codes

2011-04-03 Thread Warner Losh
On Apr 3, 2011, at 12:06 PM, Pawel Jakub Dawidek wrote: > On Fri, Apr 01, 2011 at 06:18:54PM +0300, Andriy Gapon wrote: >> on 01/04/2011 18:04 Andrew Duane said the following: >>> AFAIK, FreeBSD does not really detect read-only media. This was something I >>> had to add as a small project here a

Re: State of FreeBSD/xbox

2011-04-03 Thread Warner Losh
I always wanted to run FreeBSD/xbox, but I never got it going because I never had the right hacker dongle... Warner On Apr 3, 2011, at 12:40 PM, Chris Rees wrote: > Hi all, > > I've got an xbox running at my parents' house as a backup MX, among > other things. > > Ages ago I updated it from 7

Re: Include file search path

2011-04-02 Thread Warner Losh
On Apr 2, 2011, at 1:10 PM, Robert N. M. Watson wrote: > On 2 Apr 2011, at 19:47, Warner Losh wrote: > >>> (2) Working clang/LLVM cross-compile of FreeBSD. This seems like a basic >>> requirement to adopt clang/LLVM, and as far as I'm aware that's not yet a

Re: Include file search path

2011-04-02 Thread Warner Losh
On Apr 2, 2011, at 12:29 PM, Robert Watson wrote: > On Wed, 30 Mar 2011, Warner Losh wrote: > >> On Mar 30, 2011, at 9:23 AM, Dimitry Andric wrote: >>> This is a rather nasty hack, though. If we can make it work, we should >>> probably try using --sysroot instea

Re: looking for error codes

2011-04-02 Thread Warner Losh
On Apr 2, 2011, at 1:50 AM, per...@pluto.rain.com wrote: > >> With respect to my knowledge , no one of the operating systems >> has a facility to separate read-only and modifiable parts ... > > SunOS 4 had a partial solution to this, by rearranging the FS layout > so that /usr could be mounted r

Re: issue with devstat_buildmatch(3) and certain strings

2011-04-01 Thread Warner Losh
On Apr 1, 2011, at 5:40 AM, Sergey Kandaurov wrote: >>if (++tempstr >= &tstr[5]) > > BTW, > this game with pointers might prevent devstat(3) from work on big-endian. I'm very curious about your reasoning here. Warner __

Re: looking for error codes

2011-04-01 Thread Warner Losh
On Apr 1, 2011, at 8:29 AM, Andriy Gapon wrote: > > I am looking for error codes that would unambiguously signal that a disk > drive has > readonly or write-protected media and that disk drive has no media at the > moment. > I foresee these error codes being used mostly between disk peripheral

Re: Include file search path

2011-03-30 Thread Warner Losh
On Mar 30, 2011, at 9:23 AM, Dimitry Andric wrote: > This is a rather nasty hack, though. If we can make it work, we should > probably try using --sysroot instead, or alternatively, -nostdinc and > adding include dirs by hand. The same for executable and library search > paths, although I am not

Re: New Boot-Loader

2011-03-28 Thread Warner Losh
On Mar 28, 2011, at 5:08 AM, Alexander Best wrote: > On Sun Mar 27 11, Warner Losh wrote: >> >> >> On Mar 27, 2011, at 10:48 PM, Devin Teske wrote: >>> Replacement Boot-Loader: twitpic.com/4e46ol >>> >>> NOTE: The final release will have a s

  1   2   3   4   5   6   7   8   9   10   >