summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-06-27uvm constraints. Add two mandatory MD symbols, uvm_md_constraintsThordur I. Bjornsson
which contains the constraints for DMA/memory allocation for each architecture, and dma_constraints which contains the range of addresses that are dma accessable by the system. This is based on ariane@'s physcontig diff, with lots of bugfixes and additions the following additions by my self: Introduce a new function pool_set_constraints() which sets the address range for which we allocate pages for the pool from, this is now used for the mbuf/mbuf cluster pools to keep them dma accessible. The !direct archs no longer stuff pages into the kernel object in uvm_km_getpage_pla but rather do a pmap_extract() in uvm_km_putpages. Tested heavily by my self on i386, amd64 and sparc64. Some tests on alpha and SGI. "commit it" beck, art, oga, deraadt "i like the diff" deraadt
2010-06-27mpii was modelled very heavily on mpi which means that it inherited a splitDavid Gwynne
of pci specific code and the rest of the driver. in hindsight, this was a stupid thing to do in mpi since there will only ever be pci based mpi controllers. the same goes for mpii, but unlink mpi it doesnt have the bus and generic driver split at the file level, just in the code. this merges the pci and generic mpii autoconf code so its just mpii autoconf code. apologies for the files.pci change. tested by me ok marco@
2010-06-27stuff nsaddr/ndaddr/nsport/ndport (addrs/ports after NAT, used a lot whileHenning Brauer
walking the ruleset and up until state is fully set up) into pf_pdesc instead of passing around those 4 seperately all the time, also shrinks the argument count for a few functions that have/partialy had an insane count of arguments. kinda preparational since we'll need them elsewhere too, soon ok ryan jsing
2010-06-27Fix DIOCCHANGERULE ioctl broken in the remove of the address pools.Ryan Thomas McBride
Reported by Alexander Vladimirov.
2010-06-27Add another one. -mojMats O Jansson
2010-06-27GPIO quirk for IDT 92HD71B7 in HP laptops (such as HP HDX 18)Jacob Meuser
2010-06-27Regen. -mojMats O Jansson
2010-06-27Another DisplayLink device. -mojMats O Jansson
2010-06-27Factor out code used to read a disklabel. We'll be making use of this soon.Joel Sing
ok deraadt@
2010-06-27Use a mutex to make atomic operations atomic on multiprocessor kernels.Joel Sing
ok kettenis@
2010-06-26Allow processes to be scheduled onto secondary CPUs.Joel Sing
ok kettenis@
2010-06-26Don't #include <sys/user.h> into files that don't need the stuffPhilip Guenthe
it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
2010-06-26Grow COM_IBUFSIZE from 1024 to 8192 to be enough size for recentYASUOKA Masahiko
devices. This will fix the problem using KDDI W04K that has 3.1 Mbps in downlink. ok deraadt@
2010-06-26If you put CISS_LOCK()/CISS_UNLOCK() around a switch statement, youKenneth R Westerback
must break out of the cases, not directly 'return' error codes. I think the error case is currently impossible, but why leave an armed bear trap lying about?
2010-06-26timeout_del() the timers before destroying an interface so that no timeoutClaudio Jeker
is fired afterwards. Fixes a use after free crash.
2010-06-26Not that anyone uses it, but bring ss(4) device referencing intoKenneth R Westerback
line with sd/cd/st.
2010-06-26make sure widgets are connected to usable widgets by default.Jacob Meuser
for example: outputs.sel7_source= -> outputs.sel7_source=adc-0:1 on the HP HDX 18
2010-06-26Implement a simple keepalive mechanism in gre(4) that is compatible withClaudio Jeker
the one used by Cisco. It sends a return gre packet inside a gre packet to the other side and expects it to return. OK deraadt, reyk additional testing by sthen
2010-06-26PCH needs its own Low Power Link Up code as it it is configuredJonathan Gray
in the PHY instead of the MAC like ICH8.
2010-06-26Add GENERIC.MP.Joel Sing
ok kettenis@
2010-06-26bye bye DLT_OLD_PFLOG & friends. dead since 2003. 7 years oughta be enoughHenning Brauer
ok ryan theo reyk
2010-06-26Don't try to halt an AP if holding sched_lock since that causes hangsMike Larkin
on resume. Fail early if this is detected, so that we have a chance to catch it. ok kettenis@, deraadt@
2010-06-26Fix 100% interrupt usage on amd64 MP resume.Mike Larkin
ok kettenis@, pirofti@, marco@
2010-06-26xs->cmd[n] doesn't mean the n'th byte, because xs->cmd is a structKenneth R Westerback
*scsi_generic. Change xs->cmd[0] references in sii.c to xs->cmd->opcode and do (caddr_t) arithmetic when copying chunks into the adw adapter struct. Found by Matthew Dempsky, diff tweaked and tested by me.
2010-06-26Do not store curcpu() in syscall and trap handlers since we can go toJoel Sing
sleep and wake up on another CPU. ok kettenis@
2010-06-26Avoid a potential race when unlocking a mutex.Joel Sing
ok kettenis@
2010-06-26add HUAWEI E182 (aka Emobile D31HW)Yojiro Uo
2010-06-26regenYojiro Uo
2010-06-26add new umsm device (HUAWEI E182 / aka Emobile D31HW)Yojiro Uo
2010-06-25move st over to using xshandlers for scheduling io. based on theDavid Gwynne
same changes in cd and sd. tested by and ok krw@
2010-06-24- remove ISAPNP_FREE and ISAPNP_MALLOC macro's and just use them inline.Jasper Lievisse Adriaanse
ok thib@ deraadt@
2010-06-24we cant rely on being able to sleep when dumping, so dont lose theDavid Gwynne
SCSI_NOSLEEP flag on the xs when setting extra flags by oring them in rather than assigning them. from matthew dempsky
2010-06-24The new AMD Opteron CPUs have up to 4 HyperTransport links instead of 3.Mark Kettenis
ok dlg@
2010-06-23No need to do the splbio/splx dance around the pool_get inThordur I. Bjornsson
getphysbuf() as the bufpool is already protected. From Matthew Dempsky <matthew at dempsky dot org> OK blambert@
2010-06-23Fix a bug in uvm_pmr_get1page() which could cause us to bounceThordur I. Bjornsson
between an allocating process failing and waking up the pagedaemon and the pagedaemon (since everything was dandy). Rework the do ... while () logic searching for pages of a certain memtype in a pmr into a while () loop where we check if we've found enough pages and break out of the pmr and check the memtype inside the loop. This prevents us from doing an early return without enough pages for the caller even though more pages exist. comments and help from oga, style nit from miod. OK miod@, oga@
2010-06-23Zap a dead prototype, crypto_thread(); Leftover since crypto wasThordur I. Bjornsson
moved from a special kthread to workqs. OK dlg@
2010-06-23regenDavid Gwynne
2010-06-23fusion-io devicesDavid Gwynne
2010-06-23regenDavid Gwynne
2010-06-23PLX PEX 8624 as found in a dell r815.David Gwynne
2010-06-23regenDavid Gwynne
2010-06-23add a metric buttload of RD890 pcie bridgesDavid Gwynne
2010-06-23cut ami over to iopools.David Gwynne
makes the ioctl and sensor paths more reliably now that they cant fail due to a ccb allocation failure, and allows better sharing of resources between multiple logical volumes and physical devices.
2010-06-23switch ami over to using mutexes instead of splbio to protect itself. thisDavid Gwynne
protects the ccb runqueues and the mailbox with a single mutex. the biggest change as a consequence of this is a rewrite of the polled command code. it now forces the polled command onto the chip ahead of the pending runqueue, and simply runs the interrupt handler until the ccb completes. tested by sthen@
2010-06-22When mapping memory into dvma space, use pmap_kenter_pa() instead ofOwain Ainsworth
pmap_enter(), according to the XXX comment right above. Removes another un-CANFAILed pmap_enter. ok miod@
2010-06-22cleanup/fix PA predistortion code.Damien Bergamini
2010-06-22Don't play with cacheability in vmapbuf() - pmap_enter() knows what it does.Miod Vallat
This is a leftover from a very old workaround for a very old and long gone pmap_enter() bug.
2010-06-22Since our caches are snooping, we only need to broadcast cache invalidatesMiod Vallat
on 88110 designs. Brings a ~8% speedup on GENERIC.MP on 197DP.
2010-06-22Some early 2.x sun4c PROM will default to serial input but glass output if noMiod Vallat
keyboard is connected but a framebuffer exists in the machine; the current kernel console code will complain and switch to full serial, but later on the framebuffer would incorrectly take over the console. Correctly detect this situation and reset the `fbnode' variable. This is an improvement of the fix which went in rev 1.54 of this file.
2010-06-22protect the ccb free list with a mutex rather than relying on splbioDavid Gwynne