Commit Graph

193164 Commits

Author SHA1 Message Date
jmcneill
7ae909373c If ACPI is active and the FADT reports no legacy devices present, set
the 'no-legacy-devices' property to true on isa0.
2010-08-21 17:10:03 +00:00
jmcneill
cecc6dab21 If the 'no-legacy-devices' property is present and true, skip device
enumeration.
2010-08-21 17:08:15 +00:00
jmcneill
c5ec9c2c52 in acpibut_notify_handler, suppress 'unknown event' messages for
ACPI_NOTIFY_DEVICE_WAKE. Control method power and sleep buttons can
generate this event upon waking from G1 sleep to indicate that it was
responsible for waking the system.
2010-08-21 16:36:15 +00:00
tron
90493f6f08 Add support for parsing the data format "@<seconds since epoch>" e.g.
"@735275209" for "Tue Apr 20 03:06:49 UTC 1993". This change was inspired
by coreutil's "date" utility.
2010-08-21 16:17:40 +00:00
jruoho
2f766899a8 When we do the sanity check that a P- or T-state transition was successful,
compare also against the control-field. There appears to be many BIOSes in
the field that report a zero value in the status-field. It is unclear whether
this should be taken as a hint that the status-check is not necessary also
during P-state transitions. If we still see timeouts (EAGAIN), this should
be reverted and the status-check should be bypassed if ps->ps_status is 0.
2010-08-21 15:37:35 +00:00
pgoyette
bb793fe2e6 Fix botched update. 2010-08-21 13:57:41 +00:00
joerg
398cced2a2 Include DHparams_print_fp 2010-08-21 13:47:37 +00:00
pgoyette
7626bd9b32 Put a valid date here - no more placeholder. 2010-08-21 13:34:43 +00:00
pgoyette
60bf661b9d Add a new atf test-case to check that recursive module calls actually work. 2010-08-21 13:21:48 +00:00
pgoyette
0a1d427681 Add the new kern_cfglock.c to rump. 2010-08-21 13:20:43 +00:00
pgoyette
23d5409e7e Update the rest of the kernel to conform to the module subsystem's new
locking protocol.
2010-08-21 13:19:39 +00:00
pgoyette
f05cff10bd Update the various xxx_verbose modules to conform to the module subsystem's
new locking protocol.
2010-08-21 13:18:35 +00:00
pgoyette
4a743ad47d Define a set of new kernel locking primitives to implement the recursive
kernconfig_mutex.  Update module subsystem to use this mutex rather than
its own internal (non-recursive) mutex.  Make module_autoload() do its
own locking to be consistent with the rest of the module_xxx() calls.
Update module(9) man page appropriately.

As discussed on tech-kern over the last few weeks.

Welcome to NetBSD 5.99.39 !
2010-08-21 13:17:31 +00:00
jmcneill
0b3fb1fe44 - don't clobber the data found by _PSS if XPSS validation fails
- XPSS spec says that Status{,Mask} and Control{,Mask} buffers are 8 bytes
- use ACPI_GET64 macros instead of memcpy when reading from buffers

This makes acpicpu work again on my VIA C7-M, whose firmware reports
malformed XPSS packages but has a working _PSS
2010-08-21 13:12:15 +00:00
jmcneill
550cccfc5c enable viadrm 2010-08-21 11:55:21 +00:00
jmcneill
3df8768a1c Get viadrm working again 2010-08-21 11:54:36 +00:00
wiz
0bba56f8fb Add x86 to Dt. 2010-08-21 10:38:51 +00:00
jruoho
f7b06c8780 Move nmi(9) to the correct category. 2010-08-21 10:32:35 +00:00
wiz
e02e23b4b6 Uppercase Dt argument. 2010-08-21 10:13:33 +00:00
jruoho
07deeab629 Add x86_msr_xcall(9). 2010-08-21 10:11:34 +00:00
jruoho
57af947c67 Use an inverse logic when filling the (X)PSS structures -- if we know
the addresses, we trust ourselves more than a random BIOS in the field.
2010-08-21 09:16:28 +00:00
jruoho
7aac1c3ec2 Add a comment. 2010-08-21 07:18:34 +00:00
jruoho
497fed0a50 Check from CPUID 0x06 %eax (on Intel) whether we might actually have an
invariant APIC timer or an "ARAT" ("always running APIC timer"). This means
that the APIC timer may keep ticking at the same rate also in deep C-states
with some new or forthcoming Intel CPUs.
2010-08-21 06:45:50 +00:00
christos
9433b61fdf add x86 section 9 man directories 2010-08-21 06:41:09 +00:00
christos
913978f34a add section 9 pages for x86 2010-08-21 06:38:59 +00:00
jruoho
ac6e5ea3d1 BCS, BIST, BSP, COF, CS, FEC, FID, HTC, IBS, IFCM, LINT, LVT, MC, MCQ, OOE,
PRBS, RX, TX, UI, VID, WDT, XBAR, XIP.
2010-08-21 06:10:37 +00:00
jruoho
503e356fbc Add a quirk for Turbo Boost.
It was observed that at least Sverre Froyen's ThinkPad T500 reports values
that do not match readings from the IA32_PERF_STATUS register. This only
applied to the P0-state. Thus, for now, skip the status check if Turbo
Boost has been detected and the requested state is P0.

This needs to be revisited once Turbo Boost actually works in NetBSD. It is
unclear whether this is a BIOS flaw or not; these values may well be what we
get from IA32_PERF_STATUS once the CPU actually uses the +133.33 MHz boost.
2010-08-21 05:10:43 +00:00
jruoho
4362bda118 Detect Intel's Turbo Boost and presence of IA32_APERF/IA32_MPERF. The former
is required for a quirk, and the latter is needed for hardware P-state
coordination (once acpicpu(4) will support fine-grained coordination).
2010-08-21 04:36:29 +00:00
jruoho
6cf2f2d125 Detect whether TSC is invariant, which may be the case on both new AMD and
Intel processors. The invariance means that TSC runs at a constant rate
during all ACPI state changes. If it is variant, skew may occur and TSC is
generally unsuitable for wall clock services. This is especially relevant
with C-states; with variant TSC, the whole counter may be stopped with states
larger than C1. All x86 CPUs before circa mid-2000s can be assumed to have a
variant time stamp counter.
2010-08-21 03:55:24 +00:00
tsutsui
d078479716 Add upgt(4), Intersil PrismGT USB 802.11b/g adapter. 2010-08-21 03:06:37 +00:00
jruoho
ec113abb1c Add IA32_MPERF (E7h) and IA32_APERF (E8h) as MSR_MPERF and MSR_APERF. 2010-08-21 02:59:18 +00:00
jruoho
26cf8b0518 Properly detect AMD hardware P-state support. Also detect "core boost" (only
present in some models of family 10h).
2010-08-21 02:47:37 +00:00
jruoho
78ed01b2e1 Add CPUID_APM_CPB at Fn8000_0007 %edx, for core performance boost. 2010-08-21 02:31:13 +00:00
jruoho
0499ea91d4 Use a constant from <x86/specialreg.h>. 2010-08-21 01:57:34 +00:00
joerg
0253fb8bf4 Remove stray { 2010-08-20 16:38:16 +00:00
pooka
65cdb57245 print to stderr instead of stdout 2010-08-20 16:35:05 +00:00
joerg
a64143b682 PT_STEP historically ignores the argument. Indepent of whether this
behavior will be restored, pass down 0 for now to unbreak single
stepping after the thread changes.
2010-08-20 15:34:13 +00:00
joerg
0e26070ea9 Consider a mapped IPv4 address of 0.0.0.0 as unspecified. This allows
using mapped IPv4 address with connect without preceding bind.
2010-08-20 15:01:11 +00:00
joerg
e84862bd9b Allow ELF objects with more than two PT_LOAD sections. Go creates such
binaries by default with separate sections for executable, writeable
data and constants. Use the same heuristic as FreeBSD to match up the
text and data segment assumptions.
2010-08-20 14:59:53 +00:00
jruoho
222d798a76 Add two flags that needs to be dealt with (hardware vs. software
coordination of P-state transitions, and Turbo Boost / Turbo Core).
2010-08-20 12:20:23 +00:00
jruoho
0e8d2e5a05 Check if SpeedStep is enabled. If it is disabled, try to enable it. 2010-08-20 07:00:17 +00:00
jruoho
24ca85d180 Give a hint about a driver conflict. 2010-08-20 06:36:40 +00:00
jruoho
b88de53be5 Add COMPATIBILITY. 2010-08-20 06:35:55 +00:00
jruoho
a448b8a1b9 Revert all previous changes that were made naively believing that the
existing CPU power management implementations could peacefully coexist with
the acpicpu(4) driver. The following options can not be used with acpicpu(4):
ENHANCED_SPEEDSTEP, INTEL_ONDEMAND_CLOCKMOD, POWERNOW_K7, and POWERNOW_K8.
2010-08-20 06:34:32 +00:00
jruoho
ce692d69b0 Check the cached value also when setting a state. 2010-08-20 04:16:00 +00:00
jruoho
8b94ac2ff3 Properly calculate the AMD CPU family. 2010-08-19 21:40:45 +00:00
jmcneill
11d8465e82 pull in acpireg.h for ACPI_COMPONENT_RESOURCE 2010-08-19 18:37:38 +00:00
jmcneill
e9887a1821 define _COMPONENT and ACPI_MODULE_NAME() for ACPI_DEBUG 2010-08-19 18:30:33 +00:00
jruoho
2ea8b86098 Add native P-state support for AMD family 10h and 11h processors. Both are
supported irrespective of XPSS. Family 10h tested by jakllsch@.
2010-08-19 18:30:24 +00:00
jmcneill
d7a3ccfac9 more assoc dump fixes 2010-08-19 18:06:37 +00:00