summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Most of binutils now compiles at WARNS=3, except for libiberty anddim2010-10-2213-14/+1
| | | | libbfd, which still need WARNS=2.
* In case of powerpc64, enable HAVE_LD_NO_DOT_SYMS in gcc's auto-host.h.dim2010-10-221-1/+3
| | | | Requested by: nwhitehorn
* Sync: merge r214077 through r214219 from ^/head.dim2010-10-22126-4738/+9961
|\
| * Add workaround for BCM5906 A1 controller silicon bug. Whenyongari2010-10-222-0/+6
| | | | | | | | | | | | | | | | | | | | | | auto-negotiation results in half-duplex operation, excess collision on the ethernet link may cause internal chip delays that may result in subsequent valid frames being dropped due to insufficient receive buffer resources. The workaround is to choose de-pipeline method as a flow control decision for SDI. De-pipeline method allows only 1 data in TxMbuf at a time such that a request to RDMA from SDI is made only when TxMbuf is empty. Thanks for david for providing detailed errata information.
| * Enable TX MAC state machine lockup fix for both BCM5755 or higheryongari2010-10-222-1/+7
| | | | | | | | | | and BCM5906. Publicly available data sheet just says it may happen due to corrupted TxMbuf.
| * Avoid using memcpy() for copying 32bit chunks. This shrinksrdivacky2010-10-221-2/+2
| | | | | | | | | | | | | | the resulting code a little. Approved by: rpaulo (mentor) Reviewed by: jhb
| * - Add a new PCI quirk to whitelist an old chipset that doesn't supportjhb2010-10-221-1/+31
| | | | | | | | | | | | | | | | PCI-express or PCI-X capabilities if we are running in a virtual machine. - Whitelist the Intel 82440 chipset used by QEMU. Tested by: jfv MFC after: 1 week
| * Validate syscall_timing test names before starting to provide earlierrwatson2010-10-221-12/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | feedback regarding user error. Provide default loop and timing settings. Add a new test that just times pread() without the open()/close(). Mark tests requiring a path argument so we can provide better feedback to the user than EFAULT on (null). Sponsored by: Google, Inc. MFC after: 2 weeks
| * Revert to r214147, errno is not clobbered as originallybcr2010-10-221-2/+0
| | | | | | | | thought.
| * Unbreak ia64.marcel2010-10-222-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With r169630 I disabled symbol versioning because it broke rtld. With r211706 rtld got broken for ia64 & powerpc64. It was fixed for powerpc64 with r212497. In between, r211749 removed the exports table because the version script handled the exports. But wait, symbol versioning was disabled on ia64. With exports controlled by the version script and symbol versioning disabled, all symbols are exported and too many symbols bind to the definition in rtld. Let's just say that waird things happen. So, enable symbol versioning on ia64 and apply a work-around for the SIGSEGV that triggered r169630 to begin with: when rtld relocates itself, it comes across r_debug_state and for some reason can't find the definition. This causes a failure, relocation aborts and null pointers galore. The work-around is to ignore the missing definition when rtld is relocating itself and keep going. Maybe with the next binutils this will all go away. Maybe not, in which case I still need to figure out why r_debug_state cannot be found. BTW: r_debug_state is in the symbol map -- I don't think any other rtld symbols that rtld references are in the symbol map...
| * More simplificationsimp2010-10-222-23/+7
| | | | | | | | Submitted by: Alex Kozlov
| * Remove unnecessary variable.imp2010-10-221-2/+0
| | | | | | | | Submitted by: Alex Kozlov
| * Fix two typosimp2010-10-211-2/+2
| | | | | | | | Submitted by: Benedict Reuschling
| * More support for IMAGE installationsimp2010-10-211-1/+9
| |
| * Minor tweaks in compression support:imp2010-10-211-9/+9
| | | | | | | | | | | | | | | | o We need an eval here to get the right expansion of the command o bs=128k doesn't work in some cases, so eliminate it and cope with the minor performance hit. Submitted by: john hixson
| * Universally use uintmax_t in syscall_timing; rearrange arithmetic torwatson2010-10-211-64/+65
| | | | | | | | | | | | | | | | suffer fewer rounding errors with smaller numbers; fix argc validation so multiple tests run on a single command line. Sponsored by: Google, Inc. MFC after: 2 weeks
| * Call chainevh callback when we are invoked with neither MOD_LOAD nordelphij2010-10-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | MOD_UNLOAD. This makes it possible to add custom hooks for other module events. Return EOPNOTSUPP when there is no callback available. Pointed out by: jhb Reviewed by: jhb MFC after: 1 month
| * Fix typo in last commit.glebius2010-10-211-1/+1
| | | | | | | | Submitted by: bcr
| * Free opencrypto sessions on suspend, as they also might keep encryption keys.pjd2010-10-212-35/+81
| |
| * The firmware always sets bit 14 and 15, to get the real associd we needbschmidt2010-10-211-1/+1
| | | | | | | | | | | | to clear those bits. MFC after: 1 week
| * Instead of calling return when reaching the end of the assoc notificationbschmidt2010-10-211-1/+1
| | | | | | | | | | | | | | | | break the loop instead. We want to run the code after the while loop to set an associd and capinfo. If we don't do this net80211 will drop frames because it assumes the node has not yet been associated. MFC after: 1 week
| * - When disabling ktracing on a process, free any pending requests thatjhb2010-10-215-82/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | may be left. This fixes a memory leak that can occur when tracing is disabled on a process via disabling tracing of a specific file (or if an I/O error occurs with the tracefile) if the process's next system call is exit(). The trace disabling code clears p_traceflag, so exit1() doesn't do any KTRACE-related cleanup leading to the leak. I chose to make the free'ing of pending records synchronous rather than patching exit1(). - Move KTRACE-specific logic out of kern_(exec|exit|fork).c and into kern_ktrace.c instead. Make ktrace_mtx private to kern_ktrace.c as a result. MFC after: 1 month
| * Add Cambridge/Google tag since the copyright has been updated.rwatson2010-10-211-0/+3
| | | | | | | | MFC after: 2 weeks
| * Further syscall_timing improvements: allow an arbitrary "path" stringrwatson2010-10-211-45/+41
| | | | | | | | | | | | | | | | argument to be passed on the command line, allowing file-related tests to be pointed at wherever desired. Sponsored by: Google, Inc. MFC after: 2 weeks
| * Modify the experimental NFS server in a manner analagous tormacklem2010-10-211-1/+9
| | | | | | | | | | | | | | | | r214049 for the regular NFS server, so that it will not do a VOP_LOOKUP() of ".." when at the root of a file system when performing a ReaddirPlus RPC. MFC after: 10 days
| * Document strtonum()s behavior of setting errno to 0 when no error is found.bcr2010-10-211-0/+2
| | | | | | | | | | | | | | PR: docs/143330 Submitted by: Efstratios Karatzas (gpf dot kira at gmail dot com) Discussed with: ru@ MFC after: 7 days
| * Sync with OpenBSD rev. 1.13:bcr2010-10-211-2/+1
| | | | | | | | | | | | | | | | strtonum does not require limits.h Obtained from: OpenBSD Discussed with: ru@ MFC after: 5 days
| * Clarify a misleading comment. The test in pci_reserve_map() was meant tojhb2010-10-211-9/+9
| | | | | | | | | | | | | | | | | | ignore BARs that are invalid due to having a size of zero, not to ignore BARs with an existing base of zero. While here, reorganize the code slightly to make the intent clearer. Reported by: avg MFC after: 1 week
| * Fix bug in recent syscall_timing change: measure the number of iterationsrwatson2010-10-211-3/+4
| | | | | | | | | | | | | | | | each loop, rather than once up front. The distinction is unimportant when doing a fix iteration count, but when using a timer, it should vary. Sponsored by: Google, Inc. MFC after: 2 weeks
| * - Make 'vm_refcnt' volatile so that compilers won't be tempted to treatjhb2010-10-212-6/+2
| | | | | | | | | | | | | | | | | | | | its value as a loop invariant. Currently this is a no-op because 'atomic_cmpset_int()' clobbers all memory on current architectures. - Use atomic_fetchadd_int() instead of an atomic_cmpset_int() loop to drop a reference in vmspace_free(). Reviewed by: alc MFC after: 1 month
| * Left over from prior patch removed.imp2010-10-211-11/+0
| | | | | | | | | | Submitted by: John Hixon PR: 151442 (but the patch was backwards there)
| * Further enhancements to syscall_timing:rwatson2010-10-211-79/+258
| | | | | | | | | | | | | | | | | | | | | | | | - Use getopt rather than hand-parsed arguments - Allow iterations to be specified and/or a new number of seconds bound on the number of iterations - Fix printout of timer resolution - Add new tests, such as TCP and UDP socket creation, and open/read/close of /dev/zero and /dev/null. Sponsored by: Google, Inc. MFC after: 2 weeks
| * This patch will only list components if the directory exists. Theimp2010-10-211-18/+19
| | | | | | | | | | | | | | directory exist on PC-BSD but not FreeBSD, so an extra check is made. Submitted by: John Hixson PR: 151461
| * Document possibility to read from stdin.glebius2010-10-211-1/+5
| |
| * This is an updated patch to the last patch to do this which fixes aimp2010-10-211-60/+44
| | | | | | | | | | | | | | | | local variable issue. This patch decompresses compressed images to the stdout when writing to a device to avoid running out of space issues. Submitted by: John Hixson Pr: 151049
| * This small patch updates the "geli setkey" flags pc-sysinstall usesimp2010-10-211-1/+1
| | | | | | | | | | | | | | | | when saving a users passphrase, to make it work in HEAD with recent geli improvements. Submitted by: Kris Moore PR: 151002
| * Make it possible to read input from stdin.glebius2010-10-211-2/+4
| | | | | | | | | | | | Without this change I don't see a way to unpack a multivolume archive without wasting disk space for a temporary file.
| * Reshuffle SIOCGIFCONF32 handler from r155224.pluknet2010-10-213-30/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | - move all the chunks into one file, which allows to hide SIOCGIFCONF32 global definition as well. - replace __amd64__ with proper COMPAT_FREEBSD32 around. - handle 32bit capacity before going into the handler itself instead of doing internal 32bit specific changes within it (e.g. as it's done for SIOCGDEFIFACE32_IN6). - use explicitely sized types for ABI compat. Approved by: kib (mentor) MFC after: 2 weeks
| * Improve the structure and implementation of the syscall_timingrwatson2010-10-211-106/+374
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | microbenchmark suite: - Use common benchmark_start/benchmark_stop routines to simplify individual benchmarks. - Add a central table of tests with names, where new tests can be hooked in easily. - Add new benchmarks for dup, shm_open, shm_open + fstat, fork, vfork, vfork + exec, chroot, setuid. - Accept a number of loops, not just a number of iterations. - Report results more usefully in a table. Sponsored by: Google, Inc. MFC after: 2 weeks
| * Fix error handling logic of pututxline(3).ed2010-10-211-12/+21
| | | | | | | | | | | | Instead of only returning NULL when the entry is invalid and can't be matched against the current database, also return it when it cannot open the log files properly.
| * Fix a bug introduced in r213067 where we use authentication key beforepjd2010-10-211-9/+10
| | | | | | | | initializing it.
| * mdoc: make pages render with mandocuqs2010-10-2111-13/+10
| | | | | | | | | | | | It's a bit more pedantic regarding .Bl list elements. This has an added benefit of unbreaking the ipfw(8) manpage, where groff was silently skipping one list element.
| * Enable copyback and system PD states.pluknet2010-10-211-0/+4
| | | | | | | | | | | | | | Reviewed by: jhb Approved by: avg (mentor) MFC after: 1 week X-MFC-After: r214130
| * Update PD state firmware definitions: add copyback, system.pluknet2010-10-211-1/+3
| | | | | | | | | | | | Reviewed by: jhb Approved by: avg (mentor) MFC after: 1 week
| * Remove code duplication by introducing static gctl_param_add() function whichpjd2010-10-211-22/+14
| | | | | | | | is now used by both gctl_ro_param() and gctl_rw_param().
| * - Simplify gctl_get_handle() a bit.pjd2010-10-211-5/+3
| | | | | | | | - Prefer 'unsigned int' over 'u_int' in userland code.
| * In syscall_module_handler(): all switch branches return, removedelphij2010-10-211-4/+1
| | | | | | | | | | | | | | | | | | unreached code as pointed out in a Chinese forum [1]. [1] http://www.freebsdchina.org/forum/viewtopic.php?t=50619 Pointed out by: btw616 <btw s qq com> MFC after: 1 month
| * Fix printing of files located on ZFS filesystem with an st_dev oredwin2010-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | st_ino larger than 2**31. From the PR: Printing from a ZFS filesystem using 'lp' fails and returns an email reporting "Your printer job was not printed because it was not linked to the original file". In order to protect against files being switched when files are printed using 'lp' or 'lpr -s', the st_dev and st_ino values for the original file are saved by lpr and verified by lpd before the file is printed. Unfortunately, lpr prints both values using '%d' (although both fields are unsigned) and lpd(8) assumes a string of decimal digits. ZFS (at least) generates st_dev values greater than 2^31-1, resulting in negative values being printed - which lpd cannot parse, leading it to report that the file has been switched. A similar problem would occur with large inode numbers. How-To-Repeat: Find a file with either st_dev or st_ino greater than 2^31-1 (stat(1) will report both numbers) and print it with 'lpq -s'. This should generate an email reporting that the file could not be printed because it was not linked to the original file PR: bin/151567 Submitted by: Peter Jeremy <Peter.Jeremy@alcatel-lucent.com> MFC after: 1 week
| * Update PCI power management registers per PCI Bus Power Management Interfacejkim2010-10-203-18/+22
| | | | | | | | | | | | | | Specification Rev. 1.2. Rename pp_pcmcsr field of PM capabilities to pp_bse to avoid further confusions and adjust some comments accordingly. The real PMCSR (Power Management Control/Status Register) is PCIR_POWER_STATUS and it is actually BSE (PCI-to-PCI Bridge Support Extensions) register.
| * Use closefrom(2) instead of close(2) in a loop.pjd2010-10-201-21/+8
| | | | | | | | MFC after: 1 week
OpenPOWER on IntegriCloud