Commit Graph

192384 Commits

Author SHA1 Message Date
pooka 53ef25afeb regen: stat compat syscalls moved 2010-07-19 15:30:43 +00:00
pooka 7949f6c1c8 Don't provide stat compat syscalls here, they come from
rump_syscalls_compat.h now.  (besides, I always hated how they were
in the rump_pub_sys namespace instead of the rump_sys namespace)
2010-07-19 15:29:44 +00:00
pooka abfc763eb1 add rump_syscalls_compat.h 2010-07-19 15:28:18 +00:00
pooka 7f9f73897e Include <rump/rump_syscalls_compat.h> from rump_syscalls.h. This
file will contain compat defs which are not autogenerated.
2010-07-19 15:25:47 +00:00
tsutsui a367c4f857 - in max1233_readpos(), add some DELAY() after starting A/D so that
output values of touchscreen position are more stable on my WS003SH
- also tidy up read and calc ops in max1233_readpos()
- turn DAC on in max1233_init() as well as max1233_resume()
2010-07-19 15:20:21 +00:00
njoly 0d023b0316 Add libxcb-*.debug files. 2010-07-19 14:30:51 +00:00
njoly 6e961b3ed8 Missing .debug suffix. 2010-07-19 14:29:38 +00:00
rmind 2f196e2fd9 Abstract IP reassembly into single generic routine - ip_reass_packet().
Make struct ipq private and struct ipqent not visible to userland.
Push ip_len adjustment into reassembly layer.

OK matt@
2010-07-19 14:09:44 +00:00
jmmv 28cce38f11 Split the before_start test in two: one that does not use threads and one
that does.  The former works all the time but the latter gets consistently
stuck on amd64.  Mark the latter as an expected timeout (should be a "race
condition" test, but atf does not have such a thing yet[1]).

This clears the test failures, at least, under anita running NetBSD/i386.

From pooka@: this could well be because calling sem_post(3) from a signal
handler can't possibly do the right thing with the pthread implementation.
However, according to signal(7), sem_post(3) is signal-async safe...

While here, program alarms using a timeout shorter than 1 second to speed
up the execution of the tests.

1: Good thing is I finally understand what a "race condition" test looks
like, I believe.
2010-07-19 10:31:46 +00:00
hannken f457e09499 Lock the ntnode and recheck the fnode after calling getnewvnode().
Take v_interlock while the ntnode is locked.
2010-07-19 08:17:44 +00:00
mrg 406bca5fd6 updates for Mesa 7.8.2:
- build glsl as a host tool
- add the glsl objects to libmesa
- add/remove new/deleted sources for various components
- adjust the libmesa/libGL builds to pull in the new glsl objects
- re-apply the BUILDSYMLINK hack for eval.c/pixel.c/pixelstore.c
- use glsl to build the slang headers on the fly
2010-07-19 05:34:24 +00:00
mrg 6d0d419c9f delete obsolete / never used file. 2010-07-19 05:01:07 +00:00
joerg 0597463e89 Don't quite `+', `-' and `/' in set -x output. 2010-07-19 01:15:17 +00:00
christos 515e411d3f XXX: If this is not correct, revert or fix.
This makes my laptop boot instead of panic:

panic: kernel diagnostic assertion "native_idle != NULL" failed: file "../../../../arch/x86/acpi/acpi_cpu_md.c", line 155
fatal breakpoint trap in supervisor mode
type 1 code 0 rip ffffffff8022e4ad cs 8 rflags 246 cr2  0 cpl 0 rsp ffff80004c37db10

trace
breakpoint() at netbsd:breakpoint+0x5
panic() at netbsd:panic+0x2ba
kern_assert() at netbsd:kern_assert+0x2d
acpicpu_md_idle_stop() at netbsd:acpicpu_md_idle_stop+0x62
acpicpu_cstate_callback() at netbsd:acpicpu_cstate_callback+0x34
sysmon_task_queue_thread() at netbsd:sysmon_task_queue_thread+0x41

1. ACPI seems to define cpuids 1..n; we define 0..n-1. Adjust for that
2. My laptop is dual core, but ACPI reports 4 cpu nodes. Instead of
   attaching the unmatched ones, make the match fail. Do we want to
   attach and do nothing instead?
3. Create a flag, and only set it after we are completely initialized,
   so the sysmon thread does not try to access unitialized state.
2010-07-19 00:59:32 +00:00
jmmv e1c433700e Refactor this test program: make test cases more granular, use atf_check
to validate the execution of sort(1) and do not bother removing temporary
files.

This is in preparation to merge the tests for sort(1) that still live in
regress/usr.bin/sort/stests.
2010-07-18 22:58:14 +00:00
pooka 510b2ec795 Reduce sleep time for practically the same effect. Until atf can
do parallel test execution, tests which spend 99.9999% of their
execution sleeping are not nice.
2010-07-18 22:30:55 +00:00
jruoho 097ffbd0d4 Fix build failure in i386/ALL. Again caused by a missing _COMPONENT
declaration required for ACPI_DEBUG. Noted by cegger@ -- thanks.
2010-07-18 20:20:04 +00:00
jruoho 441a667547 The first bug: do not error out if the latency values supplied in _CST are
larger than the upper limit constants. Only sanity check against these
defaults when operating with FADT. This is also noted in a fine print of the
specification (ACPI 4.0, p. 314): "[...] The worst-case latency to enter and
exit the C State (in microseconds). There are no latency restrictions."
2010-07-18 13:09:04 +00:00
jmmv b85cea17a2 Remove the libobjc tests; they have been converted to atf and now live in
tests/lib/libobjc/.
2010-07-18 12:44:38 +00:00
pooka 5397c7b6af Ignore errors when copyin/out len == 0. 2010-07-18 12:44:31 +00:00
jmmv 3b36d603a4 Note conversion of libobjc tests to atf. 2010-07-18 12:44:09 +00:00
jmmv a4d9cc8b41 Add tests for libobjc. 2010-07-18 12:43:44 +00:00
pooka 1d14124dd5 fix routine name in error message 2010-07-18 12:43:22 +00:00
jmmv b4f7babb0e Add dirs for libobjc tests. 2010-07-18 12:43:17 +00:00
jmmv cb5d4b0864 Convert the libobjc tests to atf. While doing this, make the tests actually
check that things work.
2010-07-18 12:41:51 +00:00
jmmv 2f0d388071 Remove the ATF_CHECK calls I added during the conversion of this test to
atf.  They break on i386 (because the test was conceptually broken anyway);
reported by pooka@ in private mail.

Now... the current test does not actually check anything AFAICT... but this
is how it was before.
2010-07-18 12:16:19 +00:00
mrg d06d4b6ec0 ... and HAVE_STRNLEN 2010-07-18 11:28:22 +00:00
mrg 9998611309 xlsclients wants xcb-atom as well. 2010-07-18 11:21:43 +00:00
mrg 88f40394c5 oops, install all the xcb-util headers. 2010-07-18 10:58:06 +00:00
mrg 1ddab15061 xlsatoms 1.1.0 wants to link against libxcb, not all the other libs. 2010-07-18 10:42:24 +00:00
jruoho ae630da088 Add ACPI CPU. 2010-07-18 10:19:09 +00:00
jmmv d5e0f5a09f Note conversion of lint1 tests to atf. 2010-07-18 10:12:58 +00:00
jmmv 008e3995ba Remove lint1 tests; they have been converted to atf and now live in
tests/util/xlint/lint1.
2010-07-18 10:12:33 +00:00
jmmv 2665ef8b8b Add entries for lint1 tests. 2010-07-18 10:11:59 +00:00
jmmv 5496453d33 Add directories for lint1 tests. 2010-07-18 10:11:31 +00:00
jmmv 7ce6f390a2 Convert the lint1 tests to atf.
Initial work from the GSoC 2008 project by Lukasz Strzygowski.
2010-07-18 10:11:00 +00:00
jmmv c205fc13c9 Uh, it's not 2001 any more. Fix dates of my previous entries. 2010-07-18 10:04:03 +00:00
mrg 448655fa99 add a couple of missing source files. 2010-07-18 09:49:12 +00:00
jruoho 9fcb11c8f6 Add missing CVS identifiers. 2010-07-18 09:39:45 +00:00
jruoho 47bb5e479e Add a Makefile for ACPI CPUs.
It is safe to load and unload the whole ACPI CPU -functionality at runtime.
2010-07-18 09:37:50 +00:00
jruoho 4d861e5bb4 Merge a driver for ACPI CPUs with basic support for processor power states,
also known as C-states. The code is modular and provides an easy way to add
the remaining functionality later (namely throttling and P-states).

Remarks:

  1.	Commented out in the GENERICs; more testing exposure is needed.

  2.	The C3-state is disabled for the time being because it turns off
	timers, among them the local APIC timer. This may not be universally
	true on all x86 processors; define ACPICPU_ENABLE_C3 to test.

  3.	The algorithm used to choose a power state may need tuning. When
	evaluating the appropriate state, the implementation uses the
	previous sleep time as an indicator. Additional hints would include
	for example the system load.

	Also bus master activity is evaluated when choosing a state. The
	usb(4) stack is notorious for such activity even when unused.
	Typically it must be disabled in order to reach the C3-state,
	but it may also prevent the use of C2.

  4.	While no extensive empirical measurements have been carried out, the
	power savings are somewhere between 1-2 W with C1 and C2, depending
	on the processor, firmware, and load. With C3 even up to 4 W can be
	saved.  The less something ticks, the more power is saved.

ok jmcneill@, joerg@, and discussed with various people.
2010-07-18 09:29:11 +00:00
mrg 3172b07cfc build and install libxcb and xcb-util libraries. 2010-07-18 07:07:08 +00:00
mrg 8d81f5c19e add some more transforms to the hacky ugly sed script for pkg-config files,
and note a few more that are not yet handled but should be.
2010-07-18 07:05:39 +00:00
mrg 17120376f4 add build infrastructure for xcb-utils 0.3.6. 2010-07-18 07:01:38 +00:00
mrg afd7b3604f don't install xprint.h. 2010-07-18 07:01:10 +00:00
jruoho 8c1a5f831d Shorten some of the descriptions. 2010-07-18 06:58:48 +00:00
jakllsch 393ce9b83e Use standard MII register definitions from mii.h. No binary change. 2010-07-18 03:00:39 +00:00
mrg d5fd80ad0d install the xcb-proto files; not used yet. 2010-07-17 23:44:29 +00:00
mrg 0d429e5b59 build support for libxcb 1.6. not yet used.
XXX: i couldn't get the python/xml generator to run outside of
XXX: the libxcb build tree, so i just copied these from there,
XXX: but ideally files/Makefile could know how to do this.
2010-07-17 23:43:27 +00:00
mrg 4f2c95e76d - add X11SHAREDIR definition
- X11SRCDIR's for libxcb, xcb-proto and xcb-utils
2010-07-17 22:53:29 +00:00