summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update the mxge driver.gallatin2006-06-145-1704/+2005
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Update the firmware to the latest released firmware (1.4.3), which corresponds to the firmware in the latest shipping drivers from Myricom. This firmware fixes several bugs in the firmware's PCI-e implementation, and it also changes the driver/firmware interface: o TSO was added, and changed the format of the transmit descriptors. o The firmware no longer counts transmits descriptors, but frames. So the driver needs to keep a count of the number of frames sent. o The weird interrupt strategy changed to a normal receive return ring. This ring is much bigger, and we may be able to support DEVICE_POLLING. o Myricom's header files changed the name of firmware related #define's and enums (s/_MCP_/FW_). - Stopped spamming the console with lots of printfs unless mxge_verbose (or bootverbose) is set. - Made additional information available via sysctl, including the results of a PCI-e DMA benchmark run at device reset. - Decreased the excessively long timeouts when sending commands from 2 seconds to 20ms. Sponsored by: Myricom Inc.
* This commit was generated by cvs2svn to compensate for changes in r159609,gshapiro2006-06-1433-748/+1423
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import sendmail 8.13.7gshapiro2006-06-1437-760/+1443
| | | | | | | | Security: FreeBSD-SA-06:17.sendmail
* | Change the myri10ge dev entity and all consumers to mxge.brueffer2006-06-146-11/+11
| |
* | o Revert a previous delta as strlcpy(3) operates with NUL-terminatedmaxim2006-06-141-1/+2
| | | | | | | | | | strings and cp is not. Fix logic in the original code and eliminate core dumps on lines without '\n'.
* | o Replace (an incorrect) string copy gymnastics with strlcpy(3).maxim2006-06-141-2/+1
| | | | | | | | | | | | PR: bin/98905 Submitted by: Fabian Keil MFC after: 1 week
* | Fix byteorder of syncpeer and make it actually work.mlaier2006-06-141-6/+23
| | | | | | | | | | Submitted by: glebius MFC after: 1 week
* | Fix spelling.joel2006-06-141-2/+2
| |
* | Clear ke_runq before calling maybe_preempt, this avoids adavidxu2006-06-141-0/+2
| | | | | | | | | | | | | | KASSERT(ke->ke_runq == NULL) panic when the sched_add is recursively called by maybe_preempt. Reported by: Wojciech A. Koszek < dunstan at freebsd dot czest dot pl >
* | Unexpand an instance of TAILQ_EMPTY()delphij2006-06-141-1/+1
| |
* | Unbreak build on platforms that don't have uart_sab82532 and uart_z8530marcel2006-06-141-0/+2
| | | | | | | | for uart(4) by default, but have scc(4).
* | Unbreak 64-bit architectures. The 3rd argument to kern_kldload() ismarcel2006-06-141-4/+6
| | | | | | | | | | a pointer to an integer and td->td_retval[0] is of type register_t. On 64-bit architectures register_t is wider than an integer.
* | If bpf(4) has not been compiled into the kernel, initialize the bpf interfacecsjp2006-06-142-1/+6
| | | | | | | | | | | | | | | | pointer to a zeroed, statically allocated bpf_if structure. This way the LIST_EMPTY() macro will always return true. This allows us to remove the additional unconditional memory reference for each packet in the fast path. Discussed with: sam
* | Add a manpage for the CORE scheduler.delphij2006-06-144-0/+92
| |
* | Fox a typo in sched_is_timeshare.davidxu2006-06-131-1/+1
| |
* | Pass boolean value to __predict_false. Try to keep KSE slot countdavidxu2006-06-131-2/+2
| | | | | | | | correct for migrating thread, the count is a bit mess.
* | Use kern_kldload() and kern_kldunload() to load and unload modules whenjhb2006-06-133-20/+12
| | | | | | | | | | | | | | | | we intend for the user to be able to unload them later via kldunload(2) instead of calling linker_load_module() and then directly adjusting the ref count on the linker file structure. This makes the resulting consumer code simpler and cleaner and better hides the linker internals making it possible to sanely lock the linker.
* | A couple of minor style tweaks.jhb2006-06-131-2/+4
| |
* | - Add a kern_kldload() that is most of the previous kldload() and pushjhb2006-06-132-39/+49
| | | | | | | | | | | | Giant down in it. - Push Giant down in kern_kldunload() and reorganize it slightly to avoid using gotos. Also, expose this function to the rest of the kernel.
* | - Push down Giant some in kldstat().jhb2006-06-131-29/+21
| | | | | | | | | | | | - Use a 'struct kld_file_stat' on the stack to read data under the lock and then do one copyout() w/o holding the lock at the end to push the data out to userland.
* | Unexpand TAILQ_FOREACH() and TAILQ_FOREACH_SAFE().jhb2006-06-131-4/+2
| |
* | Remove some more pointless goto's and don't check to see ifjhb2006-06-131-16/+9
| | | | | | | | malloc(M_WAITOK) returns NULL.
* | Handle the simple case of just dropping a reference near the start ofjhb2006-06-131-28/+27
| | | | | | | | | | | | | | linker_file_unload() instead of in the middle of a bunch of code for the case of dropping the last reference to improve readability and sanity. While I'm here, remove pointless goto's that were just jumping to a return statement.
* | - Complete breaking out the definition of bus_space_{tag,handle}_t bymarius2006-06-132-12/+4
| | | | | | | | | | | | | | | | | | | | | | moving the typedef of bus_space_tag_t from sys/sparc64/include/bus.h to sys/sparc64/include/_bus.h. This brings sparc64 in sync with the other platforms and fixes the compilation of drivers which include <sys/rman.h> before <machine/bus.h> after sys/sys/rman.h rev. 1.34. - Remove the definition of bus_type_t from sys/sparc64/include/_bus.h as it's unused since sys/sparc64/include/bus.h rev. 1.6 and sys/sparc64/sparc64/bus_machdep.c rev. 1.3. - Remove some pointless comments.
* | regen after MFP4 (soc2006/rdivacky_linuxolator) of syscalls.masternetchild2006-06-136-168/+254
| | | | | | | | | | | | P4-Changes: similar to 98673 and 98675 but regenerated locally Sponsored by: Google SoC 2006 Submitted by: rdivacky
* | MFP4 (soc2006/rdivacky_linuxolator)netchild2006-06-132-181/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | Update of syscall.master: o Adding of several new dummy syscalls (268-310) o Synchronization of amd64 syscall.master with i386 one o Auditing added to amd64 syscall.master o Change auditing type for lstat syscall (bugfix). [1] P4-Changes: 98672, 98674 Noticed by: rwatson [1] Sponsored by: Google SoC 2006 Submitted by: rdivacky
* | Correct transposed digits in device names which were added in themarius2006-06-131-2/+2
| | | | | | | | previous revision.
* | FreeBSD/sparc64 supports the Ultra1 (with a serial console) on (atbmah2006-06-131-3/+3
| | | | | | | | | | | | least) 6.1-RELEASE, so move it to the "supported" list. Submitted by: Gheorghe Ardelean ardelean at ww.uni-erlangen.de
* | Make traceroute decode all the ICMP unreachable messages defineddwmalone2006-06-132-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in http://www.iana.org/assignments/icmp-parameters. Thankfully IANA's list aggrees with <netinet/ip_icmp.h>. I've tried to do this in a way which is mostly consistent with tcptraceroute and Debian's version of traceroute. However, sometimes a letter is used twice by these versions, so I've gone with: LBL tcptr Debian (chosen) ICMP_UNREACH_NET !N !N !N !N ICMP_UNREACH_HOST !H !H !H !H ICMP_UNREACH_PROTOCOL !P !P !P !P ICMP_UNREACH_PORT ! !p ! ! ICMP_UNREACH_NEEDFRAG !F-%d !F !F-<%d> !F-<%d> ICMP_UNREACH_SRCFAIL !S !S !S !S ICMP_UNREACH_NET_UNKNOWN !<%d> !U !<%d> !U ICMP_UNREACH_HOST_UNKNOWN !<%d> !U !<%d> !W ICMP_UNREACH_ISOLATED !<%d> !I !I !I ICMP_UNREACH_NET_PROHIB !<%d> !A !A !A ICMP_UNREACH_HOST_PROHIB !<%d> !C !C !Z ICMP_UNREACH_TOSNET !<%d> !T !T !Q ICMP_UNREACH_TOSHOST !<%d> !T !T !T ICMP_UNREACH_FILTER_PROHIB !X !A !A !X ICMP_UNREACH_HOST_PRECEDENCE !V !<%d> !V !V ICMP_UNREACH_PRECEDENCE_CUTOFF !C !<%d> !C !C Graham Wilson is planning to use the same codes in Debian's version. MFC after: 3 weeks
* | o There are two methods to get a process credentials over the unixmaxim2006-06-131-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sockets: 1) A sender sends SCM_CREDS message to a reciever, struct cmsgcred; 2) A reciever sets LOCAL_CREDS socket option and gets sender credentials in control message, struct sockcred. Both methods use the same control message type SCM_CREDS with the same control message level SOL_SOCKET, so they are indistinguishable for the receiver. A difference in struct cmsgcred and struct sockcred layouts may lead to unwanted effects. Now for sockets with LOCAL_CREDS option remove all previous linked SCM_CREDS control messages and then add a control message with struct sockcred so the process specifically asked for the peer credentials by LOCAL_CREDS option always gets struct sockcred. PR: kern/90800 Submitted by: Andrey Simonenko Regres. tests: tools/regression/sockets/unix_cmsg/ MFC after: 1 month
* | Fix missing \n and when there are no arg's that means just print outambrisko2006-06-131-8/+11
| | | | | | | | | | | | the description so we don't have to do any more queries. Disable the event query code until it figured out since but it is similar to the AEN detail so we should be able to get that working.
* | s/MYRI10GE/MXGE/ and a typo fixed.brueffer2006-06-131-2/+2
| |
* | - Complete the myri10ge -> mxge name change by doing a mechanicalgallatin2006-06-1310-472/+458
| | | | | | | | | | | | s/myri10ge/mxge/g replacement in the myri10ge files. A few contuation lines were joined because of the regained columns. - Hook the mxge driver back to the build.
* | Add scheduler CORE, the work I have done half a year ago, recent,davidxu2006-06-1311-1/+2352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I picked it up again. The scheduler is forked from ULE, but the algorithm to detect an interactive process is almost completely different with ULE, it comes from Linux paper "Understanding the Linux 2.6.8.1 CPU Scheduler", although I still use same word "score" as a priority boost in ULE scheduler. Briefly, the scheduler has following characteristic: 1. Timesharing process's nice value is seriously respected, timeslice and interaction detecting algorithm are based on nice value. 2. per-cpu scheduling queue and load balancing. 3. O(1) scheduling. 4. Some cpu affinity code in wakeup path. 5. Support POSIX SCHED_FIFO and SCHED_RR. Unlike scheduler 4BSD and ULE which using fuzzy RQ_PPQ, the scheduler uses 256 priority queues. Unlike ULE which using pull and push, the scheduelr uses pull method, the main reason is to let relative idle cpu do the work, but current the whole scheduler is protected by the big sched_lock, so the benefit is not visible, it really can be worse than nothing because all other cpu are locked out when we are doing balancing work, which the 4BSD scheduelr does not have this problem. The scheduler does not support hyperthreading very well, in fact, the scheduler does not make the difference between physical CPU and logical CPU, this should be improved in feature. The scheduler has priority inversion problem on MP machine, it is not good for realtime scheduling, it can cause realtime process starving. As a result, it seems the MySQL super-smack runs better on my Pentium-D machine when using libthr, despite on UP or SMP kernel.
* | o Sort .Xrs.maxim2006-06-131-1/+1
| |
* | Add xref to statfs(2)phk2006-06-131-0/+1
| |
* | Respect FETCH_BIND_ADDRESS when opening the data connection.des2006-06-131-0/+5
| | | | | | | | PR: misc/98872
* | Fix a bug introduced in rev 1.92, where, when changing from one directorydes2006-06-131-0/+2
| | | | | | | | | | | | | | | | to another, the first CWD after a string of CDUPs would incorrectly include a slash before the directory name. Reported by: obrien PR: bin/83278
* | Handle MFS_IMAGE in the ${FULLKERNEL} target, so that we can build kernelcognet2006-06-131-9/+9
| | | | | | | | with MFS root without debugging.
* | Burying UNIX--a quote by Rob Pike,grog2006-06-121-3/+13
| | | | | | | | Seen on The UNIX Heritage Society mailing list.
* | MFp4:cognet2006-06-123-11/+142
| | | | | | | | | | | | | | - Try hard to calculate a safe sp, so that the stack doesn't get smashed while uncompressing or relocating the kernel. - Bring in code needed to calculate the cacheline size etc, needed for arm9_idcache_wbinv_all.
* | MFp4: Increase the L1 pagetable needed for the kernel from 8 to 22, to becognet2006-06-121-1/+1
| | | | | | | | able to boot fat kernels.
* | Use bit operations to get a locally administered address rather than using athompsa2006-06-121-5/+4
| | | | | | | | hardcoded OUI code.
* | Allow variable amounts of verbosity.obrien2006-06-127-7/+7
| |
* | Use fget() in kqueue_register() instead of doing all the work by hand.jhb2006-06-121-17/+3
| |
* | Make the ISAPNP code optional and only enable it on i386 and pc98 (usedmarius2006-06-125-3/+14
| | | | | | | | | | | | | | | | | | for CBUS-PNP cards there) by default, as there are no amd64 and sparc64 machines with ISA slots and which therefore could make use of this code known to exist. For sparc64 this additionally allows to get rid of the compat shims for in{b,w,l}()/out{b,w,l}() etc and the associated hacks. OK'ed by: imp, peter
* | Don't strip a leading ./ from the path for the cd builtin to avoid interpretingstefanf2006-06-121-2/+3
| | | | | | | | | | | | | | | | | | | | .//dir as /dir. Rather strip it only for the purpose of checking if the directory path should be printed. PR: 88813 Submitted by: Josh Elsasser Patch from: NetBSD (cd.c rev 1.38) MFC after: 2 weeks
* | Add two little nuggets of wisdom I picked up at work today:philip2006-06-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea. -- The Wizardry Compiled by Rick Cook and Debugging is anticipated with distaste, performed with reluctance, and bragged about forever. -- Button at the Boston Computer Museum I wonder why people call me a cynic. ;-)
* | Enable a few more things in x86 NOTES to get broader LINT coverage:jhb2006-06-123-3/+31
| | | | | | | | | | - Turn on iwi(4), ipw(4), and ndis(4) on amd64 and i386. - Turn on ral(4) and ural(4) on i386, pc98, and amd64.
* | Forcefully turn off GPROF in this file if it is enabled as GPROF'sjhb2006-06-121-0/+5
| | | | | | | | | | attempt to use a macro for 'ret' doesn't play well with the wrappers trying to implement 'Pascal-style' calling conventions.
OpenPOWER on IntegriCloud