summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-04-04Some minor fixes:Artur Grabowski
- Clarify a comment. - Change all the flags to chars from ints to make the structs smaller.
2011-04-04Disallow swapping to vnd's and return ENOTSUPP backThordur I. Bjornsson
to userland. Wrap the checking code in #if NVND > 0 as pointed out by miod. ok beck@ ok deraadt@, krw@ (on an earlier diff)
2011-04-04New unified allocator of kernel memory.Artur Grabowski
We've reached the point where we have a dozen allocators that all do more or less the same thing, but slightly different, with slightly different semantics, slightly different default behaviors and default behaviors that most callers don't expect or want. A random sample on the last general hackathon showed that no one could explain what all the different allocators did. And every time someone needed to do something slightly different a new allocator was written. Unify everything. One single function to allocate multiples of PAGE_SIZE kernel memory. Four arguments: size, how va is allocated, how pa is allocated and misc parameters. Same parameters are passed to the free function so that we don't need to guess what's going on. Functions are currently unused, we'll do one thing at a time to avoid a giant commit. looked at by lots of people, deraadt@ and beck@ are yelling at me to commit.
2011-04-04sysctl kern.pool_debug=0 will disable POOL_DEBUG on the fly (still defaultsTheo de Raadt
to on, if POOL_DEBUG is compiled in, so that boot-time pool corruption can be found. When the sysctl is turned off, performance is almost as as good as compiling with POOL_DEBUG compiled out. Not all pool page headers can be purged of the magic checks. performance tests by henning ok ariane kettenis mikeb
2011-04-04If the socket was half closed then don't let userland change theClaudio Jeker
socketbuffer size of the closed side since on half close the high watermark was set to 0. OK blambert@
2011-04-04Add the same SS_CANTRCVMORE check as was done in the other inputClaudio Jeker
functions. OK blambert@
2011-04-04Hit this code with a big hammer. It now works on the X201/T510 seriesTheo de Raadt
machines after warm boot or resume. Some of the checks being made were nonsense. Also tested by claudio and guenther. ok jsg
2011-04-04The backplane version of the 82575EB has no link state -- it's alwayswilliam
up. From FreeBSD. ok jsg claudio
2011-04-03pirofti made me look at wd(4) code, which made me sad.David Gwynne
increase the timeout on io from 10s to 45s. ata says we should wait 30, but i am cynical. this gives loongson disks enough time to wake up on resume.
2011-04-03Enable the use of all the memory found on IP27 and IP30 kernels. CommittedMiod Vallat
from an IP35 system with half its memory outside the dma_constraint range.
2011-04-03Add a consistency check for the value returned by pmap_extract() against theMiod Vallat
dma_constraints range in _dmamap_load_buffer. From and ok beck@
2011-04-03Make sure dma_constraint is listed in uvm_md_constraints[] when it does notMiod Vallat
span the whole physical address space, for the pmemrange magic to operate correctly.
2011-04-03In mtx_leave(), make sure resetting mtx_lock is the last operation on theMiod Vallat
struct mutex. Modelled after hppa.
2011-04-03Helper functions for suspend.Ariane van der Steldt
Allow reclaiming pages from all pools. Allow zeroing all pages. Allocate the more equal pig. mlarking@ needs this. Not called yet. ok mlarkin@, theo@
2011-04-03Remove the `skip splraise/splx for IPL_NONE mutexes' optimizations. It is notMiod Vallat
always gaining anything, and msleep() implementation depends upon mtx_leave() invoking splx().
2011-04-03put iopools back in. ok gccDavid Gwynne
2011-04-03back iopools out, it was never compiled.David Gwynne
2011-04-03Teach ntfs_mount() how to handle disklabel UIDs.Joel Sing
Diff from Antti Harri.
2011-04-03Another driver made safer for big mem by dma_alloc/dma_free'ingKenneth R Westerback
memory used for i/o. ok dlg@ deraadt@
2011-04-03Always reserve space in the routing socket for a desync mbuf. This allowsJoel Sing
a desync to be appended when the socket buffer becomes full, rather than continuall retrying until space becomes available (which may be never). ok claudio@
2011-04-03get rid of NO_CCB by moving to iopools.David Gwynne
"be brave" k2k11
2011-04-03Allow kernel printfs to go to console if in ddb instead of being redirectedDale Rahn
to xconsole. ok deraadt@ guenther@
2011-04-03Blind but plausible iopoolification. If someone ever compiles aKenneth R Westerback
kernel we'll hear about problems.
2011-04-03Don't attempt to enqueue mbufs on sockets marked as SS_CANTRCVMORE, asBret Lambert
was done earlier for routing sockets. ok claudio@
2011-04-03don't rely on implict net/route.h inclusion via pf, claudio okHenning Brauer
2011-04-03move twe over to iopools so we can get rid of another NO_CCB user. thisDavid Gwynne
also cuts the aen drain over to using an iohandler so it can be made reliable. this compiles, but i havent got hardware to test with. its going in as a way to force testing. if there's a problem with the code then let me know or back it out. "man up" k2k11
2011-04-03Sprinkle spltty around code which plays with either the video memory orMiod Vallat
the backing store. The state of a VT is only coherent if both the active flag and the backing store are in order, which is not the case during VT switches. This fixes display glitches occuring during VT switches if one of the VT involved is doing a lot of tty updates. Noticed by deraadt@ on a machine too fast for mere mortals.
2011-04-03use nitems(); no binary change for drivers that are compiled on amd64.Jasper Lievisse Adriaanse
ok claudio@
2011-04-03Move PPWAIT flag from struct proc to process, so that rthreads inPhilip Guenthe
a vforked child behave correctly. Have the parent in a vfork() wait on a (different) flag in *its* process instead of the child to prevent a possible use-after-free. When ktracing the child return from a fork, call it rfork if an rthread was created. ok blambert@
2011-04-03No need to include uvm/uvm_extern.h and fix a typo.Claudio Jeker
Both found by miod@
2011-04-03Fix an #ifdef: uvm_pmr_isfree() is also used when DEBUG is definedPhilip Guenthe
Pointed out by Fred Crowson. ok ariane@
2011-04-03fix typos in commentsStefan Sperling
ok deraadt henning sthen thib (though thib says he can't spell)
2011-04-03As of r1.54 of nd6_rtr.c we don't add addresses from interrupt contextStefan Sperling
anymore so the allocation in in6_update_ifa() can now wait. ok deraadt henning
2011-04-03Kill redundant offsetof definitions; ok deraadt henning sthen thibStefan Sperling
2011-04-03Clean up buf flagsBob Beck
ok thib@
2011-04-03Safer, big mem friendly, allocation of ATAPARAMS buf that is theKenneth R Westerback
target of DMA. ok deraadt@ dlg@
2011-04-03Iopoolification of some less common scsi drivers.Kenneth R Westerback
ok dlg@ ("miod will not object" dlg@)
2011-04-03knf - trailing whitespace flense.Bob Beck
ok henning@
2011-04-03Re-enable bce(4) now that it is fixed.Claudio Jeker
2011-04-03Use a own "bounce buffer" that is used to send and receive packets.Claudio Jeker
This allows bce to run properly on systems with more then 1G of physical memory. It also makes the driver a lot simpler since the DMA rings are now mostly static. bce is short for bcopy ethernet. OK dlg@, just commit it deraadt@
2011-04-02just some spaces; no binary change.Marco Peereboom
2011-04-02Remove the AMD GART based iommu code.Owain Ainsworth
With current strategies to put memory in the ``correct'' place it isn't needed. There's also the problem that it did not work on all machines, failing completely on some and utterly breaking DMA. So just remove it. If anyone needs it it will be in the Attic. ok deraadt@
2011-04-02- use nitems(); no binary change@Jasper Lievisse Adriaanse
ok jsg@
2011-04-02Iopoolification.Kenneth R Westerback
ok dlg@ "I'm interested" miod@
2011-04-02Enable bigmem by default on amd64.Bob Beck
ok deraadt@
2011-04-02dont let pfsync defer packets for states with NOSYNC set.David Gwynne
2011-04-02The dma pools need to be IPL_VMTheo de Raadt
ok dlg
2011-04-02Move P_SUGID and P_SUGIDEXEC from struct proc to struct process, soPhilip Guenthe
that you can't evade the checks by doing the dirty work in an rthread ok blambert@, deraadt@
2011-04-02Constrain the buffer cache to use only the dma reachable region of memory.Bob Beck
With this change bufcachepercent will be the percentage of dma reachable memory that the buffer cache will attempt to use. ok deraadt@ thib@ oga@
2011-04-02Constraint checking - ensure that physical addresses for dma are belowBob Beck
the top of the dma constraint range and panic if they are not. ok deraadt@, thib@, oga@