ƒ²G268164 175 151 261 134 1176 447 161 251 251 218 363 289 322 129 114 315 111 114 146 541 94 167 138 312 269 126 148 130 455 158 166 197 224 147 365 175 185 143 167 223 196 226 506 173 385 173 368 384 571 286 224 202 162 207 1176 207 289 243 140 431 139 230 139 303 362 1176 111 217 312 576 506 116 700 438 182 216 932 4529 106 325 169 169 600 284 100 102 112 212 243 243 388 239 270 744 198 167 377 228 372 319 165 211 295 415 218 267 214 181 188 244 679 309 134 285 187 279 304 179 215 165 146 239 314 223 131 162 129 500 843 280 599 218 308 123 235 225 193 189 168 310 215 142 587 275 278 183 135 928 191 244 161 180 174 374 156 141 131 139 207 137 370 370 170 364 1471 371 1028 126 129 125 119 226 368 217 252 370 K 10 svn:author V 5 jceel K 8 svn:date V 27 2014-07-02T16:11:59.732509Z K 7 svn:log V 57 Return POLLNVAL when devfs_get_cdevpriv() returns error. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T16:17:48.884813Z K 7 svn:log V 165 Fix off-by-one introduced by the conversion to the driver API. Submitted by: Sreekanth Rupavatharam Obtained from: Juniper Networks, Inc. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2014-07-02T17:25:28.334221Z K 7 svn:log V 40 Remove unused stuff from uinput driver. END K 10 svn:author V 8 truckman K 8 svn:date V 27 2014-07-02T17:32:43.362298Z K 7 svn:log V 1077 MFC r266814 Initialize r_flags the same way in all cases using a sanitized copy of flags that has several bits cleared. The RF_WANTED and RF_FIRSTSHARE bits are invalid in this context, and we want to defer setting RF_ACTIVE in r_flags until later. This should make rman_get_flags() return the correct answer in all cases. Add a KASSERT() to catch callers which incorrectly pass the RF_WANTED or RF_FIRSTSHARE flags. Do a strict equality check on the share type bits of flags. In particular, do an equality check on RF_PREFETCHABLE. The previous code would allow one type of mismatch of RF_PREFETCHABLE but disallow the other type of mismatch. Also, ignore the the RF_ALIGNMENT_MASK bits since alignment validity should be handled by the amask check. This field contains an integer value, but previous code did a strange bitwise comparison on it. Leave the original value of flags unmolested as a minor debug aid. Change the start+amask overflow check to a KASSERT() since it is just meant to catch a highly unlikely programming error in the caller. Reviewed by: jhb END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2014-07-02T19:18:59.171163Z K 7 svn:log V 349 MFC r243080: Only pass ip[46].addr when _addrl contains a value Partial MFC r204759: Redirect stdin from /dev/null when starting a jail: At least in RELENG_7 this fixes some start problems for some programs from the ports. It is also more correct, as a jail shall not expect input (interactivity) from the jail-host. PR: 180916 END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-02T19:22:12.602080Z K 7 svn:log V 66 Clarify the setting of syscons driver flags Submitted by: wblock END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-02T19:25:25.974418Z K 7 svn:log V 155 MFC r267680: Fix a code typo that prevented mkdir from firing (unnoticed usually because another part of the code succeeded in making the same directory). END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-02T19:25:49.341963Z K 7 svn:log V 155 MFC r267680: Fix a code typo that prevented mkdir from firing (unnoticed usually because another part of the code succeeded in making the same directory). END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-02T19:31:49.475469Z K 7 svn:log V 122 vtfontcvt: correct width calculation (.hex files and commandline) MFC after: 1 week Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-07-02T19:46:42.326480Z K 7 svn:log V 267 Remove ofwfb(4) in order to fix the LINT build breakage caused by r268069. Both vt(4) and ofwfb(4) need a lot of love to be usable on sparc64 and even then the performance of ofwfb(4) would suck compared to hardware accelerated drivers like creator(4) and machfb(4). END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-02T19:53:51.983473Z K 7 svn:log V 193 MFS9 r268171 (MFC r267680): Fix a code typo that prevented mkdir from firing (unnoticed usually because another part of the code succeeded in making the same directory). Approved by: re (gjb) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-02T20:40:59.314201Z K 7 svn:log V 226 Fix vt(4) detection in kbdcontrol and vidcontrol As sc(4) and vt(4) coexist and are both enabled in GENERIC, the existence of a vt(4) sysctl is not sufficient to determine that vt(4) is in use. Reported by: Trond Endrestøl END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-02T21:08:25.765268Z K 7 svn:log V 33 Fixed build with DEVICE_POLLING. END K 10 svn:author V 3 sjg K 8 svn:date V 27 2014-07-02T21:24:54.470328Z K 7 svn:log V 22 Import bmake-20140620 END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-02T21:25:32.138661Z K 7 svn:log V 222 Fix bug in sync control in new "dev" mode of ZVOL (r265678). Don't check ZVOL_WCE flag, used in Solaris to control device "write cache". It is not applicable on FreeBSD and by default set to "disable". MFC after: 3 days END K 10 svn:author V 3 sjg K 8 svn:date V 27 2014-07-02T21:28:23.321789Z K 7 svn:log V 19 Tag bmake-20140620 END K 10 svn:author V 3 sjg K 8 svn:date V 27 2014-07-02T21:28:50.020331Z K 7 svn:log V 22 Extract URL correctly END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T21:53:34.654931Z K 7 svn:log V 51 MFC 257475: Respect the kern.smp.disabled tunable. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T22:04:12.291396Z K 7 svn:log V 445 Fix r264346 for ia64. We need to allocate memory for the function descriptors in order to relocate RTLD itself. To allocate memory, we need the pagesizes array initialized, but that happens after RTLD is relocated. This ordering is important for amd64, but it's opposite of what ia64 needs. Handle this conflict with the define called RTLD_INIT_PAGESIZES_EARLY. When defined, obtain the page sizes before relocating rtld, otherwise do it after. END K 10 svn:author V 5 hiren K 8 svn:date V 27 2014-07-02T22:04:14.183073Z K 7 svn:log V 1 END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T22:06:31.755367Z K 7 svn:log V 72 MFC r257477: Purge the translation cache of APs before we unleash them. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T22:09:06.482654Z K 7 svn:log V 43 Improve the KTR logs by naming the values. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T22:13:07.987409Z K 7 svn:log V 216 Drop KTR records when we're in the debugger so that the debugger isn't changing or overwriting the trace buffer. When KTR is enabled for things like traps or pmap functions, the amount of logging can be substantial. END K 10 svn:author V 6 wblock K 8 svn:date V 27 2014-07-02T22:16:01.137250Z K 7 svn:log V 173 Improve markup, change references to nonexistent vt_vga(4), remove some language redundancy, and move the examples so sections are in the standard order. MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T22:17:27.236960Z K 7 svn:log V 31 Tag the EOL revision for ia64. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T22:19:59.241706Z K 7 svn:log V 53 MFC r257484: Change PAL_PTCE_INFO related variables. END K 10 svn:author V 5 hiren K 8 svn:date V 27 2014-07-02T22:25:48.969861Z K 7 svn:log V 36 Fix a typo and improve readability. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T22:34:06.953113Z K 7 svn:log V 359 Remove ia64 from the list of known architectures and add an entry to UPDATING. This is the first step towards the removal of ia64 from head. A buildworld for ia64 will now yield: % make buildworld make[1]: "/usr/src/Makefile.inc1" line 151: Unknown target ia64:ia64. While here, trim the ia64-specific additions from ObsoleteFiles.inc Discussed at: BSDcan END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T23:05:57.217276Z K 7 svn:log V 63 MFC r259959 & r260009: Add prototypical support for minidumps. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-02T23:07:01.358130Z K 7 svn:log V 74 Fix sed(1) usage: the extension -i is not an optional. MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T23:12:56.328266Z K 7 svn:log V 101 MFC r262726: When reading physical memory, make sure to access it using the right memory attributes. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T23:23:18.338349Z K 7 svn:log V 128 MFC r263248 & r263257: In intr_event_handle() we already save and set td_intr_frame, so don't do it also in ia64_handle_intr(). END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2014-07-02T23:28:21.354790Z K 7 svn:log V 52 Remove some write only variables MFC after: 3 days END K 10 svn:author V 6 scottl K 8 svn:date V 27 2014-07-02T23:32:05.389256Z K 7 svn:log V 269 Merge r268071, 268072, 268088 Refactor some code in mps.c to reduce header pollution. Add accessor functions for manipulating the CAM CCB status field. Don't overload the CCB status field within the driver. Reviewed by: gibbs, slm Obtained from: Netflix, Inc. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T23:33:07.062806Z K 7 svn:log V 80 MFC r263253: Don't use the ITC as the faulting address for external interrupts. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T23:37:14.865814Z K 7 svn:log V 90 MFC r263254: Move the implementation of kdb_cpu_trap() from to machdep.c. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T23:47:43.183981Z K 7 svn:log V 48 MFC r263323: Fix and improve exception tracing. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-02T23:57:55.299428Z K 7 svn:log V 72 MFC r263380 & r268185: Add KTR events for the PMAP interface functions. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2014-07-03T00:23:14.558776Z K 7 svn:log V 127 Use correct flag for event index. Submitted by: luigi Obtained from: Vincenzo Maffione, Universita` di Pisa MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-03T00:31:13.875011Z K 7 svn:log V 103 More sed(1) usage fixing: the extension -i is not optional. Pointed out by: jmallet MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-03T04:26:53.097588Z K 7 svn:log V 133 Use separate memory type M_CTLIO for I/Os. CTL allocate large amount of RAM. This change give some more stats. MFC after: 2 weeks END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-07-03T05:22:13.972068Z K 7 svn:log V 413 Rework the BIO_DELETE code slightly. Always queue the BIO_DELETE requests on the trim_queue, even for the CFA ERASE. This allows us, in the future, to collapse adjacent requests. Since CFA ERASE is only for CF cards, and it is so restrictive in what it can do, the collapse code is not presently here. This also brings the ada driver more in line with the da driver's treatment of BIO_DELETEs. Reviewed by: mav@ END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-03T06:44:55.597435Z K 7 svn:log V 76 MFC r268078 and r268080: Fix for memory use after free() and mtx_destroy(). END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2014-07-03T06:52:26.560415Z K 7 svn:log V 287 Fix a bug in hwpmc(4) callchain retrieval, for both user and kernel. The array index for the callchain is getting double-incremented -- both in the loop and the storing. It should only be incremented in one location. Also, constrain the stack pointer range check. MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-03T08:07:37.948614Z K 7 svn:log V 76 MFC r268078 and r268080: Fix for memory use after free() and mtx_destroy(). END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-03T10:49:46.793930Z K 7 svn:log V 270 - Disable hardware checksumming until it is properly tested. - Don't discard frames if the dropped or error flag is set. - Don't remove the last 4-bytes of every packet. - Add extra range check for data position offset when receiving data. MFC after: 1 day PR: 191432 END K 10 svn:author V 6 daichi K 8 svn:date V 27 2014-07-03T10:59:42.829143Z K 7 svn:log V 288 MFC: r267852 Fixed an IIC timing issue between the glxiic master and a slave of peripheral devices. When transmitting (rx) from slave to master, sometimes nAKC delays. As a result, some slaves fails their transmission. Submitted by: Masanori OZAWA Reviewed by: brix END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-03T11:06:27.663024Z K 7 svn:log V 478 Micro-manage clang to get the expected inlining for cpu_search(). Mark cpu_search_lowest/cpu_search_highest/cpu_search_both as noinline, while cpu_search() gets always_inline. With the attributes set, cpu_search() is inlined in wrappers, and if()s with constant conditionals are optimized. On some tests on many-core machine, the hwpmc reported samples for cpu_search*() are reduced from 25% total to 9%. Submitted by: "Rang, Anton" MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-03T11:19:16.507549Z K 7 svn:log V 193 Note that most errors are possible for all syscalls from utimes(2) family. Minor wording corrections. Based on the suggestions by bde. Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-07-03T13:21:00.720980Z K 7 svn:log V 131 Revert mergeinfo to the root of releng/9.3/ introduced in r267841. Approved by: re (glebius) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-03T13:49:43.587929Z K 7 svn:log V 104 MFC r268078 and r268080: Fix for memory use after free() and mtx_destroy(). Approved by: re, glebius @ END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-03T13:51:10.424532Z K 7 svn:log V 67 Describe kern.vty sc/vt tunable in syscons(4) Reviewed by: wblock END K 10 svn:author V 3 ume K 8 svn:date V 27 2014-07-03T15:56:30.482715Z K 7 svn:log V 114 MFC r267912, r267915: - Exclude loopback address rather than loopback interface. - style(9) Spotted by: melifaro END K 10 svn:author V 8 truckman K 8 svn:date V 27 2014-07-03T16:00:57.275422Z K 7 svn:log V 1077 MFC r266814 Initialize r_flags the same way in all cases using a sanitized copy of flags that has several bits cleared. The RF_WANTED and RF_FIRSTSHARE bits are invalid in this context, and we want to defer setting RF_ACTIVE in r_flags until later. This should make rman_get_flags() return the correct answer in all cases. Add a KASSERT() to catch callers which incorrectly pass the RF_WANTED or RF_FIRSTSHARE flags. Do a strict equality check on the share type bits of flags. In particular, do an equality check on RF_PREFETCHABLE. The previous code would allow one type of mismatch of RF_PREFETCHABLE but disallow the other type of mismatch. Also, ignore the the RF_ALIGNMENT_MASK bits since alignment validity should be handled by the amask check. This field contains an integer value, but previous code did a strange bitwise comparison on it. Leave the original value of flags unmolested as a minor debug aid. Change the start+amask overflow check to a KASSERT() since it is just meant to catch a highly unlikely programming error in the caller. Reviewed by: jhb END K 10 svn:author V 3 ume K 8 svn:date V 27 2014-07-03T16:01:30.189038Z K 7 svn:log V 114 MFC r267912, r267915: - Exclude loopback address rather than loopback interface. - style(9) Spotted by: melifaro END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-03T16:13:44.125739Z K 7 svn:log V 191 MFC r267955 and r268209: - Add proper rangechecks in "axge_rx_frame()" function and fix receive loop header parsing. - Disable hardware checksumming until it is properly tested. PR: 191432 END K 10 svn:author V 3 ume K 8 svn:date V 27 2014-07-03T16:26:37.222440Z K 7 svn:log V 150 MFS r268218 (MFC r267912, r267915): - Exclude loopback address rather than loopback interface. - style(9) Spotted by: melifaro Approved by: re (gjb) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-03T16:29:21.212852Z K 7 svn:log V 43 MFC r266270: Remove some unused variables. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-03T16:34:01.194761Z K 7 svn:log V 333 MFC r266490, r266738, r267955, and r268209: - Improve performance by fixing incorrect Rx/Tx handling - Rename definition of AXGE_* to reflect reality - Add new USB IDs - Add proper rangechecks in "axge_rx_frame()" function and fix receive loop header parsing. - Disable hardware checksumming until it is properly tested. PR: 191432 END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-03T17:35:01.941047Z K 7 svn:log V 43 MFC r267909: Document EINVAL. PR: 191382 END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-03T17:36:59.643017Z K 7 svn:log V 137 Merge from OpenSolaris (20-Apr-2008): 6822482 DOF validation needs to handle loadable sections flagged as unloadable MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-03T17:37:51.217328Z K 7 svn:log V 43 MFC r267909: Document EINVAL. PR: 191382 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-03T17:42:26.819665Z K 7 svn:log V 205 MFC r268221 and r268222: - Remove some unused variables. - Add proper rangechecks in "axge_rx_frame()" function and fix receive loop header parsing. - Add new USB IDs. Approved by: re, gjb @ PR: 191432 END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-03T17:53:28.426611Z K 7 svn:log V 266 Display efi framebuffer dimensions on boot The EFI framebuffer produces corrupted output on certain systems. For now display the framebuffer parameters (address, dimensions, etc.) on boot to aid in tracking down these issues. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 8 truckman K 8 svn:date V 27 2014-07-03T17:57:12.760297Z K 7 svn:log V 1077 MFC r266814 Initialize r_flags the same way in all cases using a sanitized copy of flags that has several bits cleared. The RF_WANTED and RF_FIRSTSHARE bits are invalid in this context, and we want to defer setting RF_ACTIVE in r_flags until later. This should make rman_get_flags() return the correct answer in all cases. Add a KASSERT() to catch callers which incorrectly pass the RF_WANTED or RF_FIRSTSHARE flags. Do a strict equality check on the share type bits of flags. In particular, do an equality check on RF_PREFETCHABLE. The previous code would allow one type of mismatch of RF_PREFETCHABLE but disallow the other type of mismatch. Also, ignore the the RF_ALIGNMENT_MASK bits since alignment validity should be handled by the amask check. This field contains an integer value, but previous code did a strange bitwise comparison on it. Leave the original value of flags unmolested as a minor debug aid. Change the start+amask overflow check to a KASSERT() since it is just meant to catch a highly unlikely programming error in the caller. Reviewed by: jhb END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-03T18:24:28.290121Z K 7 svn:log V 16 Sync with head. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-03T19:07:37.618080Z K 7 svn:log V 124 Merge from OpenSolaris (22-Apr-2008): 6823388 DTrace ioctl handlers must validate all structure members MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-03T19:25:24.257712Z K 7 svn:log V 219 Merge from OpenSolaris (30-Jun-2009): 6851093 system drops to kmdb with anonymous dtrace probes + kmdb This has no effect on FreeBSD (code is ifdef'ed) but is useful as reference for future merges. MFC after: 1 week END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-07-03T19:37:25.581554Z K 7 svn:log V 483 The u-boot tarball needed for some boards, BEAGLEBONE for example, explicitly hard-code gcc(1) as the compiler. Partially revert r264703, which did a post-chroot install of gcc(1). This was initially removed because gcc(1) fails to build usr.bin/dtc/ causing the xdev target to fail. So this time, move the gcc(1) installation after xdev is built. This change is likely applicable to stable/10 arm build failures, as well. MFC after: 3 days Sponsored by: The FreeBSD Foundation END K 10 svn:author V 4 loos K 8 svn:date V 27 2014-07-03T19:50:50.806363Z K 7 svn:log V 412 Initialize the switch vlan table at attachment. Update some comments on code, specifying the correct vlans used on switch setup. Advertise the proper switch operation mode (the rtl8366rb only support dot1q vlans). This fixes the breakage that i introduced on r249752 and make the rtl8366rb switch works again with etherswitchcfg(8). Tested on TP-Link 1043ND. Tested by: me, Harm Weites (harm at weites.com) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-03T20:10:30.062077Z K 7 svn:log V 21 Merge ^/head@268187. END K 10 svn:author V 4 loos K 8 svn:date V 27 2014-07-03T20:16:48.210716Z K 7 svn:log V 606 Properly advertise that if_arge can handle long frames (if_arge is set to handle packets up to 1536 bytes) This fixes the need to frag that could happen when using vlans on top of if_arge (which is a common case for the use the switch ports as individual NICs). Previously to this commit any vlan setup with if_arge as parent would have the MTU of the parent interface reduced by the size of dot1q header (4 bytes). Tested on TP-Link 1043ND (where the WAN port is just a switch port setup to tag packets in a different VLAN than the LAN ports). Reported and tested by: Harm Weites (harm at weites.com) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-03T20:31:43.479949Z K 7 svn:log V 342 Add VHD support to mkimg(1). VHD is used by Xen and Microsoft's Hyper-V among others. Add an undocumented option for unit testing (-y). When given, the image will have UUIDs and timestamps synthesized in a way that gives identical results across runs. As such, UUIDs stop being unique, globally or otherwise. VHD support requested by: gjb@ END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-03T20:35:33.714479Z K 7 svn:log V 87 Save ^/projects/altix2@268234 as ^/user/marcel/altix-eol and remove ^/projects/altix2. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-03T21:48:19.844310Z K 7 svn:log V 119 Add an option, -p, which makes gstat(8) to only display physical providers (those with rank of 1). MFC after: 2 weeks END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-07-03T22:25:59.129484Z K 7 svn:log V 834 Fully switch to named tables: Kernel changes: * Introduce ipfw_obj_tentry table entry structure to force u64 alignment. * Support "update-on-existing-key" "add" bahavior (TEI_FLAGS_UPDATED). * Use "subtype" field to distingush between IPv4 and IPv6 table records instead of previous hack. * Add value type (vtype) field for kernel tables. Current types are number,ip and dscp * Fix sets mask retrieval for old binaries * Fix crash while using interface tables Userland changes: * Switch ipfw_table_handler() to use named-only tables. * Add "table NAME create [type {cidr|iface|u32} [valtype {number|ip|dscp}] ..." * Switch ipfw_table_handler to match_token()-based parser. * Switch ipfw_sets_handler to use new ipfw_get_config() for mask retrieval. * Allow ipfw set X table ... syntax to permit using per-set table namespaces. END K 10 svn:author V 3 ken K 8 svn:date V 27 2014-07-03T23:09:44.982991Z K 7 svn:log V 4435 Add persistent reservation support to camcontrol(8). camcontrol(8) now supports a new 'persist' subcommand that allows users to issue SCSI PERSISTENT RESERVE IN / OUT commands. sbin/camcontrol/Makefile: Add persist.c. sbin/camcontrol/persist.c: New persistent reservation support for camcontrol(8). We have support for all known operation modes for PERSISTENT RESERVE IN and PERSISTENT RESERVE OUT. exceptions noted above. sbin/camcontrol/camcontrol.8: Document the new 'persist' subcommand. In the section on the Transport ID (-I) option, explain what Transport IDs for each protocol should look like. At some point some of this information could probably get moved off in a separate man page, either on Transport IDs alone or a man page documenting the Transport ID parsing code. Add a number of examples of persistent reservation commands. Persistent Reservations are complex enough that the average user probably won't be able to get the commands exactly right by just reading the man page. These examples show a few basic and advanced examples of how to use persistent reservations. sbin/camcontrol/camcontrol.h: Move the definition for camcontrol_optret here, so we can use it for the persistent reservation code. Add a definition for the new scsipersist() function. sbin/camcontrol/camcontrol.c: Add 'persist' to the list of subcommands. Document 'persist' in the help text. sys/cam/scsi/scsi_all.c: Add the scsi_persistent_reserve_in() and scsi_persistent_reserve_out() CCB building functions. Add a new function, scsi_transportid_sbuf(). This takes a SCSI Transport ID (documented in SPC-4), and prints it to an sbuf(9). There are some transports (like ATA, USB, and SSA) for which there is no transport defined. We need to come up with a reasonable thing to do if we're presented with a Transport ID that claims to be for one of those protocols. Add new routines scsi_get_nv() and scsi_nv_to_str(). These functions do a table lookup to go between a string and an integer. There are lots of table lookups needed in the persistent reservation code in camcontrol(8). Add a new function, scsi_parse_transportid(), along with leaf node functions to parse: FC, 1394 and SAS (scsi_parse_transportid_64bit()) iSCSI (scsi_parse_transportid_iscsi()) SPI (scsi_parse_transportid_spi()) RDMA (scsi_parse_transportid_rdma()) PCIe (scsi_parse_transportid_sop()) Transport IDs. Given a string with the general form proto,id these functions create a SCSI Transport ID structure. sys/cam/scsi/scsi_all.h: Update the various persistent reservation data structures to SPC4r36l, but also rename some fields that were previously obsolete with the proper names from older SCSI specs. This allows using older, obsolete persistent reservation types when desired. Add function prototypes for the new persistent reservation CCB building functions. Add a data strucure for the READ FULL STATUS service action of the PERSISTENT RESERVE IN command. Add Transport ID structures for all protocols described in SPC-4. Add a new series of SCSI_PROTO_XXX definitions, and redefine other defines in terms of these new definitions. Add a prototype for scsi_transportid_sbuf(). Change a couple of "obsolete" persistent reservation data structure fields into something more meaningful, based on what the field was called when it was defined in the spec. (e.g. SPC, SPC-2, etc.) Create a new define, SPRI_MAX_LEN, for the maximum allocation length allowed for the PERSISTENT RESERVE IN command. Add data structures and enumerations for the new name/value translation functions. Add data structures for SCSI over PCIe Routing IDs. Bring the PERSISTENT RESERVE OUT Register and Move parameter list structure (struct scsi_per_res_out_parms) up to date with SPC-4. Add a data structure for the transport IDs that can optionally be appended to the basic PERSISTENT RESERVE OUT parameter list. Move SCSI protocol macro definitions out of the VPD page 0x83 definition and combine them with the more up to date protocol definitions higher in the file. Add function prototypes for scsi_nv_to_str(), scsi_get_nv(), scsi_parse_transportid_64bit(), scsi_parse_transportid_spi(), scsi_parse_transportid_rdma(), scsi_parse_transportid_iscsi(), scsi_parse_transportid_sop(), and scsi_parse_transportid(). Sponsored by: Spectra Logic Corporation MFC after: 1 week END K 10 svn:author V 5 hiren K 8 svn:date V 27 2014-07-03T23:12:43.258021Z K 7 svn:log V 12 Fix a typo. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-07-04T04:47:29.300372Z K 7 svn:log V 229 look: implement long options gentoo has "util-linux 2.24.1" with long options. Other distributions have similar. usage() is intentionally unchanged to keep it short and sweet Reviewed by: jmg Discussed with: adrian, jilles END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-04T06:03:54.391143Z K 7 svn:log V 72 MFC r267960: Don't hide zero-length strings when doing sysctl listings. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-04T06:05:39.406822Z K 7 svn:log V 72 MFC r267960: Don't hide zero-length strings when doing sysctl listings. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-07-04T07:02:11.145256Z K 7 svn:log V 502 * Issue warning while requesting ruleset with new tables via legacy binary. Convert each unresolved table as table 65535 (which cannot be used normally). * Perform s/^ipfw_// for add_table_entry, del_table_entry and flush_table since these are internal functions exported to keep legacy interface. * Remove macro TABLE_SET. Operations with tables can be done in any set, the only thing net.inet.ip.fw.tables_sets affects is the set in which tables are looked up while binding them to the rule. END K 10 svn:author V 2 mr K 8 svn:date V 27 2014-07-04T09:29:43.528035Z K 7 svn:log V 192 Adopt to current and other changes: use dedicated kernel files with some local settings use mkimg for ISO building put images into separate directory and rename them for better consistency END K 10 svn:author V 3 des K 8 svn:date V 27 2014-07-04T09:32:22.485827Z K 7 svn:log V 9 RIP ia64 END K 10 svn:author V 3 des K 8 svn:date V 27 2014-07-04T09:32:36.675574Z K 7 svn:log V 10 RIP fmake END K 10 svn:author V 3 des K 8 svn:date V 27 2014-07-04T09:34:24.981814Z K 7 svn:log V 20 Forgot the Makefile END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-07-04T13:57:58.789880Z K 7 svn:log V 116 MFC: r268095 Actually pro AMD chipsets, making r244146 work. Sponsored by: Bally Wulff Games & Entertainment GmbH END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-07-04T13:59:48.179616Z K 7 svn:log V 147 MFC: r268095 Actually pro AMD chipsets, making r244146 (MFCed to stable/9 in r245797) work. Sponsored by: Bally Wulff Games & Entertainment GmbH END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-07-04T14:00:29.815999Z K 7 svn:log V 147 MFC: r268095 Actually pro AMD chipsets, making r244146 (MFCed to stable/8 in r245801) work. Sponsored by: Bally Wulff Games & Entertainment GmbH END K 10 svn:author V 3 jmg K 8 svn:date V 27 2014-07-04T14:32:15.700092Z K 7 svn:log V 295 BREAK_TO_DEBUGGER is not just serial console anymore, it controls all console's ability to enter the debugger.... rwatson forgot to document this when he changed it back in 2011... There is more docs to write about this, but at least fix this for now... Reviewed by: emaste MFC after: 1 week END K 10 svn:author V 3 jmg K 8 svn:date V 27 2014-07-04T14:49:40.008102Z K 7 svn:log V 146 add a hit that you can enable this by default if you want... necessary if you want the keyboard break to work early in boot.. MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-04T15:09:56.259674Z K 7 svn:log V 177 MFC r267051: - Add support for SG_GET_SG_TABLESIZE IOCTL to report that we don't support scatter/gather lists. - Return error for still unsupported SG 3.x API read/write calls. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-07-04T15:55:32.369692Z K 7 svn:log V 643 After EFI support was added to the installer, it needed to allow boot partitions of types other than "freebsd-boot" (in particular, "efi"). This allows the removal of some nasty hacks for supporting PowerPC systems, in particular aliasing freebsd-boot to apple-boot on APM and an IBM-specific code on MBR. This changes the installer to use the correct names, which also breaks a degeneracy in the meaning of "freebsd-boot" that allows the addition of support for some newer IBM systems that can boot from GPT in addition to MBR. Since I have no idea how to detect which those systems are, leave the default on IBM PPC systems as MBR for now. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-04T16:06:56.817746Z K 7 svn:log V 105 MFC r267547, r267551 (by trasz): Add LUN-associated name to VPD, to make Hyper-V Failover Cluster happy. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-04T16:07:57.281304Z K 7 svn:log V 75 MFC r267574 (by trasz): Make cs_terminating a bool; no functional changes. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-04T16:09:09.474926Z K 7 svn:log V 284 MFC r267610 (by trasz): Rework session termination in iSCSI target to actually wait for any outstanding commands to be properly aborted by CTL. Without it, in some cases (such as files backing the LUNs stored on failing disk drives), terminating a busy session would result in panic. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-04T16:10:14.517966Z K 7 svn:log V 135 MFC r267637: Add iSCSI Target Name ID descriptor to VPD 83h. It shall/should be there according to SPC-4, and istgt also provides it. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-04T16:11:30.358994Z K 7 svn:log V 279 MFC r267641: Add some more CTL_FLAG_ABORT check points. This should allow to abort commands doing mostly disk I/O, such as VERIFY or WRITE SAME. Before this change CTL_FLAG_ABORT was only checked around data moves, which for these commands may not happen for a very long time. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-04T16:17:15.708301Z K 7 svn:log V 226 MFC r267648: serial_num and device_id fields are not necessarily null-terminated. Before this it was impossible to use all 16 bytes of serial number, and client always got serial number NULL-terminated, that is not required. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-04T18:26:32.033498Z K 7 svn:log V 68 Undo MFC of r267960: This patch cannot be ported as-is to 9-stable. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-04T18:47:25.258027Z K 7 svn:log V 115 Document the -y option as a unit test option. Add missing -v (and -y) to the usage message. Requested by: eadler@ END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-04T19:19:03.408480Z K 7 svn:log V 202 Remove targ_enable()/targ_disable() frontend methods. Those methods were never implemented, and I believe that their concept is wrong, since single frontend (SCSI port) can not handle several targets. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-04T19:27:06.875697Z K 7 svn:log V 322 Separate concepts of frontend and port. Before iSCSI implementation CTL had no knowledge about frontend drivers, it had only frontends, which really were ports (alike to LUNs, if comparing to backends). But iSCSI added there ioctl() method, which does not belong to frontend as a port, but belongs to a frontend driver. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-07-04T21:04:19.371033Z K 7 svn:log V 125 Switch releng/9.3 to -RC3 as part of the 9.3-RELEASE cycle. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-04T21:06:48.717346Z K 7 svn:log V 174 getopt(3): clarify GNU instead of NetBSD. The manpage and the code for r267745 came from NetBSD but the option is inspired on GNU. Reported by: Ben Kaduk MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-07-04T21:21:05.993127Z K 7 svn:log V 118 units(1): add long options Things brings additional compatibility with units 2.10 Discussed with: wblock (man page) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-07-04T21:34:48.881815Z K 7 svn:log V 86 units(1): Fix man page Igor walks one way. I walked the other. Reported by: wblock END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-07-04T22:19:21.566954Z K 7 svn:log V 93 units(1): Add 'help' flag - Add support for --help for compatibility - Make usage() static END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-04T22:39:39.425279Z K 7 svn:log V 151 minor perf enhancement for UTF-8 Reduce some duplicate code. Reference: https://www.illumos.org/issues/628 Obtained from: Illumos MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2014-07-04T22:47:07.193911Z K 7 svn:log V 581 The new NFSv3 server did not generate directory postop attributes for the reply to ReaddirPlus when the server failed within the loop that calls VFS_VGET(). This failure is most likely an error return from VFS_VGET() caused by a bogus d_fileno that was truncated to 32bits. This patch fixes the server so that it will return directory postop attributes for the failure. It does not fix the underlying issue caused by d_fileno being uint32_t when a file system like ZFS generates a fileno that is greater than 32bits. Reported by: jpaetzel Reviewed by: jpaetzel MFC after: 1 month END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T01:14:14.211291Z K 7 svn:log V 216 MFC r268178: Fix bug in sync control in new "dev" mode of ZVOL (r265678). Don't check ZVOL_WCE flag, used in Solaris to control device "write cache". It is not applicable on FreeBSD and by default set to "disable". END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T01:24:06.752182Z K 7 svn:log V 42 Use proper links field for ports linking. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2014-07-05T02:38:53.867031Z K 7 svn:log V 189 Extend capabilities to 64-bits in preparation for some API changes. The v1.0 virtio spec supports an extended size for guest/host caps, but in practice 64-bits should last for a long time. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-07-05T03:17:57.622651Z K 7 svn:log V 92 units(1): Add 'terse' support terse output is used when calling units from another script. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-07-05T03:25:26.800958Z K 7 svn:log V 183 units: Support start of line comments with '#' Modern GNU units(1) supports comments anywhere with '#' but take the easy route for now and at least support start of line # comments. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-07-05T03:27:31.937783Z K 7 svn:log V 208 units(1): Convert units.lib to use '#' instead of '/'. This allows us to run GNU units against our data files and compare the output. In addition, current units(1) does not support '/' as a comment at all. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T03:34:52.321734Z K 7 svn:log V 87 Make options KPI more generic to allow it to be used for ports too, not only for LUNs. END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2014-07-05T03:48:22.123932Z K 7 svn:log V 119 MFC r268012, r268196: - Remove some write only variables - Give each interrupt a descriptive name when using MSIX END K 10 svn:author V 6 eadler K 8 svn:date V 27 2014-07-05T03:49:20.648198Z K 7 svn:log V 70 units(1): Clean up Remove unused constant. Add 'static' where able. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T04:10:24.818916Z K 7 svn:log V 54 Improve readability of XML generated by CTL_LUN_LIST. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T05:44:26.075589Z K 7 svn:log V 146 Introduce new IOCTL CTL_PORT_LIST reporting in more flexible XML format. Leave old CTL_GET_PORT_LIST in place so far. Garbage-collect it later. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-05T06:12:48.964374Z K 7 svn:log V 216 When getting the initial value of numeric tunables use the getenv_xxx() functions instead of strtoq(), because the getenv_xxx() functions include wrappers for various postfixes like G/M/K, which strtoq() doesn't do. END K 10 svn:author V 2 cy K 8 svn:date V 27 2014-07-05T07:15:19.536785Z K 7 svn:log V 131 Fix compile-time errors when NO_WERROR and WITHOUT_INET6_SUPPORT (NO_INET6) are specified. Approved by: glebius MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T13:50:05.467474Z K 7 svn:log V 39 Implement and use ctl_frontend_find(). END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T14:32:42.800613Z K 7 svn:log V 70 Improve CTL_BEARG_* flags support, including optional values copyout. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T15:32:25.566607Z K 7 svn:log V 37 Fix minor copy-paste bug in r268284. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-05T15:36:17.240265Z K 7 svn:log V 407 Merge from OpenSolaris (24-Jul-2010): 6679140 asymmetric alloc/dealloc activity can induce dynamic variable drops 6679193 dtrace_dynvar walker produces flood of dtrace_dynhash_sink This finishes a set of merges from the older OpenSolaris releases. Still the FreeBSD port has many differences that are difficult to account for but that seems normal given that the kernels are different. MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T18:15:00.595851Z K 7 svn:log V 750 Create separate CTL port for every iSCSI target (and maybe portal group). Having single port for all iSCSI connections makes problematic implementing some more advanced SCSI functionality in CTL, that require proper ports enumeration and identification. This change extends CTL iSCSI API, making ctld daemon to control list of iSCSI ports in CTL. When new target is defined in config fine, ctld will create respective port in CTL. When target is removed -- port will be also removed after all active commands through that port properly aborted. This change require ctld to be rebuilt to match the kernel. As a minor side effect, this allows to have iSCSI targets without LUNs. While that may look odd and not very useful, that is not incorrect. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-07-05T19:02:53.323521Z K 7 svn:log V 185 Dominion Day became Canada Day in 1982, update the holiday calendar. PR: 191533 Submitted by: db Obtained from: http://www.pch.gc.ca/eng/1359137387574/1359137429809 MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T19:30:20.939980Z K 7 svn:log V 506 Burry devid port method, which was a gross hack. Instead make ports provide wanted port and target IDs, and LUNs provide wanted LUN IDs. After that core Device ID VPD code only had to link all of them together and add relative port and port group numbers. LUN ID for iSCSI LUNs no longer created by CTL, but by ctld, and passed to CTL as "scsiname" LUN option. This makes LUNs to report the same set of IDs, independently from the port through which it is accessed, as required by SCSI specifications. END K 10 svn:author V 4 loos K 8 svn:date V 27 2014-07-05T19:31:22.462573Z K 7 svn:log V 124 Allow the PVID setting on CPU port. Return our static list of supported media for the CPU port. Tested on TP-Link 1043ND. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-07-05T19:37:38.333299Z K 7 svn:log V 213 Fix equation and limerick to be correct. NetBSD fixed this 14 years ago (src/games/fortune/datfiles/fortunes2 1.7). PR: 188714 Submitted by: ksmakoto dd.iij4u.or.jp Reviewed by: Wolfram Alpha MFC after: 3 days END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-05T19:43:02.991223Z K 7 svn:log V 28 Add auto-props for D files. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-05T19:49:31.843482Z K 7 svn:log V 139 Add the DTrace probe definitions for plockstat support. This will be connected to the system later. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-07-05T19:53:21.868904Z K 7 svn:log V 130 Correct format string to fix build of uhsoctl when DEBUG is defined PR: 185007 Submitted by: saper saper.info MFC after: 3 days END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-07-05T20:08:25.792929Z K 7 svn:log V 99 Use %zu not %zd for printing size_t. PR: 185007 Submitted by: saper saper.info MFC after: 3 days END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-05T20:08:35.251997Z K 7 svn:log V 94 bsd.dep.mk: add support for generating DTrace header files from .d files. MFC after: 3 weeks END K 10 svn:author V 4 loos K 8 svn:date V 27 2014-07-05T20:16:02.318644Z K 7 svn:log V 75 Check the number of returned entries before doing any access to ifm_ulist. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-05T21:18:33.294722Z K 7 svn:log V 217 Pass through iSCSI session ISID from LOGIN request to the CTL frontend. ISID is an important part of initiator transport ID for iSCSI. It is not used now, but should be to properly implement persistent reservation. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-07-05T21:34:37.311774Z K 7 svn:log V 120 Add support to asmc(4) for Macmini 3,1. PR: 190195 Submitted by: fbsdbugs2 sentry.org MFC after: 1 week Relnotes: yes END K 10 svn:author V 6 jilles K 8 svn:date V 27 2014-07-05T21:50:59.350338Z K 7 svn:log V 47 sh: Fix overflow checking on 'ulimit' operand. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-07-06T03:31:01.104795Z K 7 svn:log V 494 MFC r268232: The u-boot tarball needed for some boards, BEAGLEBONE for example, explicitly hard-code gcc(1) as the compiler. Partially revert r264703, which did a post-chroot install of gcc(1). This was initially removed because gcc(1) fails to build usr.bin/dtc/ causing the xdev target to fail. So this time, move the gcc(1) installation after xdev is built. This change is likely applicable to stable/10 arm build failures, as well. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-06T06:12:29.926322Z K 7 svn:log V 182 Relax some bit checks for INQUIRY command. FreeBSD still tries to put LUN number in second byte until it get device protocol version, even that it was obsoleted about 20 years ago. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-06T06:21:34.074032Z K 7 svn:log V 185 Move lun_map() method from command nexus to port. Previous implementation made impossible to do some things, such as calling it for ports other then one through which command arrived. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-06T07:02:36.556936Z K 7 svn:log V 91 Make REPORT TARGET PORT GROUPS command report realistic data instead of hardcoded garbage. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-06T07:34:18.141000Z K 7 svn:log V 43 Add support for SCSI Ports (88h) VPD page. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T10:24:06.164811Z K 7 svn:log V 832 Align the stack in _rtld_bind_start. Normally this is called with the correct stack alignment, however when we have a leaf function that uses thread local storage it calls __aeabi_read_tp to get the thread pointer. Neither GCC or clang see this as a function call so will align the stack to a 4-byte boundary. This may be a problem as _rtld_bind expects to be on an 8-byte boundary. The solution is to store a copy of the stack pointer and force the alignment before calling _rtld_bind. This fixes a problem with armeb where applications would crash in odd ways. It should also remove the need for a local patch to clang to force the stack alignment to an 8-byte boundary, even for leaf functions. Further testing will be needed before reverting this local change to clang as we may rely on it in other places. Reviewed by: jmg@ END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T13:48:15.956159Z K 7 svn:log V 96 Move to exception.S. This contains the vector to handle the exceptions we can configure at EL1. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T13:49:53.401327Z K 7 svn:log V 148 Load the exception vector on boot. We can now use brk to signal mi_startup returned as it should never happen. While here clean the stye a little. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T14:04:48.887165Z K 7 svn:log V 66 The brk instructions has been tested to work, remove the comment. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-06T14:14:07.605257Z K 7 svn:log V 83 Fix some compile warnings. MFC after: 4 weeks Sponsored by: Mellanox Technologies END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-06T14:20:47.007109Z K 7 svn:log V 77 Fix compile warning. MFC after: 4 weeks Sponsored by: Mellanox Technologies END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-06T14:22:13.117178Z K 7 svn:log V 276 Fix OFED startup order: All SYSINIT()'s and modules should be loaded prior to starting "/sbin/init" which will run all the "/etc/rc.d/xxx" scripts. Else there can be a race configuring the interfaces via "/etc/rc.conf". MFC after: 4 weeks Sponsored by: Mellanox Technologies END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T15:46:44.490356Z K 7 svn:log V 61 Add the needed autoconf functions based on the mips version. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T16:04:28.932039Z K 7 svn:log V 46 Add useful defines to the arm64 machine/asm.h END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T16:05:32.349381Z K 7 svn:log V 36 Switch to an asm version of swtch.S END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-07-06T16:19:55.688839Z K 7 svn:log V 39 Add a new CPU id for a POWER8 variant. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-07-06T16:20:37.671833Z K 7 svn:log V 106 In case we ever support little-endian PowerPC (probably userland only), avoid hardcoding endianness here. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T16:42:04.002671Z K 7 svn:log V 42 Move cpu_throw and cpu_switch to swtch.S. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-06T17:18:48.513291Z K 7 svn:log V 277 MFC r268125: Small merges from OpenSolaris: These have no effect on FreeBSD, in fact they are ifdef'ed, but make easier future merges: 6699767 panic in spec_open() 6718877 crgetzoneid() use can cause problems when forking processes with USDT providers in a non global zone END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-06T17:23:25.509996Z K 7 svn:log V 277 MFC r268125: Small merges from OpenSolaris: These have no effect on FreeBSD, in fact they are ifdef'ed, but make easier future merges: 6699767 panic in spec_open() 6718877 crgetzoneid() use can cause problems when forking processes with USDT providers in a non global zone END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-06T17:29:19.793013Z K 7 svn:log V 78 MFC r268193, r268203: Fix sed(1) usage: the -i extension is not an optional. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-06T17:37:49.216598Z K 7 svn:log V 271 Make iSCSI initiator keep Initiator Session ID (ISID) across reconnects. Previously ISID was changed every time, that made impossible correct persistent reservation, because reconnected session was identified as completely new one. Reviewed by: trasz MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2014-07-06T17:42:38.499139Z K 7 svn:log V 1377 Introduce pmap_unwire(). It will replace pmap_change_wiring(). There are several reasons for this change: pmap_change_wiring() has never (in my memory) been used to set the wired attribute on a virtual page. We have always used pmap_enter() to do that. Moreover, it is not really safe to use pmap_change_wiring() to set the wired attribute on a virtual page. The description of pmap_change_wiring() says that it assumes the existence of a mapping in the pmap. However, non-wired mappings may be reclaimed by the pmap at any time. (See pmap_collect().) Many implementations of pmap_change_wiring() will crash if the mapping does not exist. pmap_unwire() accepts a range of virtual addresses, whereas pmap_change_wiring() acts upon a single virtual page. Since we are typically unwiring a range of virtual addresses, pmap_unwire() will be more efficient. Moreover, pmap_unwire() allows us to unwire superpage mappings. Previously, we were forced to demote the superpage mapping, because pmap_change_wiring() only allowed us to express the unwiring of a single base page mapping at a time. This added to the overhead of unwiring for large ranges of addresses, including the implicit unwiring that occurs at process termination. Implementations for arm and powerpc will follow. Discussed with: jeff, marcel Reviewed by: kib Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-06T17:57:59.609812Z K 7 svn:log V 278 Close race in r268291 between port destruction, delayed by sessions teardown, and new port creation during `service ctld restart`. Close it by returning iSCSI port internal state, that allows to identify dying ports, which should not be counted as existing, from really alive. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-07-06T18:16:04.739022Z K 7 svn:log V 930 * Add "lookup" table functionality to permit userland entry lookups. * Bump table dump format preserving old ABI. Kernel size: * Add IP_FW_TABLE_XFIND to handle "lookup" request from userland. * Add ta_find_tentry() algorithm callbacks/handlers to support lookups. * Fully switch to ipfw_obj_tentry for various table dumps: algorithms are now required to support the latest (ipfw_obj_tentry) entry dump format, the rest is handled by generic dump code. IP_FW_TABLE_XLIST opcode version bumped (0 -> 1). * Eliminate legacy ta_dump_entry algo handler: dump_table_entry() converts data from current to legacy format. Userland side: * Add "lookup" table parameter. * Change the way table type is guessed: call table_get_info() first, and check value for IPv4/IPv6 type IFF table does not exist. * Fix table_get_list(): do more tries if supplied buffer is not enough. * Sparate table_show_entry() from table_show_list(). END K 10 svn:author V 8 andreast K 8 svn:date V 27 2014-07-06T20:09:23.368039Z K 7 svn:log V 29 Make gcc happy, init idlen2. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T21:55:08.125823Z K 7 svn:log V 34 Add a minimal copy of cpu_startup END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T22:00:04.920410Z K 7 svn:log V 30 Set the size on the END macro END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T22:08:06.940021Z K 7 svn:log V 24 Add more useful offsets END K 10 svn:author V 6 andrew K 8 svn:date V 27 2014-07-06T22:09:50.144670Z K 7 svn:log V 130 Implement cpu_switch. It's missing things like cache flushing and SMP support, however neigher of these are needed at this point. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-06T22:47:18.425307Z K 7 svn:log V 275 MFC r265206: Ignore the error from pipespace_new when creating a pipe. It can fail if pipe map is exhausted (as a result of too many pipes created), but it is not fatal and could be provoked by unprivileged users. The only consequence is worse performance with given pipe. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-06T22:49:07.182378Z K 7 svn:log V 124 MFC r265247: Request a non-exiting process in sysctl_kern_proc_{o,}filedesc This fixes a race with exit1 freeing p_textvp. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-06T22:51:53.646964Z K 7 svn:log V 159 MFC r267708: do_dup: plug redundant adjustment of fd_lastfile By that time it was already set by fdalloc, or was there in the first place if fd is replaced. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-06T22:54:17.370077Z K 7 svn:log V 277 MFC r267710: fd: replace fd_nfiles with fd_lastfile where appropriate fd_lastfile is guaranteed to be the biggest open fd, so when the intent is to iterate over active fds or lookup one, there is no point in looking beyond that limit. Few places are left unpatched for now. END