jordan [Fri, 23 Jul 2010 20:21:58 +0000 (20:21 +0000)]
Don't initialize acpiec pointer in acpi_softc until registration succeeds
ok deraadt
jordan [Fri, 23 Jul 2010 20:19:21 +0000 (20:19 +0000)]
Control/data registers were being mapped with swapped io space tags
Fix naming & order of tag to be clear
ok deraadt
millert [Fri, 23 Jul 2010 20:14:23 +0000 (20:14 +0000)]
Block all signals before sending SIGTERM to all non-system processes.
This ensures that we reach the call to reboot(2) without being killed
by some other process. OK deraadt@ nicm@
jakemsr [Fri, 23 Jul 2010 19:59:09 +0000 (19:59 +0000)]
bring back changes in uaudio.c r1.83, this time remembering to commit
uaudioreg.h. sorry about that.
sync endpoints allow for the sample clock on USB audio devices to not
be synchronized to the USB clock. the sync endpoint gives information
on how much data to send to the data endpoint. although devices that
require sync endpoints will "work" when the sync endpoint inormation
is ignored, there is a possibility of static, echoing, or any other
type of clock desync error.
requires some small changes to existing code:
* tighten up checks for whether a setting needs/supplies a sync
endpoint. ignore settings that need a sync endpoint but don't
supply one. previously all settings that require a sync endpoint
were ignored.
* if a sync endpoint is being used, use the same denominator for
fractional samples as the sync endpoint uses (2**16).
this only implements playback sync endpoints. recording sync
endpoints are an odd concept: the driver would control the clock
rate of the device. there may be such devices, but I can't even
imagine how that could be reliably implemented. I guess you would
sync to the USB clock or the system clock ... but then, what's the
point?
jordan [Fri, 23 Jul 2010 18:38:46 +0000 (18:38 +0000)]
Fix searchname to handle short name segments, remove hack in acpidock.
ray [Fri, 23 Jul 2010 17:31:54 +0000 (17:31 +0000)]
Improve English.
Help by jmc, earlier version OK thib krw
deraadt [Fri, 23 Jul 2010 16:14:54 +0000 (16:14 +0000)]
AMD amd64 errara are not on the i386 install media, since there is often
not room. we do place them on the amd64 install media though, since many
of them matter more for 64 bit mode.
kettenis [Fri, 23 Jul 2010 15:10:16 +0000 (15:10 +0000)]
Change the strategy for using the FPU in the kernel. The kernel FPU state
is now shared with all processes/threads. As a result, you can now use the
FPU in true process context (instead of just in kernel threads), but you
need to make sure you restore the default FPU state before calling
fpu_kernel_exit() if you change rounding mode, precision or exception masks.
Lots of discussion with thib@ and Mike Belopuhov.
ok thib@, deraadt@
kettenis [Fri, 23 Jul 2010 14:56:31 +0000 (14:56 +0000)]
Don't leak the contents of the FPU and SSE registers between processes.
ok deraadt@
sthen [Fri, 23 Jul 2010 14:46:28 +0000 (14:46 +0000)]
revert last commit, unbreaking the tree; was missing a macro definition
presumably from a missing commit to a header file. go ahead kettenis@ todd@
mglocker [Fri, 23 Jul 2010 14:36:49 +0000 (14:36 +0000)]
Sync.
mglocker [Fri, 23 Jul 2010 14:35:56 +0000 (14:35 +0000)]
Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.
OK todd@, jakemsr@
miod [Fri, 23 Jul 2010 14:19:02 +0000 (14:19 +0000)]
Make sure the u area of new processes is zero-filled; this got lost in
1.119.
jakemsr [Fri, 23 Jul 2010 12:17:48 +0000 (12:17 +0000)]
support for playback sync endpoints
sync endpoints allow for the sample clock on USB audio devices to not
be synchronized to the USB clock. the sync endpoint gives information
on how much data to send to the data endpoint. although devices that
require sync endpoints will "work" when the sync endpoint inormation
is ignored, there is a possibility of static, echoing, or any other
type of clock desync error.
requires some small changes to existing code:
* tighten up checks for whether a setting needs/supplies a sync
endpoint. ignore settings that need a sync endpoint but don't
supply one. previously all settings that require a sync endpoint
were ignored.
* if a sync endpoint is being used, use the same denominator for
fractional samples as the sync endpoint uses (2**16).
this only implements playback sync endpoints. recording sync
endpoints are an odd concept: the driver would control the clock
rate of the device. there may be such devices, but I can't even
imagine how that could be reliably implemented. I guess you would
sync to the USB clock or the system clock ... but then, what's the
point?
jakemsr [Fri, 23 Jul 2010 11:47:50 +0000 (11:47 +0000)]
ANSI/style(9), no binary change
dlg [Fri, 23 Jul 2010 09:41:16 +0000 (09:41 +0000)]
matthew@ noted a possible misuse of the rwlock used to protect vscsi
from being opened by multiple processes at the same time. then he
pointed out that pool_get can sleep in the middle of scsi_cmd,
during which time the process processing the vscsi requests can go
away.
this uses a state variable to protect vscsi from multiple opens
which is checked by all the process and scsi midlayer entrypoints.
it avoids a potential sleep in the middle of the scsi_cmd handler
by moving to iopools.
lots of tweaks and feedback by matthew@
ray [Fri, 23 Jul 2010 09:14:58 +0000 (09:14 +0000)]
Sync with cvs:
Clean up struct tm handling. Instead of calling gmtime/localtime
and making copies (among other weird dances), use reentrant versions.
Not being able to tell the time is a fatal error, so die if that
happens.
Diff originally from nicm.
OK nicm xsa
ray [Fri, 23 Jul 2010 09:11:10 +0000 (09:11 +0000)]
Clean up struct tm handling. Instead of calling gmtime/localtime
and making copies (among other weird dances), use reentrant versions.
Not being able to tell the time is a fatal error, so die if that
happens.
Diff originally from nicm.
OK nicm xsa
dtucker [Fri, 23 Jul 2010 08:49:25 +0000 (08:49 +0000)]
Ciphers is documented in ssh_config(5) these days
ray [Fri, 23 Jul 2010 08:31:19 +0000 (08:31 +0000)]
Rename a bunch of variables and functions, removing the cvs_/rcs_
prefixes to reduce differences between cvs and rcs files.
"yes!" nicm
mlarkin [Fri, 23 Jul 2010 08:21:12 +0000 (08:21 +0000)]
regen
mlarkin [Fri, 23 Jul 2010 08:19:52 +0000 (08:19 +0000)]
SIS 86C202 is not a VGA device, it's an AGP bridge. Use a better
description for this device.
ok kettenis@
jsg [Fri, 23 Jul 2010 07:47:12 +0000 (07:47 +0000)]
Manuel Bouyer rescinded clauses 3 and 4 of his license text.
matthew [Fri, 23 Jul 2010 07:21:02 +0000 (07:21 +0000)]
Omit more IPI code from non-MP kernels. Found using --gc-sections.
ok deraadt@
phessler [Fri, 23 Jul 2010 06:43:00 +0000 (06:43 +0000)]
Add suspend/resume logic.
based heavily on the wpi change by kettenis@
OK deraadt@, kettenis@, damien@
ray [Fri, 23 Jul 2010 03:13:51 +0000 (03:13 +0000)]
Permit a few more syscalls for named to run.
OK deraadt
deraadt [Fri, 23 Jul 2010 02:50:04 +0000 (02:50 +0000)]
For suspend/reume, ATI IXP chips (might) need 0x40-0x56 saved.. but
these the 6 registers already saved
jsg [Thu, 22 Jul 2010 21:52:17 +0000 (21:52 +0000)]
ansi. no binary change
kettenis [Thu, 22 Jul 2010 21:40:46 +0000 (21:40 +0000)]
Give the drive a little bit more time to complete the STANDBY IMMED command.
The ATA spec seems to suggest it may take up to 30s. This seems a little bit
long. To quote Theo: "by that time some drives have probably parked their own
heads in boredom". But it shouldn't hurt unless your drive is seriously
broken. Makes some laptops suspend much better.
ok deraadt@
nicm [Thu, 22 Jul 2010 21:10:51 +0000 (21:10 +0000)]
Fix a crash: if remain-on-exit is set and the pane has exited, the
buffers may not be valid, so do not try to disable/enable them when
switching to copy mode.
blambert [Thu, 22 Jul 2010 19:31:53 +0000 (19:31 +0000)]
getopt_long.c replaced getopt.c 6+ years ago; we can retire
the REPLACE_GETOPT macro, at long last
ok millert@
deraadt [Thu, 22 Jul 2010 18:11:16 +0000 (18:11 +0000)]
When suspending, save & restore as many registers as we can from the
pciide front-ends chips. More registers will have to added here, chip
by chip (warning messages about unknown chipsets, on resume, mean that
you should talk to me). Also call the wdc back-end (our child) to have
it reset the controller properly on resume. This makes all pciide that
we've tested unsuspend.
ok kettenis mlarkin
mlarkin [Thu, 22 Jul 2010 18:10:37 +0000 (18:10 +0000)]
First part of better pciide resume. Wake the channel by performing two
resets separated by a small delay (a delay intended to offend jsg who will
definitely want to fix it by checking for RDY instead)
Tested on a variety of amd and i386 hardware by myself and deraadt@
ok deraadt
millert [Thu, 22 Jul 2010 17:49:18 +0000 (17:49 +0000)]
Fix the "no changes" detection when a file has RCS keywords.
This is consistent with GNU RCS. Also g/c an unused variable.
OK xsa@ nicm@
thib [Thu, 22 Jul 2010 17:31:39 +0000 (17:31 +0000)]
Remove the VM_KMPAGESFREE sysctl. After the pmemrange
changes it was returing a constant 0, changing to cope
with those changes makes less sense then just removing
as it provides the user with no usefull information.
sthen@ grepped the port's tree for me and found not hits,
thanks!
OK deraadt@, matthew@
jsg [Thu, 22 Jul 2010 17:16:45 +0000 (17:16 +0000)]
Don't deref a NULL pointer if tap or tag are not specified in the
config file.
pirofti [Thu, 22 Jul 2010 17:16:10 +0000 (17:16 +0000)]
Clean the macros from puc(4). Now with correct logic.
Tested and okay sthen@.
matthew [Thu, 22 Jul 2010 15:59:46 +0000 (15:59 +0000)]
Fix a few more scsi_scsi_cmd() removal regressions, caught by
-Wuninitialized.
Silly typo in my first diff noticed by oga@ and krw@; ok krw@
kettenis [Thu, 22 Jul 2010 14:42:43 +0000 (14:42 +0000)]
Add suspend/resume logic. As discussed with phessler@, incorporating
suggestions by damien@.
thib [Thu, 22 Jul 2010 14:34:06 +0000 (14:34 +0000)]
Instead of trying to biowait on a buf that has errored, do the
right thing, throw it away by marking it as B_INVAL and setting
the B_ERROR flag and b_error to the errno that was returned.
B_RAW doesn't matter there.
Issue report my mlarkin@, this diff tested and confirmed to
fix the issue by mlarkin also, thanks!
OK krw@, beck@, deraadt@
deraadt [Thu, 22 Jul 2010 14:27:44 +0000 (14:27 +0000)]
Reset the keyboard controller on resume, and also alert the children
(pckbd and pms) to do their part
started by mlarkin, cleaned up by me
ok miod
deraadt [Thu, 22 Jul 2010 14:26:38 +0000 (14:26 +0000)]
Don't do anything on suspend/resume for now (there is a diff brewing,
but it has some problems still..)
deraadt [Thu, 22 Jul 2010 14:25:41 +0000 (14:25 +0000)]
Toggle the mouse through the disabled and enabled states when suspending
and restoring. Fixes most mice.
deraadt [Thu, 22 Jul 2010 14:19:47 +0000 (14:19 +0000)]
pretty large cleanup of SMALL_KERNEL
jordan [Thu, 22 Jul 2010 13:46:42 +0000 (13:46 +0000)]
Remove unused function prototypes
Add flags and type codes for AML resources
mglocker [Thu, 22 Jul 2010 13:32:24 +0000 (13:32 +0000)]
- Fix wrong ioctl structure documentation for VIDIOC_QUERYBUF, VIDIOC_QBUF,
and VIDIOC_DQBUF.
- Also document the VIDIOC_QUERYBUF part for the MMAP interface.
thib [Thu, 22 Jul 2010 12:47:40 +0000 (12:47 +0000)]
Fixes for AES CTR mode from mikeb:
o Fix up counter increment for buffers larger then 64 bytes, by
calling the increment routine before loading the IV into the
encryption routine input register.
o In aesni_encdec() regenerate the IV for every new request.
Also use nice defines instead of magic constants for the size
of ses_iv.
giovanni [Thu, 22 Jul 2010 12:33:29 +0000 (12:33 +0000)]
Let systat -N states resolve network addresses
help and ok sthen@ lum@
ok canacar@
mglocker [Thu, 22 Jul 2010 11:58:03 +0000 (11:58 +0000)]
Replace strncat() with strlcat().
mglocker [Thu, 22 Jul 2010 11:55:26 +0000 (11:55 +0000)]
Change include ordering.
mglocker [Thu, 22 Jul 2010 11:53:24 +0000 (11:53 +0000)]
Initial regression test program for video(4).
ajacoutot [Thu, 22 Jul 2010 10:42:37 +0000 (10:42 +0000)]
Add a comment about MODPY_BUILDDEP and NO_BUILD in the python section.
jsg [Thu, 22 Jul 2010 10:31:10 +0000 (10:31 +0000)]
As per OpenCVS, general usage in coversation and apparently newer
upstream versions of this code, add blame as an alias for annotate.
ok henning@ fgsch@ deraadt@ thib@ krw@
kettenis [Thu, 22 Jul 2010 10:22:37 +0000 (10:22 +0000)]
Prevent a process from entering wpi_ioctl while another process is
tsleep'ing (for example waiting for the firmware to become alive)
in iwn_init.
ok damien@
jmc [Thu, 22 Jul 2010 10:21:52 +0000 (10:21 +0000)]
various macro cleanup;
kettenis [Thu, 22 Jul 2010 10:19:37 +0000 (10:19 +0000)]
When suspending, only call athn_stop() when IFF_RUNNING is set.
ok damien@
jmc [Thu, 22 Jul 2010 08:30:29 +0000 (08:30 +0000)]
remove some groff \s escapes, which we do not support;
jmc [Thu, 22 Jul 2010 08:09:29 +0000 (08:09 +0000)]
move exit returns blurb out of DIAGNOSTICS; from daniel dickman
jmc [Thu, 22 Jul 2010 07:41:59 +0000 (07:41 +0000)]
ukc xr should be boot_config;
jmc [Thu, 22 Jul 2010 07:40:14 +0000 (07:40 +0000)]
keep our lists consistent for the exit values blurb; from daniel dickman
jmc [Thu, 22 Jul 2010 07:38:56 +0000 (07:38 +0000)]
document exit returns; from daniel dickman
matthew [Thu, 22 Jul 2010 06:30:13 +0000 (06:30 +0000)]
We have this nice KMEMSTATS option to control when we use kmemstats,
so no point in reserving space for kmemstats unless it's enabled.
ok thib@, deraadt@
matthew [Thu, 22 Jul 2010 05:32:10 +0000 (05:32 +0000)]
Mark two more DMA accessible malloc(9)s.
matthew [Thu, 22 Jul 2010 05:26:34 +0000 (05:26 +0000)]
In st_space() and st_write_filemarks(), if scsi_xs_get() returns NULL,
set st->media_fileno and st->media_blkno before returning. Not sure
if this is needed or even really correct, but it's an unintentional
behavior change due to removing scsi_scsi_cmd().
ok dlg@
matthew [Thu, 22 Jul 2010 05:21:58 +0000 (05:21 +0000)]
In scsi_inquire_vpd(), actually just return EJUSTRETURN when dealing
with UMASS devices. Fixes scsi_scsi_cmd() removal regression.
ok dlg@
matthew [Thu, 22 Jul 2010 05:21:02 +0000 (05:21 +0000)]
style(9) fix and release rwlock(9) if scsi_xs_get() returns NULL,
which should never happen anyway. Fixes scsi_scsi_cmd() removal
regression.
ok dlg@
matthew [Thu, 22 Jul 2010 04:59:31 +0000 (04:59 +0000)]
In safte_match(), return 0 on SCSI errors, not an errno value. Fixes
regression from scsi_scsi_cmd() removal.
ok dlg@
matthew [Thu, 22 Jul 2010 04:54:24 +0000 (04:54 +0000)]
Appropriately set SCSI_DATA_IN or SCSI_DATA_OUT depending on type of
dvd_auth command. Fixes regression from scsi_scsi_cmd() removal.
ok dlg@
matthew [Thu, 22 Jul 2010 04:40:41 +0000 (04:40 +0000)]
SCSI HBA drivers are supposed to get their SCSI CDBs from xs->cmd, not
xs->cmdstore.
ok krw@ a while back (contingent upon testing), and deraadt@ says this
has been in snapshots for weeks now.
deraadt [Thu, 22 Jul 2010 00:59:56 +0000 (00:59 +0000)]
sync
deraadt [Thu, 22 Jul 2010 00:41:29 +0000 (00:41 +0000)]
remove unused variable
krw [Thu, 22 Jul 2010 00:31:06 +0000 (00:31 +0000)]
Eliminate scsi_scsi_cmd() now that ss(4) is gone and with it the
last bastardized sync and buf call through scsi_scsi_cmd(). Flatten
code to call scsi_xs_sync() directly for all commands.
Airplane typos shaken out by various.
ok dlg@ matthew@ deraadt@
nicm [Wed, 21 Jul 2010 23:40:26 +0000 (23:40 +0000)]
Some ss(4) bits escaped the purge, eliminate them.
ok todd krw
ratchov [Wed, 21 Jul 2010 23:00:16 +0000 (23:00 +0000)]
remove unnecessary ``return 0'' statements,
from Remco <remco at d-compu.dyndns.org>, thanks!
schwarze [Wed, 21 Jul 2010 21:44:28 +0000 (21:44 +0000)]
In the SYNOPSIS, .Nm at the beginning of an input line starts
an .Nm block, and gets special handling (new line, indentation).
But .Nm in the middle of a line is just a normal in-line element,
so make sure it does NOT get the special handling.
Partly fixes the test(1) SYNOPSIS; indentation after "[" is still
excessive, which is an unrelated and more difficult issue.
Reminded of the problem by jmc@;
OK kristaps@.
todd [Wed, 21 Jul 2010 21:34:12 +0000 (21:34 +0000)]
let mpath build again even though it is disabled
ok dlg@
edd [Wed, 21 Jul 2010 21:06:23 +0000 (21:06 +0000)]
urndis supports the HTC Wildfire just fine. Tested here.
OK mk@
miod [Wed, 21 Jul 2010 20:10:14 +0000 (20:10 +0000)]
Disable the heuristics for legacy free systems if pckbc flags are set to 1
in UKC; found the hard way by jakemsr@ on an old Tecra laptop.
jmc [Wed, 21 Jul 2010 20:02:29 +0000 (20:02 +0000)]
document exit values; from daniel dickman
jmc [Wed, 21 Jul 2010 19:53:45 +0000 (19:53 +0000)]
document exit values; from daniel dickman
jmc [Wed, 21 Jul 2010 19:49:55 +0000 (19:49 +0000)]
fix the barmy exit returns formatting; from daniel dickman
jmc [Wed, 21 Jul 2010 19:47:02 +0000 (19:47 +0000)]
missing argument to Ex; from daniel dickman
jmc [Wed, 21 Jul 2010 19:44:47 +0000 (19:44 +0000)]
more HISTORY; from daniel dickman
jmc [Wed, 21 Jul 2010 19:42:20 +0000 (19:42 +0000)]
more consistent text for our return values; from daniel dickman
deraadt [Wed, 21 Jul 2010 19:42:05 +0000 (19:42 +0000)]
in the acpi GPE handler, late ack level interrupts not edge interrupts.
Duh.
deraadt [Wed, 21 Jul 2010 19:35:15 +0000 (19:35 +0000)]
spacing and indents that are driving me crazy
nicm [Wed, 21 Jul 2010 18:48:01 +0000 (18:48 +0000)]
ptm needs no read/write, just use enodev.
ok deraadt
deraadt [Wed, 21 Jul 2010 18:43:59 +0000 (18:43 +0000)]
No need for read/write functions, just use enodev like all the other
things things do
ok nicm
martinh [Wed, 21 Jul 2010 17:32:12 +0000 (17:32 +0000)]
Search filter BER tags use a context-specific class, not an application
class. This allows ypldap to talk to ldapd, which otherwise refuses the
search filter.
ok gilles@
steven [Wed, 21 Jul 2010 17:31:51 +0000 (17:31 +0000)]
document fortran module
steven [Wed, 21 Jul 2010 17:07:27 +0000 (17:07 +0000)]
reverse logic in previous
steven [Wed, 21 Jul 2010 17:01:17 +0000 (17:01 +0000)]
update gcc3 and gcc4 modules with COMPILER_VERSION instead of USE_GCC[34]
deraadt [Wed, 21 Jul 2010 15:40:04 +0000 (15:40 +0000)]
Fix more cdev initializations which were using enodev for poll; ok kettenis
deraadt [Wed, 21 Jul 2010 15:07:40 +0000 (15:07 +0000)]
clean up a pile of prototypes and shred some macros which were just covering
for ones everyone knows better
deraadt [Wed, 21 Jul 2010 15:01:52 +0000 (15:01 +0000)]
Merge the edge and level gpe handlers into one (now possible since the
gpe structure tells us whether the gpe is edge or level)
gilles [Wed, 21 Jul 2010 14:45:59 +0000 (14:45 +0000)]
fix NULL-deref, ok martinh@
kettenis [Wed, 21 Jul 2010 14:08:09 +0000 (14:08 +0000)]
Make sure that the FPU IPIs shoot down the right FPU context and not the FPU
context of some random process that happened to be switched onto the FPU
after the decision was made to send the IPI.
kettenis [Wed, 21 Jul 2010 14:01:58 +0000 (14:01 +0000)]
Add suspend/unsuspend logic.
ok damien@, deraadt@
jakemsr [Wed, 21 Jul 2010 10:16:07 +0000 (10:16 +0000)]
add a couple quirks for the E-MU 0202
* the clock rate is configured through the audio interface, instead
of on the endpoint.
* since the clock rate is set on the interface, both play and
record must use the same sample rate. this means the playback
and recording parameters are not independent, which is what uaudio
assumes.
ray [Wed, 21 Jul 2010 09:22:17 +0000 (09:22 +0000)]
Only use username if author is NULL. Fixes "ci -wusername" when run
as root.
OK nicm