summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-01-27Get rid of the last traces of uvm.pager_[se]vaMiod Vallat
2009-01-27Turns out the IRQ Information is optional in IRQ Descriptor resources, soMark Kettenis
allow resources that are only 5 bytes long. Prevents dmesg spamming on the OQO.
2009-01-27rum -> urtw. ok jsg@, kevlo@Martynas Venckus
2009-01-27Simplify page-out/page-in map management; fix rare pager deadlock.Ariane van der Steldt
Ok: miod, tedu
2009-01-27syncOwain Ainsworth
2009-01-27another GeForce 9300.Owain Ainsworth
From Laurence Tratt; thanks!
2009-01-27If a packet translation was a NOP, undo separate NAT key andMarco Pfatschbacher
pretend there was no match. This prevents pf_state_insert() to fail with duplicate keys. OK henning@, mcbride@
2009-01-27unbreak SMALL_KERNEL builds by adding missing #ifndef IEEE80211_STA_ONLYDamien Bergamini
pointed out by krw@
2009-01-27handle HW VLAN tags being passed down; from BradChristian Weisgerber
2009-01-27include the VLAN priority for hardware tagging, too; ok claudio@Christian Weisgerber
2009-01-27Switch the amd64 PCI_CONF_LOCK from being a simplelock and splhigh to aOwain Ainsworth
mutex with ipl set to IPL_HIGH. While i'm here, unify the code with i386, by giving the same lock to the i386 code. This lock is mostly for MP, but could actually prevent a race where a process is doing pci_conf_{read,write}, and then an interrupt fire and also does pci_conf_{read,write}. Since this is a two stage process, the interrupt could race with the one, causing the value to the written to the wrong place, or the wrong value to be written. Tested by many. "go ahead" kettenis@.
2009-01-27make the hardware/no hardware tag stripping cases consistent and don'tChristian Weisgerber
hash the VLAN priority; ok henning@
2009-01-27make drivers tell the mclgeti allocator what their maximum ring size isDavid Gwynne
to prevent the hwm growing beyond that. this allows the livelock mitigation to do something where the hwm used to grow beyond twice the rx rings size. ok kettenis@ claudio@
2009-01-27While printing is turned off by default, the debug code was stillOwain Ainsworth
compiled into drm. I'd forgotten about that. if DRMDEBUG is defined, build in the printfs, else no-op them. Shaves a bunch of string from the kernel Fix two cases in mach64_irq.c where this would lead to unused variable warnings. Reminded by an entirely different comment by djm@.
2009-01-26Include the ioctl definitions for the modesetting interface.Owain Ainsworth
This is so we can update libdrm, where some of the types in there depend on these defines. This interface may well not be the one that ends up being used when we finally have kernel modesetting working, so add a comment to that effect. after discussion with matthieu@ and miod@, ok miod@.
2009-01-26move ni_macaddr field at the top of the ieee80211_node structure.Damien Bergamini
this way we can avoid putting a full node structure (which is huge) on the stack in ieee80211_find_node(). this is a bit tricky but the RB_FIND macro wants an "elem" structure, not a field of "elem".
2009-01-26remove ni_ba field from ieee80211_node structure as it is not used yet.Damien Bergamini
this reduces memory footprint and avoids a stack usage warning in ieee80211_find_node() that breaks amd64 build. pointed out by landry@
2009-01-26I changed the IEEE80211_QOS_ACK_POLICY_* definitions to be more in lineDamien Bergamini
with other net80211 flags (we no longer need to shift.)
2009-01-26Add some initial HT bits (not enabled yet) based on 802.11n Draft 7.01:Damien Bergamini
- implement A-MPDU frames buffering and reordering - implement A-MSDU decapsulation - process/send ADDBA Request, ADDBA Response and DELBA action frames - process Block Ack Request control frames (including MTBAR) - implement PBAC support (Protected Block Ack) - add some incomplete HT Capabilities and HT Operation IEs parsing Add more Management Frame Protection bits based on 802.11w Draft 7.0: - implement SA Query procedure (both AP and STA) - cleanup BIP Fix some bugs: - fix check for WEP key length that otherwise caused a stack smash in ieee80211_wep_encrypt (pointed out by Xavier Santolaria on macppc) - properly stop EAPOL timeout: fixes a panic that occured in HostAP mode when turning the interface down while a 4-way handshake is in progress (pointed out by Doughertys) Did some code cleanup too. The HT bits are currently not compiled in (IEEE80211_NO_HT is defined) because they won't be ready until after the next release and I didn't want to grow the kernel or to inadvertently introduce new bugs. They are here such that other people can look at the code. Notice that I had to add an extra parameter to ic_send_mgmt() for action frames, that is why there are small changes in drivers defining their own ic_send_mgmt() handler. Sorry for the not very incremental diff but this has been sitting in my tree for too long now.
2009-01-26Remove unneeded brackets that where left over from when these were macros.Claudio Jeker
OK dlg@
2009-01-26Unify error message.Mark Kettenis
ok grange@, oga@, todd@
2009-01-25memcpy needs a prototype which is in systm.hAlexander Yurchenko
ok form@ kettenis@
2009-01-25Remove /dev/drum and related code.Miod Vallat
2009-01-25In hpibid(), when computing timeouts from the cpuspeed variable, account forMiod Vallat
68040 systems where cpuspeed is only 3/8 of the intended value.
2009-01-25If hdattach() aborts early because the disk is not in good shape, alwaysMiod Vallat
fail hdopen().
2009-01-25Behave correctly in interrupt handlers if no tty has been allocated yetMiod Vallat
(this was supposed to have been fixed in r1.25, but there was still a missing check).
2009-01-25add udfu(4), a driver to put dfu capable devices in dfu-mode for laterFederico G. Schwindt
use with dfu-util. tested with openmoko by ian@. ok miod@
2009-01-24oops. forgot to remove a debug printf from the diff.Thordur I. Bjornsson
(that I applied to a clean tree to commit)
2009-01-24Use a timespec for the server write deadline and procrastinationThordur I. Bjornsson
timeouts. Rrids us of the ugly cur_sec variable, and some shadows. Also helps with granularity. Diff from blambert@ who asked me to commit this since he's away for some days and we wanted to put this in with the timespec changes in the nfsnode.
2009-01-24Use a timespec instead of a time_t for the clients nfsnodeThordur I. Bjornsson
mtime, gives us better granularity, helps with cache consistency. Idea lifted from NetBSD. OK blambert@
2009-01-24propagate the O_EXCL flag down to the file systems, by settingThordur I. Bjornsson
VA_EXCLUSIVE. Handle this in NFS, also in NFS use arc4random() for the create verifier instead of an uninitialized long and the address of the first interface (which is likely to be lo0). Lifted from NetBSD with small tweaks; "looks good", miod@ OK blambert@
2009-01-24use more appropriate sensor_task_register(9) paradigm; ok mkConstantine A. Murenin
2009-01-24* eliminate redundant initialisations of .desc and .valueConstantine A. Murenin
* .status should never stay at OK permanently * use .flags more sparingly ok mk
2009-01-24magic 8 -> nitems(nfs_backoff)Thordur I. Bjornsson
prompted by David <dunnoseriously _att_ gmail.com>
2009-01-24make sure the from mbuf gets freed on error to.Thordur I. Bjornsson
from David <dunnoseriously _att_ gmail.com> ok blambert@
2009-01-24fix a couple mistakes from rev 1.109Jacob Meuser
dmesg spam produced by the mistakes noticed by stsp@, thanks
2009-01-23Remove parameter names from function declarations, per style(9).Bret Lambert
ok phessler@ miod@
2009-01-23Add schsio(4), a driver for SMSC SCH311x LPC Super I/O ICs providingMichael Knudsen
environment sensors. These are found at least on VIA Epia SN18000G boards. Not enabled at 0x162e and 0x164e because probing these may not be safe according to kettenis (guess where my schsio is). Much help from kettenis. Input from const and fgs. ok kettenis
2009-01-23Make write_user_windows() do what the name suggests: flush user windows insteadMark Kettenis
of all windows.
2009-01-22Make bus_mem_add_mapping() return ENOMEM if we fail to allocate kva insteadMark Kettenis
of panicing. ok drahn@
2009-01-22Make re(4) at pci(4) detachable.Mark Kettenis
ok jsg@, miod@
2009-01-22After the NFS server had sent a reply of size readsize or readdirsize,Alexander Bluhm
the udp receive space got completely filled up. Even if the next packet from the server was a small reply, it got dropped by udp_input(). After a second the client resent the NFS request. Doubling rcvreserve reduces the chance of retransmits by having enough recv space for multiple NFS replies even if there comes a big one. found with pedro@, ok blambert@, thib@, pedro@
2009-01-22The variable nfs_reqq was protected by splsoftnet() only in 3 outAlexander Bluhm
of 5 cases. In the functions nfs_reconnect() and nfs_reply() put the TAILQ_FOREACH over nfs_reqq also inside splsoftnet() protection. found with pedro@, ok blambert@, pedro@, thib@
2009-01-22Add support for Moxa CP-104JU, 4xrs232Jonathan Gray
from/tested by Joerg Niendorf in pr 6053.
2009-01-22regenJonathan Gray
2009-01-22Moxa CP-104JU another puc fromJonathan Gray
Joerg Niendorf in pr 6053.
2009-01-22Call checkdisklabel() for labels built from native info. This willKenneth R Westerback
ensure 'c' always has the correct size as the rest of the kernel assumes. Thus prevent dd'ing causing a SCSI out-of-bounds error. ok miod@
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2009-01-21Pass the new pointer to sysctl_clockrate(), so that trying to change theMiod Vallat
value of kern.clockrate with sysctl(3) correctly sets errno on failure. PR #6040, ok tedu@
2009-01-21It turns out that Sun USB keyboards really follow the HID specification forMiod Vallat
its country code, but I had forgotten one line in the layout table. This now picks the correct layout for swedish and british (uk) sun keyboards.