‚³l232883 117 760 308 369 144 285 758 214 257 153 172 141 459 168 426 165 370 263 254 176 253 345 363 345 306 230 329 204 160 148 697 263 2243 225 179 538 116 1040 144 242 156 152 173 121 147 148 272 158 736 160 468 459 468 175 125 169 143 256 133 457 457 376 376 362 307 191 300 351 231 263 129 118 107 199 146 199 231 363 247 230 711 743 116 766 743 204 370 167 151 186 232 128 453 181 349 1000 194 146 272 482 327 1502 160 678 183 1124 200 200 175 718 272 141 297 165 155 147 215 195 K 10 svn:author V 6 scottl K 8 svn:date V 27 2012-03-12T19:29:35.026043Z K 7 svn:log V 664 Final pass at having devices use their bus parent for dma tags. The remaining drivers that haven't been converted have various problems or complexities that will be dealt with later. This list includes: hptrr, hptmv, hpt27xx - device aggregation across multiple parents drm - want to talk to the maintainer first tsec, sec - Openfirmware devices, not sure if changes are warranted fatm - Done except for unused testing code usb - want to talk to the maintainer first ce, cp, ctau, cx - Significant driver changes needed to convey parent info There are also devices tucked into architecture subtrees that I'll leave for the respective maintainers to deal with. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-12T20:24:59.209530Z K 7 svn:log V 213 - Although we pass first 4 arguments in registers, function callinf ABI requires space to be reserved for them in stack. _rtld() prologue saves a1 and a2 in this space. - Whitespace cleanup while I'm at it END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-03-12T20:31:09.136101Z K 7 svn:log V 274 Change the syncache count reporting the current number of entries from an unprotected u_int that reports garbage on SMP to a function based sysctl obtaining the current value from UMA. Also read back the actual cache_limit after page size rounding by UMA. PR: kern/165879 END K 10 svn:author V 6 scottl K 8 svn:date V 27 2012-03-12T20:31:58.040335Z K 7 svn:log V 49 Remove a stale comment. Submitted by: jimharris END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-12T20:32:23.651777Z K 7 svn:log V 189 Configuration changes/updates! * enable ALQ and net80211/ath ALQ logging by default, to make it possible to get debug register traces. * Update some comments * Enable HWPMC for testing. END K 10 svn:author V 8 ambrisko K 8 svn:date V 27 2012-03-12T20:33:20.256491Z K 7 svn:log V 660 Several style type changes. Main functional change is not to run events from the prior boot or when the driver is shutting down. Tested added and removing JBOD drives. The driver adds and remove drives. A sysctl hw.mfi.detect_jbod_change enables or disables this. it is set by default to enable this. On boot only act on events from this boot. This avoids stale disk events stating disks have gone and come back from. This happens when the kernel doesn't shutdown the card (ie. power cycle). Switch hw.mfi.msi to 1 by default. It works better on the cards I've tried. This driver should be very close to being merged into the main FreeBSD tree now. END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-12T20:41:36.327506Z K 7 svn:log V 116 Make sure when creating new MBR partition it is set to active by default. Submitted by: kris Obtained from: PC-BSD END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-12T20:44:44.340862Z K 7 svn:log V 159 Fix a couple of bugs saving network config. Don't duplicate wlans_ lines. Enable ipv6 on wireless devices correctly. Submitted by: kris Obtained from: PC-BSD END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-03-12T20:46:18.891012Z K 7 svn:log V 59 Simplify implementation of net.inet.tcp.reass.cursegments. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-12T20:58:09.797565Z K 7 svn:log V 78 Use PTR_(ADD|SUB)U macrosses instead of hardcoded addu/subu Spotted by: juli END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-12T20:59:18.141554Z K 7 svn:log V 47 Use PTR_SUBU instead of subu (missed this one) END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-12T21:07:22.385353Z K 7 svn:log V 366 Pull in r145194 from upstream clang trunk: Make our handling of MMX x SSE closer to what gcc does: * Enabling sse enables mmx. * Disabling (-mno-mmx) mmx, doesn't disable sse (we got this right already). * The order in not important. -msse -mno-mmx is the same as -mno-mmx -msse. Some configure scripts depend on this. PR: i386/165968 MFC after: 3 days END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-12T21:24:40.600635Z K 7 svn:log V 71 Check for intel RAID devices Submitted by: kris Obtained from: PC-BSD END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-12T21:25:32.567236Z K 7 svn:log V 328 o) Use ABI, not ISA_* options, to determine whether to compile bits if libkern required for the ABI the kernel is being built for. XXX This is implemented in a kind-of nasty way that involves including source files, but it's still an improvement. o) Retire ISA_* options since they're unused and were always wrong. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-12T21:26:09.583369Z K 7 svn:log V 68 Remove TARGET_BIG_ENDIAN which should have been removed previously. END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-12T21:28:54.785709Z K 7 svn:log V 272 Improve ZFS exporting functionality, only export pools which are on a specific device we happen to be writing to. This fixes an issue when running pc-sysinstall on a running system which needs ZFS and the main disk gets exported. Submitted by: kris Obtained from: PC-BSD END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-12T21:32:43.344317Z K 7 svn:log V 165 Add the ability to use a varity of ZFS dataset options. While here fix a bug causing zpools with /tmp mount-points to fail Submitted by: kris Obtained from: PC-BSD END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-12T21:34:10.139213Z K 7 svn:log V 158 MFC r232723,r232726: Fix a bug reported by Peter Holm which results in a crash: Verify in sctp_peeloff() that the socket is a one-to-many style SCTP socket. END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-12T21:41:29.757288Z K 7 svn:log V 79 Use gpart "-a" flag to 4k alignment. Submitted by: kris Obtained from: PC-BSD END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-12T21:52:31.946470Z K 7 svn:log V 157 MFC r232723,r232726: Fix a bug reported by Peter Holm which results in a crash: Verify in sctp_peeloff() that the socket is a one-to-many style SCTP socket. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-03-12T22:05:50.711426Z K 7 svn:log V 253 MFC r232609: Use = rather than == for expressions to test(1) builtin(1) in sh(1) to comply with standards. On modern branches there is an undocumented alias (see r219084) but on stable/7 this is still an error. Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-03-12T22:08:03.501697Z K 7 svn:log V 271 MFC r232515: Rather than printing the output from route add for all FIBs just print them for the default FIB followed by a statement with a list of FIB numbers for all the other FIBs we install the routes for. Request by: kib (to make it less noisy) Tested by: kib END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-03-12T22:10:58.417229Z K 7 svn:log V 253 MFC r232609: Use = rather than == for expressions to test(1) builtin(1) in sh(1) to comply with standards. On modern branches there is an undocumented alias (see r219084) but on stable/7 this is still an error. Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-03-12T22:13:17.953825Z K 7 svn:log V 214 MFC r232515: Rather than printing the output from route add for all FIBs just print them for the default FIB followed by a statement with a list of FIB numbers for all the other FIBs we install the routes for. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-13T00:38:49.483109Z K 7 svn:log V 132 Add a kernel-toolchains target like the toolchains target, but building only the parts of the toolchain necessary to build kernels. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-13T00:45:27.755547Z K 7 svn:log V 231 sysinstall was removed from usr.sbin/Makefile in r225937. Because per-arch Makefiles were split out in this directory and others in userland, it makes it quite easy to miss per-arch conditionals when changing something generally. END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-03-13T02:10:15.547437Z K 7 svn:log V 110 Fix Makefile for NANDSim module. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-13T04:50:41.660199Z K 7 svn:log V 63 Note two shortcomings of GDB on MIPS that should be addressed. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-13T05:21:14.025459Z K 7 svn:log V 51 Fix crunchide on MIPS with other than the O32 ABI. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-13T06:15:20.709977Z K 7 svn:log V 601 Correctly (I hope) deallocate the if_arge RX buffer ring on arge_stop(). I had some interesting hangs until I realised I should try flushing the DDR FIFO register and lo and behold, hangs stopped occuring. I've put in a few DDR flushes here and there in case people decide to reuse some of these functions. It's very very likely they're almost all superflous. To test: * Connect to a network with a _lot_ of broadcast traffic * Do this: # while true; do ifconfig arge0 down; ifconfig arge0 up; done This fixes the mbuf exhaustion that has been reported when the interface state flaps up/down. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-13T06:22:49.540896Z K 7 svn:log V 165 Don't build kernel.tramp on Octeon. Probably building it should be opt-in not opt-out, but I don't know enough about which ports need it to get the defaults right. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-13T06:28:52.464528Z K 7 svn:log V 2146 Fix link status handling on if_arge upon system boot to allow bootp/NFS to function. From the submitter: This patch fixes an issue I encountered using an NFS root with an ar71xx-based MikroTik RouterBoard 450G on -current where the kernel fails to contact a DHCP/BOOTP server via if_arge when it otherwise should be able to. This may be the same issue that Monthadar Al Jaberi reported against an RSPRO on 6 March, as the signature is the same: %%% DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 . . . DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 arge0: initialization failed: no memory for rx buffers DHCP/BOOTP timeout for server 255.255.255.255 arge0: initialization failed: no memory for rx buffers %%% The primary issue that I found is that the DHCP/BOOTP message that bootpc_call() is sending never makes it onto the wire, which I believe is due to the following: - Last December, a change was made to the ifioctl that bootpc_call() uses to adjust the netmask around the sosend(). - The new ioctl (SIOCAIFADDR) performs an if_init when invoked, whereas the old one (SIOCSIFNETMASK) did not. - if_arge maintains its own sense of link state in sc->arge_link_status. - On a single-phy interface, sc->arge_link_status is initialized to 0 in arge_init_locked(). - sc->arge_link_status remains 0 until a phy state change notification causes arge_link_task to run, notice the link is up, and set it to 1. - The inits caused by the ifioctls in bootpc_call are reinitializing the interface, but not the phy, so sc->arge_link_status goes to 0 and remains there. - arge_start_locked() always sees sc->arge_link_status == 0 and returns without queuing anything. The attached patch changes arge_init_locked() such that in the single-phy case, instead of initializing sc->arge_link_status to 0, it runs arge_link_task() to set it according to the current phy state. This change has allowed my setup to mount an NFS root successfully. Submitted by: Patrick Kelsey Reviewed by: juli END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-13T06:48:26.473680Z K 7 svn:log V 127 Remove some files not used by the FreeBSD kernel which have been adding quite a bit of bloat to the kernel source tree's size. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-13T06:50:56.665040Z K 7 svn:log V 84 Remove a now unneeded ARGE_UNLOCK(). Whilst I'm here, remove a couple blank lines. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-13T08:18:54.226727Z K 7 svn:log V 445 Rewrite thread CPU usage percentage math to not depend on periodic calls with HZ rate through the sched_tick() calls from hardclock(). Potentially it can be used to improve precision, but now it is just minus one more reason to call hardclock() for every HZ tick on every active CPU. SCHED_4BSD never used sched_tick(), but keep it in place for now, as at least SCHED_FBFS existing in patches out of the tree depends on it. MFC after: 1 month END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-03-13T10:04:13.845755Z K 7 svn:log V 22 Use NULL instead of 0 END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-13T10:21:08.171219Z K 7 svn:log V 947 Add kern.eventtimer.activetick tunable/sysctl, specifying whether each hardclock() tick should be run on every active CPU, or on only one. On my tests, avoiding extra interrupts because of this on 8-CPU Core i7 system with HZ=10000 saves about 2% of performance. At this moment option implemented only for global timers, as reprogramming per-CPU timers is too expensive now to be compensated by this benefit, especially since we still have to regularly run hardclock() on at least one active CPU to update system uptime. For global timer it is quite trivial: timer runs always, but we just skip IPIs to other CPUs when possible. Option is enabled by default now, keeping previous behavior, as periodic hardclock() calls are still used at least to implement setitimer(2) with ITIMER_VIRTUAL and ITIMER_PROF arguments. But since default schedulers don't depend on it since r232917, we are much more free to experiment with it. MFC after: 1 month END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-13T10:54:14.405046Z K 7 svn:log V 52 Some formatting for r232919. Submitted by: pluknet END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-03-13T11:08:40.388029Z K 7 svn:log V 144 Use rt_numfibs variable instead of compile-time RT_NUMFIBS. Reviewed by: glebius (previous version) Approved by: kib(mentor), ae(mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-13T13:20:01.366743Z K 7 svn:log V 59 Import new version of libcxxrt. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-13T13:22:03.083549Z K 7 svn:log V 55 Tag new version of libcxxrt Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-13T14:09:15.813213Z K 7 svn:log V 76 Import new version of libc++ into vendor branch. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-13T14:10:33.620360Z K 7 svn:log V 24 Tag new libc++ version. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-13T14:14:13.128168Z K 7 svn:log V 50 More xlocale cleanups. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-13T15:21:14.400262Z K 7 svn:log V 51 Add missing prototypes. Approved by: dim (mentor) END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-13T16:42:39.749926Z K 7 svn:log V 176 MFC r232723, r232726: Fix a bug reported by Peter Holm which results in a crash: Verify in sctp_peeloff() that the socket is a one-to-many style SCTP socket. Approved by: re@ END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-13T17:32:55.466705Z K 7 svn:log V 61 Fix the other missing prototypes. Approved by: dim (mentor) END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-13T18:39:57.098930Z K 7 svn:log V 643 MFC r232263: Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-13T18:53:28.077861Z K 7 svn:log V 63 And remove the duplicate inlines... Approved by: dim (mentor) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-03-13T18:59:19.037984Z K 7 svn:log V 367 Work around a binutils bug on powerpc64 where the TOC would not be properly reloaded when calling _fini() in large binaries with multiple TOC sections (e.g. GCC), leading to a segmentation fault. Adding -mlongcall to crt1 flags causes the compiler to emit explicit TOC load instructions for all function calls, including _fini(). Reviewed by: kib Pointy hat to: kib END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-13T19:18:34.268280Z K 7 svn:log V 366 Update comments and CFLAGS in sys/conf/kern.mk, introduced in r221879, to match reality: clang does _not_ disable SSE automatically when -mno-mmx is used, you have to specify -mno-sse explicitly. Note this was the case even before r232894, which only makes a change in the 'positive' flag case; e.g. when you specify -msse, MMX gets enabled too. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-13T19:40:56.551675Z K 7 svn:log V 375 Pull in a fix (still under GPLv2) for a double free in gdb, leading to an assert, which can occur if you repeatedly dlopen() and dlclose() a .so file in a tight loop. This was reported on freebsd-current@ by Alexandre Martins, with a sample to reproduce the behaviour. Obtained from: http://sourceware.org/git/?p=gdb.git;a=commit;h=a6f2cbb341520f8e100f4b8305979dd6207a79e8 END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-13T20:02:41.793306Z K 7 svn:log V 78 First set of xlocale man pages. More to follow... Approved by: dim (mentor) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-13T20:27:48.104935Z K 7 svn:log V 30 Add module load/unload stubs. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-13T20:28:42.307693Z K 7 svn:log V 74 Add module building Makefile entries for NFSv4 and POSIX.1e ACL handling. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-13T20:29:04.561040Z K 7 svn:log V 48 Add dependencies onto acl_posix1e and acl_nfs4. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-13T20:29:56.205767Z K 7 svn:log V 160 (Re)-make these ACL routines optional. They're only currently used by ZFS and UFS_ACL. They're just wasting space on embedded platforms with neither enabled. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-13T20:30:23.896198Z K 7 svn:log V 38 Add a BINDIR so "make install" works. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-13T20:33:15.850537Z K 7 svn:log V 364 MFC r228846: Use READ CAPACITY(16) to get information about device physical sectors. As soon as not all devices support READ CAPACITY(16), automatically fall back to READ CAPACITY(10) if CAM_REQ_INVALID or SSD_KEY_ILLEGAL_REQUEST status returned. It also provides first bits of information about Logical Block Provisioning (aka UNMAP/TRIM) support by the device. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-13T20:34:33.984359Z K 7 svn:log V 364 MFc r228846: Use READ CAPACITY(16) to get information about device physical sectors. As soon as not all devices support READ CAPACITY(16), automatically fall back to READ CAPACITY(10) if CAM_REQ_INVALID or SSD_KEY_ILLEGAL_REQUEST status returned. It also provides first bits of information about Logical Block Provisioning (aka UNMAP/TRIM) support by the device. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-13T20:36:03.413828Z K 7 svn:log V 283 MFc r229288: Remove unneeded checks for CAM_DEV_QFRZN after cam_periph_runccb() call. cam_periph_runccb() since the beginning checks it and releases device queue. After r203108 it even clears CAM_DEV_QFRZN flag after that to avoid double release, so removed code is unreachable now. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-13T20:37:08.369482Z K 7 svn:log V 283 MFC r229288: Remove unneeded checks for CAM_DEV_QFRZN after cam_periph_runccb() call. cam_periph_runccb() since the beginning checks it and releases device queue. After r203108 it even clears CAM_DEV_QFRZN flag after that to avoid double release, so removed code is unreachable now. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-13T20:37:57.885485Z K 7 svn:log V 265 Merge 231025 from head: Add new socket options: TCP_KEEPINIT, TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT, that allow to control initial timeout, idle time, idle re-send interval and idle send count on a per-socket basis. Reviewed by: andre, bz, lstewart END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-03-13T21:25:25.719155Z K 7 svn:log V 209 Update the rt2860's firmware and add a Makefile for the module. While here remove the ucode header file which was used to generate the fw files but by now is outdated. Reviewed by: ray Obtained from: OpenBSD END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-13T22:00:46.693662Z K 7 svn:log V 99 Lock the process around manipulations with p_flag. Reported and reviewed by: jh MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-13T22:04:27.167642Z K 7 svn:log V 207 Supply boolean as the second argument to ffs_update(), and not a MNT_[NO]WAIT constants, which in fact always caused sync operation. Based on the submission by: bde Reviewed by: mckusick MFC after: 2 weeks END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-03-13T23:45:30.964085Z K 7 svn:log V 255 Updates for compatibility and merging. No functional changes here, just fixups for changes to CAM and other API evolutions over the years. This should allow mfi(4) to be MFC'd to all stable/X branches. Reviewed by: ambrisko@ Obtained from: Yahoo! Inc. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-14T00:09:36.114478Z K 7 svn:log V 133 Import new versions of libcxxrt and libc++. Please tests any C++ code you care about with -stdlib=libc++! Approved by: dim (mentor) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-14T00:26:36.331745Z K 7 svn:log V 166 fxp(4) does not handle deferred dma map loading. Tell bus_dmamap_load(9) that it should return immediately with error when there are insufficient mapping resources. END K 10 svn:author V 3 flo K 8 svn:date V 27 2012-03-14T00:41:37.211649Z K 7 svn:log V 37 IFC at r232948 Approved by: attilio END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-14T00:54:37.467597Z K 7 svn:log V 22 Fix white space nits. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-03-14T06:42:12.941676Z K 7 svn:log V 12 IFC r232929 END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-14T06:56:55.380122Z K 7 svn:log V 106 MFC r232660: In batch mode, exit after receiving SIGINT, instead of immediate output of the next display. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-14T07:08:15.602955Z K 7 svn:log V 54 MFC r232833: Remove not needed ARGSUSED lint command. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-14T07:10:36.735268Z K 7 svn:log V 106 MFC r232660: In batch mode, exit after receiving SIGINT, instead of immediate output of the next display. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-03-14T08:00:33.183106Z K 7 svn:log V 133 Import the latest microcode.h which was used to generate the current firmware files and adjust the Makefile. Obtained from: OpenBSD END K 10 svn:author V 4 gleb K 8 svn:date V 27 2012-03-14T08:29:21.389899Z K 7 svn:log V 269 Don't enforce LK_RETRY to get existing vnode in tmpfs_alloc_vp() Doomed vnode is hardly of any use here, besides all callers handle error case. vfs_hash_get() does the same. Don't mess with vnode holdcount, vget() takes care of it already. Approved by: mdf (mentor) END K 10 svn:author V 4 gleb K 8 svn:date V 27 2012-03-14T09:15:50.958486Z K 7 svn:log V 153 Prevent tmpfs_rename() deadlock in a way similar to UFS Unlock vnodes and try to lock them one by one. Relookup fvp and tvp. Approved by: mdf (mentor) END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-14T09:44:46.777143Z K 7 svn:log V 133 MFC r232671: Add lib32 part for libutil after its version bump to 9. PR: misc/165523 Submitted by: Andrey Zonov END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-14T10:02:35.934445Z K 7 svn:log V 615 MFC: r232822 Fix a bug introduced in r223938; on big-endian machines coping a 32-bit quantum bytewise to the address of a 64-bit variable results in writing to the "wrong" 32-bit half so adjust the address accordingly. This fix is implemented in a hackish way for two reasons: o in order to be able to get it into 8.3 with zero impact on the little- endian architectures where this bug has no effect and o to avoid blowing the x86 boot2 out of the water again when compiling it with clang, which all sane versions of this fix tested do. This change fixes booting from UFS1 file systems on big-endian machines. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-14T10:02:42.691468Z K 7 svn:log V 647 MFC: r232822 Fix a bug introduced in r223938 (MFC'ed to stable/8 in r224411); on big-endian machines coping a 32-bit quantum bytewise to the address of a 64-bit variable results in writing to the "wrong" 32-bit half so adjust the address accordingly. This fix is implemented in a hackish way for two reasons: o in order to be able to get it into 8.3 with zero impact on the little- endian architectures where this bug has no effect and o to avoid blowing the x86 boot2 out of the water again when compiling it with clang, which all sane versions of this fix tested do. This change fixes booting from UFS1 file systems on big-endian machines. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-03-14T10:10:15.235116Z K 7 svn:log V 22 Add missing "static". END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-14T13:08:16.771542Z K 7 svn:log V 670 MFC: r232822 Fix a bug introduced in r223938 (MFC'ed to stable/8 in r224411); on big-endian machines coping a 32-bit quantum bytewise to the address of a 64-bit variable results in writing to the "wrong" 32-bit half so adjust the address accordingly. This fix is implemented in a hackish way for two reasons: o in order to be able to get it into 8.3 with zero impact on the little- endian architectures where this bug has no effect and o to avoid blowing the x86 boot2 out of the water again when compiling it with clang, which all sane versions of this fix tested do. This change fixes booting from UFS1 file systems on big-endian machines. Approved by: re (kib) END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-14T13:09:41.646945Z K 7 svn:log V 647 MFC: r232822 Fix a bug introduced in r223938 (MFC'ed to stable/7 in r224410); on big-endian machines coping a 32-bit quantum bytewise to the address of a 64-bit variable results in writing to the "wrong" 32-bit half so adjust the address accordingly. This fix is implemented in a hackish way for two reasons: o in order to be able to get it into 8.3 with zero impact on the little- endian architectures where this bug has no effect and o to avoid blowing the x86 boot2 out of the water again when compiling it with clang, which all sane versions of this fix tested do. This change fixes booting from UFS1 file systems on big-endian machines. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-14T14:01:51.782258Z K 7 svn:log V 111 Add PCI Id for the AMT SOL UART on G4x series Intel chipsets. Submitted by: admin zahost ru MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-14T14:14:16.367520Z K 7 svn:log V 277 Dummy-initizlize variables to fix build breakage after r232942, because of gcc falsely reporting variables as uninitialized. Code committed at that revision don't even touch half of mentioned variables. This is direct commit to 8-STABLE, as HEAD and 9-STABLE have no problem. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-14T14:33:36.881560Z K 7 svn:log V 70 New version of libc++ with some bug fixes. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-14T14:34:14.170648Z K 7 svn:log V 54 Tag new version of libc++. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-14T14:39:07.653980Z K 7 svn:log V 89 Expose some C11 stuff that is also C++11 stuff in C++11 mode. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-14T14:40:22.888318Z K 7 svn:log V 134 Import a slightly newer libc++, with some bugs fixed that were found by running the test suite on FreeBSD. Approved by: dim (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-14T15:30:59.012135Z K 7 svn:log V 36 Fix indentation. MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-14T15:39:59.234434Z K 7 svn:log V 360 Rtld on diet 3. Stop using strerror(3) in rtld, which brings in msgcat and stdio. Directly access sys_errlist array of errno messages with private rtld_strerror() function. Now, $ size /libexec/ld-elf.so.1 text data bss dec hex filename 96983 2480 8744 108207 1a6af /libexec/ld-elf.so.1 Reviewed by: dim, kan MFC after: 2 weeks END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-03-14T15:52:23.851486Z K 7 svn:log V 90 Add an assert for proctree_lock to proc_to_reap(). Discussed with: kib MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-03-14T16:10:39.470710Z K 7 svn:log V 257 Hide stty(1) errors. If rc(8) is executed without using a TTY, this error appears at the beginning: stty: stdin isn't a terminal Because this is to be expected and of course not harmful, it is better to simply hide the error message. MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-03-14T16:22:09.215994Z K 7 svn:log V 908 Make init(8) slightly more robust when /dev/console is missing. If the environment doesn't offer a working /dev/console, the existing version of init(8) will simply refuse running rc(8) scripts. This means you'll only have a system running init(8) and nothing else. Change the code to do the following: - Open /dev/console like we used to do, but make it more robust to use O_NONBLOCK to prevent blocking on a carrier. - If this fails, use /dev/null as stdin and /var/log/init.log as stdout and stderr. - If even this fails, use /dev/null as stdin, stdout and stderr. So why us this useful? Well, if you remove the `getpid() == 1' check in main(), you can now use init(8) inside jails to properly execute rc(8). It still requires some polishing, as existing tools assume init(8) has PID 1. Also it is now possible to use use init(8) on `headless' devices that don't even have a serial boot console. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-14T16:43:22.782535Z K 7 svn:log V 99 Correctly calculate the callout interval for beacon generation. Submitted by: monthadar@gmail.com END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-14T18:47:41.892224Z K 7 svn:log V 54 MFC r232833: Remove not needed ARGSUSED lint command. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-03-14T20:19:49.759411Z K 7 svn:log V 171 Use LIST_FOREACH_SAFE() instead of LIST_FOREACH() in pmap_remove(), since the point of this loop is to remove elements. This worked by accident before. MFC after: 2 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-03-14T20:36:54.447634Z K 7 svn:log V 390 Do not try to install the neighbor entry in all FIBs and just return the the rtentry of the FIB we are interested in. If there is traffic the entries will be installed in other FIBs as well and stay 'R'eachable, in addition to the FIB we populate here. Further trying to install the route to 1..n FIBs is subject to races in the stable/7 network stack. Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-03-14T20:41:16.012002Z K 7 svn:log V 235 MFC r231855: Add regression tests for the setsockopt(2) SO_SETFIB socket option. Check that the expected domain(9) families all handle the socket option correctly and do proper bounds checks. Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-03-14T20:44:20.567592Z K 7 svn:log V 1409 MFC r231858: Add regression tests scripts for multi-IP FIBs exercising the send, receive and forward path tagging packets with both the ifconfig fib option or using ipfw, running ICMP6, TCP/v6 and UDP/v6 tests and testing both setfib(2) as well as the SO_SETFIB socket option. At 16 FIBs a total of over 64k return codes/replies/stati are checked, sometimes multiple times (in different ways, e.g. the reflected request as well as ipfw counter values). The scripts need two or three machines to run and are thus not added to the tools/regression framework but only to tools/test. MFC r232114: Update scripts to work around two sh(1) bugs found in stable/8: 1) _x=$((_x + 1)) does not work while x=$((x + 1)) does. 2) Parameter Expansion, esp. "${x%%bar}" does not work if quoted. Correct typos and improve some details forwarding.sh already had in initiator, esp. related to ipfw accepting if the default is deny. Add an extra stat call to the "delay" function in addition to the touch which together is still a lot faster than sleep 1 but seems to help a lot more to mitigate the unrelated kernel race seen. MFC r232609: Use = rather than == for expressions to test(1) builtin(1) in sh(1) to comply with standards. On modern branches there is an undocumented alias (see r219084) but on stable/7 this is still an error. Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-14T20:57:48.712895Z K 7 svn:log V 68 Pedantic nit: use vm_pindex_t instead of long for a count of pages. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-03-14T20:59:45.251615Z K 7 svn:log V 586 Add a test case for each FIB to properly populate on traffic, checking both netstat -rnf inet6 and ndp -an for the neighbor. Add a) longer delays and b) clear the neighbor table between each test case to make stable/7 testing a lot more deterministic and less exposed to network stack address list locking, etc. races. It's very close to be deterministic in all cases with that. Adjust the expected return codes for the few cases that behave differently in 7 to 8 and later. Update documentation for the new test and correct some spelling errors. Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-03-14T21:26:06.630877Z K 7 svn:log V 88 Update man page to present -T argument in synopsis MFC with r183347 MFC after: 0 days END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-03-14T21:45:45.185435Z K 7 svn:log V 1027 MFC r183347 Add a flag, -T, that tells syslogd to always replace the timestamp on messages from the network. We already replace malformatted timestamps and this option lets us replace timestamps that are correctly formatted but wrong. PR: 120891 Submitted by: Thomas Vogt MFC after: 1 week MFC r186263 Fixing !INET6 builds after bumping WARNS to 3. MFC r186331 Constify 'name' field in struct funix. This commit makes syslogd(8) WARNS?=6 on amd64 but I have not tested under universe so keep WARNS?= level as-is for now. MFC r186234 Rather than hardcode the 'struct iovec iov' array size, use a #define. While I'm here bump WARNS to 3. Obtained from: Juniper Networks MFC r186236 Use passed parameter rather than the #define. (more accurate extraction of Juniper Networks change) MFC r224002 Add a new option, -N to disable the default and recommended syslogd(8) behavior, which binds to the well known UDP port. This option implies -s. Obtained from: delphij@ obrien@ avatar@ trhodes@ dwmalone@ END K 10 svn:author V 3 ken K 8 svn:date V 27 2012-03-14T22:27:28.581440Z K 7 svn:log V 107 MFC 232675 Make the mps(4) module depend on the cam module. Submitted by: Mykola Dzham END K 10 svn:author V 3 ken K 8 svn:date V 27 2012-03-14T22:30:14.704175Z K 7 svn:log V 107 MFC 232675 Make the mps(4) module depend on the cam module. Submitted by: Mykola Dzham END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-03-14T22:44:56.486963Z K 7 svn:log V 79 Add the missing IPOIB option. Sponsored by: iXsystems, Inc. MFC after: 3 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-14T23:25:46.870333Z K 7 svn:log V 624 Add a PCI quirk to ignore PCI map registers from configuration space. For example, some BIOS for AMD SB600 south bridge may map HPET MMIO base address as a memory BAR for SMBus controller depending on a PM register configuration. Before r231161 (and r232086, subsequent MFC to stable/9), it was not fatal but hpet(4) just failed to attach. Since we probe and attach HPET earlier than PCI devices now, it caused unfortunate hard lockup. With this patch, it does not hang any more and HPET works at the same time. Clean up some style nits while I am in the neighborhood. PR: kern/165647 Reviewed by: jhb MFC after: 3 days END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-14T23:46:07.206278Z K 7 svn:log V 177 - Remove unncessary type casts - Make kernel backtrace routine more robust by refusing to backtrace further when encountered function that is possibly modifies SP value END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-03-14T23:55:25.083366Z K 7 svn:log V 50 IF7 @ r232985. Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-03-15T01:43:44.748305Z K 7 svn:log V 202 - Fix an erroneous invocation of the editline. - Fix wrong scaling in the bc.library. - Let length(0.000) conform to what gnu bc does. PR: bin/159227 Submitted by: AIDA Shinra END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-03-15T02:37:14.612905Z K 7 svn:log V 71 MFC r232099: Check if the user has necessary permissions on the device END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-03-15T02:46:12.939493Z K 7 svn:log V 61 MFC r232100: Remove an unused structure and unnecessary cast END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-03-15T05:11:29.301878Z K 7 svn:log V 56 Add debug.kld_debug loader tunable. MFC after: 2 weeks END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-15T05:29:51.801695Z K 7 svn:log V 120 Fill out fake preload structure to let userland tools like pmc(3) know about kernel module base address and actual size END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-03-15T06:01:21.621100Z K 7 svn:log V 103 Add CTLFLAG_TUN to the sysctl definition and fix style. Pointed by: Garrett Cooper MFC after: 2 weeks END