summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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
2010-07-05Rework somewhat for safety, so that we only interpret the values ofJonathan Gray
the PERF_STATUS MSR on earlier processors when we can't find the values via acpi and have a bus clock value to use. And let processors we don't set a bus clock on (ie nehalem) use speedstep again. Expanded/changed version of a diff from gwk who isn't around right now.
2010-07-05remove compat_bsdos supportTed Unangst
2010-07-05remove a debugging panic, as pointed out by mike;Thordur I. Bjornsson
also, remove the flag variable in the setup routine, as we'll always register with a flag value of 0.
2010-07-05cope with the recent changes to m_copyback();Thordur I. Bjornsson
2010-07-05If we find something is not aligned according to ALIGNED_POINTER(), weTheo de Raadt
cannot then re-align it using ALIGN(). That is not portable since we have architectures where the modulo are quite different. define an ALIGN_POINTER() macro in place, and use it in one spot. This caused a NFS crash on sparc (which borrows mbufs and chains them itself in insane ways). I heard claudio and beck trying to diagnose it from over the room when suddenly I knew exactly what it was. blambert spent a few hours on it making sure that I wasn't insane.
2010-07-05timeout_add -> timeout_add_secBret Lambert
ok art@
2010-07-05timeout_add -> timeout_add_secBret Lambert
ok drahn@
2010-07-05Reset register SCI_EN on resume. The ACPI spec clearly states we don't haveMike Larkin
to do this, but many machines don't, or forget to, which leads to all sorts of problems on resume (broken battery stats, overheating, failure to resume more than once, etc). tested by many, ok marco@, deraadt@
2010-07-04restrict srmmu handling to just sun4mTheo de Raadt
2010-07-04Remove an obsolete (was in rev 1.1) and unclear commentPhilip Guenthe
2010-07-03Be sure to initialize b_bq member of struct buf not allocated through theMiod Vallat
regular buf routines; and now we can swap again.
2010-07-03Make the kernel responsible for saving the FPU state before runningMark Kettenis
signal handlers. Breaks ABI for applications that copy around struct sigcontext to implement cooperative threading. Other applications shoouldn't notice the difference. ok guenther@, deraadt@
2010-07-03Fix the naming of interfaces and variables for rdomains and rtablesPhilip Guenthe
and make it possible to bind sockets (including listening sockets!) to rtables and not just rdomains. This changes the name of the system calls, socket option, and ioctl. After building with this you should remove the files /usr/share/man/cat2/[gs]etrdomain.0. Since this removes the existing [gs]etrdomain() system calls, the libc major is bumped. Written by claudio@, criticized^Wcritiqued by me
2010-07-03No more ss(4) or usscanner(4). Unused, unloved and unmaintained.Kenneth R Westerback
General huzzahs. "go for it" deraadt@