Review/testing request: changing the detection of data_addr/text_addr

2010-03-24 Thread Nathan Whitehorn
We currently detect the offical text and data addresses for ELF files in kern/imgact_elf.c by the heuristic of calling whichever section contains the executable's entry point the text section and everything else data. In general, both this concept and the very few things that use them are

Review/testing request: changing the arguments of exec_setregs()

2010-03-24 Thread Nathan Whitehorn
In order to properly implement exec_setregs() on powerpc64, I must hand-relocate the function descriptor pointed to by the executable entry point. To do this, exec_setregs() must be passed the relocation base of the executable, which would originally come from the image_params struct. The

Re: Review/testing request: changing the detection of data_addr/text_addr

2010-03-24 Thread Nathan Whitehorn
John Baldwin wrote: On Wednesday 24 March 2010 3:29:23 pm Nathan Whitehorn wrote: We currently detect the offical text and data addresses for ELF files in kern/imgact_elf.c by the heuristic of calling whichever section contains the executable's entry point the text section and everything

UMA allocations from a specific physical range

2010-09-05 Thread Nathan Whitehorn
PowerPC hypervisors typically provided a restricted range on memory when the MMU is disabled, as it is when initially handling exceptions. In order to restore virtual memory, the powerpc64 code needs to read a data structure called the SLB cache, which is currently allocated out of a UMA zone, and

Re: UMA allocations from a specific physical range

2010-09-05 Thread Nathan Whitehorn
On 09/05/10 22:51, m...@freebsd.org wrote: On Mon, Sep 6, 2010 at 1:38 AM, Nathan Whitehorn nwhiteh...@freebsd.org wrote: PowerPC hypervisors typically provided a restricted range on memory when the MMU is disabled, as it is when initially handling exceptions. In order to restore virtual

PS3 livelock and pmap_remove()

2010-09-06 Thread Nathan Whitehorn
Now that my SLB allocation issue is solved, with help with Matthew and Alan, I have another VM puzzler. I have a simple program that tries to use all the memory on the system, which isn't very much on the PS3, so I use it to test swap as well. Shortly after it begins paging, the system locks up

Re: PS3 livelock and pmap_remove()

2010-09-06 Thread Nathan Whitehorn
On 09/06/10 20:22, Nathan Whitehorn wrote: Now that my SLB allocation issue is solved, with help with Matthew and Alan, I have another VM puzzler. I have a simple program that tries to use all the memory on the system, which isn't very much on the PS3, so I use it to test swap as well

Re: PS3 livelock and pmap_remove()

2010-09-07 Thread Nathan Whitehorn
On 09/06/10 22:24, Nathan Whitehorn wrote: On 09/06/10 20:22, Nathan Whitehorn wrote: Now that my SLB allocation issue is solved, with help with Matthew and Alan, I have another VM puzzler. I have a simple program that tries to use all the memory on the system, which isn't very much

Re: Summary: Re: Spin down HDD after disk sync or before power off

2010-09-16 Thread Nathan Whitehorn
On 09/16/10 09:42, Warren Block wrote: On Thu, 16 Sep 2010, Alexander Best wrote: On Wed Sep 15 10, Oliver Fromme wrote: Warren Block wbl...@wonkity.com wrote: [...] 8. Alexander Motin has an updated CAM version of the ATA system which will eventually replace the existing one. In

Re: fix pnpinfo on arch=amd64

2010-10-24 Thread Nathan Whitehorn
On 10/24/10 11:14, Garrett Cooper wrote: well on i386/amd (pc98?) you could use i386_get_ioperm(2) to check for proper io permissions. Yeah, and it's x86 specific. Kind of curious why there isn't a more generalized name for this API, but it appeared to be geared towards x86 (today,

Re: txt-sysinstall scrapped

2010-11-06 Thread Nathan Whitehorn
On 11/06/10 01:04, Garrett Cooper wrote: On Fri, Nov 5, 2010 at 10:06 PM, Warner Losh i...@bsdimp.com 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?

Re: Unable to compile drm.ko on powerpc

2011-01-12 Thread Nathan Whitehorn
On 01/12/11 02:39, Super Bisquit wrote: http://slexy.org/view/s2NSVy7aTU The build also fails looking for machine/specialreg.h. This file is only found on i386/amd64 processors. Drm.ko is needed by agp.ko. DRM is not required by AGP, rather the reverse, and DRM does not presently work on

Re: Unable to compile drm.ko on powerpc

2011-01-13 Thread Nathan Whitehorn
AGP is derived from PCI, so AGP devices show up on the PCI bus. All the AGP kernel module does is provide hooks to manipulate some advanced features of the bus, mostly for the benefit of drm. -Nathan On 01/12/11 19:24, Super Bisquit wrote: My graphics port is agp and not pci. It's a

Re: multi-boot bootstrap?

2011-03-28 Thread Nathan Whitehorn
On 03/28/11 15:59, dieter...@engineer.com wrote: From what I know, one or the other can only be as the first entry and it then has to be set from the forth prompt. So, you will need two disks to boot , saya: OpenBSD, NetBSD, FreeBSD, Linux, and MacOSX or a combination of these. On PPC

Re: Include file search path

2011-03-30 Thread Nathan Whitehorn
On 03/30/11 10:23, Dimitry Andric wrote: On 2011-03-29 23:20, m...@freebsd.org wrote: So here's what I'm pondering. When I build a library, like e.g. libc, where do the include files get pulled from? They can't (shouldn't) be the ones in /usr/include, but I don't see a -nostdinc like for the

Re: dialog(1) changed in RELENG_9 (was RE: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD)

2011-04-22 Thread Nathan Whitehorn
On 04/22/11 11:50, Devin Teske wrote: -Original Message- From: Alexander Best [mailto:arun...@freebsd.org] Sent: Friday, April 22, 2011 8:42 AM To: Devin Teske Cc: freebsd-hackers@freebsd.org; freebsd-questi...@freebsd.org; 'Teske, Devin' Subject: Re: [UPDATE] host-setup(1): a

Re: sizeof(function pointer)

2011-05-31 Thread Nathan Whitehorn
On 05/31/11 18:18, Warner Losh wrote: 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

Re: sizeof(function pointer)

2011-05-31 Thread Nathan Whitehorn
On 05/31/11 19:06, Alexander Kabaev wrote: On Tue, 31 May 2011 17:18:16 -0600 Warner Loshi...@bsdimp.com wrote: 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

Re: [PATCH] fake pre-processor macros when building on non-FreeBSD system

2011-07-12 Thread Nathan Whitehorn
On 07/12/11 16:06, Robert Millan wrote: 2011/7/12 Alexander Kabaevkab...@gmail.com: Whatever happened to using a proper cross-tool to do the job? Why would one need to build a cross-compiler in order to compile userland-agnostic code for the same CPU architecture? This would be like requiring

Re: [PATCH] fake pre-processor macros when building on non-FreeBSD system

2011-07-12 Thread Nathan Whitehorn
On 07/12/11 17:33, Robert Millan wrote: 2011/7/12 Nathan Whitehornnwhiteh...@freebsd.org: On 07/12/11 16:06, Robert Millan wrote: Why would one need to build a cross-compiler in order to compile userland-agnostic code for the same CPU architecture? This would be like requiring a

Re: make release question

2011-07-21 Thread Nathan Whitehorn
On 07/21/11 10:42, Aryeh Friedman wrote: Where does make release place the disk images (iso's) by default ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: 9-beta1 installer - partition editor

2011-08-30 Thread Nathan Whitehorn
On 08/30/11 07:27, Ivan Voras wrote: Am I doing something wrong or the BETA1 installer cannot be used to manually create the partition scheme? 1) it doesn't accept freebsd-swap as partition type (invalid argument) 2) it doesn't recognize that I have actually created a root (/) mount point;

Re: 9-beta1 installer - partition editor

2011-08-30 Thread Nathan Whitehorn
On 08/30/11 19:07, Ivan Voras wrote: On 30.8.2011. 16:11, Nathan Whitehorn wrote: On 08/30/11 07:27, Ivan Voras wrote: Am I doing something wrong or the BETA1 installer cannot be used to manually create the partition scheme? 1) it doesn't accept freebsd-swap as partition type (invalid

Re: 9-beta1 installer - partition editor

2011-08-31 Thread Nathan Whitehorn
On 08/31/11 05:19, Ivan Voras wrote: On 31/08/2011 02:40, Nathan Whitehorn wrote: On 08/30/11 19:07, Ivan Voras wrote: It was a plain install on a RAID volume which appears as ordinary da0 drive. I did do a couple of start-overs so it could be that some state got lost. It definitely did

Re: 9-beta1 installer - partition editor

2011-08-31 Thread Nathan Whitehorn
On 08/31/11 08:28, Ivan Voras wrote: On 31 August 2011 14:45, Nathan Whitehornnwhiteh...@freebsd.org wrote: It does let you set mountpoints, and displays them, and always has, but not for bsdlabel container partitions (MBR type freebsd), since they aren't filesystems. Is this what you were

Re: 9-beta1 installer - partition editor

2011-09-12 Thread Nathan Whitehorn
On 09/12/11 14:13, Ivan Voras wrote: Unfortunately, I continue to have problems with the partitioner part of the installer in the BETA2 image. See the (unchanged) problem screenshots here: http://ivoras.imgur.com/freebsd_installer_2 See also the screenshots of the entire process here (on

Re: how are callouts handled in cpu_idle() ?

2011-10-05 Thread Nathan Whitehorn
On 10/01/11 04:25, Alexander Motin wrote: Hi. Adrian Chadd wrote: What happens if this occurs: * cpu_idle() is entered * you enter critical_enter() and call cpu_idleclock() * an interrupt occurs, scheduling an immediate callout * .. but you've already set the clock register, so it won't be

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-12-08 Thread Nathan Whitehorn
On 12/08/11 03:01, Piotr Nowak wrote: We're working on PowerPC target using GCC 4.2.1 and FreeBSD 6.1. It seems like we have similar problem. In our case GCC sometimes very unfortunately optimize code with -fno-omit-frame-pointer. Example shown below covers file sys/powerc/booke/pmap.c and

Re: Change of ftp download server's dir layout, from 9

2012-01-22 Thread Nathan Whitehorn
On 01/22/12 11:11, rank1see...@gmail.com wrote: - Original Message - From: Devin Teskedevin.te...@fisglobal.com To:rank1see...@gmail.com Cc:hack...@freebsd.org Date: Sun, 22 Jan 2012 08:42:00 -0800 Subject: Re: Change of ftp download server's dir layout, from 9 On Jan 22, 2012, at 8:01

Re: Jumpstart on FreeBSD 9.0

2012-02-20 Thread Nathan Whitehorn
On 02/21/12 02:24, ego...@ramattack.net wrote: Hi all, I'm trying to upgrade my Jumpstart services for provisioning machines, but I'm founding that in FreeBSD 9.0 things are become slightly different than in previous releases. For example... tar -C ... -pxvf does not work with some files

Re: Regarding cores in FreeBSD 9

2012-04-15 Thread Nathan Whitehorn
On 04/15/12 16:27, Mahesh Babu wrote: 1. How to find in which core the given process is running? You can see it in top. 2. How to force a process to run in a particular core? for example: I need to run process ID 1200 in core 2. Use cpuset. You can either run it in the first place on core

Re: FreeBSD Boot Times

2012-06-13 Thread Nathan Whitehorn
On 06/12/12 18:00, Richard Yao wrote: On 06/11/12 18:51, Garrett Cooper wrote: On Mon, Jun 11, 2012 at 3:21 PM, Brandon Falkbfalk_...@brandonfa.lk wrote: Greetings, I was just wondering what it is that FreeBSD does that makes it take so long to boot. Booting into Ubuntu minimal or my own

Re: wired memory - again!

2012-06-13 Thread Nathan Whitehorn
On 06/13/12 13:22, Konstantin Belousov wrote: On Wed, Jun 13, 2012 at 07:14:09AM -0600, Ian Lepore wrote: On Tue, 2012-06-12 at 23:45 +0300, Konstantin Belousov wrote: On Tue, Jun 12, 2012 at 08:51:34AM -0600, Ian Lepore wrote: On Sat, 2012-06-09 at 22:45 +0200, Wojciech Puchar wrote: First,

Re: FreeBSD Boot Times

2012-06-14 Thread Nathan Whitehorn
deficiencies, I am certain that the OpenRC developers would appreciate feedback regarding them. On 06/13/12 10:19, Nathan Whitehorn wrote: On 06/12/12 18:00, Richard Yao wrote: On 06/11/12 18:51, Garrett Cooper wrote: On Mon, Jun 11, 2012 at 3:21 PM, Brandon Falkbfalk_...@brandonfa.lk wrote

Re: EFI development tools

2012-06-18 Thread Nathan Whitehorn
On 06/17/12 19:43, Mike Meyer wrote: Eric McCorklee...@shadowsun.net wrote: The -m32 flag seems to be the culprit; removing it fixes the problem. This is why I was having problems, as the offsets in EFI_SYSTEM_TABLE were wrong. In any case, this is a pretty serious error, and someone

Re: Build 32 bit binaries on amd64

2012-08-21 Thread Nathan Whitehorn
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's support for address sanitization (asan) to FreeBSD. So far I have it

Re: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]

2012-11-18 Thread Nathan Whitehorn
On 11/18/12 01:31, Konstantin Belousov wrote: On Sat, Nov 17, 2012 at 11:05:40PM -0800, Perry Hutchison wrote: [trimmed some of the lists] Chris Rees utis...@gmail.com wrote: ... git doesn't work with our workflow. I'm sure the workflow itself is documented somewhere, but is there a good

Re: FreeBSD installers and future direction

2013-05-25 Thread Nathan Whitehorn
On 05/25/13 13:26, Bruce Cran wrote: On 25/05/2013 17:15, Matt Olander wrote: From my vague recollection, we discussed improving bsdinstall by tying it in with pc-sysinstall, which we've been threatening to do for at least a year. Also, there was much discussion about Devin's bsdconfig perhaps

Re: FreeBSD installers and future direction

2013-05-27 Thread Nathan Whitehorn
On 05/27/13 16:23, Bruce Cran wrote: On 27/05/2013 21:28, Alfred Perlstein wrote: On 5/27/13 11:40 AM, Bruce Cran wrote: Yes. Is this a joke? It probably /was/ too short a reply. Personally I think there should be a single UI and scripting interface across all platforms. We should try and

Re: FreeBSD installers and future direction

2013-05-27 Thread Nathan Whitehorn
On 05/27/13 20:40, Alfred Perlstein wrote: On 5/27/13 2:23 PM, Bruce Cran wrote: On 27/05/2013 21:28, Alfred Perlstein wrote: On 5/27/13 11:40 AM, Bruce Cran wrote: Yes. Is this a joke? It probably /was/ too short a reply. Personally I think there should be a single UI and scripting

Re: FreeBSD installers and future direction

2013-05-28 Thread Nathan Whitehorn
On 05/27/13 23:36, Alfred Perlstein wrote: On 5/27/13 6:53 PM, Nathan Whitehorn wrote: On 05/27/13 20:40, Alfred Perlstein wrote: On 5/27/13 2:23 PM, Bruce Cran wrote: On 27/05/2013 21:28, Alfred Perlstein wrote: On 5/27/13 11:40 AM, Bruce Cran wrote: Yes. Is this a joke? It probably

Re: [RFC][CFT] GEOM direct dispatch and fine-grained CAM locking

2013-09-04 Thread Nathan Whitehorn
On 09/04/13 02:01, Alexander Motin wrote: On 04.09.2013 00:48, Olivier Cochard-Labbé wrote: On Tue, Sep 3, 2013 at 8:10 PM, Outback Dingo outbackdi...@gmail.com wrote: Can anyone confirm how well tested/stable this patch set might be?? if theres positive input i have a zoo of dev machines i

Re: [RFC][CFT] GEOM direct dispatch and fine-grained CAM locking

2013-09-04 Thread Nathan Whitehorn
On 09/04/13 08:20, Ryan Stone wrote: On Wed, Sep 4, 2013 at 8:45 AM, Nathan Whitehorn nwhiteh...@freebsd.org wrote: Could you describe what this macro is supposed to do so that we can do the porting work? -Nathan #define GET_STACK_USAGE(total, used) GET_STACK_USAGE sets the variable passed

Re: [RFC][CFT] GEOM direct dispatch and fine-grained CAM locking

2013-09-04 Thread Nathan Whitehorn
On 09/04/13 11:00, John Baldwin wrote: On Wednesday, September 04, 2013 10:11:28 am Nathan Whitehorn wrote: On 09/04/13 08:20, Ryan Stone wrote: On Wed, Sep 4, 2013 at 8:45 AM, Nathan Whitehorn nwhiteh...@freebsd.org wrote: Could you describe what this macro is supposed to do so that we can

Re: Mixing amd64 kernel with i386 world

2013-09-28 Thread Nathan Whitehorn
On Sat, 28 Sep 2013, Peter Jeremy wrote: I have a system with 4GB RAM and hence need to use an amd64 kernel to use all the RAM (I can only access 3GB RAM with an i386 kernel). OTOH, amd64 processes are significantly (50-100%) larger than equivalent i386 processes and none none of the