summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-06-15ipmi is working a wee bit better, but still not perfectly. let us re-enableTheo de Raadt
it so that more people run it by default again, and perhaps we will get insight again into what the problem is..
2008-06-15When APERTURE is not defined, always return ENXIO.Matthieu Herrb
Suggested by mk@, ok miod@ deraadt@.
2008-06-15Move noisy frame queueing debug messages up to debug level 2.Marcus Glocker
2008-06-15with powerbooks and ibooks, default to adb keyboard for console (and ddb>)Todd T. Fries
ok drahn@
2008-06-15Add 802.3ad LACP support for trunk(4).Marco Pfatschbacher
Implementation from NetBSD. Ported via FreeBSD's version in trunk^Wlagg(4). This is still work in progress. Tested with a HP ProCurve 3500. OK reyk@
2008-06-15On AMD64 running on Intel processors with EST add support for retreivingGordon Willem Klok
operating points from ACPI. In support of this add evaluation of the _PDC object and give it the capability flags asserting OSPM management of CPU power states. ok marco@, canacar@
2008-06-15unroll the NFSMADV() macro and nuke itThordur I. Bjornsson
ok blambert@
2008-06-15if we are trying to attach to ehci(4) notify the user to disable itRobert Nagy
because it does not support isochronous transfers yet. we hope that we can remove this as soon as possible. discussed with deraadt@
2008-06-15this should be a MD include file; discussed with matthieuTheo de Raadt
2008-06-15Treat SENSE_NOT_READY_INIT_REQUIRED sense errors the same asKenneth R Westerback
SENSE_NOT_READY_BECOMING_READY sense errors. Some devices such as USB Zip250 drives return the former when they mean the latter. Give the first TEST UNIT READY command three times the usual retries so more devices have time to get ready. This allows more removable devices to detect media details and avoid issuing 'drive offline' messages. ok marco@
2008-06-15Don't bypass partition bounds check for RAW_PART. We now guarantee thatKenneth R Westerback
RAW_PART will always be 0 -> disksize, so the bounds check will always pass for i/o's to valid addresses. Now the i/o will be properly truncated if it goes past the end of the device. This prevents various adverse impacts of issuing i/o's for data past the end of the device. Repeatedly requested by todd@. ok weingart@ deraadt@
2008-06-15Ensure that when using the ACPI tables the RVO field is initialized from the ↵Gordon Willem Klok
ctrl value. commit it marco@
2008-06-14make easier to read, found during a bug hunt earlierTodd T. Fries
ok bluhm@
2008-06-14Replace nfsm_build/bcopy with nfsm_{buf,str}tombuf functions inBret Lambert
filehandle -> mbuf write macros. Removes `magic' variable cp which was used only in these macros, and should lead to marginally better mbuf packing as well. `slap it in' thib@
2008-06-14Include "faith.h" in order to get NFAITH. Also clean up NFAITH conditionalsJoel Sing
whilst we're here. ok henning@ deraadt@
2008-06-14add carppeer; an option to specify a different multicast address orReyk Floeter
even the unicast address of the remote carp peer. this especially helps when the multicast carp advertisements are causing problems in the network (some crappy switches don't do well with multicast), there are conflicts with VRRP, or the policy of the network does not allow multicast (most Internet eXchange points didn't allow carped OpenBGP routers because of the multicast advertisements). discussed with many ok mpf@
2008-06-14Fixed evil recursion depth for ASUS EEEPC, uses less memory tooJordan Hargrave
ok @marco
2008-06-14Add amdmsr(4), a driver to access model specific registers on AMD CPUs.Marc Balmer
Needed for the upcoming AMD Geode LX graphics processor X11 driver. discussed with, feedback, and ok matthieu and deraadt.
2008-06-14ANSIfy function definitions.Joel Sing
ok markus@
2008-06-14Ensure each nfsiod can actually enqueue more than one asynchio - this mirrorsBob Beck
the accidental situation that used to happen when it leaked buffers and allowed the syncer to do it, however this puts a limit on how much of the buffer cache it is allowed to consume to a sensible amount - improves nfs write performance since we don't have to do tons of them synch now. Modifies the existing code to use wakeup_one instead of cruft, and now all nfsiod's tsleep the same way. ok thib@ art@
2008-06-14Remove NBPFILTER conditional since we do not include "bpfilter.h" and theJoel Sing
<net/bpf.h> header is not required here. ok henning@
2008-06-14Include "pflog.h" so that we get NPFLOG.Joel Sing
ok henning@
2008-06-14Provide a status field for operations on the bc_opaque data. Now we'reHans-Joerg Hoexer
able to distinguish cleanly an failing ioctl (ie. return value -1) from trying to retrieve a KDF hint from a not yet initialized volume. ok marco djm
2008-06-14Mask the upper 56 bits of the rx ports when reading them, pckbd_input() willMiod Vallat
rely on this very soon.
2008-06-14Correctly calculate wired_count of pages on i386. Now, pmap->pm_stats is onlyHans-Joerg Hoexer
updated when we actually can commit the pte. With mickey. ok art@ weingart@
2008-06-14Teach acpiasus(4) about some more events. Whilst we're here bzero the cmdJoel Sing
structs and sprinkle some aml_freevalue() (diff initially from deanna@). ok marco@
2008-06-14Also do the PR_ZERO dance here. This was held back on Henning's requestMichael Knudsen
because it conflicted with the change he did in pf_if.c earlier. He finally woke up to ok (well, ``yes'', really) this version now.
2008-06-14defininig NATIVE_EXEC_ELF is mandatory on ELF platforms.Miod Vallat
2008-06-14id tag.Federico G. Schwindt
2008-06-14A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO)Michael Knudsen
conversions that should shave a few bytes off the kernel. ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer FOO|BAR''; thanks for looking.
2008-06-14Use the bus_size_t in the ath_softc.Joel Sing
ok jsg@
2008-06-14oldnointr pool allocator is no longer used or necessary.Artur Grabowski
2008-06-14There's no more reason to use oldnointr allocator here since we paceArtur Grabowski
the allocations in uvm_km_thread, as long as they are PR_WAITOK and all the memory hogs should be WAITOK in pf now. "following your explaination, it's ok" henning@
2008-06-14If we have one syscall that consumes large amounts of memory (like forArtur Grabowski
example an ioctl that loads bazillions of entries into a pf table) it would exhaust the pool of free pages and not let uvm_km_thread catch up until the pool was actually empty. This could be bad for non-sleeping allocators since they can't wait for the memory while the big hog can. Instead of letting the syscall exhaust the pool, detect when we fall below the low watermark, wake the thread, sleep once and let the thread catch up. This paces the huge consumer so that the more critical consumers never find an exhausted pool of pages. "seems reasonable" kettenis@
2008-06-14Replace magic '2' and '3' with defines for nfs version numbersThordur I. Bjornsson
ok blambert@
2008-06-14Use multiple crypto keys per volume. Each key is used to encrypt atDamien Miller
most 0.5TB of disk. This is well below P1619-2007's recommendation for AES-XTS of 1TB/key, but small enough so we can test that we actually use multiple keys with inexpensive hardware. We allocate 32 keys, so this will do for volumes up to 16TB. Fix a crypto session leak in sr_crypto_free_resources() much debugging help mshoexer@; ok hshoexer@ marco@
2008-06-14remove #ifdef __macppc__ due to a misunderstanding:Todd T. Fries
- the wskbd/wsmouse is not phantom, but actually is pre-paired keyboard/mice talking wskbd/wsmouse to the os this permits the bluetooth device to attach as wskbd/wsmouse using bluetooth keyboards for ddb> and in general if you have paired them in an os that supports flipping the funny bluetooth device into full bluetooth mode ok drahn@
2008-06-14Allow ath(4) to detach cleanly when attaching via PCI. AlsoJoel Sing
complete/cleanup the attachment cleanup code. ok reyk@ jsg@
2008-06-14pool_get()s not in interrupt context should not be PR_NOWAIT, butHenning Brauer
PR_WAITOK | PR_LIMITFAIL. from discussion with art. ok ryan claudio thib
2008-06-14Include "pf.h" so we get NPF.Joel Sing
ok reyk@
2008-06-14Add cmp(4) here too.Mark Kettenis
2008-06-14Nuke ADEV_NOTUR, always issue TEST UNIT READY to clear out power-upKenneth R Westerback
errors before issuing INQUIRY. Fixes Sony YE-Data floppy drive and probably other devices at the cost of possibly breaking some 10 year old CD-ROM drives. Un-special cases mvme68k which was forcing these initial TURs. Now wait for the inevitable weird USB device that breaks to surface. ok marco@ deraadt@
2008-06-14Clean up nfsrv_wakenfsd(); variable name change to be in line with theBret Lambert
rest of NFS code, canonical for() -> LIST_FOREACH() change, minor readability changes. ANSIfy function while here. ok thib@
2008-06-14Move bpf_mtap_hdr() above the trunk_*_input() routines.Marco Pfatschbacher
This makes it easier to add trunk protocols that consume some packets. Add a special case for the failover protocol, to prevent shoving duplicates to bpf. (Not beautiful, but it has to do for the moment). OK reyk@, claudio@
2008-06-14Belt, suspenders, duct tape and glue.Artur Grabowski
In brelse, if we end up in the B_INVAL case without mappings, check for B_WANTED and wake up the sleeper if there's one before freeing the buffer. This shouldn't happen, but it looks like there might actually be some dodgy corner cases in nfs where this could just happen if the phase of the moon is right and the wind is blowing from the right direction. thib@ ok
2008-06-14remove duplicate #defines; ok hshoexer@Damien Miller
2008-06-14use nfsm_padlen() where appropriate;Thordur I. Bjornsson
ok blambert@
2008-06-14put the canonical ifdef dance for multiple inclusion, also put all theThordur I. Bjornsson
contents of this file inside #ifdef _KERNEL; there's nothing here that userland should ever need/touch. but then again, some userland programs define _KERNEL before they include kernel header files *shrugh*... survived a build, OK blambert@
2008-06-14Update bioctl(8) and softraid(4) to recent changes and enable softraidHans-Joerg Hoexer
crypto. It's still considered experimental! ok djm marco
2008-06-14implement a check code to determine whether the disk keys haveDamien Miller
been correctly decrypted using the masking key. The check code is a HMAC-SHA1 over the disk keys using a hash of the masking key. It should be slow enough to provide no useful brute force success oracle and should not leak significant data about the masking key or disk keys. ok hshoexer@ marco@