Re: [patch] i386 pmap sysmaps_pcpu[] atomic access

2013-02-24 Thread Andrew Turner
On Thu, 21 Feb 2013 10:43:49 -0500
John Baldwin  wrote:

> On Thursday, February 21, 2013 7:53:52 am Svatopluk Kraus wrote:
> > On Wed, Feb 20, 2013 at 4:22 PM, John Baldwin 
> > wrote:
> > > On Wednesday, February 20, 2013 7:31:08 am Svatopluk Kraus wrote:
> > >> On Tue, Feb 19, 2013 at 7:51 PM, Konstantin Belousov
> > >>  wrote:
> > >> > On Mon, Feb 18, 2013 at 11:18:16PM +0100, Svatopluk Kraus
> > >> > wrote:
> > >> >> On Mon, Feb 18, 2013 at 9:36 PM, Konstantin Belousov
> > >> >>  wrote:
> > >> >> Well, I'm taking a part on porting FreeBSD to ARM11mpcore. UP
> > >> >> case was simple. SMP case is more complex and rather new for
> > >> >> me. Recently, I was solving a problem with PCPU stuff. For
> > >> >> example, PCPU_GET is implemented by one instruction on i386
> > >> >> arch. So, a need of atomicity with respect to interrupts can
> > >> >> be overlooked. On load-store archs, the implementation which
> > >> >> works in SMP case is not so simple. And what works in UP case
> > >> >> (single PCPU), not works in SMP case. Believe me, mysterious
> > >> >> and sporadic 'mutex not owned' assertions and others ones
> > >> >> caused by curthreads mess, it takes a while ...
> > >> > Note that PCPU_GET() is not needed to be atomic. The reason is
> > >> > that the code which uses its result would not be atomic
> > >> > (single-instruction or whatever, see below). Thus, either the
> > >> > preemption should not matter since the action with the per-cpu
> > >> > data is advisory, as is in the case of i386 pmap you noted. or
> > >> > some external measures should be applied in advance to the
> > >> > containing region (which you proposed, by bracing with
> > >> > sched_pin()).
> > >>
> > >> So, it's advisory in the case of i386 pmap... Well, if you can
> > >> live with that, I can too.
> > >>
> > >> >
> > >> > Also, note that it is not interrupts but preemption which is
> > >> > concern.
> > >>
> > >> Yes and no. In theory, yes, a preemption is a concern. In
> > >> FreeBSD, however, sched_pin() and critical_enter() and their
> > >> counterparts are implemented with help of curthread. And
> > >> curthread definition falls to PCPU_GET(curthread) if not defined
> > >> in other way. So, curthread should be atomic with respect to
> > >> interrupts and in general, PCPU_GET() should be too. Note that
> > >> spinlock_enter() definitions often (always) use curthread too.
> > >> Anyhow, it's defined in MD code and can be defined for each arch
> > >> separately.
> > >
> > > curthread is a bit magic. :)  If you perform a context switch
> > > during an interrupt (which will change 'curthread') you also
> > > change your register state. When you resume, the register state
> > > is also restored.  This means that while something like
> > > 'PCPU_GET(cpuid)' might be stale after you read it, 'curthread'
> > > never is.  However, it is true that actually reading curthread
> > > has to be atomic.  If your read of curthread looks like:
> > >
> > > mov , r0
> > > add , r0
> > > ld r0, r1
> > >
> > > Then that will indeed break.  Alpha used a fixed register for
> > > 'pcpu_reg' (as does ia64 IIRC).  OTOH, you might also be able to
> > > depend on the fact that pc_curthread is the first thing in
> > > 'struct pcpu' (and always will be, you could add a CTASSERT to
> > > future-proof).  In that case, you can remove the 'add'
> > > instruction and instead just do:
> > >
> > > ld , r1
> > >
> > > which is fine.
> > 
> > Just for the record. There are three extra (coprocessor) registers
> > per a core in arm11mpcore (armv6k). Unfortunately only one is
> > Privileged. The other ones are respectively User Read only and User
> > Read Write. For now, we are using the Privileged one to store pcpu
> > pointer (curthread is correctly set during each context switch).
> > Thus, using a coprocessor register means that reading of curthread
> > is not a single instruction implementation now. After we figured
> > out the curthread issue in SMP case, using a fixed (processor)
> > register for pcpu is an option. Meanwhile, we disable interrupts
> > before reading of curthread and enable them after. The same is done
> > for other PCPU stuff. For now we have not stable system enough for
> > profiling, however, when it will be, it would be interesting to
> > learn how various implementations of curthread reading impact
> > system performance.
> 
> curthread is read _a lot_, so I would expect this to hurt.  What we
> did on Alpha was to use a fixed register for pcpu access, but we used
> the equivalent of a coprocessor register to also store the value so
> we could set that fixed register on entry to the kernel (userland was
> free to use the register for its own purposes).
> 

The current code on ARM is not atomic, it loads the base address of the
pcpu data from the coprocessor then loads curthread from this address.
One solution I discussed with Olivier Houchard is to keep the data in
the coprocessor but to then load it into a

[head tinderbox] failure on mips/mips

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-25 01:32:42 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-25 01:32:42 - 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-02-25 01:32:42 - starting HEAD tinderbox run for mips/mips
TB --- 2013-02-25 01:32:42 - cleaning the object tree
TB --- 2013-02-25 01:33:39 - /usr/local/bin/svn stat /src
TB --- 2013-02-25 01:33:54 - At svn revision 247237
TB --- 2013-02-25 01:33:55 - building world
TB --- 2013-02-25 01:33:55 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-25 01:33:55 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-25 01:33:55 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-25 01:33:55 - SRCCONF=/dev/null
TB --- 2013-02-25 01:33:55 - TARGET=mips
TB --- 2013-02-25 01:33:55 - TARGET_ARCH=mips
TB --- 2013-02-25 01:33:55 - TZ=UTC
TB --- 2013-02-25 01:33:55 - __MAKE_CONF=/dev/null
TB --- 2013-02-25 01:33:55 - cd /src
TB --- 2013-02-25 01:33:55 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Mon Feb 25 01:33:59 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
[...]
mkdep -f .depend -a-I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount 
-DRESCUE -std=gnu99   /src/sbin/fsck_ffs/dir.c /src/sbin/fsck_ffs/ea.c 
/src/sbin/fsck_ffs/fsutil.c /src/sbin/fsck_ffs/inode.c 
/src/sbin/fsck_ffs/main.c /src/sbin/fsck_ffs/pass1.c 
/src/sbin/fsck_ffs/pass1b.c /src/sbin/fsck_ffs/pass2.c 
/src/sbin/fsck_ffs/pass3.c /src/sbin/fsck_ffs/pass4.c 
/src/sbin/fsck_ffs/pass5.c /src/sbin/fsck_ffs/setup.c /src/sbin/fsck_ffs/suj.c 
/src/sbin/fsck_ffs/utilities.c /src/sbin/fsck_ffs/gjournal.c 
/src/sbin/fsck_ffs/../mount/getmntopts.c
echo fsck_ffs: /obj/mips.mips/src/tmp/usr/lib/libc.a 
/obj/mips.mips/src/tmp/usr/lib/libufs.a >> .depend
cc -O -pipe -G0  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/dir.c
cc -O -pipe -G0  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/ea.c
cc -O -pipe -G0  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/fsutil.c
cc1: warnings being treated as errors
/src/sbin/fsck_ffs/fsutil.c: In function 'printIOstats':
/src/sbin/fsck_ffs/fsutil.c:452: warning: format '%ld' expects type 'long int', 
but argument 2 has type 'time_t'
*** [fsutil.o] Error code 1

Stop in /src/sbin/fsck_ffs.
*** [fsck_ffs_make] Error code 1

Stop in /obj/mips.mips/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-25 02:22:59 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-25 02:22:59 - ERROR: failed to build world
TB --- 2013-02-25 02:22:59 - 2140.26 user 533.20 system 3016.84 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-mips-mips.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"


[head tinderbox] failure on armv6/arm

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 21:20:19 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 21:20:19 - 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-02-24 21:20:19 - starting HEAD tinderbox run for armv6/arm
TB --- 2013-02-24 21:20:19 - cleaning the object tree
TB --- 2013-02-24 21:24:34 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 21:24:37 - At svn revision 247237
TB --- 2013-02-24 21:24:38 - building world
TB --- 2013-02-24 21:24:38 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 21:24:38 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 21:24:38 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 21:24:38 - SRCCONF=/dev/null
TB --- 2013-02-24 21:24:38 - TARGET=arm
TB --- 2013-02-24 21:24:38 - TARGET_ARCH=armv6
TB --- 2013-02-24 21:24:38 - TZ=UTC
TB --- 2013-02-24 21:24:38 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 21:24:38 - cd /src
TB --- 2013-02-24 21:24:38 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 21:24:43 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
[...]
mkdep -f .depend -a-I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount 
-DRESCUE -std=gnu99   /src/sbin/fsck_ffs/dir.c /src/sbin/fsck_ffs/ea.c 
/src/sbin/fsck_ffs/fsutil.c /src/sbin/fsck_ffs/inode.c 
/src/sbin/fsck_ffs/main.c /src/sbin/fsck_ffs/pass1.c 
/src/sbin/fsck_ffs/pass1b.c /src/sbin/fsck_ffs/pass2.c 
/src/sbin/fsck_ffs/pass3.c /src/sbin/fsck_ffs/pass4.c 
/src/sbin/fsck_ffs/pass5.c /src/sbin/fsck_ffs/setup.c /src/sbin/fsck_ffs/suj.c 
/src/sbin/fsck_ffs/utilities.c /src/sbin/fsck_ffs/gjournal.c 
/src/sbin/fsck_ffs/../mount/getmntopts.c
echo fsck_ffs: /obj/arm.armv6/src/tmp/usr/lib/libc.a 
/obj/arm.armv6/src/tmp/usr/lib/libufs.a >> .depend
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/dir.c
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/ea.c
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/fsutil.c
cc1: warnings being treated as errors
/src/sbin/fsck_ffs/fsutil.c: In function 'printIOstats':
/src/sbin/fsck_ffs/fsutil.c:452: warning: format '%ld' expects type 'long int', 
but argument 2 has type 'time_t'
*** [fsutil.o] Error code 1

Stop in /src/sbin/fsck_ffs.
*** [fsck_ffs_make] Error code 1

Stop in /obj/arm.armv6/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 23:01:36 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 23:01:36 - ERROR: failed to build world
TB --- 2013-02-24 23:01:36 - 4685.37 user 841.18 system 6076.78 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-armv6-arm.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"


[head tinderbox] failure on arm/arm

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 21:20:19 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 21:20:19 - 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-02-24 21:20:19 - starting HEAD tinderbox run for arm/arm
TB --- 2013-02-24 21:20:19 - cleaning the object tree
TB --- 2013-02-24 21:24:35 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 21:24:38 - At svn revision 247237
TB --- 2013-02-24 21:24:39 - building world
TB --- 2013-02-24 21:24:39 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 21:24:39 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 21:24:39 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 21:24:39 - SRCCONF=/dev/null
TB --- 2013-02-24 21:24:39 - TARGET=arm
TB --- 2013-02-24 21:24:39 - TARGET_ARCH=arm
TB --- 2013-02-24 21:24:39 - TZ=UTC
TB --- 2013-02-24 21:24:39 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 21:24:39 - cd /src
TB --- 2013-02-24 21:24:39 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 21:24:44 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
[...]
mkdep -f .depend -a-I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount 
-DRESCUE -std=gnu99   /src/sbin/fsck_ffs/dir.c /src/sbin/fsck_ffs/ea.c 
/src/sbin/fsck_ffs/fsutil.c /src/sbin/fsck_ffs/inode.c 
/src/sbin/fsck_ffs/main.c /src/sbin/fsck_ffs/pass1.c 
/src/sbin/fsck_ffs/pass1b.c /src/sbin/fsck_ffs/pass2.c 
/src/sbin/fsck_ffs/pass3.c /src/sbin/fsck_ffs/pass4.c 
/src/sbin/fsck_ffs/pass5.c /src/sbin/fsck_ffs/setup.c /src/sbin/fsck_ffs/suj.c 
/src/sbin/fsck_ffs/utilities.c /src/sbin/fsck_ffs/gjournal.c 
/src/sbin/fsck_ffs/../mount/getmntopts.c
echo fsck_ffs: /obj/arm.arm/src/tmp/usr/lib/libc.a 
/obj/arm.arm/src/tmp/usr/lib/libufs.a >> .depend
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/dir.c
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/ea.c
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/fsutil.c
cc1: warnings being treated as errors
/src/sbin/fsck_ffs/fsutil.c: In function 'printIOstats':
/src/sbin/fsck_ffs/fsutil.c:452: warning: format '%ld' expects type 'long int', 
but argument 2 has type 'time_t'
*** [fsutil.o] Error code 1

Stop in /src/sbin/fsck_ffs.
*** [fsck_ffs_make] Error code 1

Stop in /obj/arm.arm/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 23:01:36 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 23:01:36 - ERROR: failed to build world
TB --- 2013-02-24 23:01:36 - 4686.91 user 840.68 system 6076.77 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-arm-arm.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: FreeBSD Testing Facility

2013-02-24 Thread Mehmet Erol Sanliturk
On Sun, Feb 24, 2013 at 12:48 PM, Alexander Yerenkow wrote:

> How about create -testing mail list, and start searching for any kind of
> volunteers?
> I could lend a hand in creating auto-testing some aspects of  FreeBSD (at
> leas successful booting/working net/route etc),
> someone else probably could have to say something too.
>
> I think resources are there, they just need to be gathered :)
>
> --
> Regards,
> Alexander Yerenkow




Really , there are ample amount of facilities in FreeBSD already .
The steps may be the following :

- Prepare a testing requirements document :
There are existing testing programs in the svn .List them .
   . The developers may use tests that are not in svn . Collect information
about them .
   . Collect additional testing point suggestions .

. Design a testing facility :

  This may be just an imitation of the packages/ports tree .

  For each test , prepare a package .

  The new package management project contains very important information to
imitate .
  Prepare a test_apply program just like pkg_add .

  Generate an ftp site parts for .../testing/Fatal/... ,
.../testing/Dangerous/... , .../testing/Harmless/...

  Generate databases for the collected result mails , with respect to
message groups .

  For each test , generate an ( xml , or JSON , or just  name = value pairs
( like .conf files ) ) results
  e-mail structure .
  During tests , this file will be created .

  When such an e-mail is received into a definite address , with program ,
introduce it into a database .

 Generate reports from databases to submit to developers .

 Generate a mailing list about testing facility .

 Prepare e-mail templates with respect to testing points ( groups ,
subjects ) .

To the subscriber , present a form to fill information which parts he or
she can test , and store these into a data base .

 Associate each test package with fields of the subscribers testing
possibilities .

 When a testing action is required ( generated by a modification in a
tested area ) , query the subscribers database , and send an e-mail to
possible testers .

Before test_apply program is executed , if it is necessary to perform some
actions , prepare an algorithm to define such steps and attach to e-mail ,
or fetch by test_apply .

Implementation :

The above steps may be implemented mostly by facilities present in the base
system and packages in the ports tree .

Identify required new programs , write-ups , scripts , etc. , to design ,
and implement them .

Application , Testing :

By using a harmless test , apply the above designed system and evaluate
outcome ,
recycle the above steps ,
Start to populate the testing system with packages one by one .

Maintain the testing tree , and when a modification is applied into a part
, if necessary , also
modify the testing package and request a testing step .


Now , there are "Call for Testing"  applications in the present mailing
lists .
With the above structure , such requests will be more widely applied and
will produce structured ,
analyzable results .

If one such package is developed , the rest will start to imitate its many
steps , development of new testing packages will be easy .


Some of the test packages may also be installed during a complete FreeBSD
installation and may be used to test the installed system , and the results
may be collected to analyze .


I always emphasize structured messages because other messages may not be
easily analyzed .


Over the studies of this system , there may be some modifications in the
base system parts or packages to facilitate a more effective testing .
These requirements will emerge over time .


Thank you very much .


Mehmet Erol Sanliturk
___
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 powerpc64/powerpc

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 19:17:26 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 19:17:26 - 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-02-24 19:17:26 - starting HEAD tinderbox run for powerpc64/powerpc
TB --- 2013-02-24 19:17:26 - cleaning the object tree
TB --- 2013-02-24 19:17:26 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 19:17:30 - At svn revision 247223
TB --- 2013-02-24 19:17:31 - building world
TB --- 2013-02-24 19:17:31 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 19:17:31 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 19:17:31 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 19:17:31 - SRCCONF=/dev/null
TB --- 2013-02-24 19:17:31 - TARGET=powerpc
TB --- 2013-02-24 19:17:31 - TARGET_ARCH=powerpc64
TB --- 2013-02-24 19:17:31 - TZ=UTC
TB --- 2013-02-24 19:17:31 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 19:17:31 - cd /src
TB --- 2013-02-24 19:17:31 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 19:17:35 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
[...]
cc -O2 -pipe  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /src/sbin/fsdb/fsdb.c
cc -O2 -pipe  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /src/sbin/fsdb/fsdbutil.c
/src/sbin/fsdb/fsdbutil.c:242:14: error: macro "initbarea" requires 2 
arguments, but only 1 given
/src/sbin/fsdb/fsdbutil.c: In function 'printindir':
/src/sbin/fsdb/fsdbutil.c:242: error: 'initbarea' undeclared (first use in this 
function)
/src/sbin/fsdb/fsdbutil.c:242: error: (Each undeclared identifier is reported 
only once
/src/sbin/fsdb/fsdbutil.c:242: error: for each function it appears in.)
/src/sbin/fsdb/fsdbutil.c:246: error: too few arguments to function 'getdatablk'
*** [fsdbutil.o] Error code 1

Stop in /src/sbin/fsdb.
*** [fsdb_make] Error code 1

Stop in /obj/powerpc.powerpc64/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 21:19:33 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 21:19:33 - ERROR: failed to build world
TB --- 2013-02-24 21:19:33 - 6448.36 user 731.76 system 7326.98 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"


[head tinderbox] failure on powerpc/powerpc

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 19:03:18 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 19:03:18 - 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-02-24 19:03:18 - starting HEAD tinderbox run for powerpc/powerpc
TB --- 2013-02-24 19:03:18 - cleaning the object tree
TB --- 2013-02-24 19:03:18 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 19:03:22 - At svn revision 247223
TB --- 2013-02-24 19:03:23 - building world
TB --- 2013-02-24 19:03:23 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 19:03:23 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 19:03:23 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 19:03:23 - SRCCONF=/dev/null
TB --- 2013-02-24 19:03:23 - TARGET=powerpc
TB --- 2013-02-24 19:03:23 - TARGET_ARCH=powerpc
TB --- 2013-02-24 19:03:23 - TZ=UTC
TB --- 2013-02-24 19:03:23 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 19:03:23 - cd /src
TB --- 2013-02-24 19:03:23 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 19:03:28 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
[...]
cc -O2 -pipe  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /src/sbin/fsdb/fsdb.c
cc -O2 -pipe  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /src/sbin/fsdb/fsdbutil.c
/src/sbin/fsdb/fsdbutil.c:242:14: error: macro "initbarea" requires 2 
arguments, but only 1 given
/src/sbin/fsdb/fsdbutil.c: In function 'printindir':
/src/sbin/fsdb/fsdbutil.c:242: error: 'initbarea' undeclared (first use in this 
function)
/src/sbin/fsdb/fsdbutil.c:242: error: (Each undeclared identifier is reported 
only once
/src/sbin/fsdb/fsdbutil.c:242: error: for each function it appears in.)
/src/sbin/fsdb/fsdbutil.c:246: error: too few arguments to function 'getdatablk'
*** [fsdbutil.o] Error code 1

Stop in /src/sbin/fsdb.
*** [fsdb_make] Error code 1

Stop in /obj/powerpc.powerpc/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 21:05:21 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 21:05:21 - ERROR: failed to build world
TB --- 2013-02-24 21:05:21 - 6368.54 user 771.83 system 7323.20 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-powerpc-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: FreeBSD Testing Facility

2013-02-24 Thread Alexander Yerenkow
How about create -testing mail list, and start searching for any kind of
volunteers?
I could lend a hand in creating auto-testing some aspects of  FreeBSD (at
leas successful booting/working net/route etc),
someone else probably could have to say something too.

I think resources are there, they just need to be gathered :)

-- 
Regards,
Alexander Yerenkow
___
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 sparc64/sparc64

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 19:17:39 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 19:17:39 - 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-02-24 19:17:39 - starting HEAD tinderbox run for sparc64/sparc64
TB --- 2013-02-24 19:17:39 - cleaning the object tree
TB --- 2013-02-24 19:17:39 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 19:17:42 - At svn revision 247223
TB --- 2013-02-24 19:17:43 - building world
TB --- 2013-02-24 19:17:43 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 19:17:43 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 19:17:43 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 19:17:43 - SRCCONF=/dev/null
TB --- 2013-02-24 19:17:43 - TARGET=sparc64
TB --- 2013-02-24 19:17:43 - TARGET_ARCH=sparc64
TB --- 2013-02-24 19:17:43 - TZ=UTC
TB --- 2013-02-24 19:17:43 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 19:17:43 - cd /src
TB --- 2013-02-24 19:17:43 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 19:17:47 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
[...]
cc -O2 -pipe  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /src/sbin/fsdb/fsdb.c
cc -O2 -pipe  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /src/sbin/fsdb/fsdbutil.c
/src/sbin/fsdb/fsdbutil.c:242:14: error: macro "initbarea" requires 2 
arguments, but only 1 given
/src/sbin/fsdb/fsdbutil.c: In function 'printindir':
/src/sbin/fsdb/fsdbutil.c:242: error: 'initbarea' undeclared (first use in this 
function)
/src/sbin/fsdb/fsdbutil.c:242: error: (Each undeclared identifier is reported 
only once
/src/sbin/fsdb/fsdbutil.c:242: error: for each function it appears in.)
/src/sbin/fsdb/fsdbutil.c:246: error: too few arguments to function 'getdatablk'
*** [fsdbutil.o] Error code 1

Stop in /src/sbin/fsdb.
*** [fsdb_make] Error code 1

Stop in /obj/sparc64.sparc64/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 20:10:34 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 20:10:34 - ERROR: failed to build world
TB --- 2013-02-24 20:10:34 - 2443.66 user 429.99 system 3175.12 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-sparc64-sparc64.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"


[head tinderbox] failure on i386/pc98

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 17:56:42 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 17:56:42 - 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-02-24 17:56:42 - starting HEAD tinderbox run for i386/pc98
TB --- 2013-02-24 17:56:42 - cleaning the object tree
TB --- 2013-02-24 17:56:42 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 17:56:46 - At svn revision 247223
TB --- 2013-02-24 17:56:47 - building world
TB --- 2013-02-24 17:56:47 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 17:56:47 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 17:56:47 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 17:56:47 - SRCCONF=/dev/null
TB --- 2013-02-24 17:56:47 - TARGET=pc98
TB --- 2013-02-24 17:56:47 - TARGET_ARCH=i386
TB --- 2013-02-24 17:56:47 - TZ=UTC
TB --- 2013-02-24 17:56:47 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 17:56:47 - cd /src
TB --- 2013-02-24 17:56:47 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 17:56:51 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
[...]
===> sbin/fsdb (depend)
rm -f .depend
mkdep -f .depend -a-I/src/sbin/fsdb/../fsck_ffs -std=gnu99   
/src/sbin/fsdb/fsdb.c /src/sbin/fsdb/fsdbutil.c 
/src/sbin/fsdb/../fsck_ffs/dir.c /src/sbin/fsdb/../fsck_ffs/ea.c 
/src/sbin/fsdb/../fsck_ffs/fsutil.c /src/sbin/fsdb/../fsck_ffs/inode.c 
/src/sbin/fsdb/../fsck_ffs/pass1.c /src/sbin/fsdb/../fsck_ffs/pass1b.c 
/src/sbin/fsdb/../fsck_ffs/pass2.c /src/sbin/fsdb/../fsck_ffs/pass3.c 
/src/sbin/fsdb/../fsck_ffs/pass4.c /src/sbin/fsdb/../fsck_ffs/pass5.c 
/src/sbin/fsdb/../fsck_ffs/setup.c /src/sbin/fsdb/../fsck_ffs/utilities.c 
/src/sbin/fsdb/../../sys/ufs/ffs/ffs_subr.c 
/src/sbin/fsdb/../../sys/ufs/ffs/ffs_tables.c
/src/sbin/fsdb/fsdbutil.c:242:14: error: too few arguments provided to 
function-like macro invocation
initbarea(bp);
^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1

Stop in /src/sbin/fsdb.
*** [depend] Error code 1

Stop in /src/sbin.
*** [sbin.depend__D] Error code 1

Stop in /src.
*** [_depend] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 20:10:24 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 20:10:24 - ERROR: failed to build world
TB --- 2013-02-24 20:10:24 - 6859.84 user 761.70 system 8021.67 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-i386-pc98.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: FreeBSD Testing Facility

2013-02-24 Thread Mehmet Erol Sanliturk
On Sun, Feb 24, 2013 at 9:25 AM, Giorgos Keramidas wrote:

> On 2013-02-21 07:04, Matthew Jacob  wrote:
> > On 2/21/2013 5:04 AM, Mehmet Erol Sanliturk wrote:
> > >Dear All ,
> > >
> > >During development of FreeBSD , testing is very vital .
> > >...
> >
> > This in general is a good suggestion. Most companies do such
> > automated testing as a matter of course.
> >
> > Note however that this is a volunteer effort. Were you volunteering
> > to set up such an automated, possibly testzilla driven, facility? It
> > would certainly help the quality, although as others have noted
> > snapshots are often likely to be broken.
>
> To the OP:
>
> Like Matthew has said, this is a volunteer effort.  So if you have
> experience with setting up testing automation, and you are willing to
> help us set up something like this, please go ahead :-)
>
> I've worked in places where the following types of tests are used:
>
>   - Presubmit tests that check specific parts of functionality.
>
>   - Commit-related tests that run asynchronously in the background,
> and report back later (e.g. through email).
>
>   - Test systems that cache previous results and report a simple 'green'
> vs. 'red' status for _every_ single commit.
>
>   - System tests that check for particular functionality, health
> criteria, etc. - some times fully automated, some other times
> requiring a token amount of manual support.
>
> So here are two important questions, regarding the tests you mentioned:
>
> When you speak about 'testing FreeBSD', which type of tests are you
> interested in seeing?
>
> Are you willing to help us set up something that runs the type of tests
> that you want to see?
>
>


To another message I replied as follows :

http://lists.freebsd.org/pipermail/freebsd-current/2013-February/039984.html


I want say that again to manage such a system is not possible for me very
much , additionally for lack of facilities .

My wish is that let's take this subject to be worked in detail and by a
group effort , design , implement and apply such a testing facility .

In this work , if anything I can supply , I will never keep myself back .

Without reflective responses , if we consider my first message :

http://lists.freebsd.org/pipermail/freebsd-current/2013-February/039976.html

a very rough outline is supplied .

Reason is such a suggestion is to see many failures of *BSD systems that
these can be eliminated if such a system is designed , implemented , and
applied .


In many messages by FreeBSD developers , it is said that it is not possible
to establish a testing farm by the FreeBSD project and maintain it , which
is quite correct .


Assume the following :

If any one is downloading and trying to install and run Current development
iso files , itis very likely that the main intention is to test and help to
its development .

By counting number of such testing attempts , it is possible to estimate
the number of people which can participate to a more coordinated testing
system .

My opinion is that such a system ( a distributed testers population ) is
already present , and over time , even it may be enlarged .


Actually , problem is large enough to establish a working group to attack
it .

There is a necessity to have committers to generate the necessary  ftp
sites and manage them .

At present , there is a port system . The testing facility will be similar
to that system , but different programs will be employed .


The first action will be to design what will be tested and how .

Since FreeBSD is composed from components ( boot , kernel , each system
programs , etc. , )
, every component will be a testing subject .

In the svn , there are already  testing parts .

By combining these , and supplying , developing missing parts will generate
a testing framework .


At the beginning , it will not be possible to generate a state of the art
testing facility .
By starting from the existing parts , over time , it will be possible to ad
tests one by one .
This will be similar to development of ports system : Over time it has been
populated one by one .


As a an applicable first step , a FreeBSD developer , may establish a wiki
page or use an existing one to develop a "Testing Requirements and Design ,
Implementation and Applications" page .

A mailing list may be established to discuss testing problems .

An ftp site may be established to apply tests as suggested in my first
message .

As an example :

Assume that a part related to video display cards is under development ,
such as KMS .
The developer(s) will have a limited number of cards available in their
computers .
A potential people population exists which they use such cards , for
example RADEON , or INTEL cards .

In the mailing lists , it may be announced that testers are needed for
specific video card branch , such as RADEON . People , fills a form to
participate in the tests .

The developer prepares a file just like a port/package .

Sends a message to the subscriber

Re: panic bus_dma

2013-02-24 Thread cpet

On 2013-02-24 00:01, Konstantin Belousov wrote:

On Sat, Feb 23, 2013 at 07:41:18PM -0600, cpet wrote:

Seems like my issue was imposed by commit 246713

tested using 246712 boots
tested using 246713 panics

keeping all the current debug stuff made the system keep going but
reset the 3ware
removing all the debug info made the system instantly panic with 
latest

rev 247203


panic: _bus_dmama_load_ccb Unsupported Func Code 0 rev 246713



I am very sorry that I did not develop my mentiferous abilities far 
enough
in time of your report arrival, so we unfortunately need to resort to 
some

burdensome methods of properly reporting an issue.

Specify the exact driver you use, preferrably demonstrating the 
fragment

of the verbose dmesg related to the controller attachment.

Show exact printout on the console at the time of panic. The grep of
the kernel sources for 'Unsupported Func Code' finds nothing. This is
probably panic("_bus_dmamap_load_ccb: Unsupported func code %d") in
the _bus_dmamap_load_ccb().

Show the backtrace from ddb and kgdb for the panic.


Hi I will get the bt later tonight as i had to remember how to do it :)
___
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"


CPU0: Local APIC error 0x80

2013-02-24 Thread matt
What does this mean exactly?

Whenever I call/evaluate certain ACPI paths, this gets printed on console.

I assume it's a concurrent access issue or something, or perhaps just a
bios/uefi problem?

Matt
___
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"


Fixing X220 Video The Right Way

2013-02-24 Thread matt
I am working on fixing acpi_video for X220.

My X220 is back to FreeBSD land, and I always felt \VBRC calls were dirty.
So I've set out to fix acpi_video to work naturally, as it does in linux
land.

Background:
Lenovo laptops boot in a mode where the brightness keys automagically
work, under BIOS/EC control.
This gets blown away (for us) shortly after Kernel attach.

At this point, the acpi method \NBCF will return 0, which means acpi
cannot control video brightness.

Once we touch the _BCL method on the video output (even inactive ones),
\NBCF returns 1 and will allow acpi control.

You may remember that acpi_video records some brightness value that
changes with keypresses, but does not work on X220.

Current status:
If I modify acpi video to attach to \_SB.PCI0.PEG.VID, brightness works
via sysctl but not keypress (\NBCF = 1)

If I leave that alone, but just redirect the brightness set function to
\_SB.PCI0.PEG.VID.LCD0._BCM, the keyboard works

That is obviously a hack, but it indicates something is going on here.

I think that get_acpi_handle() on the X220 vgapci is returning the wrong
ACPI_HANDLE.
Perhaps this is why the screen stays off when resume used to work?

Obviously it can be fixed by hard coding this path into acpi_video, but
I feel like that is definitely the wrong way.
A tunable for an acpi_video override might be useful, but it still
leaves potentially the wrong path in vgapci's IVARs.

Is there a better place to "correct" the ACPI_PATH that gets stored in
vgapci's ivar? Is there already a tunable I can use to fix this?

Thanks!

Matt




___
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: [PATCH] Fix sbin/fsdb/fsdbutil.c for r247212

2013-02-24 Thread Sergey Kandaurov
On 24 February 2013 19:25, David Wolfskill  wrote:
> On Sun, Feb 24, 2013 at 07:05:34AM -0800, David Wolfskill wrote:
>> ...hine was:
>> Simple patch attached; world is still building, but at least it got
>> through the "make dependencies" phase this time.
>> ...
>
> That was incomplete, as it didn't (also) address the change to
> getdatablk().
>
> The attached patch actually made it through buildworld.
>
> Note that it is entirely possible that I erred in specifying
> "BT_UNKNOWN" for the additional "type" argument.

Hi David.

Thank you for the proposed fix. I committed it with r247234.
I'm not sure regarding BT_UNKNOWN value either. Well..  at least
it should be not worse that it is now, and it should fix the build.
I have not found any (regressive) changes in fsdb -d `blocks' output.

-- 
wbr,
pluknet
___
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"


USB not working

2013-02-24 Thread Daniel Eischen

Hey, I've got a Dell Inspiron 15R Special Edition and haven't
had working USB since first installing FreeBSD on it.  I'm
currently at r247154.

When I insert a flash drive (which works fine on my desktop
-current system), it is not recognized.  I've tried multiple
different USB drives (external HDD, flash) that all work
on my desktop, but aren't recognized on me Dell notebook.
This is what is in dmesg:

xhci_do_command: Command timeout!
usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)
ugen0.2:  at usbus0 (disconnected)
uhub_reattach_port: could not allocate new device

I've got the output of a dmesg, pciconf -lv, and messages
during insertion with:

  hw.usb.dev.debug=1
  hw.usb.umass.debug=1
  hw.usb.uhub.debug=1
  hw.usb.ugen.debug=1
  hw.usb.xhci.debug=1

here:

  http://people.freebsd.org/~deischen/usb/dmesg.txt
  http://people.freebsd.org/~deischen/usb/pciconf.txt
  http://people.freebsd.org/~deischen/usb/usb_flash_insertion.tx

Any suggestions?

--
DE
___
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 mips64/mips

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 18:29:29 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 18:29: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-02-24 18:29:29 - starting HEAD tinderbox run for mips64/mips
TB --- 2013-02-24 18:29:29 - cleaning the object tree
TB --- 2013-02-24 18:29:29 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 18:29:32 - At svn revision 247223
TB --- 2013-02-24 18:29:33 - building world
TB --- 2013-02-24 18:29:33 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 18:29:33 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 18:29:33 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 18:29:33 - SRCCONF=/dev/null
TB --- 2013-02-24 18:29:33 - TARGET=mips
TB --- 2013-02-24 18:29:33 - TARGET_ARCH=mips64
TB --- 2013-02-24 18:29:33 - TZ=UTC
TB --- 2013-02-24 18:29:33 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 18:29:33 - cd /src
TB --- 2013-02-24 18:29:33 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 18:29:38 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
[...]
cc -O -pipe -G0  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsdb/fsdb.c
cc -O -pipe -G0  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsdb/fsdbutil.c
/src/sbin/fsdb/fsdbutil.c:242:14: error: macro "initbarea" requires 2 
arguments, but only 1 given
/src/sbin/fsdb/fsdbutil.c: In function 'printindir':
/src/sbin/fsdb/fsdbutil.c:242: error: 'initbarea' undeclared (first use in this 
function)
/src/sbin/fsdb/fsdbutil.c:242: error: (Each undeclared identifier is reported 
only once
/src/sbin/fsdb/fsdbutil.c:242: error: for each function it appears in.)
/src/sbin/fsdb/fsdbutil.c:246: error: too few arguments to function 'getdatablk'
*** [fsdbutil.o] Error code 1

Stop in /src/sbin/fsdb.
*** [fsdb_make] Error code 1

Stop in /obj/mips.mips64/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 19:17:39 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 19:17:39 - ERROR: failed to build world
TB --- 2013-02-24 19:17:39 - 2144.02 user 501.80 system 2889.41 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-mips64-mips.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"


[head tinderbox] failure on mips/mips

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 18:29:16 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 18:29:16 - 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-02-24 18:29:16 - starting HEAD tinderbox run for mips/mips
TB --- 2013-02-24 18:29:16 - cleaning the object tree
TB --- 2013-02-24 18:29:16 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 18:29:20 - At svn revision 247223
TB --- 2013-02-24 18:29:21 - building world
TB --- 2013-02-24 18:29:21 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 18:29:21 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 18:29:21 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 18:29:21 - SRCCONF=/dev/null
TB --- 2013-02-24 18:29:21 - TARGET=mips
TB --- 2013-02-24 18:29:21 - TARGET_ARCH=mips
TB --- 2013-02-24 18:29:21 - TZ=UTC
TB --- 2013-02-24 18:29:21 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 18:29:21 - cd /src
TB --- 2013-02-24 18:29:21 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 18:29:26 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
[...]
mkdep -f .depend -a-I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount 
-DRESCUE -std=gnu99   /src/sbin/fsck_ffs/dir.c /src/sbin/fsck_ffs/ea.c 
/src/sbin/fsck_ffs/fsutil.c /src/sbin/fsck_ffs/inode.c 
/src/sbin/fsck_ffs/main.c /src/sbin/fsck_ffs/pass1.c 
/src/sbin/fsck_ffs/pass1b.c /src/sbin/fsck_ffs/pass2.c 
/src/sbin/fsck_ffs/pass3.c /src/sbin/fsck_ffs/pass4.c 
/src/sbin/fsck_ffs/pass5.c /src/sbin/fsck_ffs/setup.c /src/sbin/fsck_ffs/suj.c 
/src/sbin/fsck_ffs/utilities.c /src/sbin/fsck_ffs/gjournal.c 
/src/sbin/fsck_ffs/../mount/getmntopts.c
echo fsck_ffs: /obj/mips.mips/src/tmp/usr/lib/libc.a 
/obj/mips.mips/src/tmp/usr/lib/libufs.a >> .depend
cc -O -pipe -G0  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/dir.c
cc -O -pipe -G0  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/ea.c
cc -O -pipe -G0  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/fsutil.c
cc1: warnings being treated as errors
/src/sbin/fsck_ffs/fsutil.c: In function 'printIOstats':
/src/sbin/fsck_ffs/fsutil.c:452: warning: format '%ld' expects type 'long int', 
but argument 2 has type 'time_t'
*** [fsutil.o] Error code 1

Stop in /src/sbin/fsck_ffs.
*** [fsck_ffs_make] Error code 1

Stop in /obj/mips.mips/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 19:17:26 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 19:17:26 - ERROR: failed to build world
TB --- 2013-02-24 19:17:26 - 2132.34 user 500.16 system 2889.84 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-mips-mips.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"


[head tinderbox] failure on ia64/ia64

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 17:56:43 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 17:56:43 - 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-02-24 17:56:43 - starting HEAD tinderbox run for ia64/ia64
TB --- 2013-02-24 17:56:43 - cleaning the object tree
TB --- 2013-02-24 17:56:43 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 17:56:46 - At svn revision 247223
TB --- 2013-02-24 17:56:47 - building world
TB --- 2013-02-24 17:56:47 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 17:56:47 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 17:56:47 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 17:56:47 - SRCCONF=/dev/null
TB --- 2013-02-24 17:56:47 - TARGET=ia64
TB --- 2013-02-24 17:56:47 - TARGET_ARCH=ia64
TB --- 2013-02-24 17:56:47 - TZ=UTC
TB --- 2013-02-24 17:56:47 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 17:56:47 - cd /src
TB --- 2013-02-24 17:56:47 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 17:56:51 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
[...]
cc -O2 -pipe  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 -Wsystem-headers 
-Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c 
/src/sbin/fsdb/fsdb.c
cc -O2 -pipe  -I/src/sbin/fsdb/../fsck_ffs -DRESCUE -std=gnu99 -Wsystem-headers 
-Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c 
/src/sbin/fsdb/fsdbutil.c
/src/sbin/fsdb/fsdbutil.c:242:14: error: macro "initbarea" requires 2 
arguments, but only 1 given
/src/sbin/fsdb/fsdbutil.c: In function 'printindir':
/src/sbin/fsdb/fsdbutil.c:242: error: 'initbarea' undeclared (first use in this 
function)
/src/sbin/fsdb/fsdbutil.c:242: error: (Each undeclared identifier is reported 
only once
/src/sbin/fsdb/fsdbutil.c:242: error: for each function it appears in.)
/src/sbin/fsdb/fsdbutil.c:246: error: too few arguments to function 'getdatablk'
*** [fsdbutil.o] Error code 1

Stop in /src/sbin/fsdb.
*** [fsdb_make] Error code 1

Stop in /obj/ia64.ia64/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 19:03:18 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 19:03:18 - ERROR: failed to build world
TB --- 2013-02-24 19:03:18 - 3202.59 user 503.70 system 3995.32 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-ia64-ia64.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"


[head tinderbox] failure on i386/i386

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 16:20:19 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 16:20:19 - 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-02-24 16:20:19 - starting HEAD tinderbox run for i386/i386
TB --- 2013-02-24 16:20:19 - cleaning the object tree
TB --- 2013-02-24 16:20:19 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 16:20:23 - At svn revision 247223
TB --- 2013-02-24 16:20:24 - building world
TB --- 2013-02-24 16:20:24 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 16:20:24 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 16:20:24 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 16:20:24 - SRCCONF=/dev/null
TB --- 2013-02-24 16:20:24 - TARGET=i386
TB --- 2013-02-24 16:20:24 - TARGET_ARCH=i386
TB --- 2013-02-24 16:20:24 - TZ=UTC
TB --- 2013-02-24 16:20:24 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 16:20:24 - cd /src
TB --- 2013-02-24 16:20:24 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 16:20: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
[...]
===> sbin/fsdb (depend)
rm -f .depend
mkdep -f .depend -a-I/src/sbin/fsdb/../fsck_ffs -std=gnu99   
/src/sbin/fsdb/fsdb.c /src/sbin/fsdb/fsdbutil.c 
/src/sbin/fsdb/../fsck_ffs/dir.c /src/sbin/fsdb/../fsck_ffs/ea.c 
/src/sbin/fsdb/../fsck_ffs/fsutil.c /src/sbin/fsdb/../fsck_ffs/inode.c 
/src/sbin/fsdb/../fsck_ffs/pass1.c /src/sbin/fsdb/../fsck_ffs/pass1b.c 
/src/sbin/fsdb/../fsck_ffs/pass2.c /src/sbin/fsdb/../fsck_ffs/pass3.c 
/src/sbin/fsdb/../fsck_ffs/pass4.c /src/sbin/fsdb/../fsck_ffs/pass5.c 
/src/sbin/fsdb/../fsck_ffs/setup.c /src/sbin/fsdb/../fsck_ffs/utilities.c 
/src/sbin/fsdb/../../sys/ufs/ffs/ffs_subr.c 
/src/sbin/fsdb/../../sys/ufs/ffs/ffs_tables.c
/src/sbin/fsdb/fsdbutil.c:242:14: error: too few arguments provided to 
function-like macro invocation
initbarea(bp);
^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1

Stop in /src/sbin/fsdb.
*** [depend] Error code 1

Stop in /src/sbin.
*** [sbin.depend__D] Error code 1

Stop in /src.
*** [_depend] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 18:29:29 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 18:29:29 - ERROR: failed to build world
TB --- 2013-02-24 18:29:29 - 6616.56 user 788.73 system 7749.69 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-i386-i386.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"


[head tinderbox] failure on amd64/amd64

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 16:20:19 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 16:20:19 - 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-02-24 16:20:19 - starting HEAD tinderbox run for amd64/amd64
TB --- 2013-02-24 16:20:19 - cleaning the object tree
TB --- 2013-02-24 16:20:19 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 16:20:23 - At svn revision 247223
TB --- 2013-02-24 16:20:24 - building world
TB --- 2013-02-24 16:20:24 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 16:20:24 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 16:20:24 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 16:20:24 - SRCCONF=/dev/null
TB --- 2013-02-24 16:20:24 - TARGET=amd64
TB --- 2013-02-24 16:20:24 - TARGET_ARCH=amd64
TB --- 2013-02-24 16:20:24 - TZ=UTC
TB --- 2013-02-24 16:20:24 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 16:20:24 - cd /src
TB --- 2013-02-24 16:20:24 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 16:20: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
[...]
===> sbin/fsdb (depend)
rm -f .depend
mkdep -f .depend -a-I/src/sbin/fsdb/../fsck_ffs -std=gnu99   
/src/sbin/fsdb/fsdb.c /src/sbin/fsdb/fsdbutil.c 
/src/sbin/fsdb/../fsck_ffs/dir.c /src/sbin/fsdb/../fsck_ffs/ea.c 
/src/sbin/fsdb/../fsck_ffs/fsutil.c /src/sbin/fsdb/../fsck_ffs/inode.c 
/src/sbin/fsdb/../fsck_ffs/pass1.c /src/sbin/fsdb/../fsck_ffs/pass1b.c 
/src/sbin/fsdb/../fsck_ffs/pass2.c /src/sbin/fsdb/../fsck_ffs/pass3.c 
/src/sbin/fsdb/../fsck_ffs/pass4.c /src/sbin/fsdb/../fsck_ffs/pass5.c 
/src/sbin/fsdb/../fsck_ffs/setup.c /src/sbin/fsdb/../fsck_ffs/utilities.c 
/src/sbin/fsdb/../../sys/ufs/ffs/ffs_subr.c 
/src/sbin/fsdb/../../sys/ufs/ffs/ffs_tables.c
/src/sbin/fsdb/fsdbutil.c:242:14: error: too few arguments provided to 
function-like macro invocation
initbarea(bp);
^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1

Stop in /src/sbin/fsdb.
*** [depend] Error code 1

Stop in /src/sbin.
*** [sbin.depend__D] Error code 1

Stop in /src.
*** [_depend] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 18:29:16 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 18:29:16 - ERROR: failed to build world
TB --- 2013-02-24 18:29:16 - 6594.05 user 783.11 system 7736.63 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-amd64-amd64.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"


[head tinderbox] failure on armv6/arm

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 16:20:19 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 16:20:19 - 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-02-24 16:20:19 - starting HEAD tinderbox run for armv6/arm
TB --- 2013-02-24 16:20:19 - cleaning the object tree
TB --- 2013-02-24 16:20:19 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 16:20:23 - At svn revision 247223
TB --- 2013-02-24 16:20:24 - building world
TB --- 2013-02-24 16:20:24 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 16:20:24 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 16:20:24 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 16:20:24 - SRCCONF=/dev/null
TB --- 2013-02-24 16:20:24 - TARGET=arm
TB --- 2013-02-24 16:20:24 - TARGET_ARCH=armv6
TB --- 2013-02-24 16:20:24 - TZ=UTC
TB --- 2013-02-24 16:20:24 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 16:20:24 - cd /src
TB --- 2013-02-24 16:20:24 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 16:20: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
[...]
mkdep -f .depend -a-I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount 
-DRESCUE -std=gnu99   /src/sbin/fsck_ffs/dir.c /src/sbin/fsck_ffs/ea.c 
/src/sbin/fsck_ffs/fsutil.c /src/sbin/fsck_ffs/inode.c 
/src/sbin/fsck_ffs/main.c /src/sbin/fsck_ffs/pass1.c 
/src/sbin/fsck_ffs/pass1b.c /src/sbin/fsck_ffs/pass2.c 
/src/sbin/fsck_ffs/pass3.c /src/sbin/fsck_ffs/pass4.c 
/src/sbin/fsck_ffs/pass5.c /src/sbin/fsck_ffs/setup.c /src/sbin/fsck_ffs/suj.c 
/src/sbin/fsck_ffs/utilities.c /src/sbin/fsck_ffs/gjournal.c 
/src/sbin/fsck_ffs/../mount/getmntopts.c
echo fsck_ffs: /obj/arm.armv6/src/tmp/usr/lib/libc.a 
/obj/arm.armv6/src/tmp/usr/lib/libufs.a >> .depend
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/dir.c
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/ea.c
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/fsutil.c
cc1: warnings being treated as errors
/src/sbin/fsck_ffs/fsutil.c: In function 'printIOstats':
/src/sbin/fsck_ffs/fsutil.c:452: warning: format '%ld' expects type 'long int', 
but argument 2 has type 'time_t'
*** [fsutil.o] Error code 1

Stop in /src/sbin/fsck_ffs.
*** [fsck_ffs_make] Error code 1

Stop in /obj/arm.armv6/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 17:56:42 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 17:56:42 - ERROR: failed to build world
TB --- 2013-02-24 17:56:42 - 4684.16 user 830.77 system 5783.31 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-armv6-arm.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"


[head tinderbox] failure on arm/arm

2013-02-24 Thread FreeBSD Tinderbox
TB --- 2013-02-24 16:20:19 - tinderbox 2.10 running on freebsd-current.sentex.ca
TB --- 2013-02-24 16:20:19 - 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-02-24 16:20:19 - starting HEAD tinderbox run for arm/arm
TB --- 2013-02-24 16:20:19 - cleaning the object tree
TB --- 2013-02-24 16:20:19 - /usr/local/bin/svn stat /src
TB --- 2013-02-24 16:20:23 - At svn revision 247223
TB --- 2013-02-24 16:20:24 - building world
TB --- 2013-02-24 16:20:24 - CROSS_BUILD_TESTING=YES
TB --- 2013-02-24 16:20:24 - MAKEOBJDIRPREFIX=/obj
TB --- 2013-02-24 16:20:24 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
TB --- 2013-02-24 16:20:24 - SRCCONF=/dev/null
TB --- 2013-02-24 16:20:24 - TARGET=arm
TB --- 2013-02-24 16:20:24 - TARGET_ARCH=arm
TB --- 2013-02-24 16:20:24 - TZ=UTC
TB --- 2013-02-24 16:20:24 - __MAKE_CONF=/dev/null
TB --- 2013-02-24 16:20:24 - cd /src
TB --- 2013-02-24 16:20:24 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> World build started on Sun Feb 24 16:20: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
[...]
mkdep -f .depend -a-I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount 
-DRESCUE -std=gnu99   /src/sbin/fsck_ffs/dir.c /src/sbin/fsck_ffs/ea.c 
/src/sbin/fsck_ffs/fsutil.c /src/sbin/fsck_ffs/inode.c 
/src/sbin/fsck_ffs/main.c /src/sbin/fsck_ffs/pass1.c 
/src/sbin/fsck_ffs/pass1b.c /src/sbin/fsck_ffs/pass2.c 
/src/sbin/fsck_ffs/pass3.c /src/sbin/fsck_ffs/pass4.c 
/src/sbin/fsck_ffs/pass5.c /src/sbin/fsck_ffs/setup.c /src/sbin/fsck_ffs/suj.c 
/src/sbin/fsck_ffs/utilities.c /src/sbin/fsck_ffs/gjournal.c 
/src/sbin/fsck_ffs/../mount/getmntopts.c
echo fsck_ffs: /obj/arm.arm/src/tmp/usr/lib/libc.a 
/obj/arm.arm/src/tmp/usr/lib/libufs.a >> .depend
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/dir.c
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/ea.c
cc -O -pipe  -I/src/sbin/fsck_ffs -I/src/sbin/fsck_ffs/../mount -DRESCUE 
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /src/sbin/fsck_ffs/fsutil.c
cc1: warnings being treated as errors
/src/sbin/fsck_ffs/fsutil.c: In function 'printIOstats':
/src/sbin/fsck_ffs/fsutil.c:452: warning: format '%ld' expects type 'long int', 
but argument 2 has type 'time_t'
*** [fsutil.o] Error code 1

Stop in /src/sbin/fsck_ffs.
*** [fsck_ffs_make] Error code 1

Stop in /obj/arm.arm/src/rescue/rescue.
*** [objs] Error code 1

Stop in /src/rescue/rescue.
*** [all] Error code 1

Stop in /src/rescue.
*** [rescue.all__D] Error code 1

Stop in /src.
*** [everything] Error code 1

Stop in /src.
*** Error code 1

Stop in /src.
TB --- 2013-02-24 17:56:42 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2013-02-24 17:56:42 - ERROR: failed to build world
TB --- 2013-02-24 17:56:42 - 4685.55 user 828.98 system 5782.79 real


http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-arm-arm.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: FreeBSD Testing Facility

2013-02-24 Thread Giorgos Keramidas
On 2013-02-21 07:04, Matthew Jacob  wrote:
> On 2/21/2013 5:04 AM, Mehmet Erol Sanliturk wrote:
> >Dear All ,
> >
> >During development of FreeBSD , testing is very vital .
> >...
> 
> This in general is a good suggestion. Most companies do such
> automated testing as a matter of course.
> 
> Note however that this is a volunteer effort. Were you volunteering
> to set up such an automated, possibly testzilla driven, facility? It
> would certainly help the quality, although as others have noted
> snapshots are often likely to be broken.

To the OP:

Like Matthew has said, this is a volunteer effort.  So if you have
experience with setting up testing automation, and you are willing to
help us set up something like this, please go ahead :-)

I've worked in places where the following types of tests are used:

  - Presubmit tests that check specific parts of functionality.

  - Commit-related tests that run asynchronously in the background,
and report back later (e.g. through email).

  - Test systems that cache previous results and report a simple 'green'
vs. 'red' status for _every_ single commit.

  - System tests that check for particular functionality, health
criteria, etc. - some times fully automated, some other times
requiring a token amount of manual support.

So here are two important questions, regarding the tests you mentioned:

When you speak about 'testing FreeBSD', which type of tests are you
interested in seeing?

Are you willing to help us set up something that runs the type of tests
that you want to see?

___
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: [PATCH] Fix sbin/fsdb/fsdbutil.c for r247212

2013-02-24 Thread David Wolfskill
On Sun, Feb 24, 2013 at 07:05:34AM -0800, David Wolfskill wrote:
> ...hine was:
> Simple patch attached; world is still building, but at least it got
> through the "make dependencies" phase this time.
> ...

That was incomplete, as it didn't (also) address the change to
getdatablk().

The attached patch actually made it through buildworld.

Note that it is entirely possible that I erred in specifying
"BT_UNKNOWN" for the additional "type" argument.

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
Index: sbin/fsdb/fsdbutil.c
===
--- sbin/fsdb/fsdbutil.c	(revision 247218)
+++ sbin/fsdb/fsdbutil.c	(working copy)
@@ -239,11 +239,11 @@
 	/* for the final indirect level, don't use the cache */
 	bp = &buf;
 	bp->b_un.b_buf = bufp;
-	initbarea(bp);
+	initbarea(bp, BT_UNKNOWN);
 
 	getblk(bp, blk, sblock.fs_bsize);
 } else
-	bp = getdatablk(blk, sblock.fs_bsize);
+	bp = getdatablk(blk, sblock.fs_bsize, BT_UNKNOWN);
 
 cpl = charsperline();
 for (i = charssofar = 0; i < NINDIR(&sblock); i++) {


pgpyt8KxvmBF3.pgp
Description: PGP signature


[PATCH] Fix sbin/fsdb/fsdbutil.c for r247212

2013-02-24 Thread David Wolfskill
Whine was:
...
CC='clang' mkdep -f .depend -a-I/usr/src/sbin/fsdb/../fsck_ffs -std=gnu99   
/usr/src/sbin/fsdb/fsdb.c /usr/src/sbin/fsdb/fsdbutil.c /usr/src/sbin/fsdb/../fs
ck_ffs/dir.c /usr/src/sbin/fsdb/../fsck_ffs/ea.c /usr/src/sbin/fsdb/../fsck_ffs/
fsutil.c /usr/src/sbin/fsdb/../fsck_ffs/inode.c /usr/src/sbin/fsdb/../fsck_ffs/p
ass1.c /usr/src/sbin/fsdb/../fsck_ffs/pass1b.c /usr/src/sbin/fsdb/../fsck_ffs/pa
ss2.c /usr/src/sbin/fsdb/../fsck_ffs/pass3.c /usr/src/sbin/fsdb/../fsck_ffs/pass
4.c /usr/src/sbin/fsdb/../fsck_ffs/pass5.c /usr/src/sbin/fsdb/../fsck_ffs/setup.
c /usr/src/sbin/fsdb/../fsck_ffs/utilities.c /usr/src/sbin/fsdb/../../sys/ufs/ff
s/ffs_subr.c /usr/src/sbin/fsdb/../../sys/ufs/ffs/ffs_tables.c
/usr/src/sbin/fsdb/fsdbutil.c:242:14: error: too few arguments provided to funct
ion-like macro invocation
initbarea(bp);
^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1
1 error
*** [depend] Error code 2
1 error
*** [sbin.depend__D] Error code 2

Simple patch attached; world is still building, but at least it got
through the "make dependencies" phase this time.

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
Index: sbin/fsdb/fsdbutil.c
===
--- sbin/fsdb/fsdbutil.c	(revision 247218)
+++ sbin/fsdb/fsdbutil.c	(working copy)
@@ -239,7 +239,7 @@
 	/* for the final indirect level, don't use the cache */
 	bp = &buf;
 	bp->b_un.b_buf = bufp;
-	initbarea(bp);
+	initbarea(bp, BT_UNKNOWN);
 
 	getblk(bp, blk, sblock.fs_bsize);
 } else


pgp1qSllJTBYq.pgp
Description: PGP signature