Re: txt-sysinstall scrapped

2010-11-05 Thread Warner Losh
> Just to add to that (because I do find it a novel idea), 1) how > are you going to properly prevent man in the middle attacks (SSL, TLS, > etc?), and 2) what webserver would you use? https or ssh. We're also toying with the idea of having a partition that you could 'dd' your certs and keys

Re: txt-sysinstall scrapped

2010-11-05 Thread Warner Losh
On 11/06/2010 00:04, Garrett Cooper wrote: On Fri, Nov 5, 2010 at 10:06 PM, Warner Losh wrote: Just to add to that (because I do find it a novel idea), 1) how are you going to properly prevent man in the middle attacks (SSL, TLS, etc?), and 2) what webserver would you use? https or ssh

Re: txt-sysinstall scrapped

2010-11-05 Thread Warner Losh
On 11/06/2010 00:05, Garrett Cooper wrote: On Fri, Nov 5, 2010 at 11:04 PM, Garrett Cooper wrote: On Fri, Nov 5, 2010 at 10:06 PM, Warner Losh wrote: Just to add to that (because I do find it a novel idea), 1) how are you going to properly prevent man in the middle attacks (SSL, TLS

Re: txt-sysinstall scrapped

2010-11-06 Thread Warner Losh
On 11/06/2010 01:38, Garrett Cooper wrote: On Nov 5, 2010, at 11:49 PM, Warner Losh wrote: On 11/06/2010 00:04, Garrett Cooper wrote: On Fri, Nov 5, 2010 at 10:06 PM, Warner Losh wrote: Just to add to that (because I do find it a novel idea), 1) how are you going to properly prevent

Re: txt-sysinstall scrapped

2010-11-08 Thread Warner Losh
On 11/06/2010 10:24, Nathan Whitehorn wrote: On 11/06/10 01:04, Garrett Cooper wrote: On Fri, Nov 5, 2010 at 10:06 PM, Warner Losh wrote: Just to add to that (because I do find it a novel idea), 1) how are you going to properly prevent man in the middle attacks (SSL, TLS, etc?), and 2

Re: broken INCLUDE in sys/conf/kern.pre.mk for opensolaris code?

2011-01-06 Thread Warner Losh
On 01/06/2011 06:45, Alexander Best wrote: On Thu Jan 6 11, Sergey Kandaurov wrote: On 6 January 2011 04:40, Alexander Best wrote: hi there, while building target buildkernel with 'clang -v' i noticed a lot of these lines: ignoring nonexistent directory "/usr/subversion-src/sys/contrib/ope

Re: sys/boot/boot0/boot0.S - r186598

2011-01-10 Thread Warner Losh
On 01/10/2011 02:27, Daniel Braniss wrote: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --enig0AE178BF2380C8CAA3249E0C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 09/01/2011 04:38, Daniel Braniss wrote: There was a post o

Re: What does the FreeBSD/i386 ABI say about stack alignment?

2011-01-13 Thread Warner Losh
On 01/13/2011 13:28, Kostik Belousov wrote: On Thu, Jan 13, 2011 at 12:19:00PM -0500, Ryan Stone wrote: I've been trying to get an application compiled with gcc 4.5.1 running on FreeBSD 8.1, but it's been crashing during startup with a SIGBUS. It turns out that the problem is that gcc is issuing

Re: What does the FreeBSD/i386 ABI say about stack alignment?

2011-01-14 Thread Warner Losh
On 01/14/2011 01:28, Kostik Belousov wrote: On Thu, Jan 13, 2011 at 04:34:22PM -0700, Warner Losh wrote: On 01/13/2011 13:28, Kostik Belousov wrote: On Thu, Jan 13, 2011 at 12:19:00PM -0500, Ryan Stone wrote: I've been trying to get an application compiled with gcc 4.5.1 running on Fr

Re: best way to run -RELEASE and -CURRENT on the same machine

2011-01-14 Thread Warner Losh
On 01/14/2011 03:19, Aryeh Friedman wrote: My normal work doesn't require -CURRENT but the stuff I need to do Android development only works on -CURRENT the problem I only have one machine and want to make it so I can run 8.2-RC1 for most everyday things but can switch to -CURRENT when I do Andro

Re: Why not give git a try? (was "Re: [head tinderbox] failure on amd64/amd64")

2011-01-24 Thread Warner Losh
Regardless of the benefits, unless there's someone to setup the infrastructure to run things, we're not going to change. We should at least have a master seed for git that people can pull from before we talk about doing anything further. git has the ability to pull from svn, so this should be

Re: What does the FreeBSD/i386 ABI say about stack alignment?

2011-02-07 Thread Warner Losh
On 01/14/2011 09:42, Warner Losh wrote: On 01/14/2011 01:28, Kostik Belousov wrote: On Thu, Jan 13, 2011 at 04:34:22PM -0700, Warner Losh wrote: On 01/13/2011 13:28, Kostik Belousov wrote: On Thu, Jan 13, 2011 at 12:19:00PM -0500, Ryan Stone wrote: I've been trying to get an applic

Re: Missing stdint.h includes?

2011-02-09 Thread Warner Losh
On 02/05/2011 20:39, Raphael Kubo da Costa wrote: Garrett Cooper writes: On Sat, Feb 5, 2011 at 3:42 PM, Raphael Kubo da Costa wrote: As for devinfo.h, shouldn't it just include stdint.h, sys/types.h or sys/param.h? sys/types.h should suffice, even though POSIX says it should be in inttypes

Re: Switching to [KMGTPE]i prefixes?

2011-03-24 Thread Warner Losh
The new flag is '0x0f' but it should be '0x40' since that's a bit field... I did some doodling with this as well in my tree, and came up with something similar. I had an ifdef that forced the new mode, but I was never happy with the results. Warner On Mar 24, 2011, at 7:55 PM, Alexander Best

Re: Switching to [KMGTPE]i prefixes?

2011-03-25 Thread Warner Losh
One difference between this patch, and the patch I came up with, was that I used arrays of character pointers to the names of the symbols to use. This got around the problem that you have with the 'shift' you had to introduce to get things more or less correct. It also made for the possibility

Re: Switching to [KMGTPE]i prefixes?

2011-03-25 Thread Warner Losh
On Mar 25, 2011, at 3:33 PM, Xin LI wrote: > FYI I have a patch and I have incorporated some of Alexander's idea. > > Difference: > > - Use of both HN_DIVISOR_1000 and HN_IEC_PREFIXES triggers an > assertion. I think it doesn't make sense to return since this is an > API violation and we shoul

Re: Switching to [KMGTPE]i prefixes?

2011-03-25 Thread Warner Losh
On Mar 25, 2011, at 5:28 PM, Xin LI wrote: > On Fri, Mar 25, 2011 at 2:50 PM, Warner Losh wrote: >> How did you guys deal with programs like df that now need to do special >> buffer size hacks to get consistent results? > > I think it doesn't really matter - caller

Re: [GSoc] Timeconter Performance Improvements

2011-03-26 Thread Warner Losh
On Mar 26, 2011, at 8:12 AM, John Baldwin wrote: > On Saturday, March 26, 2011 08:16:46 am Peter Jeremy wrote: >> On 2011-Mar-25 08:18:38 -0400, John Baldwin wrote: >>> For modern Intel CPUs you can just assume that the TSCs are in sync across >>> packages. They also have invariant TSC's meanin

Re: [GSoc] Timeconter Performance Improvements

2011-03-27 Thread Warner Losh
On Mar 26, 2011, at 8:43 AM, Jing Huang wrote: > Hi, > > Thanks for you all sincerely. Under your guidance, I read the > specification of TSC in Intel Manual and learned the hardware feature > of TSC: > > Processor families increment the time-stamp counter differently: > • For Pentium M proce

Re: [GSoc] Timeconter Performance Improvements

2011-03-27 Thread Warner Losh
On Mar 27, 2011, at 10:29 PM, Julian Elischer wrote: > On 3/27/11 3:32 PM, Warner Losh wrote: >> On Mar 26, 2011, at 8:43 AM, Jing Huang wrote: >> >>> Hi, >>> >>> Thanks for you all sincerely. Under your guidance, I read the >>> specificat

Re: New Boot-Loader

2011-03-27 Thread Warner Losh
On Mar 27, 2011, at 10:48 PM, Devin Teske wrote: > Replacement Boot-Loader: twitpic.com/4e46ol > > NOTE: The final release will have a single-user mode option. This looks really cool. Nice to see a fresh look for the boot loader... > The new menu allows for more flexibility as selecting

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

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: 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: 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-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: 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: 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: 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: 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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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: [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: [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: 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: 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: [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: 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: [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: 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: 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: [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: 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: 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: _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: _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: 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: 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: 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: 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: 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: 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: [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: [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: 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: 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: 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 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: 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: 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: 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: 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: 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-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-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: 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-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: 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 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: 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: 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 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: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-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-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: 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: 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: 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: 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: 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: 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: 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-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: 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: 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: 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: 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: 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 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-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-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-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

  1   2   3   4   5   6   7   8   9   10   >