[head tinderbox] failure on mips/mips

2013-03-19 Thread FreeBSD Tinderbox
TB --- 2013-03-19 04:49:40 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-03-19 04:49:40 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE 
FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 
d...@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC  amd64
TB --- 2013-03-19 04:49:40 - starting HEAD tinderbox run for mips/mips
TB --- 2013-03-19 04:49:40 - cleaning the object tree
TB --- 2013-03-19 04:49:40 - /usr/local/bin/svn stat /src
TB --- 2013-03-19 04:49:59 - At svn revision 248477
TB --- 2013-03-19 04:50:00 - building world
TB --- 2013-03-19 04:50:00 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 04:50:00 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 04:50:00 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 04:50:00 - SRCCONF=/dev/null
TB --- 2013-03-19 04:50:00 - TARGET=mips
TB --- 2013-03-19 04:50:00 - TARGET_ARCH=mips
TB --- 2013-03-19 04:50:00 - TZ=UTC
TB --- 2013-03-19 04:50:00 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 04:50:00 - cd /src
TB --- 2013-03-19 04:50:00 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Tue Mar 19 04:50:05 UTC 2013
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
>>> World build completed on Tue Mar 19 05:53:22 UTC 2013
TB --- 2013-03-19 05:53:22 - cd /src/sys/mips/conf
TB --- 2013-03-19 05:53:22 - /usr/sbin/config -m ADM5120
TB --- 2013-03-19 05:53:22 - skipping ADM5120 kernel
TB --- 2013-03-19 05:53:22 - cd /src/sys/mips/conf
TB --- 2013-03-19 05:53:22 - /usr/sbin/config -m ALCHEMY
TB --- 2013-03-19 05:53:22 - skipping ALCHEMY kernel
TB --- 2013-03-19 05:53:22 - cd /src/sys/mips/conf
TB --- 2013-03-19 05:53:22 - /usr/sbin/config -m AP91
TB --- 2013-03-19 05:53:22 - building AP91 kernel
TB --- 2013-03-19 05:53:22 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 05:53:22 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 05:53:22 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 05:53:22 - SRCCONF=/dev/null
TB --- 2013-03-19 05:53:22 - TARGET=mips
TB --- 2013-03-19 05:53:22 - TARGET_ARCH=mips
TB --- 2013-03-19 05:53:22 - TZ=UTC
TB --- 2013-03-19 05:53:22 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 05:53:22 - cd /src
TB --- 2013-03-19 05:53:22 - /usr/bin/make -B buildkernel KERNCONF=AP91
>>> Kernel build for AP91 started on Tue Mar 19 05:53:22 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for AP91 completed on Tue Mar 19 05:57:31 UTC 2013
TB --- 2013-03-19 05:57:31 - cd /src/sys/mips/conf
TB --- 2013-03-19 05:57:31 - /usr/sbin/config -m AP93
TB --- 2013-03-19 05:57:31 - building AP93 kernel
TB --- 2013-03-19 05:57:31 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 05:57:31 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 05:57:31 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 05:57:31 - SRCCONF=/dev/null
TB --- 2013-03-19 05:57:31 - TARGET=mips
TB --- 2013-03-19 05:57:31 - TARGET_ARCH=mips
TB --- 2013-03-19 05:57:31 - TZ=UTC
TB --- 2013-03-19 05:57:31 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 05:57:31 - cd /src
TB --- 2013-03-19 05:57:31 - /usr/bin/make -B buildkernel KERNCONF=AP93
>>> Kernel build for AP93 started on Tue Mar 19 05:57:31 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for AP93 completed on Tue Mar 19 06:01:20 UTC 2013
TB --- 2013-03-19 06:01:20 - cd /src/sys/mips/conf
TB --- 2013-03-19 06:01:20 - /usr/sbin/config -m AP94
TB --- 2013-03-19 06:01:20 - building AP94 kernel
TB --- 2013-03-19 06:01:20 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 06:01:20 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 06:01:20 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 06:01:20 - SRCCONF=/dev/null
TB --- 2013-03-19 06:01:20 - TARGET=mips
TB --- 2013-03-19 06:01:20 - TARGET_ARCH=mips
TB --- 2013-03-19 06:01:20 - TZ=UTC
TB --- 2013-03-19 06:01:20 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 06:01:20 - cd /src
TB --- 2013-03-19 06:01:20 - /usr/bin/make -B buildkernel KERNCONF=AP94
>>> Kernel build for AP94 started on Tue Mar 19 06:01:20 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for AP94 completed on Tue Mar 19 06:06:20 UTC 2013
TB --- 2013-03-19 06:06:20 - cd /src/sys/mips/conf
TB --- 2013-03-19 0

[head tinderbox] failure on powerpc/powerpc

2013-03-19 Thread FreeBSD Tinderbox
TB --- 2013-03-19 05:36:04 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-03-19 05:36:04 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE 
FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 
d...@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC  amd64
TB --- 2013-03-19 05:36:04 - starting HEAD tinderbox run for powerpc/powerpc
TB --- 2013-03-19 05:36:04 - cleaning the object tree
TB --- 2013-03-19 05:36:04 - /usr/local/bin/svn stat /src
TB --- 2013-03-19 05:36:07 - At svn revision 248477
TB --- 2013-03-19 05:36:08 - building world
TB --- 2013-03-19 05:36:08 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 05:36:08 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 05:36:08 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 05:36:08 - SRCCONF=/dev/null
TB --- 2013-03-19 05:36:08 - TARGET=powerpc
TB --- 2013-03-19 05:36:08 - TARGET_ARCH=powerpc
TB --- 2013-03-19 05:36:08 - TZ=UTC
TB --- 2013-03-19 05:36:08 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 05:36:08 - cd /src
TB --- 2013-03-19 05:36:08 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Tue Mar 19 05:36:13 UTC 2013
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
>>> World build completed on Tue Mar 19 08:02:04 UTC 2013
TB --- 2013-03-19 08:02:04 - generating LINT kernel config
TB --- 2013-03-19 08:02:04 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 08:02:04 - /usr/bin/make -B LINT
TB --- 2013-03-19 08:02:04 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 08:02:04 - /usr/sbin/config -m LINT
TB --- 2013-03-19 08:02:04 - building LINT kernel
TB --- 2013-03-19 08:02:04 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 08:02:04 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 08:02:04 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 08:02:04 - SRCCONF=/dev/null
TB --- 2013-03-19 08:02:04 - TARGET=powerpc
TB --- 2013-03-19 08:02:04 - TARGET_ARCH=powerpc
TB --- 2013-03-19 08:02:04 - TZ=UTC
TB --- 2013-03-19 08:02:04 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 08:02:04 - cd /src
TB --- 2013-03-19 08:02:04 - /usr/bin/make -B buildkernel KERNCONF=LINT
>>> Kernel build for LINT started on Tue Mar 19 08:02:04 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for LINT completed on Tue Mar 19 08:20:50 UTC 2013
TB --- 2013-03-19 08:20:50 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 08:20:50 - /usr/sbin/config -m GENERIC
TB --- 2013-03-19 08:20:50 - building GENERIC kernel
TB --- 2013-03-19 08:20:50 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 08:20:50 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 08:20:50 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 08:20:50 - SRCCONF=/dev/null
TB --- 2013-03-19 08:20:50 - TARGET=powerpc
TB --- 2013-03-19 08:20:50 - TARGET_ARCH=powerpc
TB --- 2013-03-19 08:20:50 - TZ=UTC
TB --- 2013-03-19 08:20:50 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 08:20:50 - cd /src
TB --- 2013-03-19 08:20:50 - /usr/bin/make -B buildkernel KERNCONF=GENERIC
>>> Kernel build for GENERIC started on Tue Mar 19 08:20:50 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for GENERIC completed on Tue Mar 19 08:36:40 UTC 2013
TB --- 2013-03-19 08:36:40 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 08:36:40 - /usr/sbin/config -m GENERIC64
TB --- 2013-03-19 08:36:40 - skipping GENERIC64 kernel
TB --- 2013-03-19 08:36:40 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 08:36:40 - /usr/sbin/config -m MPC85XX
TB --- 2013-03-19 08:36:40 - building MPC85XX kernel
TB --- 2013-03-19 08:36:40 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 08:36:40 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 08:36:40 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 08:36:40 - SRCCONF=/dev/null
TB --- 2013-03-19 08:36:40 - TARGET=powerpc
TB --- 2013-03-19 08:36:40 - TARGET_ARCH=powerpc
TB --- 2013-03-19 08:36:40 - TZ=UTC
TB --- 2013-03-19 08:36:40 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 08:36:40 - cd /src
TB --- 2013-03-19 08:36:40 - /usr/bin/make -B buildkernel KERNCONF=MPC85XX
>>> Kernel build for MPC85XX started on Tue Mar 19 08:36:40 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
[...]
cc -c -O -pipe  -std=c99 -Wa,-me500 -g -Wall -Wredundant

[head tinderbox] failure on powerpc64/powerpc

2013-03-19 Thread FreeBSD Tinderbox
TB --- 2013-03-19 05:44:29 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-03-19 05:44:29 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE 
FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 
d...@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC  amd64
TB --- 2013-03-19 05:44:29 - starting HEAD tinderbox run for powerpc64/powerpc
TB --- 2013-03-19 05:44:29 - cleaning the object tree
TB --- 2013-03-19 05:46:52 - /usr/local/bin/svn stat /src
TB --- 2013-03-19 05:46:56 - At svn revision 248477
TB --- 2013-03-19 05:46:57 - building world
TB --- 2013-03-19 05:46:57 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 05:46:57 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 05:46:57 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 05:46:57 - SRCCONF=/dev/null
TB --- 2013-03-19 05:46:57 - TARGET=powerpc
TB --- 2013-03-19 05:46:57 - TARGET_ARCH=powerpc64
TB --- 2013-03-19 05:46:57 - TZ=UTC
TB --- 2013-03-19 05:46:57 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 05:46:57 - cd /src
TB --- 2013-03-19 05:46:57 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Tue Mar 19 05:47:01 UTC 2013
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
>>> stage 5.1: building 32 bit shim libraries
>>> World build completed on Tue Mar 19 08:42:35 UTC 2013
TB --- 2013-03-19 08:42:35 - generating LINT kernel config
TB --- 2013-03-19 08:42:35 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 08:42:35 - /usr/bin/make -B LINT
TB --- 2013-03-19 08:42:35 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 08:42:35 - /usr/sbin/config -m LINT
TB --- 2013-03-19 08:42:35 - skipping LINT kernel
TB --- 2013-03-19 08:42:35 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 08:42:35 - /usr/sbin/config -m GENERIC
TB --- 2013-03-19 08:42:35 - skipping GENERIC kernel
TB --- 2013-03-19 08:42:35 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 08:42:35 - /usr/sbin/config -m GENERIC64
TB --- 2013-03-19 08:42:35 - building GENERIC64 kernel
TB --- 2013-03-19 08:42:35 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 08:42:35 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 08:42:35 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 08:42:35 - SRCCONF=/dev/null
TB --- 2013-03-19 08:42:35 - TARGET=powerpc
TB --- 2013-03-19 08:42:35 - TARGET_ARCH=powerpc64
TB --- 2013-03-19 08:42:35 - TZ=UTC
TB --- 2013-03-19 08:42:35 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 08:42:35 - cd /src
TB --- 2013-03-19 08:42:35 - /usr/bin/make -B buildkernel KERNCONF=GENERIC64
>>> Kernel build for GENERIC64 started on Tue Mar 19 08:42:35 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
[...]
/src/sys/modules/dtrace/fbt/../../../cddl/dev/fbt/fbt.c:291: error: 
'DTRACE_INVOP_PUSHL_EBP' undeclared (first use in this function)
/src/sys/modules/dtrace/fbt/../../../cddl/dev/fbt/fbt.c:291: error: (Each 
undeclared identifier is reported only once
/src/sys/modules/dtrace/fbt/../../../cddl/dev/fbt/fbt.c:291: error: for each 
function it appears in.)
cc1: warnings being treated as errors
/src/sys/modules/dtrace/fbt/../../../cddl/dev/fbt/fbt.c:311: warning: implicit 
declaration of function 'dtrace_instr_size'
/src/sys/modules/dtrace/fbt/../../../cddl/dev/fbt/fbt.c:311: warning: nested 
extern declaration of 'dtrace_instr_size' [-Wnested-externs]
/src/sys/modules/dtrace/fbt/../../../cddl/dev/fbt/fbt.c:385: error: 
'DTRACE_INVOP_POPL_EBP' undeclared (first use in this function)
/src/sys/modules/dtrace/fbt/../../../cddl/dev/fbt/fbt.c:388: error: 
'DTRACE_INVOP_LEAVE' undeclared (first use in this function)
*** [fbt.o] Error code 1

Stop in /src/sys/modules/dtrace/fbt.
*** [all] Error code 1

Stop in /src/sys/modules/dtrace.
*** [all] Error code 1

Stop in /src/sys/modules.
*** [modules-all] Error code 1

Stop in /obj/powerpc.powerpc64/src/sys/GENERIC64.
*** [buildkernel] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-03-19 08:51:16 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-03-19 08:51:16 - ERROR: failed to build GENERIC64 kernel
TB --- 2013-03-19 08:51:16 - 9516.88 user 1261.05 system 11207.23 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-powerpc64-powerpc.full
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: gptzfsboot problem on HP P410i Smart Array

2013-03-19 Thread Andriy Gapon
on 19/03/2013 07:41 Sergey Dyatko said the following:
> I was faced with same problem on my laptop. Adding printf() into main()
> before dsk = malloc(sizeof(struct dsk)); fix boot. Yesterday, avg@ proposed
> patch:
> Index: /usr/src/sys/boot/i386/zfsboot/zfsboot.c
> ===
> --- /usr/src/sys/boot/i386/zfsboot/zfsboot.c(revision 248421)
> +++ /usr/src/sys/boot/i386/zfsboot/zfsboot.c(working copy)
> @@ -302,6 +302,7 @@
>   * region in the SMAP, use the last 3MB of 'extended' memory as a
>   * high heap candidate.
>   */
> +   high_heap_size = 0;
>  if (bios_extmem >= HEAP_MIN && high_heap_size < HEAP_MIN) {
> high_heap_size = HEAP_MIN;
> high_heap_base = bios_extmem + 0x10 - HEAP_MIN;
> 
> it works for me, without printf() :) Can you test it ?

A comment about a nature of this patch.

Based on the previous investigation by Christoph Hoffmann and jhb:
http://thread.gmane.org/gmane.os.freebsd.current/134199/focus=134309
I made a guess that either BIOS/firmware provides incorrect memory map or some
agent in the BIOS/firmware (e.g. SMM handler) or controller firmware writes
outside of a memory range reserved for it.
I think that jhb made a similar guess at the time while Christoph conjectured
that memory corruption was related to CPU caches or some such.
My conjecture is that it is simply a combination of timing and a particular
memory range.

Just in case, here is how the memory map looks on the Sergey's system:
SMAP type=01 base= end=0009fc00 len=0009fc00
SMAP type=02 base=0009fc00 end=000a len=0400
SMAP type=02 base=000e end=0010 len=0002
SMAP type=01 base=0010 end=bc1a1000 len=bc0a1000
SMAP type=04 base=bc1a1000 end=bc1a4000 len=3000
SMAP type=01 base=bc1a4000 end=bdf04000 len=01d6
SMAP type=04 base=bdf04000 end=bdf3f000 len=0003b000
SMAP type=01 base=bdf3f000 end=bdf6a000 len=0002b000
SMAP type=02 base=bdf6a000 end=bdfbf000 len=00055000
SMAP type=01 base=bdfbf000 end=bdfeb000 len=0002c000
SMAP type=03 base=bdfeb000 end=bdfff000 len=00014000
SMAP type=01 base=bdfff000 end=be00 len=1000
SMAP type=02 base=be00 end=c000 len=0200
SMAP type=02 base=f800 end=fc00 len=0400
SMAP type=02 base=fec0 end=fec01000 len=1000
SMAP type=02 base=fed1 end=fed14000 len=4000
SMAP type=02 base=fed18000 end=fed1a000 len=2000
SMAP type=02 base=fed1c000 end=fed2 len=4000
SMAP type=02 base=fee0 end=fee01000 len=1000
SMAP type=02 base=ffe0 end=0001 len=0020
SMAP type=01 base=0001 end=00014000 len=4000

The algorithm for placing the heap picks up a range at bc1a4000, which is
between two ranges of type '4' (ACPI NVS memory).
So my idea was just to try a different memory range. Seems that it worked.

P.S. I am not sure why our algorithm for selecting heap location is what it is.
On all systems that I have I see that the "bios_extmem" range (the one starting
at 0x10) is usually the largest one and has more than enough space for both
the heap and other things that are placed there.
Additionally, in the case of zfsboot I think that we do not use memory above 1MB
for anything else besides the heap.

-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Handbook Jail Chapter rewrite available for critique

2013-03-19 Thread Jov
useful doc,greate job!

find a mybe copy/past mistake in 16.7.1:


> *exec.stop*   This is the normal script used to *start *the jail.


should be:
*exec.stop*   This is the normal script used to *stop *the jail.

regards,

2013/3/19 Fbsd8 

> To all interested parties;
>
> I have completed the final draft of the total rewrite of FreeBSD's
> handbook Chapter 16 on Jails.
>
> Before submitting my work for submission to the documentation group for
> insertion in the handbook I am looking for critique of the work to find
> errors in concept, wrong use of words, or anything to make it better.
>
> All feedback welcomed.
>
> Use this URL to access it  
> http://www.jails.a1poweruser.**com/
>
>
> Thank You.
>
> __**_
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/**mailman/listinfo/freebsd-**current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@**
> freebsd.org "
>



-- 
Jov
blog: http:amutu.com/blog 
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

[head tinderbox] failure on mips/mips

2013-03-19 Thread FreeBSD Tinderbox
TB --- 2013-03-19 14:58:05 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-03-19 14:58:05 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE 
FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 
d...@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC  amd64
TB --- 2013-03-19 14:58:05 - starting HEAD tinderbox run for mips/mips
TB --- 2013-03-19 14:58:05 - cleaning the object tree
TB --- 2013-03-19 15:01:02 - /usr/local/bin/svn stat /src
TB --- 2013-03-19 15:01:22 - At svn revision 248493
TB --- 2013-03-19 15:01:23 - building world
TB --- 2013-03-19 15:01:23 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 15:01:23 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 15:01:23 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 15:01:23 - SRCCONF=/dev/null
TB --- 2013-03-19 15:01:23 - TARGET=mips
TB --- 2013-03-19 15:01:23 - TARGET_ARCH=mips
TB --- 2013-03-19 15:01:23 - TZ=UTC
TB --- 2013-03-19 15:01:23 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 15:01:23 - cd /src
TB --- 2013-03-19 15:01:23 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Tue Mar 19 15:01:29 UTC 2013
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
>>> World build completed on Tue Mar 19 16:03:13 UTC 2013
TB --- 2013-03-19 16:03:13 - cd /src/sys/mips/conf
TB --- 2013-03-19 16:03:13 - /usr/sbin/config -m ADM5120
TB --- 2013-03-19 16:03:13 - skipping ADM5120 kernel
TB --- 2013-03-19 16:03:13 - cd /src/sys/mips/conf
TB --- 2013-03-19 16:03:13 - /usr/sbin/config -m ALCHEMY
TB --- 2013-03-19 16:03:13 - skipping ALCHEMY kernel
TB --- 2013-03-19 16:03:13 - cd /src/sys/mips/conf
TB --- 2013-03-19 16:03:13 - /usr/sbin/config -m AP91
TB --- 2013-03-19 16:03:13 - building AP91 kernel
TB --- 2013-03-19 16:03:13 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 16:03:13 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 16:03:13 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 16:03:13 - SRCCONF=/dev/null
TB --- 2013-03-19 16:03:13 - TARGET=mips
TB --- 2013-03-19 16:03:13 - TARGET_ARCH=mips
TB --- 2013-03-19 16:03:13 - TZ=UTC
TB --- 2013-03-19 16:03:13 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 16:03:13 - cd /src
TB --- 2013-03-19 16:03:13 - /usr/bin/make -B buildkernel KERNCONF=AP91
>>> Kernel build for AP91 started on Tue Mar 19 16:03:13 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for AP91 completed on Tue Mar 19 16:07:16 UTC 2013
TB --- 2013-03-19 16:07:16 - cd /src/sys/mips/conf
TB --- 2013-03-19 16:07:16 - /usr/sbin/config -m AP93
TB --- 2013-03-19 16:07:16 - building AP93 kernel
TB --- 2013-03-19 16:07:16 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 16:07:16 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 16:07:16 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 16:07:16 - SRCCONF=/dev/null
TB --- 2013-03-19 16:07:16 - TARGET=mips
TB --- 2013-03-19 16:07:16 - TARGET_ARCH=mips
TB --- 2013-03-19 16:07:16 - TZ=UTC
TB --- 2013-03-19 16:07:16 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 16:07:16 - cd /src
TB --- 2013-03-19 16:07:16 - /usr/bin/make -B buildkernel KERNCONF=AP93
>>> Kernel build for AP93 started on Tue Mar 19 16:07:16 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for AP93 completed on Tue Mar 19 16:11:09 UTC 2013
TB --- 2013-03-19 16:11:09 - cd /src/sys/mips/conf
TB --- 2013-03-19 16:11:09 - /usr/sbin/config -m AP94
TB --- 2013-03-19 16:11:09 - building AP94 kernel
TB --- 2013-03-19 16:11:09 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 16:11:09 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 16:11:09 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 16:11:09 - SRCCONF=/dev/null
TB --- 2013-03-19 16:11:09 - TARGET=mips
TB --- 2013-03-19 16:11:09 - TARGET_ARCH=mips
TB --- 2013-03-19 16:11:09 - TZ=UTC
TB --- 2013-03-19 16:11:09 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 16:11:09 - cd /src
TB --- 2013-03-19 16:11:09 - /usr/bin/make -B buildkernel KERNCONF=AP94
>>> Kernel build for AP94 started on Tue Mar 19 16:11:09 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for AP94 completed on Tue Mar 19 16:15:44 UTC 2013
TB --- 2013-03-19 16:15:44 - cd /src/sys/mips/conf
TB --- 2013-03-19 1

Re: gptzfsboot problem on HP P410i Smart Array

2013-03-19 Thread John Baldwin
On Tuesday, March 19, 2013 5:55:45 am Andriy Gapon wrote:
> on 19/03/2013 07:41 Sergey Dyatko said the following:
> > I was faced with same problem on my laptop. Adding printf() into main()
> > before dsk = malloc(sizeof(struct dsk)); fix boot. Yesterday, avg@ proposed
> > patch:
> > Index: /usr/src/sys/boot/i386/zfsboot/zfsboot.c
> > ===
> > --- /usr/src/sys/boot/i386/zfsboot/zfsboot.c(revision 248421)
> > +++ /usr/src/sys/boot/i386/zfsboot/zfsboot.c(working copy)
> > @@ -302,6 +302,7 @@
> >   * region in the SMAP, use the last 3MB of 'extended' memory as a
> >   * high heap candidate.
> >   */
> > +   high_heap_size = 0;
> >  if (bios_extmem >= HEAP_MIN && high_heap_size < HEAP_MIN) {
> > high_heap_size = HEAP_MIN;
> > high_heap_base = bios_extmem + 0x10 - HEAP_MIN;
> > 
> > it works for me, without printf() :) Can you test it ?
> 
> A comment about a nature of this patch.
> 
> Based on the previous investigation by Christoph Hoffmann and jhb:
> http://thread.gmane.org/gmane.os.freebsd.current/134199/focus=134309
> I made a guess that either BIOS/firmware provides incorrect memory map or some
> agent in the BIOS/firmware (e.g. SMM handler) or controller firmware writes
> outside of a memory range reserved for it.
> I think that jhb made a similar guess at the time while Christoph conjectured
> that memory corruption was related to CPU caches or some such.
> My conjecture is that it is simply a combination of timing and a particular
> memory range.
> 
> Just in case, here is how the memory map looks on the Sergey's system:
> SMAP type=01 base= end=0009fc00 len=0009fc00
> SMAP type=02 base=0009fc00 end=000a len=0400
> SMAP type=02 base=000e end=0010 len=0002
> SMAP type=01 base=0010 end=bc1a1000 len=bc0a1000
> SMAP type=04 base=bc1a1000 end=bc1a4000 len=3000
> SMAP type=01 base=bc1a4000 end=bdf04000 len=01d6
> SMAP type=04 base=bdf04000 end=bdf3f000 len=0003b000
> SMAP type=01 base=bdf3f000 end=bdf6a000 len=0002b000
> SMAP type=02 base=bdf6a000 end=bdfbf000 len=00055000
> SMAP type=01 base=bdfbf000 end=bdfeb000 len=0002c000
> SMAP type=03 base=bdfeb000 end=bdfff000 len=00014000
> SMAP type=01 base=bdfff000 end=be00 len=1000
> SMAP type=02 base=be00 end=c000 len=0200
> SMAP type=02 base=f800 end=fc00 len=0400
> SMAP type=02 base=fec0 end=fec01000 len=1000
> SMAP type=02 base=fed1 end=fed14000 len=4000
> SMAP type=02 base=fed18000 end=fed1a000 len=2000
> SMAP type=02 base=fed1c000 end=fed2 len=4000
> SMAP type=02 base=fee0 end=fee01000 len=1000
> SMAP type=02 base=ffe0 end=0001 len=0020
> SMAP type=01 base=0001 end=00014000 len=4000
> 
> The algorithm for placing the heap picks up a range at bc1a4000, which is
> between two ranges of type '4' (ACPI NVS memory).
> So my idea was just to try a different memory range. Seems that it worked.
> 
> P.S. I am not sure why our algorithm for selecting heap location is what it 
> is.
> On all systems that I have I see that the "bios_extmem" range (the one 
> starting
> at 0x10) is usually the largest one and has more than enough space for 
> both
> the heap and other things that are placed there.

Yes, we likely could start using that, we would just need to ensure it has some
sort of minimum size.  However, maybe it would always have that minimum size as 
you
are only going to have additional ranges if you have more than 4GB of RAM 
anyway.
I think though that there were some odd BIOSes that would place a hole at 
15-16MB,
and for those the memory region at 1MB is too small.  A minimum size of 16MB 
might
handle that case correctly while using the first extended region in the common
case.

> Additionally, in the case of zfsboot I think that we do not use memory above 
> 1MB
> for anything else besides the heap.

You load either /boot/zfsloader or the kernel there.

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


[head tinderbox] failure on powerpc/powerpc

2013-03-19 Thread FreeBSD Tinderbox
TB --- 2013-03-19 15:44:46 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-03-19 15:44:46 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE 
FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 
d...@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC  amd64
TB --- 2013-03-19 15:44:46 - starting HEAD tinderbox run for powerpc/powerpc
TB --- 2013-03-19 15:44:46 - cleaning the object tree
TB --- 2013-03-19 15:47:23 - /usr/local/bin/svn stat /src
TB --- 2013-03-19 15:47:27 - At svn revision 248493
TB --- 2013-03-19 15:47:28 - building world
TB --- 2013-03-19 15:47:28 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 15:47:28 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 15:47:28 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 15:47:28 - SRCCONF=/dev/null
TB --- 2013-03-19 15:47:28 - TARGET=powerpc
TB --- 2013-03-19 15:47:28 - TARGET_ARCH=powerpc
TB --- 2013-03-19 15:47:28 - TZ=UTC
TB --- 2013-03-19 15:47:28 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 15:47:28 - cd /src
TB --- 2013-03-19 15:47:28 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Tue Mar 19 15:47:33 UTC 2013
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
>>> World build completed on Tue Mar 19 18:10:45 UTC 2013
TB --- 2013-03-19 18:10:45 - generating LINT kernel config
TB --- 2013-03-19 18:10:45 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 18:10:45 - /usr/bin/make -B LINT
TB --- 2013-03-19 18:10:45 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 18:10:45 - /usr/sbin/config -m LINT
TB --- 2013-03-19 18:10:45 - building LINT kernel
TB --- 2013-03-19 18:10:45 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 18:10:45 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 18:10:45 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 18:10:45 - SRCCONF=/dev/null
TB --- 2013-03-19 18:10:45 - TARGET=powerpc
TB --- 2013-03-19 18:10:45 - TARGET_ARCH=powerpc
TB --- 2013-03-19 18:10:45 - TZ=UTC
TB --- 2013-03-19 18:10:45 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 18:10:45 - cd /src
TB --- 2013-03-19 18:10:45 - /usr/bin/make -B buildkernel KERNCONF=LINT
>>> Kernel build for LINT started on Tue Mar 19 18:10:45 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for LINT completed on Tue Mar 19 18:29:54 UTC 2013
TB --- 2013-03-19 18:29:54 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 18:29:54 - /usr/sbin/config -m GENERIC
TB --- 2013-03-19 18:29:54 - building GENERIC kernel
TB --- 2013-03-19 18:29:54 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 18:29:54 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 18:29:54 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 18:29:54 - SRCCONF=/dev/null
TB --- 2013-03-19 18:29:54 - TARGET=powerpc
TB --- 2013-03-19 18:29:54 - TARGET_ARCH=powerpc
TB --- 2013-03-19 18:29:54 - TZ=UTC
TB --- 2013-03-19 18:29:54 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 18:29:54 - cd /src
TB --- 2013-03-19 18:29:54 - /usr/bin/make -B buildkernel KERNCONF=GENERIC
>>> Kernel build for GENERIC started on Tue Mar 19 18:29:54 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for GENERIC completed on Tue Mar 19 18:45:33 UTC 2013
TB --- 2013-03-19 18:45:33 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 18:45:33 - /usr/sbin/config -m GENERIC64
TB --- 2013-03-19 18:45:33 - skipping GENERIC64 kernel
TB --- 2013-03-19 18:45:33 - cd /src/sys/powerpc/conf
TB --- 2013-03-19 18:45:33 - /usr/sbin/config -m MPC85XX
TB --- 2013-03-19 18:45:33 - building MPC85XX kernel
TB --- 2013-03-19 18:45:33 - CROSS_BUILD_TESTING=YES
TB --- 2013-03-19 18:45:33 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-03-19 18:45:33 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-03-19 18:45:33 - SRCCONF=/dev/null
TB --- 2013-03-19 18:45:33 - TARGET=powerpc
TB --- 2013-03-19 18:45:33 - TARGET_ARCH=powerpc
TB --- 2013-03-19 18:45:33 - TZ=UTC
TB --- 2013-03-19 18:45:33 - __MAKE_CONF=/dev/null
TB --- 2013-03-19 18:45:33 - cd /src
TB --- 2013-03-19 18:45:33 - /usr/bin/make -B buildkernel KERNCONF=MPC85XX
>>> Kernel build for MPC85XX started on Tue Mar 19 18:45:33 UTC 2013
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
[...]
cc -c -O -pipe  -std=c99 -Wa,-me500 -g -Wall -Wredundant