summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-11-24add several backend pools to allocate mbufs clusters of various sizes outDavid Gwynne
of. currently limited to MCLBYTES (2048 bytes) and 4096 bytes until pools can allocate objects of sizes greater than PAGESIZE. this allows drivers to ask for "jumbo" packets to fill rx rings with. the second half of this change is per interface mbuf cluster allocator statistics. drivers can use the new interface (MCLGETI), which will use these stats to selectively fail allocations based on demand for mbufs. if the driver isnt rapidly consuming rx mbufs, we dont allow it to allocate many to put on its rx ring. drivers require modifications to take advantage of both the new allocation semantic and large clusters. this was written and developed with deraadt@ over the last two days ok deraadt@ claudio@
2008-11-24Implement link-state tracking on the routing table. Routes to interfacesClaudio Jeker
which are considered down will no be marked ~RTF_UP and so multipath routing will start to work as expected and not pump 50% of the traffic to nirvana. Most of the magic happens in rn_mpath_reprio() which fiddles with the routing table internals. The rest is more straight forward. get it in deraadt@
2008-11-24drop the requirement that the rx ring has to be filled with mbufs. we onlyDavid Gwynne
fill a slot when the mbuf allocator gives us an mbuf cluster.
2008-11-24Fixup wakeup pointers. interrupts work properly again.Owain Ainsworth
2008-11-24Don't unmap REGISTERS maps, we don't map them anymore.Owain Ainsworth
2008-11-24The mask is actually u_int32_t, not int.Marc Balmer
2008-11-24- Add two new ioctls to gpio(4), GPIOATTACH and GPIODETACH, to allow to attachMarc Balmer
and detach devices on a gpiobus at runtime. The offset and mask locators in kernel config files can still be used for static configuration, so this does not break existing custome kernel configs. - Have gpioow(4) unmap the pins it used from the gpiobus during detach Changes to gpioctl(8) will be a separate committ. ok uwe
2008-11-24Seed the random pool with the dmesg buffer at randomattach().Marco Pfatschbacher
This lets early arc4random() calls to return at least non-uniqe values on different machines. The dmesg will have different MAC addresses, etc. Also ignore the entropy count in arc4_stir, and just take what's there. sizeof(struct timeval) should be sizof(struct timespec) This was forgotten when we switched to nanotime. With help from mickey. OK djm@, deraadt@
2008-11-24die die dieTheo de Raadt
2008-11-24Respond to incoming connections, not only after we initiated the first one.Uwe Stuehler
Someone must have fumbled with this line by accident while doing the original port of the driver.
2008-11-24although there's no EOF condition defined for the handling of '?',Otto Moerbeek
but anyway reset the eof condition on stdin, so you don't get an infinite loop in the typical program after a ^D. reported by Tamas TEVESZ.
2008-11-24don't free extent on lastclose, it's static data now.Owain Ainsworth
2008-11-24Rework sdmmc locking to remove recursionBret Lambert
Add SDMMC_ASSERT_LOCKED(), replacing many locking calls, and sprinkling the assertion to make sure that future changes don't catch us out "please commit" uwe@
2008-11-24do the same for struct drm_file (file_priv) as previously done forOwain Ainsworth
dma_bufs; allow the driver to provide the size and not have the private data pointer. only radeon only needs this so far, but intel with GEM also needs it. Postclose was only used for freeing said private data, so this allows me to remove the postclose callback and rename preclose to close.
2008-11-24Instead of having a ``private data'' pointer in the dma buffers, justOwain Ainsworth
ask the driver how large they need the structure we allocate to be, and use inheritance like we do for struct device. Simplifies things a little bit and saves us a pointer.
2008-11-24remove more logically irrelevant DDR code from the SDR function; ok jsgConstantine A. Murenin
2008-11-24marco reminds me that these files changed tooTed Unangst
2008-11-24remove trailing "\n" from errx()Kevin Steves
2008-11-24actually set the bus_space_tagOwain Ainsworth
2008-11-24use irq_enabled instead of irq.Owain Ainsworth
2008-11-24This got lost somehow.Owain Ainsworth
2008-11-24change drm_attach_mi to drm_attach_pci. we take the pci_attach_args, andOwain Ainsworth
setup the drm_attach_args with the needed information. require interface version 1.1 libdrm has been requesting it for ages), which means that we can set the busid string at attach time. (generated in drm_attach_pci), also pass in the interrupt line and bst. Now we don't need dev->pa at all, so remove it, finally.
2008-11-24make device works out if it's agp and tells the drm driver, not theOwain Ainsworth
other way round. More dev->pa reduction
2008-11-24we're a real device now and we don't on-demand allocate our softc. DoOwain Ainsworth
not zero it during the cleanup ioctl.
2008-11-24use dev->dmat. Missed this one in an earlier diff.Owain Ainsworth
2008-11-24instead of functions that just return an error, just inline them intoOwain Ainsworth
the ioctl handler.
2008-11-24In pmap_write_protect() clear and set the protection bits atomically andKurt Miller
leave the rest alone. Also don't read *spte twice and compare results. feedback drahn@ okay art@ weingart@
2008-11-24oops. Use the correct struct member to map so that radeon doesn't panicOwain Ainsworth
on X startup. found by ckuethe@
2008-11-24In pmap_clear_attrs() use i386_atomic_clearbits_l() to only clear theKurt Miller
bits necessary. Also move up the pmap_map_ptes() call to before the diagnostic check. okay art@, weingart@
2008-11-24Return NO_CCB instead of TRY_AGAIN_LATER when ccb's run out.Kenneth R Westerback
"I'm all for it." marco@ "Yeah" deraadt@
2008-11-24syncDale Rahn
2008-11-24device id for OpenMoko, ok oga@Dale Rahn
2008-11-24styled code is happy codeTed Unangst
2008-11-23fancy new ext2fs can have big inodes. we can possibly still read themTed Unangst
though if no new features are in play. diff from Wouter Godefroy
2008-11-23softraid support for ata over ethernet (aoe). this includes a client andTed Unangst
part of a server. there's no configuration yet, and several other drawbacks, but it can be hammered into shape. i haven't moved the code forward in a year, and marco wants it in the tree to hack on.
2008-11-23pass in the dmat when we attach the drm driver. reduces pci dependancy.Owain Ainsworth
2008-11-23missing newline in printf; Thomas PfaffTheo de Raadt
2008-11-23#define away unused arguments for the drm_alloc functions. to save someOwain Ainsworth
size. kill (empty) drm_mem_{un,}init() while here.
2008-11-23Include the GEM interface in i915_drm.h.Owain Ainsworth
While we don't have code for this (yet!), mean I will be able to update libdrm, and consequently the xf86-video-intel driver to 2.5.x. Add PARAM_HAS_GEM to the getparam ioctl, and return no support.
2008-11-23umsmdebug should be 0.Felix Kronlage
ok yuo@
2008-11-23Map device interrupts in the attach routine. and remove more need forOwain Ainsworth
dev->pa by doing the pci_intr_establish/disestablish dance in the driver function, not in drm. This removes the need for interrupt_{pre,post}install callbacks, instead just provide a interrupt_install() callback.
2008-11-23Move vblank data allocation to happening at attach, not at irq enable.Owain Ainsworth
just put a vblank_pipes argument to the driver structure which tells us how many to set up this means that intel doesn't lose all vblank count on vtswitch (it disables the interrupt there), i've heard of a few uvm_faults where this happens as well as things just going wrong. This was suggested by Keith Packard who provided a different diff for drm.git.
2008-11-23This is a "dummy" GPIO driver used for development and testing only.Marc Balmer
Not enabled in any kernel (and will not be). ok drahn, uwe
2008-11-23no more need to cope with pccomTheo de Raadt
2008-11-23pccom can finally die; ok kettenis dlg drahn, tested by okanTheo de Raadt
2008-11-23expand -p to warn about "new sentence, new line" errors;Jason McIntyre
from wiz@netbsd
2008-11-23update ral cardbus list;Jason McIntyre
2008-11-23enable bioMarco Peereboom
ok dlg
2008-11-23rename struct m_ext to be struct mbuf_ext.David Gwynne
ok deraadt@ claudio@
2008-11-23list the Option Globetrotter GT MaxFelix Kronlage