summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-07-12now that we know if a disk is thin provisioned (or an ssd), we can chooseDavid Gwynne
to use the fifo bufq sorting on such disks. there's no point ordering io if the real blocks arent in the order we think they are. ok krw@ tedu@ miod@
2011-07-11pass the interface for non-compat-mode piix. from netbsd.joshua stein
ok deraadt@ jsg@
2011-07-11Revert art@'s moving around of the KERNEL_LOCK()/KERNEL_UNLOCK() calls,Philip Guenthe
as it causes hangs in some ports, including libsigsegv's configure script confirmed by krw@, landry@
2011-07-11ask the disk about unmap (read trim) parameters. check if we have theDavid Gwynne
required vpd pages, then read them for the values we want. we look for the max blocks per unmap, the max descriptors per unmap, and which scsi command to use for unmapping (unmap will be preferred). two fixes and ok matthew@
2011-07-11Add hibernate_read_block and fix a couple of typos in the previous commit.Mike Larkin
2011-07-11support "failover" style access to volumes, ie, only use one activeDavid Gwynne
path when talking to an array until it goes away, then you fail over to the next active path. im using this to talk to ses(4) in my dell, and allows us to support arrays that have multiple controllers but have no way of reporting which one is active. using the MRU semantic means we can talk to them without them flipping the active role between its controllers all the time. claudios transtec iscsi box is like this.
2011-07-11disks report trim^Wunmap^Wif theyre thin provisioned via a bit inDavid Gwynne
the read cap 16 data. move the read cap code into sd.c so i can get at this bit without much contorting, and to make it trivial to get at the other interesting things in there later. thin disks report themselves as "thin" in dmesg along with their size now. ok matthew@
2011-07-10remove irrelevant commentsTheo de Raadt
2011-07-10remove irrelevant old commentTheo de Raadt
2011-07-10Register the Heart clock as a timecounter on Octane systems.Miod Vallat
2011-07-10Do not register the per-cpu counter as a system timecounter on MULTIPROCESSORMiod Vallat
kernels, as there is no way to sync the counters between all processors.
2011-07-10Read the HCSPARAMS register from the correct location, and addEric Faurot
parentheses where needed to get the resulting mask right. ok krw@ yuo@ deraadt@
2011-07-10Move the vax/boot code to vax/stand. A cvs 'mv' with de-tagging has beenTheo de Raadt
done behind the scenes to retain history. Having all the bootblocks in the same architecture sub-directory satisfies several principles. ok miod
2011-07-10bring in more libgcc type thingies for new libzTheo de Raadt
2011-07-10Oops. Copy just the comment about the checkdisklabel() call, notKenneth R Westerback
the checkdisklabel() calls themselves. What's good for hppa/hppa64 is not necessarily good for sgi/macppc. Spotted by deraadt@.
2011-07-10If there is recognized MD disk partitioning info, use it to determineKenneth R Westerback
where to write the OpenBSD disklabel even if there isn't yet a valid OpenBSD disklabel at that location. Alpha/Mac68k/Sparc/Sparc64 to come.
2011-07-09If ipv4+icmp6 or ipv6+icmp packets were embedded into an icmpAlexander Bluhm
payload, we missed to drop them. While there, also add a reason to the corresponding check in pf_test(). ok mcbride@ claudio@
2011-07-09Switch to ANSI C function definitions.Matthew Dempsky
ok md5
2011-07-09Unbreak hppa boot(8) after zlib update.Joel Sing
ok deraadt@
2011-07-09Repair boot32 build after zlib upgrade.Miod Vallat
2011-07-09translate the scsi UNMAP command into an equiv TRIM, and advertise UNMAPDavid Gwynne
support via the thin provisioning page. this emul is a bit unreliable since atascsi needs to allocate memory for the TRIM command to use, but we figure that the world wont end if we lose a TRIM unlink real io. ok matthew@
2011-07-09syncMatthew Dempsky
2011-07-09Fix up previous diff: use COMPAT_O48 instead of COMPAT_48, add optionMatthew Dempsky
to GENERIC, wrap compat_o48_sys_getdirentries() with an appropriate #ifdef, and use struct compat_o48_sys_getdirentries_args instead of struct sys_getdirentries_args.
2011-07-09syncMatthew Dempsky
2011-07-09More syscalls.master cleanup:Matthew Dempsky
sys_osigaltstack() is 7 years old and no longer needed; all glory to the sys_sigaltstack()! sys_ogetdirentries() is about 9 months old, but still acceptable within our release cycle; move from STD to COMPAT_48 to make this clearer for tedu@ next year. sys_sbrk() and sys_sstk() are completely obsolete: all they do is return ENOSYS. ok guenther@
2011-07-09sned BPDUs at prio 6, just like lacp and carp, ryan zinke mpfHenning Brauer
2011-07-09Switch to new write function that does range/chunk compression using zlibMike Larkin
2011-07-09mark the mgmt pkts for queueing prio 6, mpf okHenning Brauer
2011-07-09Switch umass(4) to use a single target scsibus withMatthew Dempsky
SCSI_NO_ADAPTER_TARGET instead of a two target bus with a reserved "host" target. ok krw@
2011-07-09honor the net.inet.udp.checksum setting.David Hill
ok claudio henning yasuoka
2011-07-09remove more atalk bitsTheo de Raadt
2011-07-09Update hibernate_populate_resume_pt to include new ranges that need to beMike Larkin
mapped during resume
2011-07-09Call (temporarily, until we have RLE page encoding) uvm_pmr_zero_everythingMike Larkin
on suspend to ensure we get good zlib compression. Add MI signature block (hibernate_info) comparison routine
2011-07-09syscall() can be a lot simpler on hpaa64.Mark Kettenis
2011-07-09Simplify sdmmc_scsi by using SCSI_NO_ADAPTER_TARGET.Matthew Dempsky
Tested by drahn@
2011-07-09Fix fallout from my previous SCSI refactoring diff (movingMatthew Dempsky
adapter_buswidth to sc_targets): gdt(4) and atascsi(4) still used it in other ways. Apply appropriate fixes; tested on ahci(4). ok krw@
2011-07-09Add an atomic compare and exchange operation dealing with addressesPaul Irofti
from userland for i386. Okay art@, assembly okay mlarkin@.
2011-07-09Extract hibernate_write_signature and hibernate_clear_signature to the MIMike Larkin
hibernate code, and add chunk range overlap checking.
2011-07-09Add support for the O_CLOEXEC and O_DIRECTORY flags introduced inMatthew Dempsky
POSIX Issue 7. Requested by oga@ (and maybe djm@); ok guenther@
2011-07-09Extract MI pmap function hibernate_enter_resume_mapping, refactor old i386Mike Larkin
resume pmap code to match. Add hibernate deflater and inflater and cache flush routines. Code is not presently called or automatically built.
2011-07-09begone, fucking rotten appletalk shit. ok roomHenning Brauer
2011-07-09Kludge around sdmmc(4)'s poor design: replace "struct scsi_link *"Matthew Dempsky
with "struct scsibus_attach_args" in sdmmc_attach_args. ok krw@
2011-07-09Add SCSI_NO_ADAPTER_TARGET as a value for adapters to setMatthew Dempsky
adapter_target to if their adapter isn't addressable on the bus. ok dlg@, krw@
2011-07-09Add zlib reset, alloc, and free functions for hibernate image compressionMike Larkin
2011-07-09KNFBob Beck
ok md5 "can't be worse" thib@
2011-07-09Add FOREACH_SAFE() data structure companions.Paul Irofti
Part written by me, part taken from FreeBSD. Okay guenther@, oga@ and probably matthew@.
2011-07-09syncTheo de Raadt
2011-07-09mark an obsolete call with the release we killed it; reminded by teduTheo de Raadt
2011-07-09syncTheo de Raadt
2011-07-09Remove COMPAT_25. The one piece moved by COMPAT_LINUX moves there.Theo de Raadt
ok guenther