summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Skip rebuilding environ in setenv() only upon reuse of an active variable;scf2007-09-151-2/+2
| | | | | | | | | | | inactive variables should cause a rebuild of environ, otherwise, exec()'d processes will be missing a variable in environ that has been unset then set. Submitted by: Taku Yamamoto <taku@tackymt.homeip.net> Reviewed by: ache Approved by: wes (mentor) Approved by: re (kensmith)
* - Get rid of unsused constants for sysctl variables.rrs2007-09-158-151/+106
| | | | | | | | | | | | | | - Fix panic from mutex unlock on freed lock when ASCONF-ACK aborts an assoc - Fix panic from addr lock recursion when ASCONFs are queued in the front states - ASCONFs "queued" in the front states should really be bundled after the COOKIE-ACK, not in front of it - Fix issue with addresses deleted in the front states from being sent with ASCONF(DELETE)-- replaced sctp_asconf_queue_add_sa() with delete specific function - Comment change in sctp.h the drafts are now RFC's Approved by: re@freebsd.org (B Mah)
* It has been observed on the mailing lists that the different categoriesalc2007-09-157-24/+28
| | | | | | | | | | | | | | | of pages don't sum to anywhere near the total number of pages on amd64. This is for the most part because uma_small_alloc() pages have never been counted as wired pages, like their kmem_malloc() brethren. They should be. This changes fixes that. It is no longer necessary for the page queues lock to be held to free pages allocated by uma_small_alloc(). I removed the acquisition and release of the page queues lock from uma_small_free() on amd64 and ia64 weeks ago. This patch updates the other architectures that have uma_small_alloc() and uma_small_free(). Approved by: re (kensmith)
* Correct an assertion in vm_pageout_flush(). Specifically, if a page'salc2007-09-151-1/+2
| | | | | | | | | | | status after vm_pager_put_pages() is VM_PAGER_PEND, then it could have already been recycled, i.e., freed and reallocated to a new purpose; thus, asserting that such pages cannot be written is inappropriate. Reported by: kris Submitted by: tegge Approved by: re (kensmith) MFC after: 1 week
* Add the PCI id for the Intel 7221's integrated graphics controller. It isalc2007-09-152-0/+4
| | | | | | | | similar to a 915G. Approved by: re (kensmith) Reviewed by: anholt MFC after: 3 weeks
* Fix typo which brokes VJ decompressionmav2007-09-151-1/+1
| | | | | | when VJC negotiated in only one direction. Approved by: re (bmah), glebius (mentor)
* Use better manuals for these ntp system calls. These were replaced byimp2007-09-153-201/+258
| | | | | | | the netbsd versions, and tweaked by me with suggestions from phk. Reviewed by: phk Approved by: re@
* Remove the definition and implementation of 'CALLOUT_NETGIANT', a now- (andrwatson2007-09-152-12/+2
| | | | | | | possibly always-) unused define. Reported by: kmacy Approved by: re (kensmith)
* Add mention of libelf to 7.0's release notes.jkoshy2007-09-151-0/+4
| | | | Approved by: re (bmah)
* Remove DIAG code that discards oversized packets.julian2007-09-141-14/+0
| | | | | | There has been general consensus that this was a bad idea/ Approved by: re (bmah)
* During boot(before setting IP address) PHY can generate link stateyongari2007-09-141-6/+6
| | | | | | | | | | | | change interrupt if the link is established with link parter. However interrupt handler didn't acknowledge the interrupt if nfe(4) was not running at the time of interrupt delivery. This caused endless interrupt generation. Fix the bug by acknowledging the interrupt regardless of running state of the driver. PR: kern/116295 Submitted by: Mark Derbyshire (mark At taom dot com) Approved by: re (kensmith)
* Flush stdout at the end of the update phase to prevent possiblempp2007-09-141-0/+1
| | | | | | duplicate output when "quotacheck -a -v" is used. Approved by: re (bmah)
* Remove the newly resurrected ar.5 manual page from the list ofjkoshy2007-09-141-1/+0
| | | | | | | | obsolete files. Noticed by: Michael Plass <mfp49_freebsd at plass-family dot net> Herbert J. Skuhra <h dot skuhra at gmail dot com> Approved by: re (bmah)
* Fix typo.yongari2007-09-141-2/+2
| | | | | Pointed out: marius Approved by: re (bmah)
* Currently the LO_NOPROFILE flag (which is masked on upper level code byattilio2007-09-143-5/+7
| | | | | | | | | | | | | | | | | | per-primitive macros like MTX_NOPROFILE, SX_NOPROFILE or RW_NOPROFILE) is not really honoured. In particular lock_profile_obtain_lock_failure() and lock_profile_obtain_lock_success() are naked respect this flag. The bug leads to locks marked with no-profiling to be profiled as well. In the case of the clock_lock, used by the timer i8254 this leads to unpredictable behaviour both on amd64 and ia32 (double faults panic, sudden reboots, etc.). The amd64 clock_lock is also not marked as not profilable as it should be. Fix these bugs adding proper checks in the lock profiling code and at clock_lock initialization time. i8254 bug pointed out by: kris Tested by: matteo, Giuseppe Cocomazzi <sbudella at libero dot it> Approved by: jeff (mentor) Approved by: re
* Add support for a new device id (9). Mxge NICs with the newgallatin2007-09-132-1/+3
| | | | | | device id support MSI-X. Approved by: re (bmah)
* Add my ports mentor, his mentor, and their offsprings including me.jkim2007-09-131-0/+12
| | | | | Reviewed by: sobomax, glewis, hq, znerd, demon Approved by: re (bmah)
* - DF bit was on for COOKIE-ECHO chunks. This isrrs2007-09-139-40/+60
| | | | | | | | | | | | | incorrect and should be OFF letting IP fragment large cookie-echos. - Rename sysctl variable logging to log_level. - Fix description of sysctl variable stats. - Add sysctl variable log to make sctp_log readable via sysctl mechanism (this is by compile switch and targets non KTR platforms or when someone wants to do performance wise tracing). - Removed debug code Approved by: re@freebsd.org (B Mah)
* - Incorrect error EAGAIN returned for invalid send on a lockedrrs2007-09-139-13/+36
| | | | | | | | | | stream (using EEOR mode). Changed to EINVAL (in sctp_output.c) - Static analysis comments added - fix in mobility code to return a value (static analysis found). - sctp6_notify function made visible instead of static (this is needed for Panda). Approved by: re@freebsd.org (B Mah)
* subr_sleepqueue.c presents a thread lock missing which leads to dangerousattilio2007-09-131-0/+2
| | | | | | | | | | | | | races for some struct thread members. More specifically, this bug seems responsible for some memory dumping problems people were experiencing. Fix this adding correct thread locking. Tested by: rwatson Submitted by: tegge Approved by: jeff Approved by: re
* Make the type of the memory used by the BPF filter unsigned, so itdwmalone2007-09-131-1/+1
| | | | | | | | | | | matches the BPF registers (which are the only thing that is assigned to/from BPF memory). This is a pedantic change that shouldn't change any behaviour. PR: 115931 Submitted by: Matthew Luckie <mjl@luckie.org.nz> Approved by: re (bmah) MFC after: 3 weeks
* Reject requests to start or ack a suspend sequence on platforms that do notnjl2007-09-131-0/+10
| | | | | | | support suspend/resume, currently all except i386. Tested by: jkim Approved by: re
* It's probably time I learn C.cognet2007-09-121-2/+2
| | | | | | | | | | Fix a few while (!uart_getreg() & SR1_TNF) when while (!(uart_getreg() & SR18TNF)) was really meant. This driver should die anyway, it's awful, and uart_ns8250 should be fine for the StrongArm 1110. I'll kill it later. Submitted by: Mikhael Skvorts Approved by: re (blanket)
* When restoring the mount after umount failed, the MNTK_UNMOUNT flagkib2007-09-123-5/+15
| | | | | | | | | | | | | | | prevents insmntque() from placing reallocated syncer vnode on mount list, that causes panic in vfs_allocate_syncvnode(). Introduce MNTK_NOINSMNTQ flag, that marks the period when instmntque is not allowed to success, instead of MNTK_UNMOUNT. The MNTK_NOINSMNTQ is set and cleared simultaneously with MNTK_UNMOUNT, except on umount error path, where it is cleaned just before the syncer vnode is going to be allocated. Reported by: Peter Jeremy <peterjeremy optushome com au> Suggested by: tegge Approved by: re (rwatson)
* Update snd_emu10kx driver with recent perforce changes (and fewariff2007-09-128-578/+1373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | other changes too). (without any real order) 1. Use device_get_nameunit for mutex naming 2. Add timer for low-latency playback 3. Move most mixer controls from sysctls to mixer(8) controls. This is a largest part of this patch. 4. Add analog/digital switch (as a temporary sysctl) 5. Get back support for low-bitrate playback (with help of (2)) 6. Change locking for exclusive I/O. Writing to non-PTR register is almost safe and does not need to be ordered with PTR operations. 7. Disable MIDI until we get it to detach properly and fix memory managment problems. 8. Enable multichannel playback by default. It is as stable as single-channel mode. Multichannel recording is still an experimental feature. 9. Multichannel options can be changed by loader tunables. 10. Add a way to disable card from a loader tunable. 11. Add new PCI IDs. 12. Debugger settings are loader tunables now. 14. Remove some unused variables. 15. Mark pcm sub-devices MPSAFE. 16. Partially revert (bus_setup_intr -> snd_setup_intr) since it need to be done independently Submitted by: Yuriy Tsibizov (driver maintainer) Approved by: re (bmah)
* Fix for an infinite loop in processing ESP, IPv6 packets.gnn2007-09-121-4/+17
| | | | | | | | The control input routine passes a NULL as its void argument when it has reached the innermost header, which terminates the loop. Reported by: Pawel Worach <pawel.worach@gmail.com> Approved by: re
* Evidently setup_rss needs to happen whenever bind_qsets is done. This fixeskmacy2007-09-111-4/+0
| | | | | | | a problem with jumbo frames when not using msi-x interrupts. Supported by: Chelsio Approved by: re (blanket)
* Fix for missing punctuation in r1.1063.bmah2007-09-111-8/+8
| | | | Approved by: re (implicitly)
* New release notes: camcontrol(8) readcap, some mount_* programsbmah2007-09-111-1/+22
| | | | | | | removed [1]. Suggested by: rodrigc [1] Approved by: re (implicitly)
* This is a follow-up, cleaning-up commit about recent changes involvingattilio2007-09-115-5/+5
| | | | | | | | | | | | | | | | topology foo functions. Working at the patch for topology problems in ia32/amd64 evicted some problems regarding functions ordering in the SI_SUB_CPU family of SYSINIT'ed subsystems. In order to avoid problems with new modified to involved functions, a correct ordering is not semantically specified for SI_SUB_CPU functions (for a larger view of the issue please visit: http://lists.freebsd.org/pipermail/freebsd-current/2007-July/075409.html ) Discussed with: peter Tested by: kris, Rui Paulo <rpaulo@FreeBSD.org> Approved by: jeff Approved by: re
* - Stop computing %CPU for the imaginary idle process; we nowru2007-09-111-54/+6
| | | | | | | | | | | | have real idle processes for that. - Fix the display on SMP by not scaling the sum of %CPU down to 1. Instead, display raw data as computed by the kernel, like in top(1). Reviewed by: bde Approved by: re (bmah) MFC after: 1 week
* Check return value of listen().kevlo2007-09-111-1/+2
| | | | | Reviewed by: emax Approved by: re (kensmith)
* A number of small fixes:jfv2007-09-102-6/+5
| | | | | | | | | | - duplicate #define in header, thanks to Kevin Lo for pointing out. - incorrect BUSMASTER enable logic, thanks Patrick Oeschger - 82543 fails due to bogus IO BAR logic - Allow 82571 to use MSI interrupts - Checksum Offload for UDP not working on 82575 Approved by:re
* - Removed debug code and more C++ style comments in the mobilityrrs2007-09-101-14/+1
| | | | | code in sctp_asconf.c Approved by: re@freebsd.org (B Mah)
* Update for ICH9 support.brueffer2007-09-101-2/+2
| | | | | Submitted by: simon Approved by: re (blanket)
* Reduce the limit of vnodes on i386 when ZFS is loaded to 3/4 of the originalpjd2007-09-102-0/+82
| | | | | | | | | | | | | value, so we don't run out of KVA. The default vnodes limit fits better for UFS, but ZFS allocated more file system specific memory for a vnode than UFS. Don't touch vnodes limit if we detect it was tuned by system administrator and restore original value when ZFS is unloaded. This isn't final fix, but before we implement something better, this will help to stabilize ZFS under heavy load on i386. Approved by: re (bmah)
* Add PCI IDs for Intel ICH9.simon2007-09-102-0/+8
| | | | | | | | PR: kern/114473 Submitted by: Michael Fuckner <michael@fuckner.net> MFC after: 2 weeks OK'ed by: sos Approved by: re (bmah)
* zyd(4) needs this as well. While here, add a missing article.brueffer2007-09-101-3/+4
| | | | Approved by: re (blanket)
* After dfr@ vnode leak fix, we can allow ARC to consume more memory.pjd2007-09-102-4/+4
| | | | | Tested by: kris Approved by: re (bmah)
* Autogenerate hardware notes for ral(4) and ural(4).brueffer2007-09-102-0/+6
| | | | Approved by: re (blanket)
* Prepare for automatic hardware notes generation:brueffer2007-09-102-116/+118
| | | | | | | - mention the supported chipsets in the HARDWARE section - remove unnecessary Li arguments Approved by: re (blanket)
* Also mention zyd(4) in the DESCRIPTION section.brueffer2007-09-101-1/+2
| | | | Approved by: re (blanket)
* - Added some comments to tell where the htcprrs2007-09-103-11/+19
| | | | | | | | | | code comes from. - Fix a LOR on Mac OS X: Do not hold an stcb lock when calling soisconnected for a socket which has the SS_INCOMP bit set on so_state. - fix a comment to be non c++ style. Approved by: re@freebsd.org (B Mah)
* Add information about hardware supported by ipw(4) and iwi(4).brueffer2007-09-101-0/+6
| | | | | Approved by: re (blanket) MFC after: 3 days
* Make sure that either inp is NULL or we have obtained a lock on it beforekensmith2007-09-101-13/+13
| | | | | | | | | | jumping to dropunlock to avoid a panic. While here move the calls to ipsec4_in_reject() and ipsec6_in_reject() so they are after we obtain the lock on inp. Original patch to avoid panic: pjd Review of locking adjustments: gnn, sam Approved by: re (rwatson)
* Further UDPv4 cleanup:rwatson2007-09-101-17/+17
| | | | | | | | | | | | - Resort includes a bit. - Correct typos and wording problems in comments. - Rename udpcksum to udp_cksum to be consistent with other UDP-related configuration variables. - Remove indirection of udp_notify through local notify variable in udp_ctlinput(), which is presumably due to copying and pasting from TCP, where multiple notify routines exist. Approved by: re (kensmith)
* Fix a DIV0 in case a large value for fs_avgfilesize or fs_avgfpdirbz2007-09-101-1/+4
| | | | | | | | | | | | | is given (with newfs or tunefs) and dirsize overflows. In case dirsize is <= 0 because of an overflow set maxcontigdirs to 0 so it will be 1 later. This is what would happen for large fs_avgfilesize. [1] Identified with help from: roberto, pjd Submitted by: pjd [1] Approved by: re (rwatson) MFC after: 8 days
* Fixing invalid channel display in ifconfig(8) by implementing requiredavatar2007-09-101-0/+17
| | | | | | | | | | | | | | | ioctl(). Note that other information provided by ifconfig(8) such like "list chan" or "list ap" are still not available at this moment. Before an(4) is connected to wlan(4), users are encouraged to use ancontrol(8) to retrieve aforementioned information. Reported by: dhw (http://lists.freebsd.org/pipermail/freebsd-current/2007-July/074848.html) Reviewed by: ambrisko Tested by: dhw Approved by: re (bmah)
* pull in changes made to RELENG_6 version in the process of doing the MFCkmacy2007-09-105-29/+36
| | | | | Supported by: Chelsio Approved by: re (blanket)
* Check for multicast destination on bpf injected packets and update the M_*CASTthompsa2007-09-101-4/+19
| | | | | | | | | | flags, the absense of these flags causes problems in other areas such as bridging which expect them to be correct. At the moment only Ethernet DLTs are checked. Reviewed by: bms, csjp, sam Approved by: re (bmah)
OpenPOWER on IntegriCloud