summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Add Brazilian Portuguese catalog [1]gabor2009-03-163-41/+273
| | | | | | | | - Fixes for German catalog [2] PR: kern/132694 [1], conf/80504 [2] Submitted by: Murilo Opsfelder <mopsfelder@gmail.com> [1], brueffer [2]
* intpm: minor enhancementsavg2009-03-161-8/+8
| | | | | | | | | | | 1. fix nointr check in intsmb_start, matters only if ENABLE_ALART is defined (by default, it is not); 2. drop unnecessary inspection/reporting of power-management io registers base address; 3. in verbose mode report errors from SMBus host controller and their mapping to smbus(4) errors; Approved by: jhb (mentor)
* (finally) document -nsam2009-03-161-2/+8
|
* Remove CD input hack for ALC268 based Acer systems. Latest systems does notmav2009-03-161-5/+7
| | | | | | | | | | | | implement CD input in hardware, while unconditional showing it confuse users. Also it was made in the way that sometimes improper with present driver. Add patch for ALC268 based Acer TM5320 to make headphones jack sensing work. Default configuration defines two separate playback associations, which current driver unable to trace properly due to order they are defined and limited codec uniformity. Submitted by: G. Mirov <g.mirov AT gmail.com>
* Fix two issues with bufdaemon, often causing the processes to hang inkib2009-03-165-50/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the "nbufkv" sleep. First, ffs background cg group block write requests a new buffer for the shadow copy. When ffs_bufwrite() is called from the bufdaemon due to buffers shortage, requesting the buffer deadlock bufdaemon. Introduce a new flag for getnewbuf(), GB_NOWAIT_BD, to request getblk to not block while allocating the buffer, and return failure instead. Add a flag argument to the geteblk to allow to pass the flags to getblk(). Do not repeat the getnewbuf() call from geteblk if buffer allocation failed and either GB_NOWAIT_BD is specified, or geteblk() is called from bufdaemon (or its helper, see below). In ffs_bufwrite(), fall back to synchronous cg block write if shadow block allocation failed. Since r107847, buffer write assumes that vnode owning the buffer is locked. The second problem is that buffer cache may accumulate many buffers belonging to limited number of vnodes. With such workload, quite often threads that own the mentioned vnodes locks are trying to read another block from the vnodes, and, due to buffer cache exhaustion, are asking bufdaemon for help. Bufdaemon is unable to make any substantial progress because the vnodes are locked. Allow the threads owning vnode locks to help the bufdaemon by doing the flush pass over the buffer cache before getnewbuf() is going to uninterruptible sleep. Move the flushing code from buf_daemon() to new helper function buf_do_flush(), that is called from getnewbuf(). The number of buffers flushed by single call to buf_do_flush() from getnewbuf() is limited by new sysctl vfs.flushbufqtarget. Prevent recursive calls to buf_do_flush() by marking the bufdaemon and threads that temporarily help bufdaemon by TDP_BUFNEED flag. In collaboration with: pho Reviewed by: tegge (previous version) Tested by: glebius, yandex ... MFC after: 3 weeks
* Added DLT_ENC to map list, so it is now possiblevanhu2009-03-161-0/+3
| | | | | | | | to save dumps on enc0 Reviewed by: gnn(mentor) Obtained from: NETASQ MFC after: 1 week
* Fix spelling in message.mav2009-03-161-3/+3
|
* cat(1) compiles fine at WARNS level 6.des2009-03-161-0/+1
|
* use usb2_desc_foreach() to iterate the USB config descriptor instread ofweongyo2009-03-161-4/+4
| | | | | | accessing structures directly to check some invalid descriptors. Pointed by: hps
* Define and use two macros for loopback checksum offload:rwatson2009-03-161-6/+9
| | | | | | | | | | | | | | | | LO_CSUM_FEATURES - a bitmask of supported transmit offload features, which will be stored in if_hwassist if IFCAP_TXCSUM is enabled, and be cleared from mbuf packet header csum flags on transmit. (1) LO_CSUM_SET - a bitmask of supported receive offload features, which will be set on the mbuf packet header csum flags on transmit if IFCAP_RXCSUM is enabled. While here, fix SCTP offload for loopback: offer generation on the transmit side, don't just skip validation on the receive side. Obtained from: DragonflyBSD (1) MFC after: 1 week
* Chase the k8temp->amdtemp rename in NOTES and loader.conf.dchagin2009-03-162-3/+3
| | | | Approved by: kib (mentor)
* if_hwassist should be initialized with CSUM, rather than IFCAP, flags.rwatson2009-03-161-2/+2
| | | | | Submitted by: yongari MFC after: 1 week
* Teach psm about O_ASYNCrnoland2009-03-161-0/+23
| | | | | | This makes Xorg happy if you aren't using moused. MFC after: 3 days
* Get rid of any remaining PZERO flags in mtx_sleep()rnoland2009-03-163-14/+2
| | | | | | Also, clean up some ifdef mess while I'm here. MFC after: 3 days
* Fix R600 writeback across suspend/resume.rnoland2009-03-161-3/+0
| | | | | | | This is likely a NOOP for us, since I haven't ported the suspend/resume code yet. MFC after: 3 days
* Sort include files in the alphabetical order.dchagin2009-03-161-5/+4
| | | | | Approved by: kib (mentor) MFC after: 2 weeks
* Add the SIOCSIFMTU ioctl handling directly to tap(4) permitting it toscf2009-03-161-0/+7
| | | | | | | | | | | | | have its MTU set higher than 1500 (ETHERMTU). Its new limit is now 65535 as enforced by ifhwioctl() in if.c This allows a tap(4) device to be added to a bridge, which requires all interface members to have the same MTU, with an interface configured for jumbo frames. QEMU may now connect to a network via tap(4) without requiring the real interface to have its MTU set to 1500 or lower. Reviewed by: rpaulo, bms MFC after: 1 week
* Restore missing OSREL definition that accidetnally dropped from animp2009-03-151-0/+3
| | | | earlier version of this patch.
* Default to AF_LOCAL instead of AF_INET sockets for non-family-specificjamie2009-03-153-14/+16
| | | | | | | operations. This allows the query operations to work in non-IPv4 jails, and will be necessary in a future of possible non-INET networking. Approved by: bz (mentor)
* Teach the loopback interface about checksum generation and validationrwatson2009-03-152-12/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | avoidance: - Enable setting the RXCSUM and TXCSUM flags for loopback interfaces; set both by default. - When RXCSUM is set, flag packets sent over the loopback interface as having checked and valid IP, UDP, TCP checksums so that higher protocol layers won't check them. - Always clear CSUM_{IP,UDP_TCP} checksum required flags on transmit, as they will have gotten there as a result of TXCSUM being set. This is done only for packets explicitly sent over the loopback, not simulated loopback via if_simloop() due to !SIMPLEX interfaces, etc. Note that enabling TXCSUM but not RXCSUM will lead to unhappiness, as checksums won't be generated but will be validated. Kris reports that this leads to significant performance improvements in loopback benchmarking with TCP and UDP for throughput: RXCSUM RXCSUM+TXCSUM TCP 15% 37% UDP 10% 74% Update man page. Reviewed by: sam Tested by: kris MFC after: 1 week
* Ignore FUTEX_FD op, as it is done by linux.dchagin2009-03-152-8/+1
| | | | | Approved by: kib (mentor) MFC after: 2 weeks
* Include linux_futex.h before linux_emul.hdchagin2009-03-152-3/+1
| | | | | Approved by: kib (mentor) MFC after: 6 days
* Mention specifically in UPDATING that non-MPSAFE device drivers are norwatson2009-03-151-0/+7
| | | | longer supported.
* Bump __FreeBSD_version for the removal of IFF_NEEDSGIANT; networkrwatson2009-03-151-1/+1
| | | | | device drivers that require Giant to be held over calls to the ifnet interface are no longer supported in the FreeBSD 8.x kernel.
* Remove IFF_NEEDSGIANT, a compatibility infrastructure introducedrwatson2009-03-1519-203/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in FreeBSD 5.x to allow network device drivers to run with Giant despite the network stack being Giant-free. This significantly simplifies calls into ioctl() on network interfaces, especially in the multicast code, as well as eliminates deferred invocation of interface if_start routines. Disable the build on device drivers still depending on IFF_NEEDSGIANT as they no longer compile. They will be removed in a few weeks if they haven't been made MPSAFE in that time. Disabled drivers: if_ar if_axe if_aue if_cdce if_cue if_kue if_ray if_rue if_rum if_sr if_udav if_ural if_zyd Drivers that were already disabled because of tty changes: if_ppp if_sl Discussed on: arch@
* - Create the buildworld object directories with mtree instead of variousgabor2009-03-152-32/+8
| | | | | | mkdir calls - Remove the ugly workaroung from libc NLS, which was to create some of these directories
* Correct a number of evolved problems with inp_vflag and inp_flags:rwatson2009-03-1510-110/+108
| | | | | | | | | | | | | | | | | | | | | certain flags that should have been in inp_flags ended up in inp_vflag, meaning that they were inconsistently locked, and in one case, interpreted. Move the following flags from inp_vflag to gaps in the inp_flags space (and clean up the inp_flags constants to make gaps more obvious to future takers): INP_TIMEWAIT INP_SOCKREF INP_ONESBCAST INP_DROPPED Some aspects of this change have no effect on kernel ABI at all, as these are UDP/TCP/IP-internal uses; however, netstat and sockstat detect INP_TIMEWAIT when listing TCP sockets, so any MFC will need to take this into account. MFC after: 1 week (or after dependencies are MFC'd) Reviewed by: bz
* - Wrap lock profiling state variables in #ifdef LOCK_PROFILING blocks.jeff2009-03-154-14/+34
|
* - Implement a new mechanism for resetting lock profiling. We nowjeff2009-03-153-25/+111
| | | | | | | | | | | | | | | | | guarantee that all cpus have acknowledged the cleared enable int by scheduling the resetting thread on each cpu in succession. Since all lock profiling happens within a critical section this guarantees that all cpus have left lock profiling before we clear the datastructures. - Assert that the per-thread queue of locks lock profiling is aware of is clear on thread exit. There were several cases where this was not true that slows lock profiling and leaks information. - Remove all objects from all lists before clearing any per-cpu information in reset. Lock profiling objects can migrate between per-cpu caches and previously these migrated objects could be zero'd before they'd been removed Discussed with: attilio Sponsored by: Nokia
* Don't adjust ranges at all for subtractive bridges. The simple-mindedimp2009-03-151-0/+4
| | | | stuff we're doing is too simple-minded, so back it out for now.
* Generalize the workaround for the Hitachi HT-4840-11. The Contecimp2009-03-151-6/+7
| | | | | | | | | C-NET(PC) has a cfe at location 1 that has both an odd irq mask (it matches pc98 machines, so maybe it was a flag for pc98 operation) as well as a memory map. Since this driver doesn't know how to cope, we start with cfe2, which is purely an I/O space mapped and that seems to make it work. I say 'seems' here, because the card I have doesn't seem to have the right dongle for full testing...
* no need to for gnu89 any moresam2009-03-151-2/+0
|
* remove gcc-ism; tsinfo isn't used anywaysam2009-03-151-1/+1
|
* Opps.. I missed a file on the commit :-)rrs2009-03-141-1/+2
|
* Fix build breakage due to the interplay between r189801 and r189824.das2009-03-142-0/+3
| | | | | | | In particular, vendor sources that aren't ready for gnu99 should still be compiled with gnu89. (Before r189824, these would have generated warnings if you tried to compile them in gnu99 mode, but the warnings went unheeded due to -Wno-error.)
* Oops. Correct comment in the LICENSE file.pjd2009-03-141-1/+1
|
* Regression tests for mac_portacl(4).pjd2009-03-144-0/+242
|
* - Correct logic in if statement - we want to allocate temporary bufferpjd2009-03-141-1/+3
| | | | | | | | | | when someone is passing new rules, not when he only want to read them. Because of this bug, even if the given rules were incorrect, they ended up in rule_string. - Add missing protection for rule_string when coping it. Reviewed by: rwatson MFC after: 1 week
* Namespace: Defining htonl() and friends here instead of arpa/inet.h isdas2009-03-141-2/+2
| | | | a BSD extension.
* Fix the visibility of several prototypes. Also move pthread_kill() anddas2009-03-143-3/+19
| | | | | | | | | | pthread_sigmask() to signal.h. In principle, this shouldn't break anything, since they're already in signal.h on other systems, and the FreeBSD manpage says that both pthread.h and signal.h need to be included to get these functions. Add a hack to declare pthread_t in the P1003.1-2008 namespace in signal.h.
* Hide dbopen() in the POSIX namespace, and use standard type namesdas2009-03-141-33/+35
| | | | throughout so that this compiles in strict POSIX mode.
* Hide numerous BSD extensions in the POSIX namespace.das2009-03-141-24/+30
|
* Bump __FreeBSD_version to 800071 for gcc patch to add support for C99das2009-03-141-1/+1
| | | | inline functions in c99 and gnu99 mode.
* Make gcc use C99 inline semantics in c99 and gnu99 mode. This was thedas2009-03-146-139/+212
| | | | | | | | | | | | | | | | | | | | | original intent, but the functionality wasn't implemented until after gcc 4.2 was released. However, if you compiled a program that would behave differently before and after this change, gcc 4.2 would have warned you; hence, everything currently in the base system is unaffected by this change. This patch also adds additional warnings about certain inline function-related bogosity, e.g., using a static non-const local variable in an inline function. These changes were merged from a snapshot of gcc mainline from March 2007, prior to the GPLv3 switch. I then ran the regression test suite from a more recent gcc snapshot and fixed the important bugs it found. I also squelched the following warning unless -pedantic is specified: foo is static but used in inline function bar which is not static This is consistent with LLVM's behavior, but not consistent with gcc 4.3. Reviewed by: arch@
* Namespace: aio_waitcomplete() is a BSD extension.das2009-03-141-1/+4
| | | | Also, don't pollute the namespace by including <sys/time.h>.
* Namespace: adjtime(), futimes(), futimesat(), lutimes(), and settimeofday()das2009-03-141-5/+13
| | | | | | | are BSD extensions. Also include <sys/select.h> in user code, since this header is also supposed to define most of the symbols there.
* Namespace: abort2() is a BSD extension.das2009-03-141-1/+1
|
* Namespace: endpwent, getpwent, and setpwent are XSI extensions.das2009-03-141-1/+4
|
* Namespace: dprintf() and getline() are in P1003.1-2008.das2009-03-141-2/+2
|
* Various namespace cleanups, including exposing fchmod() and fchmodat()das2009-03-142-5/+11
| | | | | | | in the POSIX namespace, and hiding eaccess() and setproctitle(). Also move mknodat() from unistd.h to sys/stat.h where it belongs. The *at() syscalls are only in CURRENT, so this shouldn't cause problems.
OpenPOWER on IntegriCloud