Commit Graph

188515 Commits

Author SHA1 Message Date
skrll
91b151c4f5 Use #define<tab> consistently. 2010-03-01 11:27:29 +00:00
darran
fa288ab6ce Backout accidental commit adding sdt.h (hold off until CTF toolchain build
is ready).
2010-03-01 11:25:05 +00:00
darran
ac8906f757 DTrace: fix a few problems introduced by the recent ZFS update (expected
problems from the OpenSolaris merge).
2010-03-01 11:19:39 +00:00
roy
c6aefd4d60 Escape , when converting to terminfo. 2010-03-01 11:02:31 +00:00
agc
b62679aaf5 add the scripts used to test the hkpd.
fwiw, the hkp client script is - essentially - 7 lines of lua, using
libcurl for the http transport.
2010-03-01 07:52:21 +00:00
agc
c854a26d0d add an embryonic httpd key server (hkpd) to netpgp. this is based on the
discontinued draft for hkp servers, in lieu of any official rfc.

the post method for adding keys to the server has not been implemented.
not until i've gone through all of the implications, anyway.

hkp servers serve up pgp public keys over http. the default port is 11371,
but it can be any port, specifiable at run time. whilst this hkpd will
return valid html to browsers, it is aimed at the ''machine readable''
side, using the ''&options=mr'' option to the http get string.

this hkpd server will get hooked into the build at a later date.
2010-03-01 07:41:56 +00:00
macallan
5e9539b84b enable PNOZZ_USE_LATCH in case we run into some hardware which needs it 2010-03-01 06:14:17 +00:00
macallan
3bc5d8b535 make latching optional.
The SPARCbook docs claim it's necessary but my 3GX happily works without.
2010-03-01 05:42:08 +00:00
jruoho
5bc6f3c06a Semantics:
* Use ACPI_ADR_PCI_DEV(x) and ACPI_ADR_PCI_FUNC(x).
  * !ACPI_FAILURE -> ACPI_SUCCESS, UINT32 -> uint32_t
  * Remove whitespace.
2010-03-01 05:37:37 +00:00
macallan
539b768657 fix ancient typo, noticed by mouse@ 2010-03-01 05:26:53 +00:00
pgoyette
1843b8571b Update for changes in sensor limit handling 2010-03-01 03:15:16 +00:00
pgoyette
7e73c12204 Now that sysmon_envsys(8) has learned how to retrieve and update sensor
limit values from the device driver, remove the high_limit and low_limit
entries from the hw.dbcool<#>.<sensor> sysctl(8) tree.  These limits are
now directly accessible via envstat(8).  Simplify the remaining code
somewhat.

No objections raised on either tech-kern@ or current-users@

XXX The fan controllers's parameters (including those that are tied to
XXX temperature sensors) are still in sysctl, since there isn't any clean
XXX way to implement the fan controllers in sysmon_envsys yet.  It is on
XXX my To-Do list...
2010-03-01 03:14:49 +00:00
dholland
5c7d0d1fb6 compile.c needs sys/endian.h; PR 42875 from Henning Petersen. 2010-03-01 01:59:48 +00:00
jym
1e1cc23e07 Do not forget that ptoa() casts the result to vaddr_t, which is bad
for paddr_t values under i386 PAE. Use ctob() instead.

Although amd64 is not affected by this vaddr_t vs paddr_t issue (both
having the same size), for the sake of completeness, switch to
ctob() when manipulating paddr_t/psize_t entities in amd64 machdep.c.

Compile tested for i386 and amd64. No regression expected.
2010-03-01 01:35:11 +00:00
jym
1e9520c105 Change rbus_min_start_hint() semantic for i386. "ram" is now psize_t
(instead of size_t) to avoid possible overflow when system may have more
than 4GB of memory (like PAE).

The behavior of rbus_min_start_hint() remains the same. While here, fix
printf's format strings (paddr_t => PRIxPADDR).

Use ctob() and cast physmem to psize_t to avoid losing bits above 4GB.

Comes from PAE patch from Jeremy Morse; adaptation by me.

Compile tested for GENERIC only. No regression expected.
2010-03-01 01:15:23 +00:00
macallan
9df6065977 Don't call frame-buffer-adr since it doesn't work as expected by the code
that got cargo culted over from macppc. While there shut up some leftover
debug printf.
2010-03-01 01:14:58 +00:00
jym
d967c640a3 Use PDP_SIZE for NTOPLEVEL_PDES (number of top level PDEs) instead of
#ifdef'ing PAE.
2010-03-01 00:55:33 +00:00
haad
06e8ea2875 Add header files needed for building zfs as kernel_module. 2010-03-01 00:41:35 +00:00
joerg
7780622b8d Use HUGE_VAL on VAX as INFINITY requires a warning according to ISO C99
on VAX. Use the less intrusive approach of a conditional here.
2010-03-01 00:15:47 +00:00
joerg
bfbe4c3572 Use HUGE_VAL instead of INFINITY as positive infinity (or maximum value)
is good enough and the side effects of ISO C99 7.12 (4) are not desired.
2010-03-01 00:13:47 +00:00
haad
75eba26b3c Add forgotten misc.h header file, which I forgot to commit. 2010-02-28 22:50:48 +00:00
haad
07be11bb73 Addmissing symbols to libumem. 2010-02-28 22:45:45 +00:00
martin
fef6bd65fd Enable dynamic sizing of the default swap partition 2010-02-28 22:42:44 +00:00
haad
7077d82ba4 Add missing zfs_fletcher.c to libzfs. 2010-02-28 22:40:09 +00:00
pgoyette
06d81b8ad2 Move definitions of internal data structures and flag bits to avoid
exposing them to user-land.
2010-02-28 20:04:04 +00:00
jruoho
a92215aa7e Add makefiles for a sample of ACPI kernel modules. 2010-02-28 17:40:51 +00:00
haad
29137ce9bb Add newly added stubs.c file to libzfs build. 2010-02-28 17:40:35 +00:00
haad
e3855e55fa Add fixes for missing symbols from libzfs and libzpool. 2010-02-28 17:36:51 +00:00
jruoho
86c3014958 Introduce support for ACPI kernel modules.
Tested on couple of laptops.
2010-02-28 17:22:41 +00:00
haad
3491b19f5b Add NetBSD/Solaris compatibility SHA header. 2010-02-28 17:22:01 +00:00
snj
ccaf1e96be Fight the ever-increasing size of src checkouts by spelling "useful"
without an extra l.
2010-02-28 15:52:16 +00:00
snj
77db2769ee Spelling police. 2010-02-28 15:33:21 +00:00
martin
492b486237 dmesg cosmetics 2010-02-28 15:30:22 +00:00
haad
68ffa27a55 Add missing -I definition. 2010-02-28 15:24:04 +00:00
haad
c2a856c467 Update zfs module to new sources. 2010-02-28 15:22:16 +00:00
haad
90f8c9d149 Add missing header file, I will tag it to osnet-20100224 later. 2010-02-28 15:17:44 +00:00
haad
32fa36ddd0 Add another set of headers files. 2010-02-28 15:13:27 +00:00
haad
826319b9a5 Add missing header file I have missed it in first round of glue commits. More
to come.
2010-02-28 15:10:12 +00:00
haad
9531208f86 Add our local version of sysevent.h file without door.h useage. 2010-02-28 15:07:14 +00:00
haad
a3bfe6d964 Add NetBSD build glue to build new zfs version 22 sources. 2010-02-28 14:45:47 +00:00
martin
3c21532a2a Interpret the "reg" property of i2c nodes more liberal, and depending
on the cell size in use.
I have been unable to find any documents about the i2c bindings for OF,
so this is all pretty much voodoo.
2010-02-28 13:59:05 +00:00
jruoho
0f58ad7ae9 Use native functions instead of polluting the namespace with ACPICA-macros. 2010-02-28 13:56:49 +00:00
jruoho
ba2862cd60 Add ACPI_DEBUG_ALLOC. 2010-02-28 13:10:43 +00:00
jruoho
cd85adf1c0 In preparation for partial modularization of the acpi(4) subtree.
* * *

XXX:	The internal memory tracking of ACPICA, available when
	ACPI_DBG_TRACK_ALLOCATIONS is defined, has been removed
	from ACPI_DEBUG.

	This is due to the instability of the ABI of ACPICA.

	If the memory tracking is enabled, ACPICA will insert a header
	to each memory allocation. As a consequence, when ACPI specific
	code is loaded as a kernel module and the running kernel has
	been compiled with ACPI_DEBUG, the result is an instant panic.
	This happens because of unaligned memory access when the code
	tries to use ACPI_FREE for a buffer obtained via ACPI_ALLOCATE,
	AcpiEvaluateObject(), and related calls.

	If the involved memory statistics are required, a separate constant
	ACPI_DEBUG_ALLOC is available in options(4) for ACPI_DEBUG kernels.

* * *

Discussed with, and ok'ed by, jmcneill@ and pooka@.
2010-02-28 12:57:11 +00:00
pgoyette
cbd0b07b1d Set the FMONNOTSUPP flag for each individual sensor, and add the
FMONLIMITS flag so the sensor is actually monitored and events can
be generated.

As discussed with martin@ in private email.
2010-02-28 12:40:46 +00:00
martin
f0ca32dd6a Remove the envctrl driver, it is superseeded by the more general pcfiic @
ebus. Add the SB1000/SB2000 fan controll driver (tda). From OpenBSD.
Move config files over to direct configuration of i2c devices.
2010-02-28 11:49:44 +00:00
martin
046723f091 Update pcf8584 driver from OpenBSD 2010-02-28 11:47:28 +00:00
martin
66539057af Add support for direct configuration of i2c devices 2010-02-28 11:43:40 +00:00
martin
a56e529332 Add direct config support for a few devices 2010-02-28 11:36:27 +00:00
martin
5aa9335e67 Supporting cast for i2c direct configuration on OF machines 2010-02-28 11:35:40 +00:00