Commit Graph

106432 Commits

Author SHA1 Message Date
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
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
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
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
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
jmcneill
b4ea244316 flush cache on suspend 2010-08-19 17:59:10 +00:00
tsutsui
961a253c71 Fix device_t/softc split botches. PR port-hpcarm/43780 2010-08-19 15:17:53 +00:00
jmcneill
70496e9ae2 add pmf support 2010-08-19 14:59:24 +00:00
jmcneill
0465f35ecf add suspend/resume support 2010-08-19 14:58:22 +00:00
jmcneill
77b2a8365a VIA CPUs can have EST as well, so treat them the same as Intel 2010-08-19 11:08:33 +00:00
jruoho
5ecdb7f351 Deal with autoconfiguration madness by using config_defer(9) to defer
config_interrupts(9) to be executed. This is necessary because: (a) the
initialization routines must be run only once after interrupts are enabled
and (b) all ACPI CPUs have attached.
2010-08-19 05:09:53 +00:00
jruoho
e1be1909e4 Add sysctl-glue for interaction with the acpicpu(4). 2010-08-19 04:12:45 +00:00
pooka
6cd7b7a7ca print more info in the "past eof" panic 2010-08-19 02:10:02 +00:00
pooka
14ac9d6c4c Use the same base pagerflags for both ubc_uiomove and ubc_zerorange. 2010-08-19 02:07:11 +00:00
macallan
59c2899703 - add support for running the console in 8 bit colour
- make shadow fb optional
- use VCONS_DONT_READ if there's no shadow fb
2010-08-18 21:11:50 +00:00
jruoho
77e2991ced Add DIAGNOSTIC. 2010-08-18 19:33:10 +00:00
jruoho
8116cea3d3 Use the idea from cegger@ and fill the (X)PSS structure during initialization. 2010-08-18 18:32:20 +00:00
macallan
9c10440f53 Add copycols() and copyrows() methods which, instead of calling the underlying
driver methods, call the driver's putchar() method to redraw the affected
areas.
For unaccelerated framebuffers where reads are expensive and we can't spare
any memory for a shadow framebuffer. Enabled by setting VCONS_DONT_READ in
scr_flags
2010-08-18 16:46:51 +00:00
jruoho
dd6aeafa08 Check the status of P- and T-state transformations on all CPUs. This is
still not ideal, as ACPI gives us information about "cross logical processor
dependencies". For instance, a single MSR call on one CPU may cause all other
CPUs in the same domain to follow the state shift. Thus, rather than using
xc_broadcast(9), we should xc_unicast(9) on per-domain or per-CPU-set basis.
2010-08-18 16:08:50 +00:00
jruoho
8302489936 Add MD support for the vendor-independent extended PSS. Some conforming AMD
systems are known to work. Alas, not all of them. We still need to deal with
the variety of different PowerNow! revisions.
2010-08-18 04:12:29 +00:00
jruoho
46457f068f Fix fix of a bug: first initialize sc, check sc != NULL, then KASSERT(9). 2010-08-18 02:01:45 +00:00
pgoyette
a5e851409f Use SYSCTL_DESCR() 2010-08-17 23:36:51 +00:00
jym
4d0d2a4c7b Use SYSCTL_DESCR() 2010-08-17 22:24:04 +00:00
pooka
942c727880 Prefault bus pages in driver attachment. This seems to work around
weird corruption I've been seeing (most likely a host kernel bug).

For more details, see thread at:
http://mail-index.netbsd.org/tech-kern/2010/08/17/msg008749.html
2010-08-17 20:42:47 +00:00
macallan
3bc68298fb - fix 8 bit support and run the console in 8 bit for a little extra speed
- fix colour oddities seen occasionally on sparc64
- try to use firmware DAC wiring until we figure out what's wrong
TODO:
- find out why radeonfb gets the DAC wiring ass-backwards on my xvr-100
  while Xorg's radeon driver gets it right
- find out why reverse characters aren't drawn in reverse

tested on macppc and sparc64
2010-08-17 18:53:16 +00:00
cegger
63f1e79c2b build fix: first initialize sc then KASSERT 2010-08-17 18:49:28 +00:00
hannken
863afee91a Now that ffs on disk inodes get freed in the reclaim routine it is no longer
necessary for vget() to handle VI_INACTNOW as a special case.  Remove this
check and its support in vrelel().

Getting another reference while the freelist is locked is an error.  Replace
the check with a KASSERT.
2010-08-17 13:17:47 +00:00
pooka
c2fbfedc83 Fix hopefully last off-by-one: if we fill the bus, we must also
advance the "first" pointer.  This problem triggered only if the
bus was filled in the first round, since the first pointer is at
the end-of-bus only for the bootstrap round.
2010-08-17 12:59:53 +00:00
pooka
86ea9bb1a9 * fix off-by-wrap case where current datagram aligns exactly with
the end of the bus
* clarify the "can we still use the device's next pointer" calculation
  and move it to its own routine
* sprinkle dprintf
2010-08-17 11:35:23 +00:00
jruoho
6846d4aa28 Adjust locking for previous. 2010-08-17 10:57:30 +00:00
jruoho
99f8ada841 Clarify the initialization of the dynamic maximums/minimums. Reset these to
defaults upon suspend. As we do not know how well the firmware maintains
state, do not run the callbacks that evaluate the maximum/minimum on resume.
2010-08-17 10:35:22 +00:00
jruoho
e70b5284eb Add support for the optional dynamic minimum (in terms of MHz) via _PDL.
Comparable to T-states, this gives effectively a window of available
performance states for passive cooling. An example:

Init:		max = 0, min = Pn.

		Time j.				Time j + 1.
		-----------			-----------
2000 MHz	P0	max			P0
		P1				P1	max
		P2		   ==>		P2
		P3				P3	min
		P4				P4
		P5	min			P5
 500 Mhz	Pn				Pn
		-----------			-----------

Search:		repeat (i = P0; i <= P5)	repeat (i = P1; i <= P3)
2010-08-17 10:17:52 +00:00
jakllsch
3e117bf430 Match ichlpcib(4) on ICH0 (82801AB_LPC). 2010-08-17 01:45:51 +00:00
dyoung
f8c8042a13 Add pseudo-device drvctl. 2010-08-17 00:02:28 +00:00
jruoho
f3e239e7c7 Fix comments. 2010-08-16 20:20:44 +00:00
jruoho
c1f0324ceb Two changes:
1.	Initialize P-states properly to P0. It is processor-specific
   	what value we might get without initialization. (Some AMD CPUs
	have even specific registers for the state after cold reset.)

  2.	Following design notes for Windows, set the lowest-power P-state
	upon suspend and restore the saved state after resume.
2010-08-16 20:07:57 +00:00
jym
df8a7061db Add machdep.pae sysctl(7) for i386. Thanks to Paul and Joerg for their
reviews.

In kernel, it matches the 'i386_use_pae' variable (0: kernel does not use
PAE, 1: kernel uses PAE). Will be used by i386 kvm(3) to know the functions
that should get called for VA => PA translations.
2010-08-16 19:39:06 +00:00
jruoho
2510a0e220 Now that the deferred configuration actually works as expected and documented,
use config_defer(9) instead of config_finalize_register(9), and simplify the
code paths around the initialization.
2010-08-16 17:58:42 +00:00
pooka
1108237392 simplify, improve, etc. 2010-08-16 17:33:52 +00:00
jruoho
795224299a From jmcneill@: call config_deferred(9) in rescan_with_cfdata(). 2010-08-16 17:29:52 +00:00
tsutsui
b1321efa54 Misc cleanup:
- no need to keep TX/RX mbufs during xfers in struct kue_chain
- check RX packet length more strictly in kue_rxeof()
- make some TX/RX handling in kue_send() and kue_rxeof() more readable
  with proper functions

Tested on:
kue0: LINKSYS USB  Network Adapter, rev 1.00/2.02, addr 5
2010-08-16 11:21:43 +00:00
jmcneill
81c69bbce9 make it compile again 2010-08-16 10:23:25 +00:00
jruoho
c4a7ea78bd If XPSS is used, only invalidate P-states if the control MSR address is zero.
If the status address is zero, we will bluntly bypass the transition check.
2010-08-16 10:07:09 +00:00
tsutsui
67a0da11d8 Static -> static
We can still preserve static function symbols for debug.
(they're also likely inlined but we can specify -fno-inline on debug)
2010-08-16 09:52:11 +00:00
tsutsui
103c7b2a22 - u_intNN_t -> uintNN_t
- use uint8_t for binary data
- use bool for boolean vaules
No binary change.
2010-08-16 09:44:01 +00:00
tsutsui
0d465ab0de Unifdef defined(__NetBSD__) part. No binary change. 2010-08-16 09:34:43 +00:00
jruoho
6c06255cee Add support for Extended PSS ACPI Method Specification from Microsoft.
This will greatly simplify supporting PowerNow! on conforming systems.
2010-08-16 07:38:38 +00:00
cegger
d546ccf4b9 do not hold mutexes when calling tsleep(9).
Fixes LOCKDEBUG panics
2010-08-16 06:05:07 +00:00
jruoho
b5e3d393b9 Do not error out neither in P-states nor in T-states if the method for the
dynamic maximum is nonexistent. Unsurprisingly, there is vagueness in the
standards; in ACPI 3.0 and 4.0 it is clearly indicated that also these methods
must be present, but the earlier standards are less stringent. Without too
much effort, at least one old P4-system was located that lacks _PPC.
2010-08-16 04:31:21 +00:00
yamt
86b3a16608 sys_mremap: unwrap a short line 2010-08-16 01:21:10 +00:00
jmcneill
359c089365 kern/43542: 32kHz playback sounds like hissing analog TV snow
Instead of specifying a range of supported sample rates based on the lowest
and highest available frequencies, only advertise rates that the codec reports
as working. Let aurateconv take care of the rest.
2010-08-15 22:32:02 +00:00
pooka
d2a293bcc2 reset pktsize each loop 2010-08-15 21:57:58 +00:00
pooka
962bc2f851 reset wrap where necessary 2010-08-15 21:41:39 +00:00
pooka
57245467f6 Implement softints properly: they need to have a schedulable entity
per cpu.
2010-08-15 21:28:33 +00:00
pooka
e46b5d009d Increment lwp's context switch counter when it is scheduled onto
a CPU.  This fixes some heavy-load problems with the pool code when
rump kernels essentially lied and caused the pool code not to do
a proper backdown from the fastpath when a context switch happened
when taking a lock.
2010-08-15 20:23:04 +00:00
jmcneill
de738a3dd4 be less spammy when dumping assocs. extra details can be had with boot -x 2010-08-15 19:39:56 +00:00
pooka
50fa67ff5f Move the lockops together with the interface -- they are needed
only at runtime.
2010-08-15 18:55:03 +00:00
pooka
9ae53a340e Take kernel lock before passing data to if_input. This is in line
with IPL_NET interrupts generally not being MPSAFE.
2010-08-15 18:48:38 +00:00
pooka
dc24e61692 introduce a sleep to trying to grab the bus 2010-08-15 18:47:38 +00:00
pooka
b1559dbb99 Don't do timestamping with buslock held. it's the little things ... 2010-08-15 18:40:41 +00:00
jmcneill
3b73c6d5a8 properly round block and buffer sizes -- nvidia HDA controllers work now 2010-08-15 16:21:46 +00:00
jruoho
01066e7b7b Add comments and raise the minimum allowed T-state duty cycle to 10 %. 2010-08-15 08:53:19 +00:00
mrg
78b04d8f54 only attach on SMT ID 0 cpus.
on my i7, cpus 0/4, 1/5, 2/6 and 3/7 have identical information and the
processor manual says that there are only 4 actual sensors.


this still doesn't attach (yet) on that system, due to a core solo/duo
errata being wrongly applied, but i haven't figured out the right way
to do that.
2010-08-15 08:45:20 +00:00
jruoho
46bba1f374 Properly deal with the previous FADT-issue. 2010-08-15 04:35:16 +00:00
jym
59f63c5a24 Only print the debug message about failed remapping when ATU_QUIRK_NO_REMAP
is not set in the atu_quirk flags.

'!' takes precedence over bitwise operation '&', so use parenthesis.
2010-08-14 21:01:26 +00:00
jym
9600194c60 Flush tty only when K_TXBUSY is not set.
'!' takes precedence over bitwise operation '&', so use parenthesis.
2010-08-14 20:52:05 +00:00
jym
c44a6702cd Fix the while condition: sleep while the SPI_F_DONE bit is not set.
'!' takes precedence over bitwise operation '&', so use parenthesis.
2010-08-14 20:49:21 +00:00
jym
f3fb0a5620 Fix some code paths where pointers are dereferenced after checking that
they are NULL (oops?)

XXX pull-ups for NetBSD-4 and NetBSD-5.
2010-08-14 18:28:59 +00:00
jruoho
1084719e1b Simplify the FADT-based entry by "faking" (overriding) also the address. 2010-08-14 17:50:57 +00:00
jruoho
e04e55946a Do not accidentally write zeros to (PSTATE_CNT and CST_CNT) registers. 2010-08-14 17:27:34 +00:00
tsutsui
406df1ed74 Don't free TX mbuf until it's passed to bpf(9). 2010-08-14 12:11:46 +00:00
jruoho
e9a3c2e517 Check the cold-flag also in the notify handler. 2010-08-14 11:16:14 +00:00
tsutsui
fffa0899ac - use uint8_t for xfer buffers and byte numbers
- use bool for sc_dying and sc_attached booleans
2010-08-14 10:47:57 +00:00
cegger
0bf9ca9c59 Fix sbp attach/detach.
When plugging a firewire webcam, sbp attaches.
sbpattach() calls sbp_alloc_target().
In sbp_alloc_target, crom_search_key() fails and sbp_alloc_target() returns NULL.
Move mutex and list initializations up in sbpattach() and in sbp_alloc_target()
so that destroyal of them through sbpdetach() does not cause
LOCKDEBUG panics when unplugging the firewire webcam.
2010-08-14 10:39:33 +00:00
tsutsui
28bdb07e79 No need to keep TX/RX mbufs during xfers in struct axe_chain.
All xfers are done against axe_buf allocated by usbd_alloc_buffer()
and nothing touched preserved mbufs during xfers.
2010-08-14 10:30:11 +00:00
tsutsui
a2004ecab6 Fix missed botch in previous. 2010-08-14 09:57:13 +00:00
tsutsui
6cc75bd4ed Make pointer arithmetics of RX buf in axe_rxeof() more readable
to avoid further confusion.
2010-08-14 09:02:17 +00:00
tsutsui
e1302a1d39 Apply rev 1.39 again.
The assignment is not dead, but just a leftover that causes a RX bug.

Now axe(4) can receive fragmented packets.
2010-08-14 08:42:15 +00:00
tsutsui
35680abbb1 Ugh, no, revert previous. 2010-08-14 08:10:49 +00:00
tsutsui
69bf29b2a3 Remove dead assignment. 2010-08-14 08:06:54 +00:00
jruoho
7aa250c707 Do not queue functions via sysmon_taskq(9) in the pmf(9) resume hooks.
There is a small and unlikely race when the drivers are loaded as modules;
suspend, resume, queue a function, and immediately unload the module.
2010-08-14 05:41:22 +00:00
jruoho
1f0e85dcbd Move the PIIX4-quirk to the MD file and disable T-states for PIIX4. 2010-08-14 05:13:20 +00:00
jruoho
1a6fcb7e2a Explicitly include <sys/evcnt.h>. 2010-08-13 19:51:54 +00:00
jruoho
25630fd34e Instead of packing structures that do not need to be __packed, remove two
CTASSERT(9) macros.  Fixes build failure on AMD64 noted by cegger@.
2010-08-13 19:48:25 +00:00
jakllsch
ad67ca3e3a Implement user-settable rfact in itesio.
Additionally, match on IT8721.
2010-08-13 19:28:26 +00:00
jruoho
3d52b10fd5 Remove some unnecessary locking. Mainly a leftover from previous revisions
where the dynamic maximum/minimum was used also when retrieving the current
state. The state-array itself changes only in C-states.
2010-08-13 18:44:24 +00:00
jruoho
6b9ff1079c Merge T-state a.k.a. throttling support for acpicpu(4).
Remarks:

  1.    Native instructions are supported only on Intel. Native support for
        other x86 vendors will be investigated. By assumption, AMD and others
        use the I/O based approach.

  2.    The existing code, INTEL_ONDEMAND_CLOCKMOD, must be disabled in
        order to use acpicpu(4). Otherwise fatal MSR races may occur.
        Unlike with P-states, no attempt is done to disable the existing
        implementation.

  3.    There is no rationale to export controls to user land.

  4.    Throttling is an artefact from the past. T-states will not be used for
        power management per se. For CPU frequency management, P-states are
        preferred in all circumstances. No noticeable additional power savings
        were observed in various experiments. When the system has been scaled
        to the highest (i.e. lowest power) P-state, it is preferable to move
        from C0 to deeper C-states than it is to actively throttle the CPU.

  5.    But T-states need to be implemented for passive cooling via acpitz(4).
        As specified by ACPI and Intel documents, these can be used as the
        last line of defence against critical thermal conditions. Support
        for this will be added later.
2010-08-13 16:21:50 +00:00
pooka
86d75f6695 truncate pcap output file 2010-08-13 11:45:47 +00:00
pooka
b97bdf9424 Include a timestamp in the frame header. When converting to pcap,
it can give some idea of when packets were sent.

nb. it's the sending host's timestamp, not an observer timestamp
like in the typical pcap case.
2010-08-13 10:13:44 +00:00
pooka
ce68b7ae71 Include a pointer to the beginning of the buffer and add support
to the packet dumper.  This helps in situations where the juicy
details are in a bus multiple generations old.
2010-08-12 21:41:47 +00:00
haad
15b01eef79 dd dm driver to XEN configs because they do not have modules working yet.
This will enable using LVM by default on XEN DOM0 hostings running NetBSD.

Change suggested by Sam Fourman.
2010-08-12 20:16:27 +00:00
pooka
38800eaa1c further simplify & fix calculations 2010-08-12 18:39:54 +00:00
pooka
6461f6dd05 Recognize ``-'' for stdout. allows piping output to tcpdump -r - 2010-08-12 18:22:40 +00:00
pooka
d5a83df798 * include a magic number in the bus format
* simplify offset calculations by making them start from beginning of data
2010-08-12 18:17:23 +00:00
pooka
36e63e6874 Make shmif memory access slightly more sane. Create a header which
is shared by the interface and the bus analyzer.
2010-08-12 17:33:55 +00:00
tsutsui
7049a3dc1c Add acphy(4), which can be found with aue(4). 2010-08-12 17:23:23 +00:00
pooka
3b2b85fd24 pass Wall 2010-08-12 17:00:41 +00:00
pooka
6790af89a6 Do not return a garbage vnode in vpp if fhtovp fails.
Fixes PR kern/43745 for nfs.
2010-08-12 09:41:10 +00:00
hannken
559469276d ffs_reclaim: don't free an already free inode. This may happen when
ffs_fhtovp() gets a free inode and releases it.
2010-08-12 07:41:49 +00:00
jruoho
c4e35077eb Three small things: (1) fix off by one, (2) protect the cached P-state
(required for interaction with T-states), and (3) use aprint_debug(9)
instead of the ACPI_DEBUG_PRINT(x) macro for the dynamic frequency changes
(for the time being, people need easier way to observe the dynamic changes).
2010-08-12 06:17:14 +00:00
macallan
50603223e7 look for DDC data in both EDID and edid properties so we can use firmware
provided data on my XVR-100
2010-08-11 19:14:26 +00:00
jruoho
aa6fdddc15 Properly protect against garbage values. 2010-08-11 18:15:52 +00:00
macallan
ba9742b0ee Make the movement-while-tapping threshold smaller so moving the cursor by a
few pixels won't trigger a button event. This should probably become a sysctl
knob.
While there, remove some commented out stuff and fix a typo.
2010-08-11 16:54:10 +00:00
jruoho
675dfd8bb3 Print the state information only once. The per-CPU information was quite
pointless as identical parameters are expected across processors.
2010-08-11 16:41:19 +00:00
jruoho
7a63961323 Check the 'sc->sc_cold' flag also in P-state code, and set this flag once
we start the detachment routine.
2010-08-11 16:22:18 +00:00
pooka
49f08a7073 Define ioconf to create locators.h, which is now required by acpiverbose. 2010-08-11 14:50:38 +00:00
pgoyette
4973fb4e5e Remove extra char - not sure where that came from (duplicated vi command?)
I really need more caffeine.

Thanks pooka@ for noticing.
2010-08-11 13:26:25 +00:00
jruoho
33733d6120 Add a small additional check for the validity of the GAS register. 2010-08-11 13:02:59 +00:00
pooka
65028c6bf3 Add a little utility to convert shmif bus traffic to a pcap file
which can be then examined with tcpdump -r, wireshark, etc.
2010-08-11 12:41:09 +00:00
pooka
e2f111efb1 * remove some magic numbers from the code
* include bus version number in header just in case we want to examine
  bus traffic at some point in the future
2010-08-11 12:10:39 +00:00
pgoyette
bf43b300a1 Keep condvar wmesg within 8 char limit 2010-08-11 12:04:49 +00:00
pgoyette
d591fa52b1 Revert previous - changes here are irrelevant to NetBSD
Need more caffeine.
2010-08-11 11:57:36 +00:00
pgoyette
fa0f1ddde5 Keep condvar wmesg within 8 char limit 2010-08-11 11:51:06 +00:00
pgoyette
96dea8fbcd Keep condvar wmesg within 8 char limit. 2010-08-11 11:49:09 +00:00
jruoho
0963b3f611 Use a define instead of a magic constant for the arbitrary P-state limit. 2010-08-11 11:48:21 +00:00
pgoyette
5ef3a6df9b Keep condvar wmesg within 8 char limit 2010-08-11 11:47:29 +00:00
pgoyette
8be3483a20 Keep condvar wmesg within 8-char limit 2010-08-11 11:46:32 +00:00
pgoyette
24d9c402d1 Keep condvar wmesg's within 8-char limit 2010-08-11 11:43:13 +00:00
pgoyette
99d809cb2e Keep condvar wmesg's within 8-char limit. 2010-08-11 11:40:51 +00:00
pgoyette
aa30923a4e Keep condvar wmesg within 8-char limit 2010-08-11 11:32:58 +00:00
pgoyette
343c435ecf Keep condvar wmesg within 8-char limit. 2010-08-11 11:31:45 +00:00
pooka
abddd18860 ahem, min -> max in previous 2010-08-11 11:06:42 +00:00
jruoho
7598fbdbbd Pretty printing. 2010-08-11 10:44:07 +00:00
gsutre
8e80a0a5b0 acpi_print_tree: print ACPI and PCI autoconf(9) device names.
ok jruoho@
2010-08-11 10:32:42 +00:00