summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-07-08Add mapping for ACPI device to PCI bdf (match autoconf tree)Jordan Hargrave
Simplify resource parsing function to use buffer argument Convert namespace linked lists to use queue macros ok marco@, deraadt@
2010-07-08Add definitions for ICMP extended headers available for some ICMP messagesClaudio Jeker
like time exceeded messages. This will allow to add additional information to those messges like the incomming MPLS label. OK deraadt@, dhill@
2010-07-08use config_activate_children to activate children that might need itTheo de Raadt
2010-07-08use config_activate_children to get down to the isa bus activation codeTheo de Raadt
2010-07-08Devices which don't have read or write functionality should not returnTheo de Raadt
enodev to poll, because this returns an errno of 19 in revents. Oops. Use seltrue where needed, and use a new selfalse function for those which don't know if the next op will be non-blocking Mostly discussed with guenther and miod
2010-07-08remove some unused netinet6 codeJonathan Gray
ok stsp@ henning@ claudio@
2010-07-08Use correct alignment for scrub max-mss. Based on a diff from deraadt.Stuart Henderson
"that looks about right even though the offset calculation is pure horror" claudio@, ok deraadt@
2010-07-08For DVACT_SUSPEND and DVACT_RESUME we should always return success.Theo de Raadt
2010-07-08make the buffer big enough to hold a 1500 byte packet. Workaround (mtuChris Kuethe
decrease) by me, fix from armani@ (who seems to be away right now). ok mk@
2010-07-08Revert part of previous.Thordur I. Bjornsson
The splvm protection is needed after all, as we are walking the list of registered crypto drivers and doing that unprotected is unwise. Pointed out by kettenis@
2010-07-08pipex didn't work on output. Fixed following problems:YASUOKA Masahiko
- pipex failed to lookup the radix tree because address and netmask were not initialized. - pipex used wrong place as a ip header because it didn't adjust 32bit address family header that are added at tun_output.
2010-07-08better op buf handling. Instead of mallocing a new buffer for everyThordur I. Bjornsson
encdec operation, keep a PAGE_SIZE (or not, depending if we fail during setup) buf around; if the crd_len is larger then the current buf, re allocate a new one that fits the data, and keep it around.
2010-07-08Move pool initialization to init_crypto and zap the crypto_pool_initializedThordur I. Bjornsson
variable. This way we don't have to check if the pool are initialized every time we do a crypto_getreq(). Move splvm lower as it isnt need all through crypto_newsession(). tiny KNF nit. From mikeb OK deraadt@
2010-07-08- use nitems() where applicableJasper Lievisse Adriaanse
ok grange@
2010-07-08Move ss and friends to the attic.Kenneth R Westerback
Enthusiastic huzzahs from many. "A great day" dlg@
2010-07-08Move ss and friends to the attic.Kenneth R Westerback
Enthusiastic huzzahs from many. "A great day" dlg@
2010-07-07revert last commit, it made my puc(4) disappear. ok pirofti@Stuart Henderson
2010-07-07Use correct function name in panic()Claudio Jeker
2010-07-07tag itTheo de Raadt
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-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-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-06one wire counter driver 2nd rev, from John L. Scarfone" <j0@cox.net> PR 6422Theo de Raadt
ok miod
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-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-06timeout_add -> timeout_add_msecBret Lambert
ok jsg@
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-06Kill an unused variablePhilip Guenthe
ok deraadt@
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@
2010-07-05i forgot to remove various compat references from here. spotted by deraadtTed Unangst
2010-07-05bsdos was removedTheo de Raadt