summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-04-05Test iterated variable instead of a temporary variable from the previousAriane van der Steldt
code block (not 'high_next' but 'low'). While here, change the KASSERT to a KDASSERT. Pointed out by Amit Kulkarni. ok thib@, miod@
2011-04-05Move timespec utility functions to a header file.Paul Irofti
Iinitially I wanted to just lose the static for ddb, but then I realised they will be needed for the futex implementation as well so its better to have them in a separate header file.
2011-04-05fix nasty buffer cache bug where we could forget about pages shrunk off of aBob Beck
buffer as the result of bread_cluster. ok art@ thib@
2011-04-05Add support for per-rthread base-offset for the %fs selector on amd64.Philip Guenthe
Add pcb_fsbase to the PCB for tracking what the value for the thread is, and ci_cur_fsbase to struct cpu_info for tracking the CPU's current value for FS.base, then on return to user-space, skip the setting if the CPU has the right value already. Non-threaded processes without TLS leave FS.base zero, which can be conveniently optimized: setting %fs zeros FS.base for fewer cycles than wrmsr. ok kettenis@
2011-04-05binary vs logical or, found by clangJonathan Gray
ok mikeb@ deraadt@
2011-04-05in pf_check_proto_cksum, consider packets with the CSUM_OUT flags setHenning Brauer
to be ok. there is no checksum we could verify and for the moment these are locally generated packets anyway. and this really is just the stupid 'stealth bridge detection' countermeasure shit (when you want a "stealth" bridge and explictely ask pf to return RSTs/icmp errors, you need to seek medical help in any case). this is needed so that we eventually can move the in_proto_cksum_out (and its ipvshit counterpart once we get it) calls to after the pf_test calls in the output routines ok dlg fondue-kinda-ok claudio
2011-04-05in_proto_csum_out: if M_ICMP_CSUM_OUT is set, do the icmp checksumHenning Brauer
ok dlg fondue-kinda-ok claudio
2011-04-05define M_ICMP_CSUM_{OUT,OK,BAD} for consistency with tcp and udpHenning Brauer
dunno wether there is any hardware that supports icmp cksum offloading, but that's not the point - we're moving towards a world where the stack doesn't bother with setting checksums, and lets the hardware do them. in case the harware can't the output routines cope ok dlg, claudio kinda too, he's fondueing and thus not reading the diff but i explained it to him and he agrees
2011-04-05We only use the io space in em_reset_hw() on a few MAC typesJonathan Gray
and it does not exist at all on newer hardware so only map it on those types we are interested in. Fixes "PRO/1000 PT (82575EB)" for Sylvain Desveaux and will also be required for at least 82580. ok claudio@
2011-04-05wd_hibernate_io() is a standalone disk io writer which tries to notTheo de Raadt
damage kernel memory very much while doing the job. It is not very pretty yet, but improving it will need some MI work. ok mlarkin jsg dlg
2011-04-05- use nitems() no binary change on amd64Jasper Lievisse Adriaanse
"reads OK" claudio@
2011-04-05Iopoolification. Testing by marco@.Kenneth R Westerback
ok dlg@ marco@
2011-04-05regenMiod Vallat
2011-04-05Icelandic keyboard mapping. Commited from an Icelandic keyboard.Miod Vallat
2011-04-05Remove portalfs.Thordur I. Bjornsson
While it is a terribly cool idea, it's just awful and since noone has stepped up to the plate to keep it up with the current vop state, retire it to the attic. ok krw@, deraadt@, guenther@, miod@. comments from jmc@
2011-04-05Replace if/else ladder with much more legible switch statement forBret Lambert
testing tcp flags. ok henning@ claudio@
2011-04-05mechanic rename M_{TCP|UDP}V4_CSUM_OUT -> M_{TCP|UDP}_CSUM_OUTHenning Brauer
ok claudio krw
2011-04-05Provide macros for ssm/rsm.Joel Sing
2011-04-05Implement syscall_return.Joel Sing
"Go ahead" kettenis@
2011-04-05handle ACK prioritization for v6, ok henning@Stuart Henderson
2011-04-05Move PSW in struct cpu_info. Also ensure that we leave interrupts disabledJoel Sing
when switching to virtual mode in the trap handler. Re-enabling interrupts whilst in the trap handler for an interrupt makes life interesting. ok kettenis@
2011-04-05Regenerate -- linux_sys_set_tid_address().Paul Irofti
2011-04-05Add set_tid_address() syscall. Lots of help from and okay guenther@.Paul Irofti
This is more than a simple syscall.This expands TLS support quite a bit. Also linux_sys_clone() handles CLONE_CHILD_CLEARTID, CLONE_CHILD_SETTID, CLONE_PARENT_SETTID flags as well as the CLONE_SETTLS by doing what set_thread_area() is doing. Next on the list is futex support which should allow compat to cope with newer Linux kernels.
2011-04-05Fix PID fetching -- noticed last night by guenther@.Paul Irofti
2011-04-05Fix logic bug in debug code and enable spllower()/splraise().Joel Sing
ok kettenis@
2011-04-05provide VSCSI_STAT_RESET so userland can tell us that the connection toDavid Gwynne
the device was reset rather than blindly fail it. requested by claudio@
2011-04-05Remove unused macro.Bret Lambert
ok henning@ claudio@
2011-04-05hid_locate() is supposed to accept the last two arguments being NULL, soMiod Vallat
correctly handle this in the failure case.
2011-04-05Iopoolification to eliminate another few instances of the currentKenneth R Westerback
shibboleth - NO_CCB. This in no way means this driver works. ok gcc@ dlg@
2011-04-05Rename a few xbow global variable names to make them less ambiguous.Miod Vallat
Remember the hub widget number of each node, instead of only the master node. Use this in xbridge to compute the proper direct DMA map configuration register value (it needs to embed the hub widget number matching the physical address range). This should allow us to pick memory from a different node than the one we booted from, as the DMA window, if wanted.
2011-04-05remove the a_desc member from the vop_*_args structuresThordur I. Bjornsson
as it's unused and unset.
2011-04-05move forward with scsi multipathing.David Gwynne
the big change is how paths between mpath capable devices and the kernel are managed. originally the midlayer would steal the links to the devices and hide them behind mpath. all the changes an adapter made to a link (eg activate or detach), the midlayer had to test if it was an mpath link and then call special mpath code to handle it. the original code also assumed that all paths behaved the same, but the reality is that different devices have different command sets and behaviours. figuring out which behaviour to pick and prioritising them is basically the same job autoconf does with match and attach. rather than special casing mpath in the midlayer and reimplimenting autoconf, this turns paths into actual device drivers with match and attach routines. after they figure out if the path is active, they then give it to mpath(4) to use as a backend. i have written drivers for symmetric access devices (sym(4)) where all paths to the same logical unit are as good as each other, lsi/engenio arrays (rdac(4), and emc arrays (emc(4)). the rdac and emc drivers only detect active paths at attach time, the do not cope if the controller changes state unless you unplug the path and plug it in again to retest the active state. they also do not have support for directing array failover. operating and hoplugging has been tested with mpii(4), fc and sas mpi(4), and iscsi via vscsi (claudio did this too). ok krw@ deraadt@
2011-04-05Every single vop_default is set to eopnotsupp, so retire itThordur I. Bjornsson
and return EOPNOTSUPP directly from the VOP_* functions. Filesystems should, at some point fill in every function in the vop_default struct so we can get rid of the 'if' statements in VOP_*.
2011-04-05Enable wide mode for PSW defaults.Joel Sing
ok kettenis@
2011-04-05Remove unused variable.Paul Irofti
2011-04-05ditch fastroute, an ipf feature that made its way into pf beforeMike Belopuhov
route-to and friends were introduced making it obsolete. one even has to look it up int the ipf manual to get and idea what it's supposed to do. reuse some kernel bits for the upcoming nat64 stuff. "kill it with fire" from mcbride, "what mcbride said" from mpf, "kill kill kill" and ok henning.
2011-04-05Save and restore the PSW value when making a PDC call, rather than blindlyJoel Sing
reloading from kpsl. ok kettenis@
2011-04-05Push COMPAT_FREEBSD in front of a whale. Buggy, out of date, noPhilip Guenthe
one has been weeding it, and it makes life harder. Toasts of Brennivin for its passing from many; diff ok henning@
2011-04-05add a scsi probe routine so isp(4) can reject high luns when the midlayerDavid Gwynne
is probing, rather than every time it issues an io. ok krw@
2011-04-05Deep below wdc_ioc_ata_cmd() it is possible that some controller (present orTheo de Raadt
future) will try to dma the command buffer to the disk in some way. Use dma_alloc() to get ahead of this potential failure path. ok dlg krw
2011-04-05Passing M_WAITOK to mbuf functions is supposed to be a contract betweenBret Lambert
the caller and the function that the function will not fail to allocate memory and return a NULL pointer. However, m_dup_pkthdr() violates this contract, making it possible for functions that pass M_WAITOK to be surprised in ways that hurt. Fix this by passing the wait flag all the way down the functions that actually do the allocation for m_dup_pkthdr() so that we won't be surprised. man page update forthcoming ok claudio@
2011-04-05Fix function argument list.Paul Irofti
2011-04-05 - Change pool constraints to use kmem_pa_mode instead of uvm_constraint_rangeArtur Grabowski
- Use km_alloc for all backend allocations in pools. - Use km_alloc for the emergmency kentry allocations in uvm_mapent_alloc - Garbage collect uvm_km_getpage, uvm_km_getpage_pla and uvm_km_putpage ariane@ ok
2011-04-05Get rid of the ATE code, and do not assume the direct DMA window is set upMiod Vallat
at physical address zero onwards, but instead assume it is controlled by the dma_constraints range. This will eventually allow a different window to be selected.
2011-04-04Fix function argument list -- 1989 is long gone!Paul Irofti
2011-04-04turn some macros into functions; saves 1400+ bytes from the kernelBret Lambert
on amd64 ok claudio@
2011-04-04Remove debug code.Ariane van der Steldt
Pointed out and ok mlarkin@
2011-04-04Make sure to clear the upper bits of the segment selectors in ddb_regsMiod Vallat
before entering ddb for real, so that `show registers' displays (what passes for) sane values for them. Noticed & prodded by mlarkin@
2011-04-04Instead of calling tcp_reass (tcp reassembly) with magic argumentsBret Lambert
in order to skip most of the reassembly logic and try to flush available tcp segments to the socket, just split it off into its own function and use it where appropriate. ok claudio@ henning@
2011-04-04Regenerate -- linux_sys_[g|s]et_thread_area().Paul Irofti