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
mlarkin [Wed, 21 Jul 2010 07:50:20 +0000 (07:50 +0000)]
Repost ATI FireGL M24 using the emulator. This card is seen on some IBM
Thinkpad T43p models (and likely others).
ratchov [Wed, 21 Jul 2010 07:49:48 +0000 (07:49 +0000)]
remove duplicate AP192K_GPIO_XXX macros,
from Alexandr Shadchin, thanks!
dlg [Wed, 21 Jul 2010 07:13:06 +0000 (07:13 +0000)]
disable vscsi until we actually have something that uses it (like iscsid),
and until matthew@ is happy with it.
suggested by deraadt@
ratchov [Wed, 21 Jul 2010 07:11:55 +0000 (07:11 +0000)]
make ENVY_GPIO_XXX macros card specific, add stub for audiophile 192k
martinh [Wed, 21 Jul 2010 06:32:14 +0000 (06:32 +0000)]
Add a history section saying that ldapd/ldapctl first appeared in 4.8.
jakemsr [Wed, 21 Jul 2010 05:57:19 +0000 (05:57 +0000)]
* check that the bytes per frame the device is reporting isn't a
ridiculous value.
* encoding expansion factor is always 1.
jakemsr [Wed, 21 Jul 2010 05:54:42 +0000 (05:54 +0000)]
move use_maxpkt out of struct chan, use a local variable in the
only function that was using it.
lum [Wed, 21 Jul 2010 05:29:57 +0000 (05:29 +0000)]
Remove reference to non-existent behaviour.
ok canacar@
jakemsr [Wed, 21 Jul 2010 05:04:57 +0000 (05:04 +0000)]
some bits for USB 2.0 playback support. I'm not 100% sure about
scaling the frame rate to the polling interval, but it works on
the E-MU 0202 and it generally makes a lot of sense, especially
considering that this often brings the frames rate back to 1 kHz,
which is the frame rate of USB 1.x, which was the most current
USB spec when USB audio 1.0 spec was written.
deraadt [Wed, 21 Jul 2010 05:03:19 +0000 (05:03 +0000)]
delete #if 0 code we are not going to use; ok marco
deraadt [Wed, 21 Jul 2010 04:49:25 +0000 (04:49 +0000)]
sync
jakemsr [Wed, 21 Jul 2010 03:06:35 +0000 (03:06 +0000)]
currently we use the endpoint's maximum packet size for recording,
and for playback, we use a packet size that is at least one audio
frame smaller.
in most usb audio devices, the sample clock is synced to the usb
clock. this means that for sample rates that aren't multiples of
1000, we'll occasionally need to add a frame to adjust the overall
rate. that's why we use the smaller packet size.
also, the usb audio spec defines a way for devices to request
to always use the maximum packet size.
so,
* add a max_bytes_per_frame, which is the largest packet size
the channel will use. use that instead of calculating what
the maximum we will use is in a couple places. generally makes
things easier to understand.
* respect a device's request to always use maximum packet size.
todd [Wed, 21 Jul 2010 02:17:15 +0000 (02:17 +0000)]
remove gratuitous carriage return that snuck in
ok dlg@
djm [Wed, 21 Jul 2010 02:10:58 +0000 (02:10 +0000)]
sync timingsafe_bcmp() with the one dempsky@ committed to sys/lib/libkern
matthew [Wed, 21 Jul 2010 02:04:41 +0000 (02:04 +0000)]
Garbage collect ata_bio's badsect field.
ok deraadt@
jakemsr [Tue, 20 Jul 2010 23:46:11 +0000 (23:46 +0000)]
support 24-bit encodings. simplify the way supported encodings are
handled by storing an array of supported encodings.
NOTE: this also removes all conversions from this driver. in
particular, uaudio no longer supports 16-bit big endian encodings,
because the USB audio specification only supports little endian
encodings.
ok ratchov
deraadt [Tue, 20 Jul 2010 21:37:33 +0000 (21:37 +0000)]
make the mask code for acpi_enable_onegpe() match other similar code
miod [Tue, 20 Jul 2010 20:47:13 +0000 (20:47 +0000)]
opration -> operation
mk [Tue, 20 Jul 2010 20:46:18 +0000 (20:46 +0000)]
Use an SLIST rather than a TAILQ for the ccb free list.
ok krw
mk [Tue, 20 Jul 2010 20:43:27 +0000 (20:43 +0000)]
Make this compile again (was broken in rev 1.24 as far as I can tell),
even though we don't actually compile it in any configurations.
ok krw
deraadt [Tue, 20 Jul 2010 20:21:02 +0000 (20:21 +0000)]
print the temperature readings that make us go down; ok kettenis
lum [Tue, 20 Jul 2010 19:43:19 +0000 (19:43 +0000)]
Remove setresguid since it is no longer needed.
ok matthew@ millert@ deraadt@