summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2013-01-16switch from using softclock ticks to getnanotime when putting time on theDavid Gwynne
wire for v5 packets. ok (and lots of gentle prodding from) florian@
2013-01-16Consistently call sr_scsi_done instead of scsi_done.Joel Sing
ok krw@
2013-01-16Unbreak the negation toggle code when re-loading pf tables. OtherwiseMarkus Friedl
negating existing entries on re-load does not work (e.g. changing 192.168.6.0/24 to !192.168.6.0/24 in table was ignoed). ok mikeb@, henning@ mpf@, bluhm@,
2013-01-16Loongson: add throttling support.Paul Irofti
This commit allows CPU throttling on the 2F systems. Inspired by an old diff from otto@. Help from and okay miod@.
2013-01-16Add a function that handles the completion of a ccb.Joel Sing
ok krw@
2013-01-16Add a new capability flag to identify disciplines where read failures areJoel Sing
not necessarily terminal (i.e. we have redundancy). ok krw@
2013-01-16Set resid to zero if the scsi transfer completed without error.Joel Sing
ok krw@
2013-01-16Factor out code used to release ccbs from a workunit.Joel Sing
ok krw@
2013-01-16regenBrad Smith
2013-01-16Some corrections for D-Link device names.Brad Smith
ok jsing@
2013-01-16fix typo in commentDarren Tucker
2013-01-16init comconsiot to X86_BUS_SPACE_IO in case someone changes the value ofDavid Gwynne
that thing to be something other than 0, which as a global it gets initted to.
2013-01-16Add hardware VLAN tag/untag support for VT6105M chips. Help/feedback/okDarren Tucker
brad@ chris@ jsing@ kettenis@ mikeb@ sthen@
2013-01-16Sort the PCI ids.Brad Smith
ok dtucker@ jsing@
2013-01-16Add hardware VLAN tag/untag support for VT6105M chips. Help/feedback/okDarren Tucker
brad@ chris@ jsing@ kettenis@ mikeb@ sthen@
2013-01-16do not expose NETDEV to userland from param.hTheo de Raadt
2013-01-16regenBrad Smith
2013-01-16Add D-Link DFE-520TX C1Brad Smith
2013-01-16Keep a count of packets added to the chip's TX queue and only poke the chipDarren Tucker
if we've added a packet. Reduces CPU util a tiny bit. ok brad@ jsing@
2013-01-16oops, one IO_NODELOCKED left behind in the a.out coredumperTheo de Raadt
ok guenther
2013-01-16Pass struct inpcb pointer to in_pcb...() functions instead of voidAlexander Bluhm
pointer. Allows stricter type checking. No functional change. OK claudio@
2013-01-15restrict KERN_PROC_ARGS lookup of KERN_PROC_NENV and KERN_PROC_ENVjoshua stein
to process owner and root ok deraadt millert guenther
2013-01-15Loongson: Add a stat clock for the lemote machines.Paul Irofti
The stat clock is implemented so that it also covers, at least according to the tests I've done, Torek's paper on randomized sampling. Most of the bits for randomizing the stat ticks were taken from sparc's implementation and adapted to the companion chip's MFGPT frequencies. Before this my lemote showed a 8% cpu usage for the cpuhog example from Torek's paper even though openssl speed showed differences up to 27% when ran with and without cpuhog. With the new stat clock it shows cpuhog around 18-22%, which I think is the proper value. Okay miod@.
2013-01-15More syncing with FreeBSD bge version. No binary change.Claudio Jeker
2013-01-15Pass an EFBIG error to user land when the maximum splicing lengthAlexander Bluhm
has been reached. This creates a read event on the spliced source socket that can be noticed with select(2). So the kernel passes control to the relay process immediately. This could be used to log the end of an http request within a persistent connection. deraadt@ reyk@ mikeb@ like the idea
2013-01-15Switch mfs to bufq. This simplifies the code, gives us queue limits forJoel Sing
free and uses FIFO queueing (rather than the current LIFO queueing). Tested by sthen@ ok beck@ krw@
2013-01-15Changing the socket buffer flags sb_flags was not interrupt safeAlexander Bluhm
as |= and &= are non-atomic operations. To avoid additional locks, put the flags that have to be accessed from interrupt into a separate sb_flagsintr 32 bit integer field. sb_flagsintr is protected by splsoftnet. Input from miod@ deraadt@; OK deraadt@
2013-01-15Process futex requeuing even when the thread times out or is signaled.Philip Guenther
Bug report from frantisek holop (minusf at obiit.org) ok pirofiti@
2013-01-15Flushing prefixes of autoconfigured IPv6 addresses with ndp -PAlexander Bluhm
caused an uvm fault. The function in6_purgeaddr() might already free the prefix before prelist_remove() is called. So call in6_purgeaddr() for all addresses first and then loop over the remaining prefixes and call prelist_remove(). OK claudio@
2013-01-15Implement a function that gets and correctly initialises a ccb for I/O,Joel Sing
along with a function that enqueues a ccb on a workunit. ok krw@
2013-01-15implement bus_space_foo_8 for amd64. it will panic on attempts to do 8David Gwynne
byte operations on I/O space with "invalid I/O operation", but works great for mem mappings. compiled AND tested on myx(4) on amd64. ok deraadt@ kettenis@ miod@ pirofti@
2013-01-15Always initialise the discipline name, not just when we are doing a create.Joel Sing
2013-01-15Make the FAT setattr handling more consistent about unsupportedMartynas Venckus
attributes; making it more "user-friendly". Mostly from FreeBSD. OK guenther@, krw@.
2013-01-15Fix typos in comments and change the syntactic sugar of a function toClaudio Jeker
reduce the diff between Fx and Ox. OK gcc
2013-01-15put a tab after #define to make the diff between Fx and Ox smaller.Claudio Jeker
No binary change.
2013-01-15Keep a function pointer to the per-discipline I/O interrupt handler in theJoel Sing
discipline data structure. To be used with an upcoming diff.
2013-01-15dont use amd64 is currently broken cos it has noDavid Gwynne
bus_space_write_raw_region_8. disabling it for now.
2013-01-15Factor out workunit initialisation code.Joel Sing
ok krw@
2013-01-15Fix segmentation of buffers that straddle a boundary.Mark Kettenis
ok dlg@
2013-01-15Allow SIGKILL to terminate coredumping processes. Semantics decidedTheo de Raadt
with kettenis guenther and beck. ok guenther
2013-01-15Slice & dice coredump write requests into MAXPHYS blocks, andTheo de Raadt
yield between operations. Re-grab the vnode every operation, so that multiple coredumps can be saved at the same time. ok guenther beck etc
2013-01-15Loongson: Remove some of the unused defines.Paul Irofti
Increases readability.
2013-01-15use bus_space_write_raw_region_8 on 64bit archs when writing to the ringsDavid Gwynne
2013-01-15Loongson: Unbreak the tree after my last commit.Paul Irofti
Patch appended my final work on glxclk to an earlier version that I forgot was there.
2013-01-14map the registers PREFETCHABLE so things that can do write combining canDavid Gwynne
try and do write combining like the myx doco likes.
2013-01-14avoid extra bus_space barriers in the interrupt handler.David Gwynne
2013-01-14use one interrupt handler for the thtc headend, rather than seperateTheo de Raadt
interrupt handlers for the ports. this ensures that the 2nd port does not get starved. ok dlg
2013-01-14after OpenBSD requested a etherip rev 3 to solve a byte order weakness, andTheo de Raadt
worked with them to define a specific format, ietf quietly changed their mind and did something different. First step of transitioning over two release -- accept both types, but continue sending old format. pointed out by david.dahlberg@fkie.fraunhofer.de ok claudio
2013-01-14Loongson: Replace the system clock provided by the CPU with a GLX MFGPT.Paul Irofti
CPU throttling was not possible due to the fact that the system clock was the CPU clock. So slowing down the CPU would also slow down the passing of time. This commit adds a driver for the MFGPT1 clock from the AMD companion chip found on lemote and hooks it up as the system clock. It also changes the frequency value of hz from the default, which was 100, to 128. That's because the scaling on MFGPT clocks is represented by powers of two. Okay miod@.
2013-01-14Fix the sotfware.Joel Sing