summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
2011-04-02remove the vnode_if.* files, as they are now totallyThordur I. Bjornsson
obsolete. the move to vfs_vops.c is here to stay, so they are pointless.
2011-04-02Remove bufqs from vnds, as the disk that houses the imageThordur I. Bjornsson
backing the vnd also has a bufq. So the buf is just passed between the vnd bufq and the disk bufq (almost immediately). Also see previous revision for more insight. OK deraadt@, dlg@
2011-04-02Safer, big mem friendly, allocation of identify buf that is theKenneth R Westerback
target of DMA. ok dlg@ deraadt@ thib@
2011-04-02rmeove the link1 hack, it is in the way, it is only half-baked and doesn'tHenning Brauer
work as you think it does, and the same can easily be achieved using pf ok claudio dlg sthen theo
2011-04-02correctly handle data underruns. this makes things like ses(4) and safte(4)David Gwynne
work (they send big buffers to devices and expect less so they dont have to do two ops for one read), and would make lun probes work again, etc. based on the solaris code supplied by lsi.
2011-04-02Count the number of physical pages within a memory range.Ariane van der Steldt
Bob needs this. ok art@ bob@ thib@
2011-04-02add a pipex ioctl that lets you specify a description on pppx interfaces byDavid Gwynne
session id. ok claudio@ yasuoka@ as part of a larger diff code from jonathan matthew
2011-04-02configure the addresses on the pppx interface when its created by npppd soDavid Gwynne
it is immediately functional. ok claudio@ yasuoka@ as part of a larger diff code by jonathan matthew
2011-04-02add the local ip address to the session request ioctl so npppd can tell itDavid Gwynne
to the kernel. ok yasuoka@ claudio@ as part of a larger diff
2011-04-02Kill a lot of spaces and make this a bit more KNF. No binary change.Claudio Jeker
2011-04-01Fix comment: amd64's list of callee-saved registers isn't the same as i386Philip Guenthe
2011-04-01Two problems with vslock_device functions.Artur Grabowski
- Fix error handling so that we free stuff on error. - We use the mappings to keep track of which pages need to be freed so don't unmap before freeing (this is theoretically incorrect and will be fixed soon). This makes fsck happy on bigmem machines (it doesn't leak all dma:able memory anymore). beck@, drahn@, oga@ ok