summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix copy-n-paste typos in free text.marcel2008-04-101-3/+3
|
* Add support for MCP73 chips.yongari2008-04-102-0/+16
| | | | | Tested by: "Daan Vreeken [PA4DAN]" ( Danovitsch AT vitsch DOT net ) MFC after: 1 week
* It seems that RealTek 8129/8139 chip reports invalid length ofyongari2008-04-101-3/+5
| | | | | | | | | | | | | | | | received frame under certain conditions. wpaul said the length 0xfff0 is special meaning that indicates hardware is in the process of copying a packet into host memory. But it seems there are other cases that hardware is busy or stuck in bad situation even if the received frame length is not 0xfff0. To work-around this condition, add a check that verifys that recevied frame length is in valid range. If received length is out of range reinitialize hardware to recover from stuck condition. Reported by: Mike Tancsa ( mike AT sentex DOT net ) Tested by: Mike Tancsa Obtained from: OpenBSD MFC after: 1 week
* Add memrchr(3).delphij2008-04-101-1/+1
| | | | Obtained from: OpenBSD
* Add support for Verizon v740 to ubsa(4).flz2008-04-092-0/+3
| | | | | | PR: usb/122610 Submitted by: Randi Harper <randi@freebsdgirl.com> MFC after: 3 days
* - Add support for IPI_PREEMPT. [1]marius2008-04-094-2/+15
| | | | | | | - Add my copyright to mp_machdep.c for having implemented support for USIII and up and some fixes. Obtained from: sun4v (modulo style(9) bugs) [1]
* - Use LK_TYPE_MASK where needed. Actually after sys/sys/lockmgr.h:1.69 it ispjd2008-04-091-3/+5
| | | | | | | | no longer needed, but for now we still want to be consistent with other similar checks in the tree. - Call ASSERT_VOP_ELOCKED() only when vget() returns 0. Reviewed by: jeff
* Do image loading in a context known to have a root directory:sam2008-04-091-23/+121
| | | | | | | | | | | | | | | o create a private task queue thread that sets up root and current directories (hooking mountroot event as needed); this is necessary because task queue threads are parented from proc0 and it does not have a reference to rootvnode (lost when / mounting moved to init) o bounce image load + unload requests through the private task q so we can load images even when the request is made from a thread that does not have sufficient context (e.g. task q thread) o add a check in the task q thread to fail requests before root is mounted (just in case) Reviewed by: jhb, mlaier, luigi (glance) MFC after: 1 month
* Add memory barriers to the node locking operations.mav2008-04-091-18/+32
| | | | Add some comments.
* fix locking botchsam2008-04-091-1/+3
| | | | MFC after: 1 week
* Revert the previous change and let PROBE_KEYBOARD function identical to -Pjhb2008-04-091-4/+2
| | | | in boot2/gptboot.
* Remove using magic value of -1 to distinguish between linux_open()rdivacky2008-04-091-5/+3
| | | | | | | | | and linux_openat(). Instead just pass AT_FDCWD into linux_common_open() for the linux_open() case. This prevents passing -1 as a dirfd to openat() from succeeding which is wrong. Suggested by: rwatson, kib Approved by: kib (mentor)
* Fix a problem which stopped this from starting up on a kernel compileddfr2008-04-091-3/+4
| | | | without the INET6 option.
* Include <sys/types.h> before <sys/systm.h> to get typedefs requiredgrehan2008-04-098-8/+8
| | | | by new atomic.h. Fixes tinderbox LINT build.
* Take the route mtu into account, if available, when sending anbz2008-04-093-7/+28
| | | | | | | | | | | | | | | | ICMP unreach, frag needed. Up to now we only looked at the interface MTU. Make sure to only use the minimum of the two. In case IPSEC is compiled in, loop the mtu through ip_ipsec_mtu() to avoid any further conditional maths. Without this, PMTU was broken in those cases when there was a route with a lower MTU than the MTU of the outgoing interface. PR: kern/122338 Tested by: Mark Cammidge mark peralex.com Reviewed by: silence on net@ MFC after: 2 weeks
* Unbreak after removal of SI_SUB_MOUNT_ROOT.marcel2008-04-091-12/+1
|
* Reimplement atomic_add, atomic_clear, atomic_set and atomic_subtractmarcel2008-04-091-272/+294
| | | | | | | | so that all implemented variants have proper prototypes. The 8-bit, 16-bit and 64-bit variants are not implemented. This really fixes the current build breakages caused by type casting and struct aliasing rules.
* Clean up and fix style(9) nits.jkim2008-04-081-2852/+2938
|
* - Add write(2) support for psm(4) in native operation level. Now arbitraryjkim2008-04-082-8/+54
| | | | | | | commands can be written to /dev/psm%d and status can be read back from it. - Reflect the change in psm(4) and bump version for ports. MFC after: 1 week
* o add a mountroot event handler that fires when / is mounted; this informationsam2008-04-083-1/+6
| | | | | | | was lost when root started being mounted by init o remove SI_SUB_MOUNT_ROOT since it's no longer meaningful MFC after: 2 weeks
* change taskqueue_start_threads to create threads instead of proc'ssam2008-04-081-22/+24
| | | | Reviewed by: jhb
* Quick fix for the kernel build breakage in netgraph and themarcel2008-04-081-2/+4
| | | | | | aliasing warning in libthr. A more elaborate fix is in the works that makes sure that all variants have proper inline functions with proper types.
* Always set the bell_pitch to 800. This catch up with the sysbeep() argumentnyan2008-04-082-8/+1
| | | | changing.
* Bump __FreeBSD_version after the implementation of the openat() andkib2008-04-081-1/+1
| | | | related syscalls both for the native FreeBSD ABI and linuxolator.
* In some situations we were not clearing pending link state attentions.bz2008-04-081-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because of this we were not getting further interrupts for link state changes, thus never went into iface UP state and thus could not transmit. The only way out of this was an incoming packet generating an rx interrupt and making us call into bge_link_upd. Up to rev. 1.101, in bge_start_locked, we only returned instantly if there was 'no link AND nothing queued for tx'. So with a packet queued for tx, we hit the register scrubbing at the end of bge_start_locked and were out fine. We simply lost a packet or two but got the interrupts need to get into UP state. With rev. 1.102 this was turned into 'if there is no link OR there is nothing to send' (correct behaviour) and as long as there is no link we never hit the register scrubbing and consequently never got the link UP. What we do now is force an interrupt at the end of bge_ifmedia_upd_locked so we will call bge_link_upd, clear the link state attention and get further interrupts. This helps to get the iface UP on an idle network or at least to get it UP faster not depending on an rx intr anymore. In case you could not get a DHCP lease or it took very long, it was because of this. It is unknown which chips are affected by this. ASIC rev. 0x2003 was the most popular trouble candidate. At least the fiber cards should have been working fine. Which register to scrub is currently under discussion. The comitted solution was tested and found to work for a lot of setups. It might not help with MSI. The reason why we end up in such a situation is entirely unknown. PR: kern/111804 Tested by: phk, scottl at Y! MFC after: 14 days
* Remove some long-dead codekevlo2008-04-087-62/+1
| | | | Reviewed by: cognet
* Regeneratekib2008-04-086-82/+146
|
* Implement the linux syscallskib2008-04-0818-185/+483
| | | | | | | | | openat, mkdirat, mknodat, fchownat, futimesat, fstatat, unlinkat, renameat, linkat, symlinkat, readlinkat, fchmodat, faccessat. Submitted by: rdivacky Sponsored by: Google Summer of Code 2007 Tested by: pho
* Add a couple of missing wireless NIC driver modules.weongyo2008-04-081-0/+5
| | | | Approved by: thompsa (mentor)
* Add PCI ID's for ICH8 USB controllers.jhb2008-04-072-0/+33
| | | | | | MFC after: 1 week PR: usb/116574 Submitted by: Dave Grochowski malus.x of gmail
* Remove TCP options ordering assumptions in tcp_addoptions(). Orderingandre2008-04-071-1/+11
| | | | | | | | | was changed in rev. 1.161 of tcp_var.h. All option now test for sufficient space in TCP header before getting added. Reported by: Mark Atkinson <atkin901-at-yahoo.com> Tested by: Mark Atkinson <atkin901-at-yahoo.com> MFC after: 1 week
* Remove now unnecessary comment.andre2008-04-071-2/+0
|
* Use #defines for TCP options padding after EOL to be consistent.andre2008-04-072-2/+4
| | | | Reviewed by: bz
* Revert back to probing Host-PCI bridges in the order we encounter them injhb2008-04-071-18/+11
| | | | | | the tree rather than sorting them by their address on PCI bus 0. Reported by: kan
* Correct function name in panic().pjd2008-04-071-1/+1
| | | | Reported by: kensmith
* - Use a different encoding for lockmgr options: make them encoded byattilio2008-04-072-22/+22
| | | | | | | | | | bit in order to allow per-bit checks on the options flag, in particular in the consumers code [1] - Re-enable the check against TDP_DEADLKTREAT as the anti-waiters starvation patch allows exclusive waiters to override new shared requests. [1] Requested by: pjd, jeff
* Actually, I was looking at the wrong Linux .c file. Set INIT2 to itsrpaulo2008-04-072-2/+2
| | | | | previous value. While there, lower the delay for the misterious key.
* Add further TCP inpcb locking assertions to some TCP input code paths.rwatson2008-04-071-0/+11
| | | | MFC after: 1 month
* * Add missing #else in the #ifdef DEBUG section.rpaulo2008-04-072-5/+6
| | | | | * Fix the login in asmc_init(). * Change the INIT2 constant to reflect the same change in the Linux driver.
* "Prettyfy" numbers in hexadecimal. No functional change.rpaulo2008-04-071-2/+2
|
* Remove isa_if.h.rpaulo2008-04-071-1/+1
|
* The SMC is represented on the acpi tables, so we can completely removerpaulo2008-04-072-56/+84
| | | | | | | | dependency on isa. We are now an acpi child. Also: * Add compile time debugging activation * Increase the delay for the SMS init flag.
* Add opt_intr_filter.h.rpaulo2008-04-071-1/+1
|
* Update pmap_page_wired_mappings() so that it counts 2/4MB page mappings.alc2008-04-072-8/+36
|
* Maintain and observe a ZBUF_FLAG_IMMUTABLE flag on zero-copy BPFrwatson2008-04-073-14/+125
| | | | | | | | | | | | | | | | | | | | | | buffer kernel descriptors, which is used to allow the buffer currently in the BPF "store" position to be assigned to userspace when it fills, even if userspace hasn't acknowledged the buffer in the "hold" position yet. To implement this, notify the buffer model when a buffer becomes full, and check that the store buffer is writable, not just for it being full, before trying to append new packet data. Shared memory buffers will be assigned to userspace at most once per fill, be it in the store or in the hold position. This removes the restriction that at most one shared memory can by owned by userspace, reducing the chances that userspace will need to call select() after acknowledging one buffer in order to wait for the next buffer when under high load. This more fully realizes the goal of zero system calls in order to process a high-speed packet stream from BPF. Update bpf.4 to reflect that both buffers may be owned by userspace at once; caution against assuming this.
* Coerce if_loop.c in the general direction of style(9):rwatson2008-04-071-33/+18
| | | | | | | | - Use ANSI function declarations - Remove use of 'register' keyword - Prefer style(9) return parens, white space MFC after: 1 month
* vfs_syscalls.c 1.452 mistakenly swapped the behavior of chown() and lchown().truckman2008-04-071-1/+1
|
* In in_pcbnotifyall() and in6_pcbnotify(), use LIST_FOREACH_SAFE() andrwatson2008-04-062-11/+4
| | | | | | | eliminate unnecessary local variable caching of the list head pointer, making the code a bit easier to read. MFC after: 3 weeks
* Bump __FreeBSD_version in order to reflect lockmgr_rw() andattilio2008-04-061-1/+1
| | | | lockmgr_args_rw() introduction.
* Optimize lockmgr in order to get rid of the pool mutex interlock, of theattilio2008-04-0610-826/+1043
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | state transitioning flags and of msleep(9) callings. Use, instead, an algorithm very similar to what sx(9) and rwlock(9) alredy do and direct accesses to the sleepqueue(9) primitive. In order to avoid writer starvation a mechanism very similar to what rwlock(9) uses now is implemented, with the correspective per-thread shared lockmgrs counter. This patch also adds 2 new functions to lockmgr KPI: lockmgr_rw() and lockmgr_args_rw(). These two are like the 2 "normal" versions, but they both accept a rwlock as interlock. In order to realize this, the general lockmgr manager function "__lockmgr_args()" has been implemented through the generic lock layer. It supports all the blocking primitives, but currently only these 2 mappers live. The patch drops the support for WITNESS atm, but it will be probabilly added soon. Also, there is a little race in the draining code which is also present in the current CVS stock implementation: if some sharers, once they wakeup, are in the runqueue they can contend the lock with the exclusive drainer. This is hard to be fixed but the now committed code mitigate this issue a lot better than the (past) CVS version. In addition assertive KA_HELD and KA_UNHELD have been made mute assertions because they are dangerous and they will be nomore supported soon. In order to avoid namespace pollution, stack.h is splitted into two parts: one which includes only the "struct stack" definition (_stack.h) and one defining the KPI. In this way, newly added _lockmgr.h can just include _stack.h. Kernel ABI results heavilly changed by this commit (the now committed version of "struct lock" is a lot smaller than the previous one) and KPI results broken by lockmgr_rw() / lockmgr_args_rw() introduction, so manpages and __FreeBSD_version will be updated accordingly. Tested by: kris, pho, jeff, danger Reviewed by: jeff Sponsored by: Google, Summer of Code program 2007
OpenPOWER on IntegriCloud