summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-11-19Add atomic 32-bit cas operations.Paul Irofti
This is needed for future acpi global locking routines. Okay kettenis@
2012-11-19Use a more descriptive name for the userland cas operation.Paul Irofti
Substitute atomic_ucas_32 with futex_atomic_ucas_int32 to make it obvious who's using this api. Suggested by and okay kettenis@.
2012-11-19If uvm_km_kmemalloc_pla() fails when just creating a thread (and not aPhilip Guenthe
process), then don't decrement the total and per-user counts of processes. ok deraadt@ miod@
2012-11-18These functions all should be called with splbio, so splassert(IPL_BIO)Bob Beck
everywhere instead of setting splbio. ok krw@ pirofti@
2012-11-18Small memcpy optimizationsStefan Fritsch
On x86, the xchg operation between reg and mem has an implicit lock prefix, i.e. on MP, it is a relatively expensive atomic operation. This is not needed here. Instead of swapping arguments on the stack, load them in reverse order and jump further into bcopy (idea by kettenis@). ok kettenis@
2012-11-17 Don't map a buffer (and potentially sleep) when invalidating it in vinvalbuf.Bob Beck
This fixes a problem where we could sleep for kva and then our pointers would not be valid on the next pass through the loop. We do this by adding buf_acquire_nomap() - which can be used to busy up the buffer without changing its mapped or unmapped state. We do not need to have the buffer mapped to invalidate it, so it is sufficient to acquire it for that. In the case where we write the buffer, we do map the buffer, and potentially sleep.
2012-11-17buf_acquire() can sleep, so advance down b_vnbufs afterwardsTheo de Raadt
ok beck guenther
2012-11-17Simplify vio_iff() a bit, set own MAC in unicast MAC filter (needed byStefan Fritsch
virtualbox). Original patch by Dinar Talypov t.dinar.m AT gmail.com Tweaks by brad@ and sf@ OK brad@
2012-11-17regenMark Kettenis
2012-11-17Add missing Adaptec 2915LP entry I spotted in a dmesg a while ago.Mark Kettenis
2012-11-17Newer chips feature "advanced" bluetooth coexistence, which is why sendingMark Kettenis
them the "normal" command to configure bluetooth coexistence fails and makes the firmware crash. Rename the IWN_FLAG_NO_BT_COEX flag and adjust some comments to reflect this knowledge. ok jcs@, mikeb@, mpi@
2012-11-17Add support for Intel Centrino Wireless-N 1030. Might not fully work yet, butMark Kettenis
instead of causing a firmware crash, scanning now works. Tested by Daniel Levai.
2012-11-16Add oce(4) / mfii(4) and virtio devicesBrad Smith
i386 CD image also build/boot tested by todd@ ok mikeb@ deraadt@
2012-11-15Print UniNorth/U3 revision number, taken from opemfirmare, to know whichMartin Pieuchot
AGP chipset is present. This will help if some quirks are needed. ok mikeb@, kettenis@, miod@
2012-11-15this code is shared into userland, and there it should not pullTheo de Raadt
in sys/mbuf.h ok claudio
2012-11-15Do not try to transmit packets if the interface is not running.Joel Sing
ok chris@ deraadt@ dtucker@ mikeb@
2012-11-14allocate a mailbox payload dma memory upfront instead of per requestMike Belopuhov
2012-11-14add support for the lenovo usb 2.0 ethernet adapterjoshua stein
2012-11-14regenjoshua stein
2012-11-14add lenovo usb ethernet adapterjoshua stein
2012-11-14Use the iwn-6030 firmware for the Intel Centrino Advanced-N 6030 as well.Mark Kettenis
Makes these variants actually work. Based on a diff from James Turned, also confirmed by weerd@
2012-11-13Writing a 1 to the MEF bit of the ERRSTS0 register of the 82443LX host bridgeMark Kettenis
when it is already cleared will trigger an NMI if the corresponding bit ini the ERRCMD register is enabled. So instead of unconditionally writing 1 into some of the bits, simply read the register and write back the value that we just read. This will clear any status bits that were set (since they are R/WC) and leave all other bits alone. Tested by Karlis Mikelsons.
2012-11-13Do not advance the timecounter too fast on MULTIPROCESSOR kernels; noticedMiod Vallat
and ok aoyama@
2012-11-13do an OACTIVE/if_start dance only once per tx interruptMike Belopuhov
2012-11-13enable hardware tx checksum offloading as oce doesn'tMike Belopuhov
seem to require an initialized pseudo-header checksum
2012-11-13more cleanup missed in the previous commitMike Belopuhov
2012-11-13major cleanup; get rid of the oce_destroy_queueMike Belopuhov
2012-11-13Correct the first argument of agpmmap() making possible to mmap the AGPMartin Pieuchot
aperture. ok kettenis@
2012-11-12protect rxeof path with an splnet; ok kettenisMike Belopuhov
2012-11-12move some stuff around, do minor cleanupMike Belopuhov
2012-11-12add IWN_FLAG_NO_BT_COEX define for previous 6235 support in if_iwnjoshua stein
2012-11-11add support for the Intel Centrino Advanced-N 6235 to iwn(4).joshua stein
committed over a 6235 device, of course. ok deraadt@ kettenis@ stsp@ armani@
2012-11-11align ifaliasreq.ifra_addr similar to the way that ifreq is fixed --Theo de Raadt
a gruesome union, to block the compiler from placing the struct incorrectly aligned on stack frames ok guenther
2012-11-10use boolean_t not bool for a local boolean type so this won'tJonathan Gray
clash with a c99 style bool type. ok millert@ deraadt@
2012-11-10Simplify error handling, add IFCAP_VLAN_MTUStefan Fritsch
Patch by Dinar Talypov t.dinar.m AT gmail.com OK claudio@, mikeb@
2012-11-10Rewrite the receive filter handling code and cleanup the ioctl bits.Brad Smith
ok jsg@
2012-11-10Rewrite the receive filter handling code and cleanup the ioctl bits.Brad Smith
ok jsg@
2012-11-10add a flag indicating whether shared code was initialized so that weMike Belopuhov
can prevent calling athn_detach if it wasn't; suggestion and ok stsp
2012-11-10sync some 82599 bits with freebsd driver; ok jsgMike Belopuhov
2012-11-10Number of swap pages in use must be smaller than tha total number of swapMark Kettenis
pages, so fix non-sensical comparison introduced in rev 1.77. ok miod@, krw@, beck@
2012-11-10Recent x86 CPUs come with a constant time stamp counter. If this isMarcus Glocker
the case we verify if the CPU supports a specific version of the architectural performance monitoring feature and read out the current frequency from the fixed-function performance counter of the unhalted core. My initial motivation to implement this was the Soekris net6501-70 which comes with an Intel Atom E6xx 1.60GHz CPU. It has a constant time stamp counter plus speed step support and boots on the lowest frequency of 600MHz. This caused hw.cpuspeed and hw.setperf to reflect the wrong values. The diff is a cooperation work with jsg@. The fixed-function performance counter read code comes from a former diff of him. OK jsg@
2012-11-09don't sync dma memory for the whole ring when updating a singleMike Belopuhov
entry but rather sync the whole ring once done with individual entries; use proper dma sync flags as well
2012-11-09merge if_ocevar.h and if_oce.c; do some minor cleanup while hereMike Belopuhov
2012-11-09cleanup oce_encapMike Belopuhov
2012-11-09stop passing if_id aroundMike Belopuhov
2012-11-09improve flow control codeMike Belopuhov
2012-11-09To be able to receive ethernet packets with VLAN tags oce_set_promiscMike Belopuhov
should not disable VLAN promiscuous mode set up by oce_config_vlan. Move VLAN and Flow Control configuration to oce_init so that it would be rerun every time we plumb the interface.
2012-11-09cleanup register definitionsMike Belopuhov
2012-11-08make link state update code more comprehensible by using some ideas from myx(4)Mike Belopuhov
2012-11-08hardware supports mtu values from 256 up to 9000;Mike Belopuhov
figured out the hard way, linux driver agrees