summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-07-07Use atomic operations to increment clock interrupt counter.Mark Kettenis
ok art@
2010-07-07Implement atomic_add_ulong.Mark Kettenis
ok art@
2010-07-07Don't grab the kernel lock for clock interrupts. Prevents deadlocks whenMark Kettenis
running stuff that depends on mutexes without holding the kernel lock. ok art@
2010-07-07Remove duplicate mtod(). No need to do it twice since the mbuf is notClaudio Jeker
modified in between.
2010-07-07minor whitespace tweaks and clean up extra ;David Gwynne
2010-07-07bring mpi_wait over to mpii for an mpsafe mechanism to sleep while waitingDavid Gwynne
for a command to complete. this also replaces all the while (!ready) \ tsleep() wrapped in splbio code with mpii_wait. tested with bioctl runs and sensor updates on a raid volume
2010-07-07set each disks openings to the maximum number the controller can handle.David Gwynne
iopools make sure resources arent overallocated, while scheduling them evenly between devices. tested by and ok jsg@
2010-07-07update manpage to reflect recent changes to m_copybackBret Lambert
nag and ok sthen@
2010-07-07zap chmod of /etc/pkg.conf since the installer itself will not put a usernameAlexander Hall
or password in there, and any existing /etc/pkg.conf file will already have its file mode preserved "sure" deraadt@
2010-07-07rename ccb_xs to ccb_cookie, and switch it from a struct scsi_xfer * to aDavid Gwynne
void *. this will let me stash things other than scsi xfers in the ccb for ccb_done handlers to use. this is the same change i did in mpi.c r1.128 and mpivar.h r1.28
2010-07-07use a mutex to ensure writes to the two registers used to post commands toDavid Gwynne
the chip are atomic wrt to all cpus in a system. mpii_push_reply only writes to one reg, so it is already atomic. neither it or mpii_start need splbio now. mpii(4) is still not completely mpsafe cos all the sleeps done while waiting for completion still rely on splbio.
2010-07-07let the config page request code sleep while waiting for a ccb if it isDavid Gwynne
allowed to.
2010-07-07do a 1:1 conversion of mpii_{get,put}_ccb to scsi_io_{get,put}.David Gwynne
2010-07-07Pull out disk sort. I committed the wrong version of the diff and itMarco Peereboom
wasn't ok deraadt & dlg.
2010-07-06siop sets XS_NO_CCB when it fails to allocate device state when commandsDavid Gwynne
are first sent to target/lun, as opposed to failing to allocate a ccb (which ive already fixed). this moves the allocation and freeing of this device state in siop into the scsi_probe and scsi_free handlers. if siop cant allocate memory for a device when the midlayer is about to probe it, we dont send commands to it. if the midlayer fails to find a device at that target/lun, it asks siop to free it. simplifies the io path and avoids work during interrupts. ok deraadt@ reads good to both marco@ and krw@
2010-07-06- add an openbsd rcsidJason McIntyre
- some minor tweakage of previous
2010-07-06Document new unsetenv() error returns.Christian Weisgerber
From Nicolas Legrand <nlegrand@ethelred.fr>; ok jmc@
2010-07-06sun4e support in the bootblocks, derived from a diff from jason@ 7 years ago.Miod Vallat
2010-07-06Having common ienab_bic() and ienab_bis() entry points for sun4/4c and sun4mMiod Vallat
is stupid, since the bits in the interrupt enable register are completely different between 4/4c and 4m. Instead, provide distinct, explicit function names to handle the interrupt enable register.
2010-07-06Remove unused CPUARCH_xxx and CPUCLS_xxx defines, as well as all the unusedMiod Vallat
CPUTYP_xxx defines.
2010-07-06Use spltty() to lock downcalls from apm against the information beingTheo de Raadt
modified by the acpi thread. ok kettenis
2010-07-06Don't use a workq to do the suspend, because it races aginst the acpiTheo de Raadt
thread. Instead, just tell the acpi thread to do the suspend for us. This makes apmd & zzz work correctly. While here, have acpithinkpad attempt to post the event to apm before prompting the suspend itself. ok kettenis marco mlarkin
2010-07-06Send empty statistics rather than segfault if "ldapctl stats" is run when aMartin Hedenfal
database is being reopened due to compaction.
2010-07-06Try to detect busy loops caused by misbehaving audio driversAlexandre Ratchov
or hardware. If a busy loop is found, then close the device that caused the loop.
2010-07-06Plug another memory leak. Forgot to reset key returned from cursor, havingMartin Hedenfal
a reference to a cached page.
2010-07-06one wire counter driver 2nd rev, from John L. Scarfone" <j0@cox.net> PR 6422Theo de Raadt
ok miod
2010-07-06Clarify differences between the 'include' and 'schema' keyword. And stressMartin Hedenfal
the 'secure' keyword. Looks fine to jmc@, gilles@
2010-07-06zap trailing whitespace and fix some linewrap. please, developers, try andJason McIntyre
avoid these when committing to man pages;
2010-07-06Enable FIFO IO for sd devices. This time committed against the actual tree.Marco Peereboom
Tested by lots of people during c2k10 ok phessler krw thib
2010-07-06When moving a node between pages during rebalance, find the source pageMartin Hedenfal
prefix before finding any child page prefix. This fixes an inconsistency during rebalance.
2010-07-06Update the interfaces changes from kroute to rde via imsg. ThisAlexander Bluhm
is needed to orginate correct intra-area-prefix-lsas. ok claudio@ stsp@
2010-07-06Use the static variable narea only where needed for config reload.Alexander Bluhm
The other imessages use the stack variables area and iface. ok claudio@
2010-07-06Adapt code to adhere to the comment (now that doesn't happen very often!).Martin Hedenfal
When deciding how to rebalancing after delete (move or merge), the number of keys is not important, as long as the source page doesn't get empty after a move. There is still a rare case where merging two quarter-full pages will not fit in a whole page (due to prefix expansion) that needs to be fixed.
2010-07-06document that ONLY_FOR_ARCHS and NOT_FOR_ARCHS are now subpackage-dependentMarc Espie
(and why !)
2010-07-06fuss over wantntogo, especially when it's false (make sure we still get :okMarc Espie
at end of lines instead of '' replacing 30/50)
2010-07-06Add a blank line between sections in the output log, it's more readable.Antoine Jacoutot
2010-07-06various tweaks to previous; ok ratchovJason McIntyre
2010-07-06timeout_add -> timeout_add_msecBret Lambert
ok art@
2010-07-06add the iopool wrapper around the mpii ccb free list. cut the midlayer andDavid Gwynne
the scsi_cmd path over to it.
2010-07-06Check return code from commit. Incorrectly returned success when commitMartin Hedenfal
failed due to disk full.
2010-07-06timeout_add -> timeout_add_msecBret Lambert
ok jsg@
2010-07-06Add the floppy576 entry back, needed for release. Okay kettenis.Paul Irofti
2010-07-06if we get an event notification that requires acknowledgement whileDavid Gwynne
we're busy, we might not be able to allocate a ccb via scsi_ioh_get if the pool is empty. this means we wont ack the event, which in turn means we wont receive further event notifications. this cuts the event ack code over to using a scsi_iohandler. the eventack iohandler will be called as soon as a ccb becomes available for it to use. this guarantees reliable event handling and acknowledgement, despite how busy the controller might be. this has bugging me ever since i wrote the event handling code. tested by hotplugging sata disks.
2010-07-06move the last direct users of mpi_{get,put}_ccb over to using the scsiDavid Gwynne
ioh wrappers.
2010-07-06spacingTheo de Raadt
2010-07-06get rid of ridiculous differences between the i386 and amd64 versionsTheo de Raadt
2010-07-06syncTheo de Raadt
2010-07-06Kill an unused variablePhilip Guenthe
ok deraadt@
2010-07-06Handle all streams the same way because there's no actualAlexandre Ratchov
difference between audio files and client connections. Clean up the way command line options are handled and clarify this in the manual page: stream parameters (-Ccehjmrtvx) must precede stream definitions (-ios) and per-device parameters (-abz) and stream definitions (-ios) must precede device definitions (-f). Since there's no ``server'' and ``non-server'' modes anymore, make the -l option just detach the process. ok and help from jakemsr and jmc
2010-07-06Fix monumental cock-up with SCSI_SILENT and SCSI_IGNORE_ILLEGAL_REQUESTKenneth R Westerback
flags which I perpetrated when I paid insufficient attention to dlg@'s original diff. Belatedly tested by marco@ and myself. Bad marco@. Bad krw@. ok marco@