Commit Graph

188504 Commits

Author SHA1 Message Date
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
martin
9d9a688916 Generic (device property based) framework for optional direct configuration
of i2c devices, as discussed on tech-kern.
2010-02-28 11:34:42 +00:00
martin
5d2d1246bd remove "string" directory for now, it isn't installed 2010-02-28 11:06:59 +00:00
jruoho
ab778822b7 Remove ACPI_LID_DEBUG. 2010-02-28 09:24:46 +00:00
jruoho
5d978521d4 Cleanup:
* Semantics.
  * Remove ACPI_LID_DEBUG.
  * Reduce the amount of error reporting.
  * As the status of the lid (open/closed) is known upon suspend, move the
    state variable to the softc, and avoid one object evaluation this way.
2010-02-28 09:23:30 +00:00
darran
6cc8d64caf Propagate the IFCAP_TSOv6 property also. 2010-02-28 07:10:40 +00:00
darran
ba7b8985fe DTrace: enable access to kernel space for DTrace scripts. 2010-02-28 07:01:43 +00:00
haad
a252d550c0 Merge NetBSD local changes to new zfs version 22 sources. 2010-02-27 23:43:52 +00:00
haad
0b46b1b518 As a preparation for zfs sources update disable MKZFS for some time. 2010-02-27 22:42:54 +00:00
haad
f59c7639cd Import new Opensolaris sources for zfs/dtrace.
Opensolaris mercurial changeset: 11751:58c0c8f4305f
2010-02-27 22:29:20 +00:00
snj
c567d7c296 Mention net.inet.icmp.bmcastecho. 2010-02-27 22:17:15 +00:00
snj
6ea9f5a749 Spell "exception" properly. 2010-02-27 22:12:31 +00:00