ƒ·%259181 140 272 319 270 293 406 111 483 292 125 241 1236 187 139 783 241 344 464 479 150 826 430 222 577 1443 521 683 430 364 475 926 162 641 171 565 162 676 515 246 251 155 300 235 532 532 876 532 153 319 247 296 261 1114 643 355 1192 431 246 365 519 1238 303 489 489 214 153 292 259 317 183 200 160 167 171 474 774 475 657 770 164 156 198 408 461 387 216 523 294 1004 1004 354 222 222 222 159 232 995 172 623 735 165 287 274 221 205 221 1555 157 291 291 182 182 243 243 234 242 223 222 222 229 229 1338 224 150 265 315 266 159 273 328 352 335 152 208 184 216 380 672 167 178 408 K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-10T17:26:52.281129Z K 7 svn:log V 179 MFstable10 r259151: Add WITH_DVD to RELEASE_RMAKEFLAGS, otherwise it is not actually passed to 'make release'. Approved by: re (glebius) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-12-10T17:27:11.811934Z K 7 svn:log V 224 Fix handling for empty auth-groups. Without it, ctld child process would either exit on assertion, or, if assertions are not enabled, fail to authenticate the target. MFC after: 2 days Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-12-10T18:18:39.181947Z K 7 svn:log V 175 Properly refuse handoff requests on already connected sessions. Previously this would result in dropping the session. MFC after: 2 days Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 gavin K 8 svn:date V 27 2013-12-10T19:12:16.425304Z K 7 svn:log V 198 Merge r259172 from stable/10 (head r257754 by adrian): Don't return ENOBUFS if the transmit path handles the frame but queues it (eg in power save.) PR: kern/183727 Approved by: re (glebius) END K 10 svn:author V 5 gavin K 8 svn:date V 27 2013-12-10T19:14:19.226292Z K 7 svn:log V 311 Merge r259173 from stable/10 (head r258758 by adrian): Make sure any waiters on the scan results get notified if the scan task decides to do nothing. If this isn't done, then a scan request whilst a scan occurs in an active channel set or a completed channel set will hang. Approved by: re (glebius) END K 10 svn:author V 4 joel K 8 svn:date V 27 2013-12-10T19:15:26.694729Z K 7 svn:log V 18 Minor mdoc fixes. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2013-12-10T19:17:31.912211Z K 7 svn:log V 388 Merge r259174 from stable/10 (head r256294 by adrian): Fix the "am I a net80211 vap" check for bpf listeners. I changed it to use if_transmit a while ago but apparently with monitor mode the if_transmit method is overridden. This is (mostly) a workaround until a more permanent solution can be found. Submitted by: Patrick Kelsey Approved by: re (glebius) END K 10 svn:author V 5 gavin K 8 svn:date V 27 2013-12-10T19:22:02.259496Z K 7 svn:log V 197 Merge r259175 from stable/10 (head r257065 by adrian): Fix a use-after-free node reference issue when waiting for a return from a management frame transmission. Approved by: re (glebius) END K 10 svn:author V 5 gavin K 8 svn:date V 27 2013-12-10T19:42:35.722132Z K 7 svn:log V 31 Fix typo in fortune (go -> to) END K 10 svn:author V 3 imp K 8 svn:date V 27 2013-12-10T19:48:48.098466Z K 7 svn:log V 148 Hand merge from current r235717: Implement pmap_mincore for arm. Now programs using it don't cause a flood of console messages. Reviewed by: alc@ END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-12-10T19:56:26.427168Z K 7 svn:log V 1138 For memsync replication, hio_countdown is used not only as an indication when a request can be moved to done queue, but also for detecting the current state of memsync request. This approach has problems, e.g. leaking a request if memsynk ack from the secondary failed, or racy usage of write_complete, which should be called only once per write request, but for memsync can be entered by local_send_thread and ggate_send_thread simultaneously. So the following approach is implemented instead: 1) Use hio_countdown only for counting components we waiting to complete, i.e. initially it is always 2 for any replication mode. 2) To distinguish between "memsync ack" and "memsync fin" responses from the secondary, add and use hio_memsyncacked field. 3) write_complete() in component threads is called only before releasing hio_countdown (i.e. before the hio may be returned to the done queue). 4) Add and use hio_writecount refcounter to detect when write_complete() can be called in memsync case. Reported by: Pete French petefrench ingresso.co.uk Tested by: Pete French petefrench ingresso.co.uk MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-12-10T19:58:10.019910Z K 7 svn:log V 91 Add some macros to make the code more readable (no functional chages). MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-12-10T20:02:09.508227Z K 7 svn:log V 43 Fix compiler warnings. MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-12-10T20:05:07.721826Z K 7 svn:log V 686 In remote_send_thread, if sending a request fails don't take the request back from the receive queue -- it might already be processed by remote_recv_thread, which lead to crashes like below: (primary) Unable to receive reply header: Connection reset by peer. (primary) Unable to send request (Connection reset by peer): WRITE(954662912, 131072). (primary) Disconnected from kopusha:7772. (primary) Increasing localcnt to 1. (primary) Assertion failed: (old > 0), function refcnt_release, file refcnt.h, line 62. Taking the request back was not necessary (it would properly be processed by the remote_recv_thread) and only complicated things. MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-12-10T20:06:41.227796Z K 7 svn:log V 144 Send wakeup to threads waiting on empty queue before releasing the lock to decrease spurious wakeups. Submitted by: davidxu MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-12-10T20:09:49.245558Z K 7 svn:log V 247 Check remote protocol version only for the first connection (when it is actually sent by the remote node). Otherwise it generated confusing "Negotiated protocol version 1" debug messages when processing the second connection. MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-12-10T20:25:43.997626Z K 7 svn:log V 371 Do not DELAY() for P-state transition unless we want to see the result. Intel manual says: "If a transition is already in progress, transition to a new value will subsequently take effect. Reads of IA32_PERF_CTL determine the last targeted operating point." So seems it should be fine to just trigger wanted transition and go. Linux does the same. MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-10T20:52:31.159794Z K 7 svn:log V 386 Only assert the length of the passed bio in the mdstart_vnode() when the bio is unmapped, so we must map the bio pages into pbuf. This works around the geom classes which do not follow the MAXPHYS limit on the i/o size, since such classes do not know about unmapped bios either. Reported by: Paolo Pinto Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-12-10T21:01:28.233925Z K 7 svn:log V 50 Return the correct IEEE 1275 code for "nextprop". END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-10T21:15:18.059433Z K 7 svn:log V 733 Fix detection of EOF in kern_physio(). If bio_length was clipped by the excess code in g_io_check(), bio_resid is also truncated by g_io_deliver(). As result, bufdonebio() assigns truncated value to the buffer b_resid field. Use the residual bio_completed to calculate buffer b_resid from b_bcount in bufdonebio(), instead of bio_resid, calculated from bio_length in g_io_deliver(). The issue is seemingly caused by the code rearrange into g_io_check(), which is not present in stable/10. The change still looks as the useful change to have in 10 nevertheless. Reported by: Stefan Hegnauer Tested by: pho, Stefan Hegnauer Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-12-10T22:03:59.493243Z K 7 svn:log V 332 MFC: r257598 During code inspection, I spotted that there was a code path where CLNT_CONTROL() would be called on "client" after it was released via CLNT_RELEASE(). It was unlikely that this code path gets executed and I have not heard of any problem report caused by this bug. This patch fixes the code so that this cannot happen. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-12-10T22:13:36.271822Z K 7 svn:log V 129 Correct license statements to reflect the fact that these files were all derived from sys/arm/mv/bus_space.c. Approved by: core END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-10T22:33:02.892151Z K 7 svn:log V 484 The opt_*.h headers must be included before any system header, except sys/cdefs.h. In particular, in case of COMPAT_43, param.h includes sys/types.h, which includes sys/select.h, which includes sys/_sigset.h. The _sigset.h customizes the provided definions based on COMPAT_43, eliminating osigset_t if symbol is not defined. The sys/proc.h is included after opt_compat.h and needs osigset_t. Move opt_compat.h inclusion into the right place. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-12-10T22:55:22.703816Z K 7 svn:log V 1341 MFC r257345,257382,257388: Implement extended LUN support. If PIM_EXTLUNS is set by a SIM, encode the upper 32-bits of the LUN, if possible, into the target_lun field as passed directly from the REPORT LUNs response. This allows extended LUN support to work for all LUNs with zeros in the lower 32-bits, which covers most addressing modes without breaking KBI. Behavior for drivers not setting PIM_EXTLUNS is unchanged. No user-facing interfaces are modified. Extended LUNs are stored with swizzled 16-bit word order so that, for devices implementing LUN addressing (like SCSI-2), the numerical representation of the LUN is identical with and without PIM_EXTLUNS. Thus setting PIM_EXTLUNS keeps most behavior, and user-facing LUN IDs, unchanged. This follows the strategy used in Solaris. A macro (CAM_EXTLUN_BYTE_SWIZZLE) is provided to transform a lun_id_t into a uint64_t ordered for the wire. This is the second part of work for full 64-bit extended LUN support and is designed to a bridge for stable/10 to the final 64-bit LUN code. The third and final part will involve widening lun_id_t to 64 bits and will not be MFCed. This third part will break the KBI but will keep the KPI unchanged so that all drivers that will care about this can be updated now and not require code changes between HEAD and stable/10. Reviewed by: scottl END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-12-10T22:56:51.636293Z K 7 svn:log V 427 Fix x2apic support in bhyve. When the guest is bringing up the APs in the x2APIC mode a write to the ICR register will now trigger a return to userspace with an exitcode of VM_EXITCODE_SPINUP_AP. This gets SMP guests working again with x2APIC. Change the vlapic timer lock to be a spinlock because the vlapic can be accessed from within a critical section (vm run loop) when guest is using x2apic mode. Reviewed by: grehan@ END K 10 svn:author V 2 np K 8 svn:date V 27 2013-12-11T00:17:13.562032Z K 7 svn:log V 591 MFC r258692 (gnn). Add constants for use in interrogating various fiber and copper connectors most often used with network interfaces. The SFF-8472 standard defines the information that can be retrieved from an optic or a copper cable plugged into a NIC, most often referred to as SFP+. Examples of values that can be read include the cable vendor's name, part number, date of manufacture as well as running data such as temperature, voltage and tx and rx power. Copious comments on how to use these values with an I2C interface are given in the header file itself. Discussed with: gnn END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-12-11T00:39:56.081368Z K 7 svn:log V 332 MFC: r257598 During code inspection, I spotted that there was a code path where CLNT_CONTROL() would be called on "client" after it was released via CLNT_RELEASE(). It was unlikely that this code path gets executed and I have not heard of any problem report caused by this bug. This patch fixes the code so that this cannot happen. END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2013-12-11T03:39:50.600131Z K 7 svn:log V 270 Add tap.test.mk. This file provides support to build test programs that comply with the Test Anything Protocol. Its main goal is to support the painless integration of existing tests from tools/regression/ into the Kyua-based test suite. Approved by: rpaulo (mentor) END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2013-12-11T03:41:07.393921Z K 7 svn:log V 381 Make bsd.progs.mk work in directories with SCRIPTS but no PROGS. This change fixes some cases where bsd.progs.mk would fail to handle directories with SCRIPTS but no PROGS. In particular, "install" did not handle such scripts nor dependent files when bsd.subdir.mk was added to the mix. This is "make tinderbox" clean. Reviewed by: freebsd-testing Approved by: rpaulo (mentor) END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2013-12-11T04:09:17.980922Z K 7 svn:log V 832 Migrate tools/regression/bin/ tests to the new layout. This change is a proof of concept on how to easily integrate existing tests from the tools/regression/ hierarchy into the /usr/tests/ test suite and on how to adapt them to the new layout for src. To achieve these goals, this change: - Moves tests from tools/regression/bin// to bin//tests/. - Renames the previous regress.sh files to legacy_test.sh. - Adds Makefiles to build and install the tests and all their supporting data files into /usr/tests/bin/. - Plugs the legacy_test test programs into the test suite using the new TAP backend for Kyua (appearing in 0.8) so that the code of the test programs does not have to change. - Registers the new directories in the BSD.test.dist mtree file. Reviewed by: freebsd-testing Approved by: rpaulo (mentor) END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-12-11T04:31:40.290167Z K 7 svn:log V 68 Correct the check for errors from proc_rwmem(). MFC after: 2 weeks END K 10 svn:author V 3 imp K 8 svn:date V 27 2013-12-11T05:32:29.079888Z K 7 svn:log V 548 Fix one race and one fence post error. When the TX buffer was completely full, we'd not complete any of the mbufs due to the fence post error (this creates a large leak). When this is fixed, we still leak, but at a much smaller rate due to a race between ateintr and atestart_locked as well as an asymmetry where atestart_locked is called from elsewhere. Ensure that we free in-flight packets that have completed there as well. Also remove needless check for NULL on mb, checked earlier in the loop and simplify a redundant if. MFC after: 3 days END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-12-11T06:28:44.190158Z K 7 svn:log V 78 Fix typo when initializing the vlapic version register ('<<' instead of '<'). END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-12-11T07:34:34.141040Z K 7 svn:log V 472 MFC r259100: Pull in r196658 from upstream clang trunk: CodeGen: Don't emit linkage on thunks that aren't emitted because they're vararg. This can happen when we're trying to emit a thunk with available_externally linkage with optimization enabled but bail because it doesn't make sense for vararg functions. [LLVM] PR18098. This should fix clang "Broken module found, compilation aborted" errors when building the qt4-based dvbcut port. Reported by: se END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-12-11T07:41:28.012960Z K 7 svn:log V 70 Added a regression test. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-12-11T07:43:30.563098Z K 7 svn:log V 583 MFC r259111: Use correct casts in gcc's emmintrin.h for the first arguments of the following builtin functions: * __builtin_ia32_pslldi128() takes __v4si instead of __v8hi * __builtin_ia32_psllqi128() takes __v2di instead of __v8hi * __builtin_ia32_psradi128() takes __v4si instead of __v8hi This should fix the following errors when building the LINT kernel with gcc: sys/crypto/aesni/aesni_wrap.c:191: error: incompatible type for argument 1 of '__builtin_ia32_psradi128' sys/crypto/aesni/aesni_wrap.c:195: error: incompatible type for argument 1 of '__builtin_ia32_pslldi128' END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2013-12-11T08:46:18.929092Z K 7 svn:log V 418 Re-add jkh to the access file as his commit bit is being returned from safekeeping by core. As he has been away for a while, I'll be wearing the notional mentor hat (for a bit) to help him find his feet again -- in some ways this seems a bit silly, but on the other hand jkh has not yet had a chance to experience the dreaded 'mergeinfo' and I probably can be helpful in this regard (and others?)! Approved by: core END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-11T13:20:32.182029Z K 7 svn:log V 148 USB method structures for USB controllers and USB pipes should be constant and does not need to be modified. This also saves a small amount of RAM. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-12-11T14:54:58.587423Z K 7 svn:log V 155 calendar(1): use strlcpy instead of strncpy use strlcpy instead of strncpy which avoids non-null-termination if the string is MAXPATHLEN bytes or longer. END K 10 svn:author V 3 imp K 8 svn:date V 27 2013-12-11T15:32:28.523600Z K 7 svn:log V 63 Loose -> Lose so this sentence makes sense. MFC after: 3 days END K 10 svn:author V 3 gnn K 8 svn:date V 27 2013-12-11T17:18:10.311444Z K 7 svn:log V 207 Fix a panic when booting with kernels that have FREEBBSD_COMPAT 4, 5, 6 or 43 by only thunking the data parameter for old ioctls compatability ioctls instead of doing it for all of them. Submitted by: jhb@ END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-12-11T17:40:35.992562Z K 7 svn:log V 142 Destroy mtx lock when failed to allocate memory during attach. Submitted by: Dmitry Luhtionov MFC after: 2 weeks END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-11T19:25:17.853417Z K 7 svn:log V 439 MFC r256448, r257029; Make di_blocks unsigned in UFS1 as is the case already for UFS2. Most of the code between UFS1 and UFS2 is shared so this change is pretty safe. Not only this makes UFS1 and 2 consistent but it also matches what NetBSD and MacOS X have for some years now. UFS2: make di_extsize unsigned. di_extsize is the EA size and as such it should be unsigned. Adjust related types for consistency. Reviewed by: mckusick END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-11T19:25:38.998947Z K 7 svn:log V 439 MFC r256448, r257029; Make di_blocks unsigned in UFS1 as is the case already for UFS2. Most of the code between UFS1 and UFS2 is shared so this change is pretty safe. Not only this makes UFS1 and 2 consistent but it also matches what NetBSD and MacOS X have for some years now. UFS2: make di_extsize unsigned. di_extsize is the EA size and as such it should be unsigned. Adjust related types for consistency. Reviewed by: mckusick END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-11T19:26:56.570354Z K 7 svn:log V 783 MFC r257805, r257806, r257807, r257942: r257805: Add a 'mini-memstick.img' release target, which will use the 'bootonly.iso' components to create a smaller memory stick image. This is useful for system recovery, where a full memstick.img image is not necessarily needed (or wanted). In addition, it is possible to do bootonly-style installation, where the base.txz, kernel.txz, etc. are fetched from a remote source. Provide backwards-compatible target (mini-memstick), to keep in sync with the targets documented in release/Makefile. r257806: Remove extra target from 'memstick' that I forgot to remove before previous commit. r257807: Update release(7) to include 'mini-memstick'. r257942: Fix a few style nits. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-11T19:30:27.289007Z K 7 svn:log V 439 MFC r256448, r257029; Make di_blocks unsigned in UFS1 as is the case already for UFS2. Most of the code between UFS1 and UFS2 is shared so this change is pretty safe. Not only this makes UFS1 and 2 consistent but it also matches what NetBSD and MacOS X have for some years now. UFS2: make di_extsize unsigned. di_extsize is the EA size and as such it should be unsigned. Adjust related types for consistency. Reviewed by: mckusick END K 10 svn:author V 8 andreast K 8 svn:date V 27 2013-12-11T20:56:23.532915Z K 7 svn:log V 56 MFC r258503 Limit the large page size to 16MB for now. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-12-11T21:19:04.692732Z K 7 svn:log V 226 Use fixed-width types for all fields in MP Table structures and pack all the structures. While here, move a helper struct only used in the kernel parser out of this header since it is not part of the MP specification itself. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-12-11T21:21:03.543667Z K 7 svn:log V 154 - Use instead of duplicating its definitions. - Switch to mmaping the table from RAM instead of reading it out of /dev/mem via read(2). END K 10 svn:author V 8 andreast K 8 svn:date V 27 2013-12-11T21:37:32.188146Z K 7 svn:log V 198 MFC r258615 Take care to handle the full 16 byte buffer in the get/put routines. Also, skip the VTERM header once when receiving data from the hypervisor call when we have a HVTERMPROT connection. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2013-12-11T21:41:21.036783Z K 7 svn:log V 163 MFC r258778 Add a printf to inform about the logical memory block size which is in use by the system. This might give a hint why a pSeries system is not booting. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-12-11T21:48:04.651842Z K 7 svn:log V 1020 Create own free list for each of the first 32 possible allocation sizes. In case of 4K allocation quantum that means for allocations up to 128K. With growth of memory fragmentation these lists may grow to quite a large sizes (tenths and hundreds of thousands items). Having in one list items of different sizes in worst case may require full linear list traversal, that may be very expensive. Having lists for items of single size means that unless user specify some alignment or border requirements (that are very rare cases) first item found on the list should satisfy the request. While running SPEC NFS benchmark on top of ZFS on 24-core machine with 84GB RAM this change reduces CPU time spent in vmem_xalloc() from 8% and lock congestion spinning around it from 20% to invisible levels. And that all is by the cost of just 26 more pointers per vmem instance. If at some point our kernel will start to actively use KVA allocations with odd sizes above 128K, something may need to be done to bigger lists also. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2013-12-11T22:00:03.548360Z K 7 svn:log V 545 MFC r259007 Increase PHYS_AVAIL_SZ because on pSeries machines we can have many logical regions which represent the total amount of memory. The size of these regions is not the physical size of the chip but it is a logical one and it is given by the OpenFirmware, it is selectable at boot time and varies between 16MB and 256MB in my case. There is an 'automatic' option which would select the size as 64MB in case you have around 16GB of RAM. To make sure we can allocate RAM with the automatic option bump this value of PHYS_AVAIL_SZ to 256. END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2013-12-11T22:26:09.847759Z K 7 svn:log V 257 MFC r259101: drm/radeon: agp_info->ai_aperture_size is in bytes, not Mbytes This fixes radeon_agp_init() and gtt_size is now correct. However, this is not enough to make Radeon AGP cards work: ttm_agp_backend.c isn't implemented yet. Submitted by: tijl@ END K 10 svn:author V 8 andreast K 8 svn:date V 27 2013-12-11T22:36:20.694327Z K 7 svn:log V 1093 MFC r257991, r257992, 257993, 258504 r257991: Consolidate Apple firmware hacks and improve them by switching on the presence of mac-io devices in the tree, which uniquely identifies Apple hardware. r257992: Allow OF_decode_addr() to also be able to map resources on big-endian devices. To this end, make PCI device detection rely on the device_type field rather than name, as per the standard. r257993: Make tsec work with the device tree present on the RB800. The previous code assumed that the MDIO bus was a direct child of the Ethernet interface. It may not be and indeed on many device trees is not. While here, add proper locking for MII transactions, which may be on a bus shared by several MACs. r258504: Save and restore the trap vectors when doing OF calls on pSeries machines. It turned out that on pSeries machines the call into OF modified the trap vectors and this made further behaviour unpredictable. With this commit I'm now able to boot multi user on a network booted environment on my IntelliStation 285. This is a POWER5+ machine. END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2013-12-11T23:06:03.857437Z K 7 svn:log V 333 MFC r259104: drm/radeon: radeon_dp_i2c_aux_ch() must return 0 on FreeBSD The code was unmodified compared to Linux and returned the amount of received bytes from the i2c bus. This led to non-working i2c bus and failure to eg. read monitor's EDID, if connected to DisplayPort. Tested by: MikaĆ«l Urankar END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2013-12-11T23:15:19.316469Z K 7 svn:log V 148 MFC r258930: drm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge Before this fix, capabilities were read from vgapci and were incorrect. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-12-11T23:28:31.553856Z K 7 svn:log V 267 MFC: r257901 Fix an NFSv4.1 client specific case where a forced dismount would hang. The hang occurred in nfsv4_setsequence() when it couldn't find an available session slot and is fixed by checking for a forced dismount in progress and just returning for this case. END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-12-12T00:01:45.024852Z K 7 svn:log V 427 We don't keep routes for link-local addresses in routing tables, thus we need to handle them specially in RTM_GET. This fixes some issues with ndp(8). If requested destination address has AF_INET6 family and it is from link-local scope, use sin6_scope_id to determine corresponding interface. Then do link layer address lookup. If address is in ND cache, return it, if not - return default AF_LINK ifaddr from this interface. END K 10 svn:author V 7 asomers K 8 svn:date V 27 2013-12-12T00:27:22.838087Z K 7 svn:log V 1140 sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c When a da or ada device dissappears, outstanding IOs fail with ENXIO, not EIO. The check for EIO was probably copied from Illumos, where that is indeed the correct errno. Without this change, pulling a busy drive from a zpool would usually turn it into UNAVAIL, even though pulling an idle drive would turn it into REMOVED. With this change, it is REMOVED every time. Also, vdev_geom_io_intr shouldn't do zfs_post_remove, because that results in devd getting two resource.fs.zfs.removed events. The comment said that the event had to be sent directly instead of through the async removal thread because "the DE engine is using this information to discard prevoius I/O errors". However, the fact that vdev_geom_io_intr was never actually sending the events until now, and that vdev_geom_orphan never sent them at all, and that vdev_geom_orphan usually gets called about 2 seconds after the actual removal, means that FreeBSD's userland can cope with a late event just fine. Approved by: ken (mentor) Sponsored by: Spectra Logic Corporation MFC after: 4 weeks END K 10 svn:author V 2 np K 8 svn:date V 27 2013-12-12T00:27:27.822730Z K 7 svn:log V 211 MFC r259145: Unstaticize t4_list and t4_uld_list. This works around a clang annoyance[1] and allows kgdb to find these symbols. [1] http://lists.freebsd.org/pipermail/freebsd-hackers/2012-November/041166.html END K 10 svn:author V 3 mdf K 8 svn:date V 27 2013-12-12T02:03:42.039090Z K 7 svn:log V 396 MFC r258658: Fix a segfault / internal compiler error. Among other causes, when gcc throws a warning before parsing any tokens, the cur_token pointer is at the beginning of malloc'd memory. Dereferencing cur_token[-1] can cause a segfault. Code taken from OpenBSD http://www.openbsd.org/cgi-bin/cvsweb/src/gnu/gcc/libcpp/errors.c which was a more complete fix than the one I originally coded. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2013-12-12T02:04:59.811711Z K 7 svn:log V 396 MFC r258658: Fix a segfault / internal compiler error. Among other causes, when gcc throws a warning before parsing any tokens, the cur_token pointer is at the beginning of malloc'd memory. Dereferencing cur_token[-1] can cause a segfault. Code taken from OpenBSD http://www.openbsd.org/cgi-bin/cvsweb/src/gnu/gcc/libcpp/errors.c which was a more complete fix than the one I originally coded. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-12-12T03:04:00.618885Z K 7 svn:log V 118 Allow pmap_remove_pages() to be called for physical maps not associated with the current thread. Obtained from: alc@ END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-12-12T04:12:19.454747Z K 7 svn:log V 56 FBT now does work fully on PowerPC. MFC after: 2 weeks END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-12-12T05:49:27.784939Z K 7 svn:log V 199 Prevent release build errors found during snapshot builds where if NOPORTS=1, pkg-stage.sh cannot build the ports-mgmt/pkg port if WITH_DVD=1. MFC after: 3 days Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-12-12T08:23:28.300789Z K 7 svn:log V 166 Fix bug introduced at r256607. We have to recalculate bp_resid here since sizes of original and completed requests may differ due to end of media. Bisected by: pho END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-12-12T08:34:51.968112Z K 7 svn:log V 219 Set chain bit correctly. This will fix some problems sending and receiving Zero Length Packets, ZLPs. See comment in code for more information. MFC after: 1 week Reported by: Kohji Okuno END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-12-12T08:48:45.891187Z K 7 svn:log V 86 Fix the version string in dts emission. Reported by: Patrick Wildt MFC after: 1 week END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-12-12T08:55:24.443188Z K 7 svn:log V 102 Some more cleanups and bug fixes in dtc for property printing / parsing. Submitted by: Patrick Wildt END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-12-12T10:38:05.400813Z K 7 svn:log V 68 Fix wrong error check. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-12-12T10:39:31.659551Z K 7 svn:log V 75 Added new SU+J test scenario. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-12-12T10:57:16.535252Z K 7 svn:log V 79 Missed a kill of looping process. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-12-12T11:05:48.086818Z K 7 svn:log V 381 Fix long known bug with handling device aliases residing not in devfs root. Historically creation of device aliases created symbolic links using only name of target device as a link target, not considering current directory. Fix that by adding number of "../" chunks to the terget device name, required to get out of the current directory to devfs root first. MFC after: 1 month END K 10 svn:author V 8 andreast K 8 svn:date V 27 2013-12-12T12:17:20.815139Z K 7 svn:log V 676 MFC: r256932, r256938, r256953 r256932: Add a new function (OF_getencprop()) that undoes the transformation applied by encode-int. Specifically, it takes a set of 32-bit cell values and changes them to host byte order. Most non-string instances of OF_getprop() should be using this function, which is a no-op on big-endian platforms. r256938: A few other common cases for encode-int decoding: OF_getencprop_alloc() and OF_searchencprop(). I thought about using the element size parameter to OF_getprop_alloc() to do endian-switching automatically, but it breaks use with structs and a *lot* of FDT code (which can hopefully be moved to these new APIs). r256953: Fix build. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2013-12-12T12:29:35.586357Z K 7 svn:log V 377 MFC: r258722, r258757 r258722: Give some output about the CPU clock on IBMPOWER machines, currently read from OF. Linux does it similar, means they also read the OF values and display them. r258757: Use the Open Firmware-based CPU frequency determination as a generic fallback if we can't measure CPU frequency. This is also useful on a variety of embedded systems using FDT. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2013-12-12T12:36:40.549050Z K 7 svn:log V 559 MFC: r258051, r258052 r258052: Following the approach with ACPI DMAR on x86, split IOMMU handling into a variant PCI bus instead of trying to shoehorn it into the PCI host bridge adapter. Besides matching better the architecture on other platforms, this also allows systems with multiple partitionable endpoints per PCI host bridge to work correctly. r258051: Actually add IOMMU domain to the list of known mappings. This fixes a bug where multiple devices in the same IOMMU domain would be allocated conflicting mappings unless they also shared a DMA tag. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2013-12-12T13:00:07.931754Z K 7 svn:log V 672 MFC: r258427, r258694 r258694: Make RTAS calls, which call setfault() to recover from machine checks, preserve any existing fault buffer. RTAS calls are meant to be safe from interrupt context (and are indeed used there to implement the xics PIC driver). Without this, calling into RTAS in interrupt context would have the effect of clearing any existing onfault state of the interrupted thread, potentially leading to a panic. r258427: For PCI<->PCI bridges, #address-cells may be 3. Allow this when parsing the ibm,dma-window properties. This is especially a concern when #ibm,dma-address-cells is not specified and we have to use the regular #address-cells property. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-12-12T14:22:51.656809Z K 7 svn:log V 64 Script to parse DAG output for debugging why ports won't build. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-12-12T14:37:25.966786Z K 7 svn:log V 56 Avoid host options contaminating the build environment. END K 10 svn:author V 3 ray K 8 svn:date V 27 2013-12-12T14:49:26.782552Z K 7 svn:log V 105 Do not try to probe/attach if attempt to add fbd child are failed. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 4 tijl K 8 svn:date V 27 2013-12-12T15:04:59.881590Z K 7 svn:log V 314 MFC r226422, r227241, r228063, r228697, r228698, r228701, r234310, r234850, r250226, r250926. This brings m4 up to date with the version in head and fixes the eval command when called with a 2nd and 3rd argument. The only differences remaining are related to the updated flex and byacc in head. PR: bin/166994 END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-12T16:18:45.028322Z K 7 svn:log V 368 MFC r241959: Fix a number of other clang warnings in libstdc++, which could appear when building other C++ software with it. Also fix one actual bug in libsupc++, which was exposed by such a warning. This latter fix is the only functional change. This is required for newer versions of gcc and clang which have stricter warnings about parenthesis in C++ programs. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-12-12T16:58:45.979079Z K 7 svn:log V 294 - Add --no-ignore to the "svn stat" command line so we pick up things like LINT etc which are normally hidden but can cause surprises. - Validate and untaint the SVN base URL. - In spawn(), check whether the command and arguments are tainted so we can more easily debug future occurrences. END K 10 svn:author V 2 bz K 8 svn:date V 27 2013-12-12T17:48:33.042211Z K 7 svn:log V 124 Use correct value pointing to previously selected FDT DTB. Reviewed by: brooks Sponsored by: DARPA, AFRL MFC after: 1 week END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2013-12-12T17:59:09.465295Z K 7 svn:log V 425 Fix multi-repository support by properly respecting 'enabled' flag. This will read the REPOS_DIR env/config setting (default is /etc/pkg and /usr/local/etc/pkg/repos) and use the last enabled repository. This can be changed in the environment using a comma-separated list, or in /usr/local/etc/pkg.conf with JSON array syntax of: REPOS_DIR: ["/etc/pkg", "/usr/local/etc/pkg/repos"] Approved by: bapt MFC after: 1 week END K 10 svn:author V 2 bz K 8 svn:date V 27 2013-12-12T18:08:31.314045Z K 7 svn:log V 202 Add an FDT DTS and MDROOT kernel configuration for BERI on NetFPGA. At this point we only support one CPU, the PIC, and a UART console. Reviewed by: brooks Sponsored by: DARPA, AFRL MFC after: 5 days END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-12T18:15:32.897199Z K 7 svn:log V 911 MFC r258081, r258138, r258143, r258179, r258157, r258204, 258205, r258206, r258207, r258321 This is a series of commits inspired on Google's gcc-4.2.1 for Android that were taken from the gcc pre-4.3 under the GPLv2. gcc: Backport fixes for -W parentheses in C++ This fixes GCC 19564. gcc: merge rs6000 change from FSF pre-gcc43 Don't set MASK_PPC_GFXOPT for 8540 or 8548. Merge vrp-tree fix from gcc-4.3 Fix missed conversion from / to >> (GCC PR32521) Merge in GCCr120505 to include definition of TREE_OVERFLOW_P gcc: warn about integer overflow in constant expressions in the C++ frontend. gcc: Add a new option -Wvla to warn variable length array. libcpp: preprocessor speedup patches from upstream gcc. gcc: add femit-struct-debug support to reduce Reduce dwarf debug size gcc: Fix postreload-gcse treatment of call-clobbered registers. gcc: Record some previous commits in the ChangeLog.gcc43 file. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-12T18:16:46.714831Z K 7 svn:log V 911 MFC r258081, r258138, r258143, r258179, r258157, r258204, 258205, r258206, r258207, r258321 This is a series of commits inspired on Google's gcc-4.2.1 for Android that were taken from the gcc pre-4.3 under the GPLv2. gcc: Backport fixes for -W parentheses in C++ This fixes GCC 19564. gcc: merge rs6000 change from FSF pre-gcc43 Don't set MASK_PPC_GFXOPT for 8540 or 8548. Merge vrp-tree fix from gcc-4.3 Fix missed conversion from / to >> (GCC PR32521) Merge in GCCr120505 to include definition of TREE_OVERFLOW_P gcc: warn about integer overflow in constant expressions in the C++ frontend. gcc: Add a new option -Wvla to warn variable length array. libcpp: preprocessor speedup patches from upstream gcc. gcc: add femit-struct-debug support to reduce Reduce dwarf debug size gcc: Fix postreload-gcse treatment of call-clobbered registers. gcc: Record some previous commits in the ChangeLog.gcc43 file. END K 10 svn:author V 4 loos K 8 svn:date V 27 2013-12-12T18:29:36.335132Z K 7 svn:log V 260 After r256961 ofw_iicbuc.c will be built for any kernel which includes options 'iicbus' and 'fdt'. Remove the (now) unnecessary entries. Verified on BBB (am335x), EFIKA_MX (imx51 - by ray@), DIGI-CCWMX53 (imx53 - kernel build). Approved by: adrian (mentor) END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-12T19:01:50.723382Z K 7 svn:log V 129 MFC r258712; libcpp: fix an underflow. Similar fix seen in Apple's gcc42. Obtained from: OpenBSD (Rev 1.2) MFC after: 2 weeks END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-12T19:02:18.745076Z K 7 svn:log V 129 MFC r258712; libcpp: fix an underflow. Similar fix seen in Apple's gcc42. Obtained from: OpenBSD (Rev 1.2) MFC after: 2 weeks END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-12T19:02:42.440790Z K 7 svn:log V 129 MFC r258712; libcpp: fix an underflow. Similar fix seen in Apple's gcc42. Obtained from: OpenBSD (Rev 1.2) MFC after: 2 weeks END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2013-12-12T20:20:46.029051Z K 7 svn:log V 63 Mention BIND removal in release notes. Submitted by: skreuzer END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-12-12T20:34:04.917830Z K 7 svn:log V 139 Add a command to inject an NMI on a specific vcpu. It is a simple wrapper around the existing vm_inject_nmi(). Reviewed by: grehan, neel END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-12-12T20:47:18.333508Z K 7 svn:log V 899 I caught the following snippet at the end of my /var/log/bsdinstall_log: === DEBUG: Running installation step: services local: Not in a function /usr/libexec/bsdinstall/services: cannot create : Read-only file system /usr/libexec/bsdinstall/services: /tmp/bsdinstall/etc/rc.conf.services: \ Permission denied === The `local: Not in a function' is obvious, and was introduced by myself in SVN revision 256348. The latter two are caused by the attempt to use "\" to continue the line after using the ">>" redirect. This appears to attempt to write a file with the name " " in the current directory and subsequently attempts to execute the file that was originally intended for writing (which is not executable; hence the `Permission denied'). That was introduced in SVN r228192 about 2 years ago, apparently unnoticed until I started going over the debug outputs very carefully. MFC after: 3 days END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2013-12-12T21:51:33.979513Z K 7 svn:log V 76 MFC r259274 Mention BIND removal in release notes. Submitted by: skreuzer END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-12-12T22:01:42.413201Z K 7 svn:log V 530 Merge r259214 from stable/10 (head r259100): Pull in r196658 from upstream clang trunk: CodeGen: Don't emit linkage on thunks that aren't emitted because they're vararg. This can happen when we're trying to emit a thunk with available_externally linkage with optimization enabled but bail because it doesn't make sense for vararg functions. [LLVM] PR18098. This should fix clang "Broken module found, compilation aborted" errors when building the qt4-based dvbcut port. Reported by: se Approved by: re (glebius) END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-12-12T22:04:47.964486Z K 7 svn:log V 642 Merge r259216 from stable/10 (head r259111): Use correct casts in gcc's emmintrin.h for the first arguments of the following builtin functions: * __builtin_ia32_pslldi128() takes __v4si instead of __v8hi * __builtin_ia32_psllqi128() takes __v2di instead of __v8hi * __builtin_ia32_psradi128() takes __v4si instead of __v8hi This should fix the following errors when building the LINT kernel with gcc: sys/crypto/aesni/aesni_wrap.c:191: error: incompatible type for argument 1 of '__builtin_ia32_psradi128' sys/crypto/aesni/aesni_wrap.c:195: error: incompatible type for argument 1 of '__builtin_ia32_pslldi128' Approved by: re (glebius) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-12-12T22:33:32.115036Z K 7 svn:log V 69 Somehow stable/10 branch contains correct version, but head doesn't. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-12-13T00:56:05.173941Z K 7 svn:log V 191 MFC r259156: mtest(8): use correct macro in mdoc The An macros is used for authors while the Ar macro is used for arguments. AFAIK mcast-addr and ifname are not authors. PR: docs/184649 END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-12-13T01:35:31.640838Z K 7 svn:log V 178 mtest(8): use correct macro in mdoc The An macros is used for authors while the Ar macro is used for arguments. AFAIK mcast-addr and ifname are not authors. PR: docs/184649 END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-13T02:21:32.906323Z K 7 svn:log V 128 MFC r244673: Fix the __glibcxx_min and __glibcxx_max macros for a signed wchar_t. This seems to be needed by newer compilers. END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-12-13T02:37:35.352714Z K 7 svn:log V 107 Add PMU-based CPU frequency scaling. This method is used on most Titanium PowerBooks. MFC after: 1 month END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-13T02:47:41.876346Z K 7 svn:log V 128 MFC r244673: Fix the __glibcxx_min and __glibcxx_max macros for a signed wchar_t. This seems to be needed by newer compilers. END K 10 svn:author V 3 bjk K 8 svn:date V 27 2013-12-13T03:09:29.507935Z K 7 svn:log V 1461 Apply patch from upstream Heimdal for encoding fix RFC 4402 specifies the implementation of the gss_pseudo_random() function for the krb5 mechanism (and the C bindings therein). The implementation uses a PRF+ function that concatenates the output of individual krb5 pseudo-random operations produced with a counter and seed. The original implementation of this function in Heimdal incorrectly encoded the counter as a little-endian integer, but the RFC specifies the counter encoding as big-endian. The implementation initializes the counter to zero, so the first block of output (16 octets, for the modern AES enctypes 17 and 18) is unchanged. (RFC 4402 specifies that the counter should begin at 1, but both existing implementations begin with zero and it looks like the standard will be re-issued, with test vectors, to begin at zero.) This is upstream's commit f85652af868e64811f2b32b815d4198e7f9017f6, from 13 October, 2013: % Fix krb5's gss_pseudo_random() (n is big-endian) % % The first enctype RFC3961 prf output length's bytes are correct because % the little- and big-endian representations of unsigned zero are the % same. The second block of output was wrong because the counter was not % being encoded as big-endian. % % This change could break applications. But those applications would not % have been interoperating with other implementations anyways (in % particular: MIT's). Approved by: hrs (mentor, src committer) MFC after: 3 days END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-12-13T05:54:25.753206Z K 7 svn:log V 60 Some style(9) fixes MFC after: 1 month X-MFC with: r259284 END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T05:54:30.246278Z K 7 svn:log V 198 MFC r259042: Do not force to run atexit handlers, which text comes from a dso owning the handle passed to __cxa_finalize() but which are registered by other dso, when the process is inside exit(3). END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T05:54:58.103705Z K 7 svn:log V 198 MFC r259042: Do not force to run atexit handlers, which text comes from a dso owning the handle passed to __cxa_finalize() but which are registered by other dso, when the process is inside exit(3). END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:00:44.102715Z K 7 svn:log V 90 MFC r259043: Build an allocator for the aligned memory on top of the rtld-private malloc. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:01:21.058040Z K 7 svn:log V 90 MFC r259043: Build an allocator for the aligned memory on top of the rtld-private malloc. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:06:08.285715Z K 7 svn:log V 150 MFC r259044: For variant II static TLS, properly align tls segments. MFC r259072: Cast Elf_Addr to void * to match the free_aligned() argument type. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:06:25.163874Z K 7 svn:log V 150 MFC r259044: For variant II static TLS, properly align tls segments. MFC r259072: Cast Elf_Addr to void * to match the free_aligned() argument type. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:09:19.467279Z K 7 svn:log V 141 MFC r257898: Change VFS_PROLOGUE() to evaluate the mp once, convert MNTK_SHARED_WRITES and MNTK_EXTENDED_SHARED tests into inline functions. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:10:49.281770Z K 7 svn:log V 149 MFC r257904: Hide MNT_SHARED_WRITES() and MNT_EXTENDED_SHARED() under the #ifdef _KERNEL braces. Struct mount is only defined for the kernel build. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:12:21.909157Z K 7 svn:log V 130 MFC r257899: If filesystem declares that it supports shared locking for writes, use shared vnode lock for VOP_PUTPAGES() as well. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:25:08.060273Z K 7 svn:log V 129 MFC r258366: Add assertions to cover all places in the wiring and unwiring code where MAP_ENTRY_IN_TRANSITION is set or cleared. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:25:43.659363Z K 7 svn:log V 129 MFC r258366: Add assertions to cover all places in the wiring and unwiring code where MAP_ENTRY_IN_TRANSITION is set or cleared. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:28:18.499022Z K 7 svn:log V 136 MFC r258367: Verify for zero-length requests and act as if it is always successfull without performing any action on the address space. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-12-13T06:29:02.423032Z K 7 svn:log V 136 MFC r258367: Verify for zero-length requests and act as if it is always successfull without performing any action on the address space. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-12-13T06:59:18.039420Z K 7 svn:log V 1241 MFC r256657,r257018,r257347,r257423,r257729,r257767, r257933,r258609,r258614,r258668,r258673,r258855 Pull in some minor bugfixes and functionality enhancements from CURRENT. These are candidates to be moved to 10.0-release. r258855 mdoc: quote string properly. r258673 Don't create an initial value for the host filesystem of "/". r258668 Allow bhyve and bhyveload to attach to tty devices. r258614 The 22-bit Data Byte Count (DBC) field of a Physical Region Descriptor was being read as a 32-bit quantity by the bhyve AHCI driver. r258609 Fix discrepancy between the IOAPIC ID advertised by firmware tables and the actual value read by the guest. r257933 Route the legacy timer interrupt (IRQ0) to pin 2 of the IOAPIC. r257767 Fix an off-by-one error when iterating over the emulated PCI BARs. r257729 Add the VM name to the process name with setproctitle(). r257423 Make the virtual ioapic available unconditionally in a bhyve virtual machine. r257347 Update copyright to include the author of the LPC bridge emulation code. hand-merge r257018 Tidy usage messages for bhyve and bhyveload. r256657 Add an option to bhyveload(8) that allows setting a loader environment variable from the command line. Discussed with: neel END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-12-13T08:31:13.296308Z K 7 svn:log V 128 bhyve(8) man page. mdoc formatting and much input and review from Warren Block (wblock@). Reviewed by: many MFC after: 3 days END K 10 svn:author V 3 rmh K 8 svn:date V 27 2013-12-13T13:17:59.826198Z K 7 svn:log V 58 MFC r259003: Initialize modesetting sysctls in radeonkms. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-12-13T15:19:37.009231Z K 7 svn:log V 170 MFC r258871: Properly report an error instead of panicing when user tries to create LUN backed by non-disk device, e.g. /dev/null. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-12-13T15:23:07.230441Z K 7 svn:log V 220 MFC r259182: Fix handling for empty auth-groups. Without it, ctld child process would either exit on assertion, or, if assertions are not enabled, fail to authenticate the target. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-12-13T15:25:51.166856Z K 7 svn:log V 171 MFC r259183: Properly refuse handoff requests on already connected sessions. Previously this would result in dropping the session. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T16:09:07.495042Z K 7 svn:log V 67 MFC r256492: Add the long-missing spibus_if.m to the MFILES list. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T16:14:08.573477Z K 7 svn:log V 180 MFC r256628: Fix a register name typo. The effect was that CPU_CONTROL_AFLT_ENABLE wasn't being set, but it was almost assuredly already turned on anyway by the bootloader. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T16:38:21.845959Z K 7 svn:log V 235 MFC r256637: When calculating the number of bounce pages needed, round the maxsize up to a multiple of PAGE_SIZE, and add one page because there can always be one more boundary crossing than the number of pages in the transfer. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T16:41:04.526089Z K 7 svn:log V 259 MFC r256638: Add cases for the combinations of busdma sync op flags that we handle correctly by doing nothing, then add a panic for the default case, because that implies that some driver asked for a sync (probably incorrectly) and nothing was done. END K 10 svn:author V 7 asomers K 8 svn:date V 27 2013-12-13T16:55:39.163269Z K 7 svn:log V 238 MFC 257006 sbin/geom/class/part/geom_part.c Always validate the return of find_geomcfg(). It could be NULL, for example when the geom is withering. Approved by: ken (mentor) Sponsored by: Spectra Logic Corporation END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T17:00:25.894522Z K 7 svn:log V 60 MFC 256640: Allow 'make xdev' to work when DESTDIR is set. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T17:02:09.175326Z K 7 svn:log V 115 MFC r256647: Invalidate the entire L2 cache before enabling it. Say whether it has been enabled or disabled. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T17:03:32.067857Z K 7 svn:log V 92 MFC r256774: Clock divisors 0-3 correspond to dividing by 1-4, so add 1 before dividing. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T17:10:23.771386Z K 7 svn:log V 123 MFC r256804: Switch to using the standard uart console driver instead of the special driver for early boot debugging. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T17:23:47.669967Z K 7 svn:log V 287 MFC r257130: Add a helper routine to search for a compat string in a table that associates compat strings with arbitrary values that mean something to the driver. This is handy for drivers that support several variations of similar hardware and need to know which one matched. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T17:28:08.175929Z K 7 svn:log V 579 MFC r256806, r256919, r257167: Add a driver for the Freescale Fast Ethernet Controller found on various Freescale SoCs including the i.MX series. This also works for the newer SoCs with the ENET gigabit controller, but doesn't use any of the new hardware features other than enabling gigabit speed. Mask out non-address bits in the mac address register, for proper detection of an all-zeroes address. Also remove a misplaced return. Switch to using ofw_bus_search_compatible() table-driven compat lookup. Add compat strings for Freescale Vybrid family SoCs. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T17:29:31.312179Z K 7 svn:log V 75 MFC r256809: Add configuration for the Freescale i.MX53 Quick Start Board. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-12-13T18:21:27.169300Z K 7 svn:log V 86 MFC r256815: Calculate the baud rate divisor rather than using a hard-coded value. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-12-13T18:23:14.025286Z K 7 svn:log V 315 MFC r258115 (partial); gperf: bring a small update from Apple Developers tools 4.4 From [1] offset.patch Makes use the C offsetof() macro. We are not merging the size_type.patch as it raises some (apparently) bogus warnings and is not really used. [1] http://opensource.apple.com/source/gperf/gperf-9/patches/ END