ƒ·a230351 153 283 328 303 256 307 283 286 282 281 285 289 379 389 122 153 284 509 717 253 164 165 196 246 252 124 121 156 386 197 318 331 331 331 228 228 228 177 242 308 187 240 180 427 1675 139 140 263 255 177 613 531 180 375 171 413 132 202 377 339 187 138 216 163 216 965 965 965 466 466 466 371 113 185 726 859 2340 147 307 391 539 448 859 600 211 1398 134 190 709 185 233 738 471 297 235 246 491 331 491 442 134 2363 222 546 273 278 247 152 323 165 194 143 214 303 141 483 284 152 723 329 492 233 863 193 172 166 184 184 165 395 368 233 343 175 218 599 247 752 762 503 126 230 184 225 141 365 229 419 419 165 149 138 147 174 K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:38:05.043877Z K 7 svn:log V 187 Fix warning when compiling with gcc46: error: variable 'now' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:38:12.468219Z K 7 svn:log V 232 Fix warning when compiling with gcc46: error: variable 'dirp' set but not used error: variable 'dirplen' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:38:21.063672Z K 7 svn:log V 207 Fix warning when compiling with gcc46: error: variable 'temp' set but not used Approved by: dim Approved by: cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:38:28.393750Z K 7 svn:log V 160 Fix a variety of warnings when compiling with gcc46 Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:38:35.593806Z K 7 svn:log V 211 Fix warning when compiling with gcc46: error: variable 'parentrecnum' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:38:44.993622Z K 7 svn:log V 187 Fix warning when compiling with gcc46: error: variable 'i2c' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:38:52.371025Z K 7 svn:log V 190 Fix warning when compiling with gcc46: error: variable 'target' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:39:01.001655Z K 7 svn:log V 186 Fix warning when compiling with gcc46: error: variable 'fd' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:39:08.704423Z K 7 svn:log V 185 Fix warning when compiling with gcc46: error: variable 'a' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:39:16.554716Z K 7 svn:log V 189 Fix warning when compiling with gcc46: error: variable 'flags' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-20T01:39:26.100956Z K 7 svn:log V 193 Fix warning when compiling with gcc46: error: variable 'clnt_stat' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-01-20T05:05:47.979421Z K 7 svn:log V 284 - Initial code drop for FreeBSD OMAP support. This is minimal bootable subset of Ben's code from https://gitorious.org/+freebsd-omap-team/ repository. It will be used as a base for bringing the rest of drivers into the tree. Submitted by: Ben Gray END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T06:16:14.037586Z K 7 svn:log V 296 Merge in the latest SoftFloat changes from NetBSD. (NetBSD isn't the original vendor, but we're using their heavily modified version.) This brings in functions for long double emulation (both extended and quad formats), which may be useful for testing, and also for replacing libc/sparc64/fpu/. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T06:16:37.240223Z K 7 svn:log V 30 Import SoftFloat from NetBSD. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T06:33:49.595507Z K 7 svn:log V 61 Tag softfloat sources pulled from NetBSD HEAD on 2012-01-17. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T06:51:41.434277Z K 7 svn:log V 191 Add parentheses where required. Without them, `sizeof LDBL_MAX' is a syntax error and shouldn't be, while `1 FLT_ROUNDS' isn't a syntax error and should be. Thanks to bde for the examples. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T06:54:30.057244Z K 7 svn:log V 416 Don't inline fenv.h functions on arm for now. Inlining makes sense: the function bodies require only 2 to 10 instructions. However, it leads to application binaries that refer to a private ABI, namely, the softfloat innards in libc. This could complicate future changes in the implementation of the floating-point emulation layer, so it seems best to have programs refer to the official fe* entry points in libm. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T06:57:21.950532Z K 7 svn:log V 624 These tests check whether the compiler evaluates floating-point expressions properly. Some of the tests depend on the compiler implementing C99's FENV_ACCESS pragma, and only commercial compilers do; those tests are currently skipped. If any of the enabled tests fail, then odds are the libm regression tests will fail also. This should make it easier to diagnose reported problems on platforms I don't have. Currently, gcc passes all the tests that don't depend on FENV_ACCESS on amd64 and sparc64. Clang fails a few on amd64 (see clang bug 11406). Both gcc and clang fare poorly on i386, which has well-known issues. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T06:59:29.807968Z K 7 svn:log V 160 Remove an errant `#define dprintf printf'. It seems to be leftover debugging code that nothing depends on. (I've had this in my tree for years without issue.) END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T07:01:58.352675Z K 7 svn:log V 72 Add a change I missed in r230367 (don't inline arm's fenv.h functions). END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T07:02:42.658911Z K 7 svn:log V 73 Fix a small nit noted by bde: exp_x should be of type float, not double. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-01-20T07:29:29.030268Z K 7 svn:log V 104 - Clean up checkpath(). - Remove unneeded sysexits.h include. No functional change. Submitted by: bde END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-01-20T10:06:28.299102Z K 7 svn:log V 154 Change mount_fs() to not exit on error. The "failok" mount option requires that errors are passed to the caller. PR: 163668 Reviewed by: Garrett Cooper END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-01-20T10:31:27.294866Z K 7 svn:log V 157 If we're booting there is no need to waste time determining if the service is running or not. PR: conf/150752 Submitted by: YIN Xiaofeng <75394094@qq.com> END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-01-20T12:51:58.941242Z K 7 svn:log V 30 stale. lets rebuild a new one END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-01-20T12:52:38.676999Z K 7 svn:log V 27 and this is the new one... END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-01-20T12:59:12.315199Z K 7 svn:log V 65 Don't print the nmount(2) provided error message if it is empty. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-01-20T13:10:40.918640Z K 7 svn:log V 291 snapshot of current code: - implement more aggressive interrupt throttling on the tx queues - pass rx interrupt mitigation up to the reading process - make interrupt_rate a writable sysctl parameter - correct the value used for computations of interrupt rate (it was off by a factor of 2) END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-01-20T13:26:11.625184Z K 7 svn:log V 101 Fix a problem when using the CBAPI. While there, remove an old comment which does not apply anymore. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-20T14:44:21.930988Z K 7 svn:log V 225 Conditionalize the __floatunsisf and __floatunsidf functions, added in NetBSD's rev 1.6 of this file, on !defined(SOFTFLOAT_FOR_GCC). These functions are provided by libgcc, so we don't need them. This should unbreak mips. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-20T15:43:08.918339Z K 7 svn:log V 235 MFC r227123: lint: Fix lseek() argument order. Because SEEK_SET is 0, this seems to have no effect on the generated code. PR: bin/160806 Submitted by: Henning Petersen Obtained from: NetBSD END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-20T15:44:39.369374Z K 7 svn:log V 235 MFC r227123: lint: Fix lseek() argument order. Because SEEK_SET is 0, this seems to have no effect on the generated code. PR: bin/160806 Submitted by: Henning Petersen Obtained from: NetBSD END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-20T15:46:46.847021Z K 7 svn:log V 235 MFC r227123: lint: Fix lseek() argument order. Because SEEK_SET is 0, this seems to have no effect on the generated code. PR: bin/160806 Submitted by: Henning Petersen Obtained from: NetBSD END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-20T16:29:17.179144Z K 7 svn:log V 132 MFC r227124: fifo_misc test: Fix swapped lseek arguments. It worked regardless because SEEK_CUR happens to be 1. PR: misc/160866 END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-20T16:31:44.036205Z K 7 svn:log V 132 MFC r227124: fifo_misc test: Fix swapped lseek arguments. It worked regardless because SEEK_CUR happens to be 1. PR: misc/160866 END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-20T16:34:14.631587Z K 7 svn:log V 132 MFC r227124: fifo_misc test: Fix swapped lseek arguments. It worked regardless because SEEK_CUR happens to be 1. PR: misc/160866 END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-01-20T17:18:54.688976Z K 7 svn:log V 86 Remove a superfluous INET6 check (no opt_inet6.h included anyway). MFC after: 3 days END K 10 svn:author V 3 rea K 8 svn:date V 27 2012-01-20T17:19:50.396097Z K 7 svn:log V 149 dhclient: don't use syslog for logging non-DHCP interface errors We should show the error to user, but it doesn't deserve syslog. Approved by: jhb END K 10 svn:author V 3 rea K 8 svn:date V 27 2012-01-20T17:25:15.453249Z K 7 svn:log V 215 /etc/netstart: remove invocation of dhclient dhclient is no longer a real service, it is a helper script for /etc/rc.d/netif and devd. Its direct invocation isn't needed to bring the network up. Approved by: jhb END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-01-20T18:49:47.894898Z K 7 svn:log V 90 Disable GUPROF on archs other than i386/amd64 since the fine details are not implemented. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-01-20T18:52:31.004900Z K 7 svn:log V 142 Add the .opd section, this is helps booting a profiled kernel. Adjust the OUTPUT_ARCH and use the builtin ALIGN() to adjust the data segment. END K 10 svn:author V 3 rmh K 8 svn:date V 27 2012-01-20T18:55:56.305967Z K 7 svn:log V 88 Map foreign architecture names to FreeBSD naming convention. Approved by: kib (mentor) END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-01-20T19:18:11.511141Z K 7 svn:log V 334 Pull in r148240 from upstream llvm trunk: Make sure the non-SSE lowering for fences correctly clobbers EFLAGS. PR11768. In particular, this fixes segfaults during the build of devel/icu on i386. The __sync_synchronize() builtin used for implementing icu's internal barrier could lead to incorrect behaviour. MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-20T20:02:01.711647Z K 7 svn:log V 1581 Close a race in NFS lookup processing that could result in stale name cache entries on one client when a directory was renamed on another client. The root cause for the stale entry being trusted is that each per-vnode nfsnode structure has a single 'n_ctime' timestamp used to validate positive name cache entries. However, if there are multiple entries for a single vnode, they all share a single timestamp. To fix this, extend the name cache to allow filesystems to optionally store a timestamp value in each name cache entry. The NFS clients now fetch the timestamp associated with each name cache entry and use that to validate cache hits instead of the timestamps previously stored in the nfsnode. Another part of the fix is that the NFS clients now use timestamps from the post-op attributes of RPCs when adding name cache entries rather than pulling the timestamps out of the file's attribute cache. The latter is subject to races with other lookups updating the attribute cache concurrently. Some more details: - Add a variant of nfsm_postop_attr() to the old NFS client that can return a vattr structure with a copy of the post-op attributes. - Handle lookups of "." as a special case in the NFS clients since the name cache does not store name cache entries for ".", so we cannot get a useful timestamp. It didn't really make much sense to recheck the attributes on the the directory to validate the namecache hit for "." anyway. - ABI compat shims for the name cache routines are present in this commit so that it is safe to MFC. MFC after: 2 weeks END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-20T21:45:24.472236Z K 7 svn:log V 47 Remove unused token 'port'. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-20T21:49:56.494075Z K 7 svn:log V 48 Remove another unused token. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-20T22:04:59.038397Z K 7 svn:log V 170 By default turn off prefetch when listing snapshots. In my tests it makes listing snapshots 19% faster with cold cache and 47% faster with warm cache. MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-20T22:24:39.845216Z K 7 svn:log V 154 Prevent an error resulting from signed/unsigned comparison on systems that do not comply with the OF spec. Submitted by: Anders Gavare MFC after: 1 week END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-01-20T22:31:52.320402Z K 7 svn:log V 82 Wait a bit for the USB ethernet interfaces to show up, in case we want to netboot END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-01-20T22:34:19.628105Z K 7 svn:log V 515 This commit adds profiling support for powerpc64. Now we can do application profiling and kernel profiling. To enable kernel profiling one has to build kgmon(8). I will enable the build once I managed to build and test powerpc (32-bit) kernels with profiling support. - add a powerpc64 PROF_PROLOGUE for _mcount. - add macros to avoid adding the PROF_PROLOGUE in certain assembly entries. - apply these macros where needed. - add size information to the MCOUNT function. MFC after: 3 weeks, together with r230291 END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-01-20T22:37:10.361582Z K 7 svn:log V 438 Replace GPLd headers from the Maestro3 driver with BSD licensed versions derived from /usr/ports/audio/oss. The particular headers used were taken from the attic/drv/oss_allegro directory and are mostly identical to the previous files. The Maestro3 driver is now free from the GPL. NOTE: due to lack of testers this driver is being considered for deprecation and removal. PR: kern/153920 Approved by: jhb (mentor) MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-01-20T22:55:16.723681Z K 7 svn:log V 89 Add accidentially removed copyright lines in r228103 Reported by: pjd MFC after: 3 days END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-01-20T22:55:19.464091Z K 7 svn:log V 279 When creating the jails /dev/log symlink, do it by full path to avoid creating stray "log" symlinks if the mount fails. That apparently happens in some ezjail configs. PR: conf/143084 Submitted by: Dirk Engling Reviewed by: simon MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-01-20T22:56:57.635954Z K 7 svn:log V 80 Add one more copyright line accidentially removed in r228103 MFC after: 3 days END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-01-20T23:37:04.763385Z K 7 svn:log V 318 We use port_index field of struct octusb_qh to reference USB state of root HUB. Although it is initialized with port index of the device's parent hub, which is worng. So track the USB tree up to root HUB and initialize this filed ptroprly Rename port_index to root_port_index in order to reflect its real semantics. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-01-20T23:48:14.616572Z K 7 svn:log V 37 Don't forget to increase the counter END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-01-21T00:06:21.742349Z K 7 svn:log V 110 Use separate buffer for global path to avoid overflow of path buffer. Reviewed by: jamie@ MFC after: 3 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-01-21T00:38:18.668028Z K 7 svn:log V 281 Change the hwmp debugging to use %6D rather than ether_sprintf(). This allows for multiple MAC addresses to be printed on the same debugging line. ether_sprintf() uses a static char buffer and thus isn't very useful here. Submitted by: Monthadar Al Jaberi END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-01-21T00:42:28.712201Z K 7 svn:log V 243 Fix the hwmp code to handle nodes in a "line" topology. For example, this particular topology didn't work correctly from all nodes: [A] - [B] - [C] - [D] Submitted by: Monthadar Al Jaberi Reviewed by: bschmidt, adrian END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-21T01:24:06.544252Z K 7 svn:log V 95 MFC r229768: Implement fdlopen(3), an rtld interface to load shared object by file descriptor. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-01-21T03:00:57.364962Z K 7 svn:log V 41 Merge in an up to date kernel from head. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2012-01-21T03:16:32.240625Z K 7 svn:log V 118 MFC r230294: Specify the correct section (4 instead of 9) in the h_ertt man page's title and bump the document date. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2012-01-21T03:44:51.133509Z K 7 svn:log V 66 MFC r222286 (originally committed by ru): [mdoc] Fixed .Dt call. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2012-01-21T03:46:58.981259Z K 7 svn:log V 118 MFC r230294: Specify the correct section (4 instead of 9) in the h_ertt man page's title and bump the document date. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2012-01-21T03:59:31.858999Z K 7 svn:log V 867 MFC r229898: Consumers of bpfdetach() expect it to remove all bpf_if structs from the bpf_iflist list which reference the specified ifnet. The existing implementation only removes the first matching bpf_if found in the list, effectively leaking list entries if an ifnet has been bpfattach()ed multiple times with different DLTs. Fix the leak by performing the detach logic in a loop, stopping when all bpf_if structs referencing the specified ifnet have been detached and removed from the bpf_iflist list. Whilst here, also: - Remove the unnecessary "bp->bif_ifp == NULL" check, as a bpf_if should never exist in the list with a NULL ifnet pointer. - Except when INVARIANTS is in the kernel config, silently ignore the case where no bpf_if referencing the specified ifnet is found, as it is harmless and does not require user attention. Reviewed by: csjp END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2012-01-21T04:22:19.553950Z K 7 svn:log V 867 MFC r229898: Consumers of bpfdetach() expect it to remove all bpf_if structs from the bpf_iflist list which reference the specified ifnet. The existing implementation only removes the first matching bpf_if found in the list, effectively leaking list entries if an ifnet has been bpfattach()ed multiple times with different DLTs. Fix the leak by performing the detach logic in a loop, stopping when all bpf_if structs referencing the specified ifnet have been detached and removed from the bpf_iflist list. Whilst here, also: - Remove the unnecessary "bp->bif_ifp == NULL" check, as a bpf_if should never exist in the list with a NULL ifnet pointer. - Except when INVARIANTS is in the kernel config, silently ignore the case where no bpf_if referencing the specified ifnet is found, as it is harmless and does not require user attention. Reviewed by: csjp END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2012-01-21T04:24:19.983965Z K 7 svn:log V 867 MFC r229898: Consumers of bpfdetach() expect it to remove all bpf_if structs from the bpf_iflist list which reference the specified ifnet. The existing implementation only removes the first matching bpf_if found in the list, effectively leaking list entries if an ifnet has been bpfattach()ed multiple times with different DLTs. Fix the leak by performing the detach logic in a loop, stopping when all bpf_if structs referencing the specified ifnet have been detached and removed from the bpf_iflist list. Whilst here, also: - Remove the unnecessary "bp->bif_ifp == NULL" check, as a bpf_if should never exist in the list with a NULL ifnet pointer. - Except when INVARIANTS is in the kernel config, silently ignore the case where no bpf_if referencing the specified ifnet is found, as it is harmless and does not require user attention. Reviewed by: csjp END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-01-21T05:03:10.074735Z K 7 svn:log V 373 MFC r226163, r228317, and r228324 Fix the handling of an empty kmem map by sysctl_kmem_map_free(). Eliminate the possibility of 32-bit arithmetic overflow in the calculation of vm_kmem_size that may occur if the system administrator has specified a vm.vm_kmem_size tunable value that exceeds the hard cap. Eliminate stale numbers from a comment. PR: 162741 END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-01-21T07:21:44.857732Z K 7 svn:log V 373 MFC r226163, r228317, and r228324 Fix the handling of an empty kmem map by sysctl_kmem_map_free(). Eliminate the possibility of 32-bit arithmetic overflow in the calculation of vm_kmem_size that may occur if the system administrator has specified a vm.vm_kmem_size tunable value that exceeds the hard cap. Eliminate stale numbers from a comment. PR: 162741 END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-01-21T07:57:27.947207Z K 7 svn:log V 373 MFC r226163, r228317, and r228324 Fix the handling of an empty kmem map by sysctl_kmem_map_free(). Eliminate the possibility of 32-bit arithmetic overflow in the calculation of vm_kmem_size that may occur if the system administrator has specified a vm.vm_kmem_size tunable value that exceeds the hard cap. Eliminate stale numbers from a comment. PR: 162741 END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-01-21T08:26:41.325408Z K 7 svn:log V 278 MFC r228398 Avoid the possibility of integer overflow in the calculation of VM_KMEM_SIZE_MAX. Specifically, if the user/kernel address space split was changed such that the kernel address space was greater than or equal to 2 GB, then overflow would occur. PR: 161721 END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-01-21T11:42:40.257511Z K 7 svn:log V 16 Revert r230390. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-01-21T11:48:48.889075Z K 7 svn:log V 91 Replace the beerware license on mdconfig(8) with standard 2-clause BSD. Approved by: phk@ END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-01-21T13:31:38.291983Z K 7 svn:log V 628 Add support for the DesignWare USB 2.0 OTG controller chipset. Currently the code is not built by any modules. That will be fixed later. The Atmel ARM bus interface file part of this commit is just for sake of example. All registers and bits are declared like macros and not C-structures like in official Synopsis header files. This driver mostly origins from the musb_otg.c driver in FreeBSD except that the chip specific programming has been replaced by the one for DWC 2.0 USB OTG. Some parts related to system suspend and resume have been left like empty functions for the future. USB suspend and resume is fully supported. END K 10 svn:author V 3 rmh K 8 svn:date V 27 2012-01-21T17:22:50.651940Z K 7 svn:log V 766 MFC r227827 Define __FreeBSD_kernel__ macro in sys/param.h. __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, which by definition is always true on FreeBSD. This macro is also defined on other systems that use the kernel of FreeBSD, such as GNU/kFreeBSD. It is tempting to use this macro in userland code when we want to enable kernel-specific routines, and in fact it's fine to do this in code that is part of FreeBSD itself. However, be aware that as presence of this macro is still not widespread (e.g. older FreeBSD versions, 3rd party compilers, etc), it is STRONGLY DISCOURAGED to check for this macro in external applications without also checking for __FreeBSD__ as an alternative. Approved by: kib (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-21T17:45:27.154875Z K 7 svn:log V 2246 Add support for the extended FPU states on amd64, both for native 64bit and 32bit ABIs. As a side-effect, it enables AVX on capable CPUs. In particular: - Query the CPU support for XSAVE, list of the supported extensions and the required size of FPU save area. The hw.use_xsave tunable is provided for disabling XSAVE, and hw.xsave_mask may be used to select the enabled extensions. - Remove the FPU save area from PCB and dynamically allocate the (run-time sized) user save area on the top of the kernel stack, right above the PCB. Reorganize the thread0 PCB initialization to postpone it after BSP is queried for save area size. - The dumppcb, stoppcbs and susppcbs now do not carry the FPU state as well. FPU state is only useful for suspend, where it is saved in dynamically allocated suspfpusave area. - Use XSAVE and XRSTOR to save/restore FPU state, if supported and enabled. - Define new mcontext_t flag _MC_HASFPXSTATE, indicating that mcontext_t has a valid pointer to out-of-struct extended FPU state. Signal handlers are supplied with stack-allocated fpu state. The sigreturn(2) and setcontext(2) syscall honour the flag, allowing the signal handlers to inspect and manipilate extended state in the interrupted context. - The getcontext(2) never returns extended state, since there is no place in the fixed-sized mcontext_t to place variable-sized save area. And, since mcontext_t is embedded into ucontext_t, makes it impossible to fix in a reasonable way. Instead of extending getcontext(2) syscall, provide a sysarch(2) facility to query extended FPU state. - Add ptrace(2) support for getting and setting extended state; while there, implement missed PT_I386_{GET,SET}XMMREGS for 32bit binaries. - Change fpu_kern KPI to not expose struct fpu_kern_ctx layout to consumers, making it opaque. Internally, struct fpu_kern_ctx now contains a space for the extended state. Convert in-kernel consumers of fpu_kern KPI both on i386 and amd64. First version of the support for AVX was submitted by Tim Bird on behalf of Sony. This version was written from scratch. Tested by: pho (previous version), Yamagi Burmeister MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-21T17:50:14.725864Z K 7 svn:log V 55 Adopt to new layout of struct pcb. MFC after: 1 month END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-21T17:59:50.509539Z K 7 svn:log V 206 Add a vt(4) framebuffer for Open Firmware linear framebuffer devices (i.e. all graphics on PowerPC Apple systems). This will also work on some sparc64 graphics hardware with a small amount of modification. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-21T18:00:28.115057Z K 7 svn:log V 298 Add API for obtaining extended machine context states that cannot be fit into existing mcontext_t. On i386 and amd64 do return the extended FPU states using getcontextx(3). For other architectures, getcontextx(3) returns the same information as getcontext(2). Tested by: pho MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-21T18:06:18.830126Z K 7 svn:log V 446 Use getcontextx(3) internal API instead of getcontext(2) to provide the signal handlers with the context information in the deferrred case. Only enable the use of getcontextx(3) in the deferred signal delivery code on amd64 and i386. Sparc64 seems to have some undetermined issues with interaction of alloca(3) and signal delivery. Tested by: flo (who also provided sparc64 harware access for me), pho Discussed with: marius MFC after: 1 month END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-01-21T18:11:12.578674Z K 7 svn:log V 355 MFC r228746 The Xen pmap doesn't support superpages. So, there is no point in it initializing structures, like the pv table, that are only used to implement superpages. In fact, some of the unnecessary code in pmap_init() was actually doing harm. It was preventing the kernel from booting on virtual machines with more than 768 MB of memory. END K 10 svn:author V 3 rmh K 8 svn:date V 27 2012-01-21T18:21:44.442787Z K 7 svn:log V 766 MFC r227827 Define __FreeBSD_kernel__ macro in sys/param.h. __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, which by definition is always true on FreeBSD. This macro is also defined on other systems that use the kernel of FreeBSD, such as GNU/kFreeBSD. It is tempting to use this macro in userland code when we want to enable kernel-specific routines, and in fact it's fine to do this in code that is part of FreeBSD itself. However, be aware that as presence of this macro is still not widespread (e.g. older FreeBSD versions, 3rd party compilers, etc), it is STRONGLY DISCOURAGED to check for this macro in external applications without also checking for __FreeBSD__ as an alternative. Approved by: kib (mentor) END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-01-21T18:38:57.498361Z K 7 svn:log V 507 MFC r228746 The Xen pmap doesn't support superpages. So, there is no point in it initializing structures, like the pv table, that are only used to implement superpages. In fact, some of the unnecessary code in pmap_init() was actually doing harm. It was preventing the kernel from booting on virtual machines with more than 768 MB of memory. Note: The change to pmap_page_is_mapped() differs slightly from r228746 because of differences in how the page queues lock is used in FreeBSD 8.x. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-21T18:54:19.793691Z K 7 svn:log V 110 Make ofwfb static framebuffer much smaller by actually reading how you are supposed to do this kind of thing. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-01-21T19:21:42.032111Z K 7 svn:log V 1304 MFC r228923, r228935, and r229007 Eliminate many of the unnecessary differences between the native and paravirtualized pmap implementations for i386. Fix a bug in the Xen pmap's implementation of pmap_extract_and_hold(): If the page lock acquisition is retried, then the underlying thread is not unpinned. Wrap nearby lines that exceed 80 columns. Merge r216333 and r216555 from the native pmap When r207410 eliminated the acquisition and release of the page queues lock from pmap_extract_and_hold(), it didn't take into account that pmap_pte_quick() sometimes requires the page queues lock to be held. This change reimplements pmap_extract_and_hold() such that it no longer uses pmap_pte_quick(), and thus never requires the page queues lock. Merge r177525 from the native pmap Prevent the overflow in the calculation of the next page directory. The overflow causes the wraparound with consequent corruption of the (almost) whole address space mapping. Strictly speaking, r177525 is not required by the Xen pmap because the hypervisor steals the uppermost region of the normal kernel address space. I am nonetheless merging it in order to reduce the number of unnecessary differences between the native and Xen pmap implementations. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-21T20:13:37.896863Z K 7 svn:log V 42 Fix minor memory leak. MFC after: 3 days END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-21T20:39:17.027813Z K 7 svn:log V 95 sh: Remove "kill" example function, which is superseded by the kill builtin MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-21T21:12:53.056855Z K 7 svn:log V 616 Dramatically optimize listing snapshots when user requests only snapshot names and wants to sort them by name, ie. when executes: # zfs list -t snapshot -o name -s name Because only name is needed we don't have to read all snapshot properties. Below you can find how long does it take to list 34509 snapshots from a single disk pool before and after this change with cold and warm cache: before: # time zfs list -t snapshot -o name -s name > /dev/null cold cache: 525s warm cache: 218s after: # time zfs list -t snapshot -o name -s name > /dev/null cold cache: 1.7s warm cache: 1.1s MFC after: 1 week END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-21T21:54:31.439633Z K 7 svn:log V 90 MFC r230117: sh: Fix out of bounds array access when trap is used with an invalid signal. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-21T22:18:33.783960Z K 7 svn:log V 132 Checkpoint SPARC support. This seems to inexplicably crash fairly early on somewhere outside of ofwfb.c. It is in no way clear why. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-22T01:11:06.840856Z K 7 svn:log V 645 Remove the nc_time and nc_ticks elements from struct namecache, and provide struct namecache_ts which is the old struct namecache. Only allocate struct namecache_ts if non-null struct timespec *tsp was passed to cache_enter_time, otherwise use struct namecache. Change struct namecache allocation and deallocation macros into static functions, since logic becomes somewhat twisty. Provide accessor for the nc_name member of struct namecache to hide difference between struct namecache and namecache_ts. The aim of the change is to not waste 20 bytes per small namecache entry. Reviewed by: jhb MFC after: 2 weeks X-MFC-note: after r230394 END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-01-22T02:13:19.594140Z K 7 svn:log V 379 Clean up some #endif comments removing from short sections. Add #endif comments to longer, also refining strange ones. Properly use #ifdef rather than #if defined() where possible. Four #if defined(PCBGROUP) occurances (netinet and netinet6) were ignored to avoid conflicts with eventually upcoming changes for RSS. Reported by: bde (most) Reviewed by: bde MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-01-22T02:16:31.446879Z K 7 svn:log V 205 Fix ip_divert handling of inet and inet6 and module building some more. Properly sort the "carp" case in modules/Makefile after it was renamed. Reported by: bde (most) Reviewed by: bde MFC after: 3 days END K 10 svn:author V 4 nyan K 8 svn:date V 27 2012-01-22T04:19:03.997604Z K 7 svn:log V 141 MFC: revision 229463 MFi386: revision 229435 Add special loader environment variables 'comconsole_port' and 'comconsole_pcidev'. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-01-22T04:51:00.985952Z K 7 svn:log V 150 Bring over the visibility control tool for Monthadar's wtap project. This allows basic control over which wtap nodes can see which other wtap nodes. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-01-22T05:16:31.188349Z K 7 svn:log V 393 MFC: r229802 opt_inet6.h was missing from some files in the new NFS subsystem. The effect of this was, for clients mounted via inet6 addresses, that the DRC cache would never have a hit in the server. It also broke NFSv4 callbacks when an inet6 address was the only one available in the client. This patch fixes the above, plus deletes opt_inet6.h from a couple of files it is not needed for. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-01-22T05:30:29.684230Z K 7 svn:log V 235 Mark the taskqueue as the _net80211_ taskqueue. This makes it much easier to determine whether an event occurs in the net80211 taskqueue (which was called "ath0 taskq") or the ath driver taskqueue (which is also called "ath0 taskq".) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-01-22T06:00:50.369539Z K 7 svn:log V 393 MFC: r229802 opt_inet6.h was missing from some files in the new NFS subsystem. The effect of this was, for clients mounted via inet6 addresses, that the DRC cache would never have a hit in the server. It also broke NFSv4 callbacks when an inet6 address was the only one available in the client. This patch fixes the above, plus deletes opt_inet6.h from a couple of files it is not needed for. END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-01-22T08:06:36.736460Z K 7 svn:log V 350 Merge illumos revisions 13540, 13562: illumos rev 13540 [1]: Removal of pyzfs broke delegation for volumes illumos rev 13562 [2]: zfs allow arguments not parsed correctly after pyzfs removal References: https://www.illumos.org/issues/1726 [1] https://www.illumos.org/issues/1977 [2] Obtained from: illumos (issues #1726, #1977) MFC after: 1 week END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-01-22T10:16:24.926696Z K 7 svn:log V 37 General cleanup. Prodded by: grehan END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-22T10:24:12.737512Z K 7 svn:log V 2269 Complete rewrite of the snd_hda(4) volume control. Previous code was relatively dumb. During CODEC probe it was tracing signals and statically binding amplifier controls to the OSS mixer controls. To set volume it just set all bound amplifier controls proportionally to mixer level, not looking on their hierarchy and amplification levels/offsets. New code is much smarter. It also traces signals during probe, but mostly to find out possible amplification control rages in dB for each specific signal. To set volume it retraces each affected signal again and sets amplifiers controls recursively to reach desired amplification level in dB. It would be nice to export values in dB to user, but unluckily our OSS mixer API is too simple for that. As result of this change: - cascaded amplifiers will work together to reach maximal precision. If some input has 0/+40dB preamplifier with 10dB step and -10/+10dB mixer with 1dB step after it, new code will use both to provide 0/+40dB control with 1dB step! We could even get -10/+50dB range there, but that is intentionally blocked for now. - different channels of multichannel associations on non-uniform CODECs such as VIA VT1708S will have the same volume, not looking that control ranges are different. It was not good when fronts were 12dB louder. - for multiplexed recording, when we can record from only one source at a time, we can now use recording amplifier controls to set different volume levels for different inputs if they have no own controls of they are less precise. If recording source change, amplifiers will be reconfigured. To improve out-of-the-box behavior, ignore default volume levels set by sound(4) and use own, more reasonable: +20dB for mics, -10dB for analog output volume and 0dB for the rest of controls. sound(4) defaults of 75% mean absolutely random things for different controls of different CODECs because of very different control ranges. Together with further planned automatic recording source selection this should allow users to get fine playback and recording without touching mixer first. Note that existing users should delete /var/db/mixer*-state and reboot or trigger CODEC reconfiguration to get new default values. MFC after: 2 months Sponsored by: iXsystems, Inc. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-01-22T10:41:58.742578Z K 7 svn:log V 130 Make #error messages string-literals and remove punctuation. Reported by: bde (for ip_divert) Reviewed by: bde MFC after: 3 days END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-01-22T10:57:32.055215Z K 7 svn:log V 453 Fix several glitches in IPv6-related knobs: - ipv6_enable + ipv6_gateway_enable should unset ACCEPT_RTADV by default for backward compatibility. - Configurations in ipv6_prefix_IF should be recognized even if there is no ifconfig_IF_ipv6. - DAD wait should be performed at once, not on a per-interface basis, if possible. This fixes an issue that a system with a lot of IPv6-capable interfaces takes too long for booting. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-22T10:58:17.462382Z K 7 svn:log V 180 Use provided name when allocating ksid domain. It isn't really used on FreeBSD, but should fix a panic when pool is imported from another OS that is using this. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-22T11:01:36.441053Z K 7 svn:log V 185 TDF_* flags should be used with td_flags field and TDP_* flags should be used with td_pflags field. Correct two places where it was not the case. Discussed with: kib MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-22T11:15:48.846972Z K 7 svn:log V 154 The sys/uio.h header is needed only for readv(2), preadv(2), writev(2) and pwritev(2). Document it more precisely. Reviewed by: jilles MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-22T11:20:42.737020Z K 7 svn:log V 60 Free memory that won't be used in child. MFC after: 1 week END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-01-22T11:34:24.078445Z K 7 svn:log V 230 - Replace "wtmp" with "utx.log" because last(1) no longer reads wtmp. - A real filename is now shown in an output report when "-f file" is specified. - Add Xr lastlogin into last(1) manual page. Reviewed by: ed MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-22T11:35:50.204223Z K 7 svn:log V 73 Fix typo. Submitted by: John Marino MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-22T11:58:17.843836Z K 7 svn:log V 101 Clarify the implementation-defined behaviour in case of close(2) returning error. MFC after: 1 week END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-01-22T13:51:20.402295Z K 7 svn:log V 46 Connect VirtIO-related manpages to the build. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-01-22T13:55:15.604178Z K 7 svn:log V 122 MFC r229692: Check the return value of sbuf_finish() in pfs_readlink() and return ENAMETOOLONG if the buffer overflowed. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-22T14:00:33.003785Z K 7 svn:log V 207 sh: Fix $? in the first command of a 'for'. In the first command of a 'for', $? should be the exit status of the last pipeline (command substitution in the word list or command before 'for'), not always 0. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2012-01-22T14:04:42.988118Z K 7 svn:log V 45 Document the values for hw.snd.default_auto. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-22T15:44:20.756681Z K 7 svn:log V 390 Increase snd_hda(4) default maximal buffer size from 16K to 64K and maximal from 64K to 256K. We usually don't need 750 sound interrupts per second (1.3ms latency) when playing 192K/24/8 stream. 187 should be better. On usual 48K/16/2 it is just enough for hw.snd.latency=9 at hw.snd.latency_profile=1 with 23 and 6 interrupts per second. MFC after: 2 weeks Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-01-22T18:27:24.345563Z K 7 svn:log V 191 MFC: r228360 Move cpu_set_upcall(newtd, td) up before the first call of thread_free(newtd). This to avoid a possible page fault in cpu_thread_clean() as seen on amd64 with syscall fuzzing. END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-01-22T18:29:58.859279Z K 7 svn:log V 60 Rewrite of script in order to get a better regression tool. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-22T19:37:40.539235Z K 7 svn:log V 622 Make vt(4) work on sparc64, at least on systems with CHRP-compliant framebuffer devices like the Ultra 5. Because vt(4) depends on mutexes and at least one other problematic kernel subsystem I can't identify, and these things become available much later on sparc64 that on other architectures, it only works if console init is moved much later in the boot process. Moving it may not be the best solution here, but does work. Note than newcons as a whole doesn't quite work on the Ultra 5 yet, at least with a regular sun keyboard: the sunkbd driver seems not to attach without syscons for reasons that are obscure to me. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-22T19:49:43.362383Z K 7 svn:log V 228 Make sure to initialize early-boot keyboard drivers, as is apparently required for the Sun UART-based keybaord driver to attach correctly. With this change, vt(4) now works perfectly on sparc64 (at least on supported hardware). END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-01-22T20:25:00.086632Z K 7 svn:log V 395 Change kern.proc.rlimit sysctl to: - retrive only one, specified limit for a process, not the whole array, as it was previously (the sysctl has been added recently and has not been backported to stable yet, so this change is ok); - allow to set a resource limit for another process. Submitted by: Andrey Zonov Discussed with: kib Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-01-22T20:26:46.449709Z K 7 svn:log V 136 Make procstat -l to work with the new version of kern.proc.rlimit. Submitted by: Andrey Zonov MFC after: 2 weeks END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-01-22T21:25:47.258297Z K 7 svn:log V 768 Merge r229085 from head: Default to not performing the early-boot memory tests when we detect we are booting inside a VM. There are three reasons to disable this: o It causes the VM host to believe that all the tested pages or RAM are in use. This in turn may force the host to page out pages of RAM belonging to other VMs, or otherwise cause problems with fair resource sharing on the VM cluster. o It adds significant time to the boot process (around 1 second/Gig in testing) o It is unnecessary - the host should have already verified that the memory is functional etc. Note that this simply changes the default when in a VM - it can still be overridden using the hw.memtest.tests tunable. Early MFC requested by: bz END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-22T21:26:30.587253Z K 7 svn:log V 93 Error checking is always a good idea -- don't just assume things are like on Apple hardware. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-01-23T04:38:31.418082Z K 7 svn:log V 75 Add functions that free up the layout, file layout and devinfo structures. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-23T06:36:41.553578Z K 7 svn:log V 74 Add C11 macros describing subnormal numbers to float.h. Reviewed by: bde END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-01-23T08:29:58.039149Z K 7 svn:log V 93 MFC r230402, r230404: Add accidentially removed copyright lines in r228103 Reported by: pjd END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-01-23T08:30:17.915365Z K 7 svn:log V 93 MFC r230402, r230404: Add accidentially removed copyright lines in r228103 Reported by: pjd END K 10 svn:author V 3 des K 8 svn:date V 27 2012-01-23T09:23:07.677909Z K 7 svn:log V 73 Fix two nits in previous commit pointed out by pjd@. MFC after: 3 weeks END K 10 svn:author V 8 netchild K 8 svn:date V 27 2012-01-23T11:37:40.671652Z K 7 svn:log V 297 Mechanically add a config for all missing drivers. No cross-referencing was added to the configs, so no automatic linking to the documentation of other subsystems. Drivers which already contain doxygen markup: agp ath bktr bxe cxgb cxgbe dpt drm e1000 iir ixgbe mwl nxge ofw pccard siba wpi xen END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-23T15:17:14.981087Z K 7 svn:log V 271 Convert locks that protect name hash, ID hash and typelist from mutex(9) to rwlock(9) based locks. While here remove dropping lock when processing NGM_LISTNODES, and NGM_LISTTYPES generic commands. We don't need to drop it since memory allocation is done with M_NOWAIT. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-23T15:39:45.073643Z K 7 svn:log V 136 In ng_socket(4) expose less kernel internals to userland. This commit breaks ABI, but makes probability of ABI breakage in future less. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-23T15:44:52.859632Z K 7 svn:log V 242 Per popular demand, if installing from a graphics terminal, run the installer on a VTY with no kernel messages (VTY 2), show the installer log in real time on VTY 3, and spawn a shell on VTY 4. PR: bin/161047, bin/161048 MFC after: 2 weeks END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-23T15:50:16.070957Z K 7 svn:log V 75 Do a test in a better way. Editing files after testing them is never wise. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-23T16:17:54.945284Z K 7 svn:log V 117 Part of r230482 didn't actually work. Revert it for now. This means PR 161047 isn't actually fixed. PR: bin/161047 END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-01-23T16:28:35.816270Z K 7 svn:log V 507 MFC r229694: r222004 changed sbuf_finish() to not clear the buffer error status. As a consequence sbuf_len() will return -1 for buffers which had the error status set prior to sbuf_finish() call. This causes a problem in pfs_read() which purposely uses a fixed size sbuf to discard bytes which are not needed to fulfill the read request. Work around the problem by using the full buffer length when sbuf_finish() indicates an overflow. An overflowed sbuf with fixed size is always full. PR: kern/163076 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-23T16:31:46.393005Z K 7 svn:log V 150 Convert panic()s to KASSERT()s. This is an optimisation for hashdestroy() since in absence of INVARIANTS a compiler will drop the entire for() cycle. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-23T16:43:13.865143Z K 7 svn:log V 655 Provide a findhook method for ng_socket(4). The node stores a hash with names of its hooks. It starts with size of 16, and grows when number of hooks reaches twice the current size. A failure to grow (memory is allocated with M_NOWAIT) isn't fatal, however. I used standard hash(9) function for the hash. With 25000 hooks named in the mpd (ports/net/mpd5) manner of "b%u", the distributions is the following: 72.1% entries consist of one element, 22.1% consist of two, 5.2% consist of three and 0.6% of four. Speedup in a synthetic test that creates 25000 hooks and then runs through a long cyclce dereferencing them in a random order is over 25 times. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-23T17:05:11.087985Z K 7 svn:log V 669 Realtek CODECs declare support for 32bit samples on S/PDIF input/output widgets. I am not sure if S/PDIF supports 32bit samples, but my Marantz SR4001 doesn't, producing only single clicks on playback start/stop. Because HDA controller requires 32bit alignment for all samples above 16bit, we can't handle this situation in regular way and have to set 32bit format in sound(4) for anything above 16bit. To workaround the problem, prefer to setup hardware to use 24/20bit samples when 32bit format requested. Add dev.pcm.X.play.32bit and dev.pcm.X.rec.32bit sysctls to control what format really use for 32bit samples. MFC after: 2 months Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-23T17:09:23.884174Z K 7 svn:log V 410 Apparently, both nfs clients do not use cache_enter_time() consistently, creating some namecache entries without NCF_TS flag. This causes panic due to failed assertion. As a temporal relief, remove the assert. Return epoch timestamp for the entries without timestamp if asked. While there, consolidate the code which returns timestamps, into a helper cache_out_ts(). Discussed with: jhb MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-01-23T19:46:36.929868Z K 7 svn:log V 30 IFC @230489 (pending review). END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-01-23T22:30:09.607642Z K 7 svn:log V 131 Add man page and update a few other files in preparation for committing full isci driver. Sponsored by: Intel Reviewed by: scottl END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-01-24T06:07:05.989014Z K 7 svn:log V 89 Add a missing HAL method macro. I'm using this as part of some personal DFS radar stuff. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-01-24T06:12:48.002870Z K 7 svn:log V 129 Fix up some style(9) indenting and reorganise some of the hal methods. There should be no functional change due to this commit. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-01-24T06:21:38.269433Z K 7 svn:log V 50 Remove unnecessary line break. MFC after: 3 days END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-01-24T08:04:38.678891Z K 7 svn:log V 273 Try resolving jail path with realpath(3). jail(8) does a chdir(2) to the given path argument. Kernel evaluates the jail path from the new cwd and not from the original cwd, which leads to undesired behavior if given a relative path. Reviewed by: jamie MFC after: 2 weeks END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-01-24T09:51:42.763535Z K 7 svn:log V 132 Remove the stale XXX rt_newaddrmsg comment. A routing socket message is generated since r192282. Reviewed by: bz MFC after: 3 days END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-01-24T10:28:19.928226Z K 7 svn:log V 322 MFC r230256: Fix the "lock &zrl->zr_mtx already initialized" assertion by initializing the allocated memory before calling mtx_init(9) on mtx pointing to it. Otherwize, random contents of uninitialized memory might occasionally trigger the assertion. Reported by: Pavel Polyakov Reviewed by: pjd END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-01-24T10:32:02.975331Z K 7 svn:log V 322 MFC r230256: Fix the "lock &zrl->zr_mtx already initialized" assertion by initializing the allocated memory before calling mtx_init(9) on mtx pointing to it. Otherwize, random contents of uninitialized memory might occasionally trigger the assertion. Reported by: Pavel Polyakov Reviewed by: pjd END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-24T10:56:40.490056Z K 7 svn:log V 73 MFC r230260: Add macro IS_BSP() to check whether the current CPU is BSP. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2012-01-24T11:06:22.463560Z K 7 svn:log V 52 We are in FreeBSD 10 now: define __FreeBSD__ to 10. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-24T11:10:32.702241Z K 7 svn:log V 46 MFC r230261: Add definitions related to XCR0. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-24T11:28:53.783707Z K 7 svn:log V 55 MFC r230262: Implement xsetbv(), xsave() and xrstor(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-24T11:42:46.547517Z K 7 svn:log V 82 MFC r230269: Modernize the fpusave structures definitions by using uint*_t types. END