Commit Graph

192980 Commits

Author SHA1 Message Date
jruoho
a11df9606e Document P-states. Update notes about C-states. Shorten CAVEATS. 2010-08-09 06:36:18 +00:00
jruoho
eb3ca71af1 Downgrade the currently supported maximum C-state to C1. There appears to be
timer-related interrupt issues also in C2. With C1 it is guaranteed that
acpicpu(4) will not cause any slowdowns due stalled local APIC timer.
2010-08-09 05:00:24 +00:00
jruoho
c72ee2046d When retrieving the current frequency, scan all available P-states.
Only use the dynamic maximum when setting a frequency.
2010-08-09 04:27:07 +00:00
jruoho
cf677a3b1e Move the sysctl function pointers used by acpicpu(4) to x86/cpu.c.
Rename these so that the same pointers may be used in other parts.
2010-08-09 04:18:48 +00:00
chs
80ea2102a7 add more spdmem instances for HP xw-series workstations.
add se (scsi ethernet).
2010-08-08 20:04:54 +00:00
chs
2844384429 add more (commented-out) spdmem instances for HP xw-series workstations. 2010-08-08 20:04:24 +00:00
jruoho
d4f0008ba0 jmcneill@: do not touch the bus_space(9) handle. 2010-08-08 18:47:54 +00:00
chs
4a968b527b merge sparc and sparc64 fsr.h into one file.
add the missing FSR_TT_* definitions.
fix FSR_FTT_MASK.  fix the V9 FCC fields.
2010-08-08 18:44:15 +00:00
chs
b078ae7e33 print the correct error code if nfs_mount() fails. 2010-08-08 18:38:31 +00:00
chs
692e1d3085 fix emul state tracking for exit vs exit_group on linux. 2010-08-08 18:31:50 +00:00
chs
6b187f6957 add more (commented-out) spdmem instances for HP xw-series workstations. 2010-08-08 18:28:00 +00:00
chs
ae965fa232 only print the boot-time message if we're being verbose. 2010-08-08 18:25:14 +00:00
jruoho
337dd64961 Improve error and debug messages. 2010-08-08 18:25:06 +00:00
chs
ef8ada5da8 move a debug printf to FD_DEBUG. 2010-08-08 18:24:34 +00:00
chs
6687423755 remove an unused variable. 2010-08-08 18:22:39 +00:00
chs
c426f57d8c update a comment. 2010-08-08 18:21:50 +00:00
chs
060a6ca0dc remove some unreachable debug code. 2010-08-08 18:19:56 +00:00
chs
f5b2ba770a enable DDB_HISTORY_SIZE since DDB is enabled. 2010-08-08 18:19:26 +00:00
chs
e7c3078b27 fix copy{in,out}{,str}() to return the error returned by uvm_fault().
part of PR 41813 that I missed earlier.
2010-08-08 18:18:58 +00:00
chs
e15697fcb4 in genfs_getpages(), mark the vnode dirty (ie. add to syncer worklist
and set VI_WRMAPDIRTY) after we have busied the pages rather than
before.  this prevents other threads calling genfs_do_putpages() from
marking the vnode clean again while we're in the process of creating
new writable mappings, since such threads will wait for the page(s) to
become unbusy before proceeding.
fixes the problem recently reported by hannken@ on tech-kern.
2010-08-08 18:17:11 +00:00
chs
0c9fb0464e Fix several panics that can be caused by applications using
bad segment register values with setcontext() or sigreturn().
2010-08-08 18:13:54 +00:00
jruoho
5520795ab6 As per jmcneill@'s suggestion, improve error reporting. 2010-08-08 18:10:34 +00:00
jruoho
9f5abae832 Add P-states. (I blame the ease of using modules.) 2010-08-08 17:21:14 +00:00
jruoho
1e80cb5566 Remove bogus check and allow all CPUs to use I/O-based P-states. 2010-08-08 17:05:50 +00:00
jruoho
53e8f6c919 Merge P-state support for acpicpu(4).
Remarks:

  1.    All processors (x86 or not) for which the vendor has implemented
        ACPI I/O access routines are supported. Native instructions are
        currently supported only for Intel's "Enhanced Speedstep". Code for
        "PowerNow!" (AMD) will be merged later. Native support for VIA's
        "PowerSaver" will be investigated.

  2.    Backwards compatibility with existing userland code is maintained.
        Comparable to the case with cpu_idle(9), the ACPI CPU driver
        installs alternative functions for the existing sysctl(8) controls.
        The "native" behavior (if any) is restored upon detachment.

  3.    The dynamic nature of ACPI-provided P-states needs more investigation.
        The maximum frequency induced (but not forced) by the firmware may
        change dynamically. Currently, the sysctl(8) controls error out with
        a value larger than the dynamic maximum. The code itself does not
        however yet react to the notifications from the firmware by changing
        the frequencies in-place. Presumably the system administrator should
        be able to choose whether to use dynamic or static frequencies.
2010-08-08 16:58:41 +00:00
chs
be240ba6c0 make this compile with DIAGNOSTIC and PSH3TP_DEBUG. 2010-08-08 16:51:34 +00:00
chs
59de0085a0 fix build problem. 2010-08-08 16:27:30 +00:00
gsutre
110cd99be7 acpi_pcidev_scan: discard invalid PCI addresses. 2010-08-08 16:26:47 +00:00
chs
7609aebff3 remove dup "options KTRACE". 2010-08-08 16:25:49 +00:00
chs
0570b110f8 make this compile with DIAGNOSTIC. 2010-08-08 16:23:40 +00:00
wiz
032d0f9a13 Remove trailing whitespace, and mark up file name suffix. 2010-08-08 15:23:28 +00:00
pgoyette
f792e9e485 Filling in a few more gaps. 2010-08-08 14:26:22 +00:00
wiz
23f2eb7327 gcc-4.5.1 out. 2010-08-08 13:42:44 +00:00
phx
daa6745796 Erroneously committed test code. Reverted to previous revision. 2010-08-08 11:58:26 +00:00
phx
ba6687ff1b Minor source cleanup. Suggested by Kiyohara. 2010-08-08 11:54:45 +00:00
tsutsui
f54755843c Add options PXA2X0_LCD_WRITETHROUGH to improve console speed. 2010-08-08 11:25:53 +00:00
tsutsui
0d803bc828 Allow pxa2x0_lcd driver mapping screen buffer memory cachable with
write-through map (i.e. map it without BUS_DMA_COHERENT) since
currently all DMA data transfers are memory to device only.

Disabled by default, but enabled by "options PXA2X0_LCD_WRITETHROUGH"
or setting pxa2x0_lcd_writethrough = 1 in a kernel binary.

Tested on WS003SH by me and on WS011SH by jun@, and console output speed
is improved ~three times faster than coherent (uncached) mapping.

XXX: should we have a flag like BUS_DMA_WRITETHROUGH in MI bus_dma(9)?
2010-08-08 11:24:52 +00:00
kiyohara
a21349fd63 Must disable LCD Controller in pxa2x0_lcd_attach_sub(), if already enabled.
We wait to become disable LCD in pxa2x0_lcd_initialize().
2010-08-08 09:33:35 +00:00
isaki
59d7957ede white space -> tab. 2010-08-08 09:33:05 +00:00
isaki
bec4c1ae51 Probe not only ctrl address but also bank window address.
This prevents the wrong matching when other boards like
Neptune-X exist.  Reported by Yasushi Oshima.
2010-08-08 09:30:29 +00:00
kiyohara
e053a5d619 Use EVBARM_BOARDTYPE to print 'NetBSD/evbarm(*)'. That defined to
std.gumstix and std.overo.
2010-08-08 09:00:15 +00:00
jruoho
a1e649e9b2 Note the acpiverbose module. 2010-08-08 05:02:59 +00:00
jakllsch
a5bc0d2495 Like some other USB devices, register cdce(4) with pmf(9).
Addresses PR#40949.
2010-08-08 01:57:24 +00:00
jym
1c41482e58 Some core i7 CPUs report model 0c. In this case, check for the extended
model value.

Required to avoid faulting on rdmsr(MSR_FSB_FREQ) early during boot.

Will ask for a pull-up. This affects GENERIC, and most likely, install iso
too.

XXX quick hack. Obtaining FSB through ACPI should be cleaner.
2010-08-08 00:48:46 +00:00
pgoyette
11ed7da809 Fix cut-&-paste error 2010-08-08 00:44:38 +00:00
joerg
2337df1ccf + libmj_pic.a 2010-08-08 00:23:26 +00:00
jym
fc57975766 Use aprint_debug_dev(). Caught thanks to coccinelle. 2010-08-07 22:31:57 +00:00
pgoyette
6241e2c44e Add documentation for module_find_section() 2010-08-07 22:21:30 +00:00
cegger
ca335a7d68 acpi_madt.h is gone 2010-08-07 21:58:34 +00:00
christos
36eb8b89e2 Add bsd.ioconf.mk now that we are installing it. You must be able
to type 'make obj' and have it work from any directory, and if you
try from /usr/src/compat, this does not work because the build does
not automatically add -m $topdir/share/mk in that case.
2010-08-07 21:53:18 +00:00