Commit Graph

192894 Commits

Author SHA1 Message Date
pooka
f87f7774e0 Add -G, which turns consistency check errors in warnings. The
current testing purpose is to create a file system with
block size > MAXPHYS.

(the check doesn't make that much sense anyway in these days of
mobile file systems, since we're interested in MAXPHYS where we
attempt to mount the file system, not where we happen to create it)
2010-08-09 17:20:57 +00:00
pooka
6e5ca1ed9e add a linefeed to the previous 2010-08-09 17:12:18 +00:00
jruoho
943aec6199 Fix a typo. Sypported indeed. 2010-08-09 16:13:21 +00:00
jruoho
c832263680 On systems where both the existing EST code and the one provided by ACPI are
functional, the previously loaded EST code may have used frequencies that
are not present in the BIOS. This will cause failures since acpicpu(4) will
treat these unknown frequencies as errors. "Fix" this by initializing the
cached P-state to P0, regardless of what the true state might be.
2010-08-09 15:56:45 +00:00
pooka
5140c8efdf Return error if we try to mount a file system with block size > MAXBSIZE.
Note: there is a billion ways to make the kernel panic by trying
to mount a garbage file system and I don't imagine we'll ever get
close to fixing even half of them.  However, for this one failing
gracefully is a bonus since Xen DomU only does 32k MAXBSIZE and
the 64k MAXBSIZE file systems are out there (PR port-xen/43727).

Tested by compiling sys/rump with CPPFLAGS+=-DMAXPHYS=32768 (all
tests in tests/fs still pass).  I don't know how we're going to
translate this into an easy regression test, though.  Maybe with
a hacked newfs?
2010-08-09 15:50:13 +00:00
jruoho
3d0f130a61 Revert the previous changes to EST. The used hack had an obvious flaw:
the acpicpu(4) driver should attach even if the existing frequency management
code fails to attach, mainly because ACPI is the only proper way to deal
with EST on new Intel system.

Use a more drastic hack to deal with this: when acpicpu(4) attachs, it tears
down any existing sysctl(8) controls and installs identical ones in place.
Upon detachment, the initialization function of the existing EST is called.
2010-08-09 15:46:17 +00:00
pooka
a2530e0bfd may be __unused 2010-08-09 15:39:41 +00:00
pooka
8ae636d82b +tp 2010-08-09 15:10:20 +00:00
pooka
96f76684bb test that kernel reponds to ping 2010-08-09 15:08:43 +00:00
pooka
576ad32eba add a simple pingtest 2010-08-09 15:07:51 +00:00
jruoho
af42249343 Remove a redundant function. 2010-08-09 13:41:38 +00:00
wiz
f6a2c3c5c1 Group hyphens differently. 2010-08-09 10:57:23 +00:00
gsutre
474664a934 acpi_pcidev_scan: attach PCI information only to working devices.
ok jruoho@
2010-08-09 09:36:42 +00:00
jruoho
021de39995 Fix typo. 2010-08-09 06:40:33 +00:00
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