Commit Graph

96237 Commits

Author SHA1 Message Date
plunky
8094317b1b constify sockopt in the PRCO_SETOPT path 2008-08-16 21:51:43 +00:00
drochner
d564f76750 fix my last commit: add missing "break"s, from Marcus Glocker 2008-08-16 15:41:37 +00:00
dan
f24c599f2e mark callout mpsafe, next comes moving some of the (silly) estimator
work from the initial collection to the later callout.
2008-08-16 13:07:30 +00:00
dan
1ace407f7e g/c unused #define 2008-08-16 12:33:18 +00:00
dan
7e7054bfea replace splsoftclock protection of the rndpool and related state with
another mutex.
2008-08-16 12:23:34 +00:00
dan
b674194f5c replace splvm() protection of sample queue and device state with a mutex 2008-08-16 10:19:21 +00:00
cegger
d546809216 In Xen 3.2 (c/s 15985) the semantic of the HVM domain builder changed:
hvm: Avoid need for ugly setcpucontext() in HVM domain builder by
pre-setting the vcpu0 to runnable inside Xen, and have the builder
insert a JMP instruction to reach the hvmloader entry point from
address 0x0.

So we have to treat guest physical address 0x0 like every one
or we end in a page fault loop when launching a HVM guest, otherwise.

XXX Keep this for Xen2 as this change hasn't been tested there.
2008-08-16 08:02:20 +00:00
dan
5249a0ab2d remove unnecessary splvm() calls around simple pool_get/put, obsoleted
by pool internal locks since vmlocking merged.
2008-08-16 07:37:14 +00:00
hannken
9d026d04ef ffs_suspendctl: make sure everything is on disk and the on disk log is empty. 2008-08-15 17:32:32 +00:00
simonb
fa98959cf6 When receiving a chain with multiple mbufs (eg a jumbo frame) make sure
the last mbuf in the chain doesn't have a negative length when adjusting
lengths when removing the FCS (which leads to a panic in sbcompress()).

Fix contributed by Wasabi Systems.
2008-08-15 15:45:52 +00:00
tsutsui
348da66549 Add accept filters to GENERIC-like kernels. 2008-08-15 15:17:18 +00:00
pooka
4b9a5d92cf Since putter wants complete frames, make sure we can hand them to it. 2008-08-15 15:02:28 +00:00
tsutsui
010a33bb6c Add accept filters to sync with GENERIC. 2008-08-15 15:02:25 +00:00
tsutsui
e147fd9260 - remove duplicated and commented out nadb device entries
(with some tweaks on comments for them)
- enable sgsmix0 at iic0 for beige G3 machines

Suggested by macallan@ on port-macppc.
2008-08-15 14:41:26 +00:00
jmcneill
3db8886a8e AD1984: Take advantage of pin auto-config and auto-naming. 2008-08-15 13:47:25 +00:00
jmcneill
750f206837 Skip unconnected pins when creating a selector connlist. 2008-08-15 11:22:59 +00:00
hannken
8c66a4c56f Fail requests from pagedaemon that need to copy-on-write. 2008-08-15 10:31:24 +00:00
simonb
3c2780094d Wrap long line. 2008-08-15 03:14:54 +00:00
matt
6ba7748097 Don't call null handlers 2008-08-15 03:14:20 +00:00
matt
78ab21fced Change subr_autoconf.c to use kmem_{*alloc,free}.
in pmf_deregister, don't constantly realloc.  just shift everything closer
to the front.  and then if empty, free.  When adding, add space for 4 more
entries.
Instead of n * sizeof(type) use C99 sizeof(type [n]).
2008-08-15 03:08:26 +00:00
matt
726d1181a8 Use __arraycount when appropriate 2008-08-15 01:31:02 +00:00
jmcneill
22870f3a1f PR#38860: azalia record does not work on Realtek ALC662-GR
o Don't add unconnected pins to generated mixer list, should help
    make auto-generated mixer lists slightly easier to work with.
  o Move COP_AWTYPE_AUDIO_MIXER type knobs to mix.* rather than polluting
    the inputs.* namespace and giving a few more characters for the
    auto-generated names.
  o Introduce an alternate to generic_mixer_init, generic_mixer_autoinit.
    generic_mixer_autoinit uses COP_AWTYPE_PIN_COMPLEX "default
    configuration" capability flags to determine proper pin widget control
    and eapd configuration, as well as creating virtual outputs.master,
    inputs.dac, and record.volume mixer controls that mirror the default
    dac and adc controls.
  o Introduce generic_mixer_init_widget which uses COP_AWTYPE_PIN_COMPLEX
    "default configuration" device type, gross location, and geometric
    locations to guess friendlier mixer control names.
  o On ALC662-GR, the primary ADC NID is 0x09, not 0x08, so correct the
    convgroupset in alc662_init_dacgroup.

Audio capture now works on ALC662-GR (as found in the ASUS EeePC 701).
Note that only ALC662-GR uses generic_mixer_autoinit and
generic_mixer_init_widget; other codecs will need to be tested and
converted to address PR#38578: azalia_codec.o is too large.
2008-08-14 23:43:27 +00:00
matt
e79910d9d4 Only deallocate dv_private if we had allocated it. 2008-08-14 21:51:08 +00:00
matt
8165c33c80 Implement following constants and add support their to the UFS family of file
systems:
	_PC_2_SYMLINKS
	_PC_SYMLINK_MAX

From andy dot shevchenko at gmail dot com.
2008-08-14 16:19:25 +00:00
matt
e8400bf14f Now that we track pages used by any of the kernel memory allocators,
keep a count of them and export it as a sysctl node machdep.kmpages
2008-08-14 14:54:32 +00:00
is
9fe720ba73 Fixed typo in message text noticed by Ilya Dogolazky. No functional change. 2008-08-14 09:08:42 +00:00
tsutsui
3cb8bc3644 Make sure to free an allocated mbuf on failure path. 2008-08-14 03:48:43 +00:00
tsutsui
7f6ad4b2a4 Set MEC_TXCMD_TXINT every MEC_NTXDESC_INTR packets
if more than half txdescs have been queued because
TX_EMPTY interrupts will rarely happen if TX queue is so stacked.
2008-08-14 03:43:50 +00:00
yamt
ff5b821d0d revert some parts of the following commit.
(given that it reverted other developers' changes saying
"misc/cosmetic changes", i assume that it was unintentional.)
this makes a watchdog on my box (8086:24d0) work again.
    ----------------------------
    revision 1.1
    date: 2007/08/26 16:49:47;  author: xtraeme;  state: Exp;
    branches:  1.1.2;
    Some changes for the ichlpcib driver:

    - Moved to x86/pci, so that EM64T systems running NetBSD/amd64 can use it.
    - Added support for the TCO on ICH6 or newer chipsets, adapted from
      FreeBSD.
    - Added timecounter support for the power management timer, adapted from
      OpenBSD.
    - Plus some misc/cosmetic changes.

    Thanks to yukonbob on irc@freenode for testing the TCO part on ICH4-M.
    Tested by me with ICH7 too.
2008-08-14 01:20:30 +00:00
yamt
34272c569e remove always-true conditionals. 2008-08-14 00:47:13 +00:00
drochner
fdb6ecdb00 free memory on detach, fixes memory leak, from Andreas Jacobs per
PR kern/39322
2008-08-13 09:43:56 +00:00
matt
937968755d Fix a few more corner cases. Always KMPAGE or pages with unmanaged writeable
kernel mappings as modified.  Only ever set DIRTY bit is DMOD is true and
NC is false.  Don't modify unmanaged mappings in pmap_clearbit.
2008-08-13 06:05:54 +00:00
tsutsui
858999c6f4 Fix a critical botch (inverted test) I put in rev 1.21. 2008-08-12 19:45:22 +00:00
sborrill
c7b0526b9b Increase number of menu options to 20.
Add support for switching menu format between numbers and letters. Will
prefer numbers, but will automatically switch to letters if > 9 options
and timeout > 0 (i.e. need a single key press to choose).
Menu format can be explicitly set in boot.cfg file.
Add support for reading numeric choices of more than 1 digit.
2008-08-12 17:56:05 +00:00
hans
094d45b30f Add new accelerated driver for SPX graphics found in some VAXstations,
remove old broken lcspx driver. This is a bugfixed and refactored
version of the spx driver originally developed by Blaz Antonic in 2005.
OK'ed by mhitch.
2008-08-12 17:54:47 +00:00
macallan
7f91f2bd1b actually implement smart battery support
From Magnus Henoch.
This needs more testing, especially on older PowerBooks which may have more thanone battery.
2008-08-12 17:16:16 +00:00
drochner
a1d4089483 fix an off-by-one in isochronous interval check, and streamline some
frame / microframe calculation, avoiding overestimation of frames needed,
reviewed by Jared D. McNeill
2008-08-12 16:35:06 +00:00
drochner
95effdc79e fix an inconsistency in a check for invalid configuration index vs. value;
noticed by Frank Wille in PR kern/39211, but unrelated to the problem
described (The check can practically never be hit.)
2008-08-12 16:30:42 +00:00
matt
0e6db102ac Fix thinko (brain fart) 2008-08-12 15:16:31 +00:00
thorpej
8d9a49fc0e turnstile_block(): When an LWP puts its turnstile onto a sync object's
turnstile chain, assert that its turnstile's free list pointer is NULL.
2008-08-12 14:13:34 +00:00
hannken
93d3ff0e45 Deny read/write access to snapshot vnodes. We use fss(4) to read from
snapshots.  With this policy in place:

- Separate the snapshot vnode lock from the snapshot common lock.
  Snapshots no longer need recursive vnode locks.

- Use a mutex (si_snaplock) to serialize creation, deletion, reading and
  writing of snapshots.

- Move ffs_read() for snapshots into ffs_snapshot.c.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>

While here change ffs_copyonwrite() to fail requests from pagedaemon that need
to copy-on-write.
2008-08-12 10:14:37 +00:00
pooka
4b5f80486c Make it possible to control starting of threads per env variable
instead of only at compile-time.
2008-08-12 10:04:57 +00:00
skrll
ad5c6971b7 Define _ASM_LS_CHAR as '!' on hppa. 2008-08-11 21:52:10 +00:00
skrll
a4f4c1ce35 Allow the asm line separator (default ';') to be overridden in the
RAS_*_ASM* macros.
2008-08-11 21:51:14 +00:00
skrll
1bd9dc93c6 Fix copy{in,out}str on hppa by
1) not attempting to copy anything if size is initially 0.
	2) returning ENAMETOOLONG if we ran out of space.
2008-08-11 10:36:41 +00:00
simonb
d3111754f6 Add polling support to ld_twe_flush().
Fixes the "cpu_switcho: switching above IPL_SCHED" panic for ld@twe
disks on shutdown in kern/38655.
2008-08-11 06:46:10 +00:00
simonb
82bb1c2ff8 Add a flags argument to the ld(4) flush handlers, and call these with a
"poll" flag when called from ld_shutdown().

This is the infrastructure part of kern/38655 - in itself it doesn't
fix the panic referenced in that PR.

XXX: At least ld_twa.c and perhaps ld_iop.c and ld_icp.c need to
check for this new poll flag and do something useful.
2008-08-11 06:43:37 +00:00
yamt
1907407b97 constify 2008-08-11 02:51:01 +00:00
yamt
a5cd2e50c6 make pcg_dummy const to catch bugs earlier. 2008-08-11 02:48:42 +00:00
yamt
53d1c25e34 add some KASSERTs. 2008-08-11 02:46:40 +00:00