summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-07-15add MetaGeek Wi-Spy 2.4iStuart Henderson
2010-07-15Correct function in panic string. From Christophe FillotClaudio Jeker
2010-07-15m_getptr(m, 0, ...) may return an mbuf different from m -- if m has noClaudio Jeker
data in it. m_getptr() hops over empty buffers and points to the first allocated data byte. Because of this the m_dup_pkthdr() call done by m_copym0() can panic because not the first mbuf is passed. Found the hard way by myself, diff by blambert@ commiitting for him since he is not around. Tested and OK myself
2010-07-15* Comment poll support in conf.hMarcus Glocker
* Comment why we call the video interrupt in the mmap interface now in uvideo.c
2010-07-15add two new members to structs audio_encoding and audio_prinfo.Jacob Meuser
for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
2010-07-15limit the pools from 14 bits down. We cannot use PAGE_SIZE because itTheo de Raadt
is a variable on sparc. This should be revisited... after the arguments for pagesize vs 4K complete :)
2010-07-15the uvm_km_putpage is calling into tangly uvm guts again on not pmap direct.Ted Unangst
go back to something more like the previous design, and have the thread do the heavy lifting. solves vmmaplk panics. ok deraadt oga thib [and even simple diffs are hard to get perfect. help from mdempsky and deraadt]
2010-07-14implement poll() for video(4)Jacob Meuser
ok mglocker
2010-07-14The append side of a socketbuffer is not allowed to call sbflush().Claudio Jeker
Learned the hard way. dlg@ confirmed that it is save to just remove them, the desync will still work but the reader needs to dequeue all packets first.
2010-07-14In urndis_decap(), delay the memcpy() for as long as possible. There isMichael Knudsen
no point in copying before having done the final sanity check (we copied before the last one). ok armani
2010-07-14urndis_newbuf() is only called with NULL as it's third argument so justMichael Knudsen
get rid of it. ok armani
2010-07-14Newer 8168x and 810x chipsets have a different way of stopping the chipset.Christian Weisgerber
From FreeBSD via Brad.
2010-07-14Let vga_pci.c build in kernel configs without acpi. ok kettenis@Matthieu Herrb
2010-07-14Eliminate some unused malloc(9) type defines. Also get rid of theMatthew Dempsky
mysterious and unused mbtypes[] array in mbuf.h. ok tedu@, deraadt@
2010-07-14SCSI HBA drivers need to report success/error through xs, not xs->bp.Matthew Dempsky
By trying to do the latter, ioprbs(4) was inadvertently always signalling to the SCSI mid and upper layers that read/write requests succeeded, even if they failed or only partially completed. Light testing by claudio@, which is still way more effort than this driver deserved.
2010-07-14if we produce a lot of rtsock messages it is possible we will hit aDavid Gwynne
condition that prevents us from queuing it, which in turn means that processes listening on the routing socket for changes to the kernel state will get out of sync. currently this is handled by the following comment: /* should notify about lost packet */ this change introduces a new rtsock message called RTM_DESYNC that notifies about lost packets and uses it instead of this comment. when we detect loss we flush all the message in the routing socket and attempt to queue an RTM_DESYNC message instead. to guarantee that we will enqueue DESYNC we keep trying it when an attempt to enqueue or dequeue any messages is made, and in the worst case a timeout tries to guarantee that desync is added to the socket. ive been running this in production for 2 or 3 weeks. tested by sthen@ ok sthen@ claudio@ deraadt@ code written by andrew sallaway at the univeristy of queensland.
2010-07-14oops; Fred CrowsonTheo de Raadt
2010-07-13use PHY semaphore on 8275/82576 adapters in addition to 80003es2lan.Jonathan Gray
From SAITOH Masanobu. Confirmed to fix pr 6427, and should fix 6301 as well. Tested by a bunch of people, and discussed with claudio during c2k10.
2010-07-13delete unnccessary includeTheo de Raadt
2010-07-13rename some thread related interfaces so they are logicalTheo de Raadt
2010-07-13fix overflow of dirsize; from FreeBSD; PR 6426; ok beck@ millert@Otto Moerbeek
2010-07-13Do not put a data buffer on the stack; malloc it (we will use dma_allocTheo de Raadt
later, when we trust it) ok matthew
2010-07-13need pool.h to initialize the dma allocatorTheo de Raadt
2010-07-13dma_alloc() and dma_free(). This is a thin shim on top of a bag ofTheo de Raadt
pools, sized by powers of 2, which are constrained to dma memory. ok matthew tedu thib
2010-07-13Fix dmesg printing.Mark Kettenis
ok krw@, claudio@
2010-07-13- find.fp_wsize *= find.fp_mss, 1;Henning Brauer
+ find.fp_wsize *= find.fp_mss; From: Ed Schouten <ed at FreeBSD.org>
2010-07-13Fix a broken mask for core temperature 1 and 2, and bias properly for degC.Mike Larkin
Tested on Thinkpad T510.
2010-07-13Correct comment. scsi_sense_data is now 18 bytes, not 32.Kenneth R Westerback
2010-07-11typoMiod Vallat
2010-07-10Fixup structures to be correct sizeJordan Hargrave
ok claudio@
2010-07-10A process on the zombie list can have a NULL p_pgrp if it sleeps whenPhilip Guenthe
grabbing allproclk in proc_zap(); skip such processes in sysctl(KERN_PROC*) and handle the NULL pointer in ddb's ps. ok tedu@
2010-07-10Reduce the delays a bit in the miibus read/write routines.Christian Weisgerber
Although with aditional 20us delays added just before returning from miibus read/writes as required by the hardware. Based on the Linux r8169 driver; from Brad.
2010-07-10Add a bootstrap loader, this allow u-boot to auto-boot from the mediaDale Rahn
without modifying the u-boot environment.
2010-07-10Remove debug print left in on last commit.Dale Rahn
2010-07-10sun4e (i.e. SPARCengine 1e) support. This platform is a mix between sun4 andMiod Vallat
sun4c, as it has a sun4c OpenPROM but a sun4 8KB pagesize. VME devices are not supported yet. ok deraadt@
2010-07-10and cdboot must be linked with -N still, too. even more curiousTheo de Raadt
2010-07-10actually, pxeboot must remain linked with -NTheo de Raadt
2010-07-10link bootblocks with -Z instead of -N, to ensure that the file offset andTheo de Raadt
addresses line up correctly. Newer i386 gcc4 - for some reason -- is prompting the linker with -N to not do this alignment which it used to do (perhaps because the alignment of all .o's have dropped to very small amounts??). Using -Z wastes around a page of bootblock space which matters even more on the small install media, so this definately needs revisiting. Workaround from toby
2010-07-10whitespace cleanup from Brad, no change with diff -wStuart Henderson
2010-07-10Verify _ADR bdf is correct (some systems return 0xffff)Jordan Hargrave
Works on Dell x9xx and Studio 1555
2010-07-10Eliminate two of the remaining three instances of drivers passingMatthew Dempsky
their own buf to physio(9). compiler tested by nick@ and miod@; ok miod@ general approval thib@, deraadt@
2010-07-10Limit SCIOCCOMMAND and ATAIOCCOMMAND requests to transferring MAXPHYSMatthew Dempsky
bytes worth of data. Also, pass M_CANFAIL to malloc(9) and handle allocation failures by returning ENOMEM. Prevents user space from causing a kernel panic by passing ridiculously large datalen values. ok dlg@, krw@
2010-07-09rewrite the polling codepath in mpii.David Gwynne
it basically has the poll code swap the ccb completion path out for something that clears the flag the poll code is looping on. it just runs the interrupt handler to try and get that ccb back off the hardware. the reply queue is now protected by a semaphore, meaning that if one cpu is already pulling stuff off the chip, another cpu may try to also pull stuff off, but will return immediately cos the first cpu will end up doing the work it wants anyway. i did it this way so the ccb completion paths wouldnt be run while a mutex was held, and to avoid reordering of ccb completions and updates to the reply queue consumer that could be caused by allowing concurrent runs of the interrupt handler to step on each other. there is a big change here in that polling doesnt time out anymore. it keeps trying until it succeeds, or it keeps trying. i think it is dangerous to complete a ccb until th echip has returned it. the only safe alternative is to do a full reset of the chip, but that is a massive amount of work. reviewed by mikeb ok krw@ testing by me on real and logical disks
2010-07-09need sysctl.h to compile with GPROF; Luis HenriquesTheo de Raadt
2010-07-09We need to preserve %eax, %ecx and %edx since GCC 4.x might use theseMark Kettenis
registers in the prologue to realign the stack. ok marco@, deraadt@, guenther@
2010-07-09un-terminated string found when comparing to i386 boot code. TheseTheo de Raadt
should be 100% identical. ok toby
2010-07-09Add support for using IPsec in multiple rdomains.Reyk Floeter
This allows to run isakmpd/iked/ipsecctl in multiple rdomains independently (with "route exec"); the kernel will pickup the rdomain from the process context of the pfkey socket and load the flows and SAs into the matching rdomain encap routing table. The network stack also needs to pass the rdomain to the ipsec stack to lookup the correct rdomain that belongs to an interface/mbuf/... You can now run individual IPsec configs per rdomain or create IPsec VPNs between multiple rdomains on the same machine ;). Note that a primary enc(4) in addition to enc0 interface is required per rdomain, eg. enc1 rdomain 1. Test by some people, mostly on existing "rdomain 0" setups. Was in snaps for some days and people didn't complain. ok claudio@ naddy@
2010-07-09Add the rtableid to struct rttimer and therefor make it available toClaudio Jeker
the callback functions. This fixes a problem where dynamic routes in different tables would not get deleted because the callback was doing the remove on the wrong table. OK henning@
2010-07-09When protocol filtering is used on the rtsocket filter only messages thatClaudio Jeker
actually have a protocol/address family set. Messages like RTM_IFINFO or RTM_IFANNOUNCE are family independent and should not be filtered but it is possible to use a ROUTE_MSGFILTER to filter these messages. This allows to reduce the messages sent to AF_INET or AF_INET6 only daemons. OK henning@, deraadt@
2010-07-09instead of saying we're using the all the states in the table whenDavid Gwynne
sending a bulk update, only say we're using the states referenced by the next and last pointers into the table. this means the pf timeout thread can keep trimming states during a bulk update.