ĵH230000 150 2706 124 647 153 142 498 115 871 174 163 165 229 196 196 675 664 153 252 254 652 652 821 123 290 280 316 578 205 121 121 121 111 209 165 201 251 108 397 244 244 262 351 157 119 162 110 265 820 820 375 264 134 994 1879 295 110 126 175 127 351 307 115 274 229 412 401 401 289 289 211 211 215 373 560 527 527 905 905 547 829 829 175 175 345 345 928 851 858 190 147 219 225 127 309 268 333 113 781 141 790 436 425 226 336 273 216 261 220 157 228 150 220 220 280 195 184 161 191 160 442 1191 164 166 692 176 267 127 351 152 501 1669 319 115 152 115 152 131 118 132 238 299 238 212 244 285 631 381 711 1173 149 K 10 svn:author V 3 ken K 8 svn:date V 27 2012-01-12T00:41:48.086472Z K 7 svn:log V 2612 Fix a race condition in CAM peripheral free handling, locking in the CAM XPT bus traversal code, and a number of other periph level issues. cam_periph.h, cam_periph.c: Modify cam_periph_acquire() to test the CAM_PERIPH_INVALID flag prior to allowing a reference count to be gained on a peripheral. Callers of this function will receive CAM_REQ_CMP_ERR status in the situation of attempting to reference an invalidated periph. This guarantees that a peripheral scheduled for a deferred free will not be accessed during its wait for destruction. Panic during attempts to drop a reference count on a peripheral that already has a zero reference count. In cam_periph_list(), use a local sbuf with SBUF_FIXEDLEN set so that mallocs do not occur while the xpt topology lock is held, regardless of the allocation policy of the passed in sbuf. Add a new routine, cam_periph_release_locked_buses(), that can be called when the caller already holds the CAM topology lock. Add some extra debugging for duplicate peripheral allocations in cam_periph_alloc(). Treat CAM_DEV_NOT_THERE much the same as a selection timeout (AC_LOST_DEVICE is emitted), but forgo retries. cam_xpt.c: Revamp the way the EDT traversal code does locking and reference counting. This was broken, since it assumed that the EDT would not change during traversal, but that assumption is no longer valid. So, to prevent devices from going away while we traverse the EDT, make sure we properly lock everything and hold references on devices that we are using. The two peripheral driver traversal routines should be examined. xptpdperiphtraverse() holds the topology lock for the entire time it runs. xptperiphtraverse() is now locked properly, but only holds the topology lock while it is traversing the list, and not while the traversal function is running. The bus locking code in xptbustraverse() should also be revisited at a later time, since it is complex and should probably be simplified. scsi_da.c: Pay attention to the return value from cam_periph_acquire(). Return 0 always from daclose() even if the disk is now gone. Add some rudimentary error injection support. scsi_sg.c: Fix reference counting in the sg(4) driver. The sg driver was calling cam_periph_release() on close, but never called cam_periph_acquire() (which increments the reference count) on open. The periph code correctly complained that the sg(4) driver was trying to decrement the refcount when it was already 0. Sponsored by: Spectra Logic MFC after: 2 weeks END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-01-12T03:52:53.416728Z K 7 svn:log V 32 Use upper case in an anchor id. END K 10 svn:author V 6 wblock K 8 svn:date V 27 2012-01-12T04:37:19.866636Z K 7 svn:log V 551 MFC r227774, r227777, r227800, r229838, r229847: MFC r227774: Add a section that explicitly describes partitioning schemes. Modify existing sections to refer to the new one. Rearrange partitioning scheme list so MBR and EBR types are together. Also add several corrections for grammar, clarity, and consistency. MFC r227777: Fix date. MFC r227800: Correct and expand BSD partitioning scheme description. Correct GUID to GPT in RECOVERING section. MFC r229838: Clarity improvements. MFC r229847: Whitespace-only fix. Approved by: gjb (mentor) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-01-12T04:48:44.526868Z K 7 svn:log V 61 Various grammar/wording fixes. Submitted by: Benjamin Kaduk END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-01-12T05:47:28.695513Z K 7 svn:log V 50 Fix a typo. (s,&os;&arch.amd64,&os;/&arch.amd64,) END K 10 svn:author V 7 wollman K 8 svn:date V 27 2012-01-12T05:50:32.695498Z K 7 svn:log V 401 Use a reasonable-sized buffer when formatting error messages about installing zoneinfo. While we're in the vicinity, add some missing error checking to eliminate an unhelpful error message when unlink() fails. /me is embarrassed by the quality of his 16-year-old code. The whole thing is awful and could stand a complete rewrite. PR: 164038 Submitted by: Devin Teske (but implemented differently) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-01-12T05:51:11.320433Z K 7 svn:log V 23 Fix example addresses. END K 10 svn:author V 3 rea K 8 svn:date V 27 2012-01-12T06:48:11.254702Z K 7 svn:log V 778 rc.d: document 'quiet' prefix and fix dhclient/devd interaction Document the current semantics of the 'quiet' command prefix in the rc.subr(8). Fix dhclient rc.d script: it should not call err() for non-DHCP-enabled interface when it is called from devd, because the latter just blindly calls 'service dhclient quietstart' on each "link up" event. Since the 'quietstart' will silence the message "Cannot 'start' . Set _enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'." and running dhclient on the non-DHCP-enabled interface is the same thing as running the service without _enable set, such modification is in sync with the current semantics of the 'quiet' prefix. Approved by: glebius Reviewed by: freebsd-rc list MFC after: 2 weeks END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-01-12T08:03:26.113993Z K 7 svn:log V 82 MFC: r227674 Added check for negative seconds value. Found by syscall() fuzzing. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-01-12T11:08:21.403158Z K 7 svn:log V 69 merge from head: support for building cross-arch versions of picobsd END K 10 svn:author V 7 ghelmer K 8 svn:date V 27 2012-01-12T14:13:49.997370Z K 7 svn:log V 69 pidfile_open() no longer uses fcntl() to set the close-on-exec flag. END K 10 svn:author V 7 ghelmer K 8 svn:date V 27 2012-01-12T14:40:25.264706Z K 7 svn:log V 132 More prototype formatting fixes, struct member formatting fixes, and namespace fix for property_find() prototype. Provided by bde. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-12T14:43:52.744197Z K 7 svn:log V 103 MFC 228715: Add a TASK_INITIALIZER() macro that can be used to statically initialize a task structure. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-12T14:44:14.378259Z K 7 svn:log V 103 MFC 228715: Add a TASK_INITIALIZER() macro that can be used to statically initialize a task structure. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-12T14:53:08.215907Z K 7 svn:log V 582 MFC r228808, r228847, 229395: r228808, r228847: Make cd driver to handle Audio CDs, reporting their 2352 bytes sectors to GEOM and using READ CD command for reading data, same as acd driver does. Audio CDs identified by checking respective bit of the control field of the first track in TOC. 229395: Add support for CDRIOCGETBLOCKSIZE and CDRIOCSETBLOCKSIZE IOCTLs to control sector size same as acd driver does. Together with r228808 and r228847 this allows existing multimedia/vlc to play Audio CDs via CAM cd driver. PR: ports/162190 Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-12T15:02:51.407685Z K 7 svn:log V 571 MFC r228808, r228847, 229395: r228808, r228847: Make cd driver to handle Audio CDs, reporting their 2352 bytes sectors to GEOM and using READ CD command for reading data, same as acd driver does. Audio CDs identified by checking respective bit of the control field of the first track in TOC. 229395: Add support for CDRIOCGETBLOCKSIZE and CDRIOCSETBLOCKSIZE IOCTLs to control sector size same as acd driver does. Together with r228808 and r228847 this allows existing multimedia/vlc to play Audio CDs via CAM cd driver. PR: ports/162190 Sponsored by: iXsystems, Inc. END K 10 svn:author V 7 ghelmer K 8 svn:date V 27 2012-01-12T15:45:08.577117Z K 7 svn:log V 57 Fix disorder in MAN and MLINKS lists. Requested by bde. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-12T15:49:06.841665Z K 7 svn:log V 159 MFC r228462: - Fix different variable types use in different files after r121184, causing problems on amd64. - s/%lud/%lu/. Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-12T15:50:21.723473Z K 7 svn:log V 161 MFC r228462: - Fix different variable types use in different files after r121184, causing problems on amd64. - s/%lud/%lu/. Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-12T15:56:17.610113Z K 7 svn:log V 559 MFC r228461: Fix few bugs in isp(4) target mode support: - in destroy_lun_state() assert hold == 1 instead of 0, as it should receive hold taken by the create_lun_state() or get_lun_statep() before; - fix hold count leak inside rls_lun_statep() that also fired above assert; - in destroy_lun_state() use SIM bus number instead of SIM path id for ISP_GET_PC_ADDR(), as it was before r196008; - make isp_disable_lun() to set status in CCB; - make isp_target_mark_aborted() set status into the proper CCB. Reviewed by: mjacob Sponsored by: iXsystems, inc. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-12T15:57:03.480909Z K 7 svn:log V 559 MFC r228461: Fix few bugs in isp(4) target mode support: - in destroy_lun_state() assert hold == 1 instead of 0, as it should receive hold taken by the create_lun_state() or get_lun_statep() before; - fix hold count leak inside rls_lun_statep() that also fired above assert; - in destroy_lun_state() use SIM bus number instead of SIM path id for ISP_GET_PC_ADDR(), as it was before r196008; - make isp_disable_lun() to set status in CCB; - make isp_target_mark_aborted() set status into the proper CCB. Reviewed by: mjacob Sponsored by: iXsystems, inc. END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-01-12T16:51:56.245992Z K 7 svn:log V 729 Add a workaround to prevent endless recursion in compiler-rt. SPARC and MIPS CPUs don't have special instructions to count leading/trailing zeroes. The compiler-rt library provides fallback rountines for these. The 64-bit routines, __clzdi2 and __ctzdi2, are implemented as simple wrappers around the compiler built-in __builtin_clz(), assuming these will expand to either 32-bit CPU instructions or calls to __clzsi2 and __ctzsi2. Unfortunately, our GCC 4.2 probably thinks that because the operand is stored in a 64-bit register, it might just be a better idea to invoke its 64-bit equivalent, simply resulting into endless recursion. Fix this by defining __builtin_clz and __builtin_ctz to __clzsi2 and __ctzsi2 explicitly. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-01-12T17:06:46.196409Z K 7 svn:log V 26 Remove not existing file. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-01-12T17:28:00.274675Z K 7 svn:log V 195 fix the initialization of the rings when netmap is used, to adapt it to the changes in 228387 . Now the code is similar to the one used in other drivers. Not applicable to stable/9 and stable/8 END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-01-12T17:30:44.932236Z K 7 svn:log V 185 clear the pointer after freeing the mbuf. Without that, we risk a double free if the subsequent mbuf allocation fails. This bug is not netmap-related and was introduced in rev. 228387 END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-01-12T17:55:22.384027Z K 7 svn:log V 224 Add SPARC64 version of div/mod written in assembly. This version is similar to the code shipped with libgcc. It is based on the code from the SPARC64 architecture manual, provided without any restrictions. Tested by: flo@ END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2012-01-12T18:39:37.103918Z K 7 svn:log V 481 Clarify throughout the vlan(4) code the difference between a "tag" (the 802.1q-defined 16-bit VID, CFI, and PCP field in host by order) and a VLAN ID (VID). Tags go in packets. VIDs identify VLANs. No functional change is intended, so this should be safe to MFC. Further cleanup with functional changes will be committed separately (for example, renaming vlan_tag/vlan_tag_p, which modify the KPI and KBI). Reviewed by: bz Sponsored by: ADARA Networks, Inc. MFC after: 3 days END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-01-12T20:30:20.309656Z K 7 svn:log V 112 Style cleanups for printf. PR: bin/152934 Approved by: jhb (mentor) Obtained from: Illumos MFC after: 2 weeks END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-01-12T20:39:54.288374Z K 7 svn:log V 24 MFC: r229585 Fix typo. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-01-12T20:45:56.678474Z K 7 svn:log V 24 MFC: r229585 Fix typo. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-01-12T20:51:01.538051Z K 7 svn:log V 24 MFC: r229585 Fix typo. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-01-12T21:12:16.405130Z K 7 svn:log V 19 Document EN-12:01. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-01-12T21:21:20.295309Z K 7 svn:log V 111 - Try to fix support for USB 3.0 HUBs. - Try to fix support for USB 3.0 suspend and resume. MFC after: 1 week END K 10 svn:author V 3 ken K 8 svn:date V 27 2012-01-12T22:08:33.447572Z K 7 svn:log V 73 Silence some unnecessary verbosity. Reported by: mav MFC after: 1 month END K 10 svn:author V 3 ken K 8 svn:date V 27 2012-01-12T22:12:42.046560Z K 7 svn:log V 108 Fix building ctlstat with clang. Submitted by: Dan McGregor MFC after: 1 month END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2012-01-12T22:21:20.276949Z K 7 svn:log V 153 Add PWM monitoring sysctl to G4 MDD (Windtunnel) fan driver. While there, clean up some style nits. Approved by: nwhitehorn (mentor) MFC after: 3 days END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-01-12T22:30:41.530098Z K 7 svn:log V 11 IFC 230026 END K 10 svn:author V 7 ghelmer K 8 svn:date V 27 2012-01-12T22:49:36.362398Z K 7 svn:log V 300 Move struct pidfh definition into pidfile.c, and leave a forward declaration for pidfh in libutil.h in its place. This allows us to hide the contents of the pidfh structure, and also allowed removal of the "#ifdef _SYS_PARAM_H" guard from around the pidfile_* function prototypes. Suggested by pjd. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-13T00:38:00.341031Z K 7 svn:log V 148 MFC r228470: - Add a sysctl to allow non-root users the ability to set idle priorities. - While here fix up some style nits. Approved by: jhb END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-13T00:38:35.988622Z K 7 svn:log V 148 MFC r228470: - Add a sysctl to allow non-root users the ability to set idle priorities. - While here fix up some style nits. Approved by: jhb END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-01-13T02:33:55.260343Z K 7 svn:log V 167 - Do not enumerate PCIe bus on CN56XX Pass 1 devices to avoid hard hang. There is known issue with this hardware. Submitted by: Andrew Duane END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-01-13T03:38:08.772018Z K 7 svn:log V 253 Update the layout handling functions and add new functions that hang the layouts and device info structures for pNFS off of the client id structure. Also, cleaned up the indentation of the client id structure. This code is still untested at this point. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2012-01-13T06:14:03.200932Z K 7 svn:log V 63 o Mac OS X 10.7 added (belatedly). FreeBSD 9.0-RELEASE added. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2012-01-13T06:18:23.973464Z K 7 svn:log V 25 Copyright years updated. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-01-13T06:51:15.229604Z K 7 svn:log V 68 fgets(3) returns a pointer, so compare against NULL, not integer 0. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-01-13T06:56:59.424026Z K 7 svn:log V 16 Fix a style bug END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-01-13T07:00:47.773658Z K 7 svn:log V 170 - Fix .rela case of R_MIPS_26 relocation. Addednds save diferently for .rel and .rela sections. It's shifted right two bits for former but saved as-is for latter. END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-01-13T07:08:21.970471Z K 7 svn:log V 722 MFC: 226520 The current /etc/dumpdates file restricts device names to 32 characters. With the addition of various GEOM layers some device names now exceed this length, for example /dev/mirror/encrypted.elig.journal. This change expands the field to 53 bytes which brings the /etc/dumpdates lines to 80 characters. Exceeding 80 characters makes the /etc/dumpdates file much less human readable. A test is added to dump so that it verifies that the device name will fit in the 53 character field failing the dump if it is too long. This change has been checked to verify that its /etc/dumpdates file is compatible with older versions of dump. Reported by: Martin Sugioarto PR: kern/160678 END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-01-13T07:10:52.894696Z K 7 svn:log V 722 MFC: 226520 The current /etc/dumpdates file restricts device names to 32 characters. With the addition of various GEOM layers some device names now exceed this length, for example /dev/mirror/encrypted.elig.journal. This change expands the field to 53 bytes which brings the /etc/dumpdates lines to 80 characters. Exceeding 80 characters makes the /etc/dumpdates file much less human readable. A test is added to dump so that it verifies that the device name will fit in the 53 character field failing the dump if it is too long. This change has been checked to verify that its /etc/dumpdates file is compatible with older versions of dump. Reported by: Martin Sugioarto PR: kern/160678 END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-01-13T07:19:02.708059Z K 7 svn:log V 277 MFC: 228794 Reduce NFPI by half to keep the default number of inodes the same with the now default 32K/4K filesystem the same as the number of inodes in the previously default 16K/2K filesystem. PR: bin/162659 Reported by: Olivier Cochard-Labbe END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-01-13T07:28:34.784447Z K 7 svn:log V 166 Correct use of USB 3.0 POWER bit in the port status register, hence it was overlapping the USB 3.0 root HUB's speed bits. Reported by: Kohji Okuno MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-01-13T09:08:41.547411Z K 7 svn:log V 40 Fix copyright year Spotted by: pluknet END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-01-13T10:21:15.663335Z K 7 svn:log V 899 Two performance-related fixes: 1. as reported by Alexander Fiveg, the allocator was reporting half of the allocated memory. Fix this by exiting from the loop earlier (not too critical because this code is going away soon). 2. following a discussion on freebsd-current http://lists.freebsd.org/pipermail/freebsd-current/2012-January/031144.html turns out that (re)loading the dmamap was expensive and not optimized. This operation is in the critical path when doing zero-copy forwarding between interfaces. At least on netmap and i386/amd64, the bus_dmamap_load can be completely bypassed if the map is NULL, so we do it. The latter change gives an almost 3x improvement in forwarding performance, from the previous 9.5Mpps at 2.9GHz to the current line rate (14.2Mpps) at 1.733GHz. (this is for 64+4 byte packets, in other configurations the PCIe bus is a bottleneck). END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-13T10:21:17.337490Z K 7 svn:log V 1785 Add BIO_DELETE support for SCSI Direct Access devices (da). Depending on device capabilities use different methods to implement it. Currently used method can be read/set via kern.cam.da.X.delete_method sysctls. Possible values are: NONE - no provisioning support reported by the device; DISABLE - provisioning support was disabled because of errors; ZERO - use WRITE SAME (10) command to write zeroes; WS10 - use WRITE SAME (10) command with UNMAP bit set; WS16 - use WRITE SAME (16) command with UNMAP bit set; UNMAP - use UNMAP command (equivalent of the ATA DSM TRIM command). The last two methods (UNMAP and WS16) are defined by SBC specification and the UNMAP method is the most advanced one. The rest of methods I've found supported in Linux, and as soon as they were trivial to implement, then why not? Hope they will be useful in some cases. Unluckily I have no devices properly reporting parameters of the logical block provisioning support via respective VPD pages (0xB0 and 0xB2). So all info I have/use now is the flag telling whether logical block provisioning is supported or not. As result, specific methods chosen now by trying different ones in order (UNMAP, WS16, DISABLE) and checking completion status to fallback if needed. I don't expect problems from this, as if something go wrong, it should just disable itself. It may disable even too aggressively if only some command parameter misfit. Unlike Linux, which executes each delete with separate request, I've implemented here the same request aggregation as implemented in ada driver. Tests on SSDs I have show much better results doing it this way: above 8GB/s of the linear delete on Intel SATA SSD on LSI SAS HBA (mps). Reviewed by: silence on scsi@ MFC after: 2 month Sponsored by: iXsystems, Inc. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-01-13T10:54:26.009351Z K 7 svn:log V 203 MFC r228358: - Fix markup. - Remove trailing whitespace. MFC r228359: sbuf_data() hasn't returned NULL for overflowed buffers since r71721. MFC r228784: Follow style(9) more closely in the example. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-01-13T11:01:23.665544Z K 7 svn:log V 16 fix indentation END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-01-13T11:06:31.558202Z K 7 svn:log V 35 Partially MFC r228358: Fix markup. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-01-13T11:10:17.404591Z K 7 svn:log V 84 MFC r228359: sbuf_data() hasn't returned NULL for overflowed buffers since r71721. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-01-13T11:58:06.759579Z K 7 svn:log V 33 indentation and whitespace fixes END K 10 svn:author V 3 des K 8 svn:date V 27 2012-01-13T12:40:33.615119Z K 7 svn:log V 258 Provide a better explanation for the sizing of the boot partition, and reduce the size of the partition in the example from 128 blocks to 94 blocks so it will end on a 128-block boundary. Also remove the -b option from the next example. MFC after: 3 weeks END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-01-13T15:40:49.738060Z K 7 svn:log V 215 Remove wtmpcvt(1). The wtmpcvt(1) utility converts wtmp files to the new format used by utmpx(3). Now that HEAD has been branched to stable/9 and 9.0 is released, there is no need for it in HEAD. MFC after: never END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-01-13T15:43:01.889192Z K 7 svn:log V 24 Regenerate src.conf(5). END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-01-13T16:01:34.436585Z K 7 svn:log V 182 Correct mistake in atomic_flag macros. The _explicit versions only have two parameters, namely the object and the order. There is no need to pass the values of the atomic variable. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-01-13T17:13:46.944428Z K 7 svn:log V 136 Clean up a switch statement for uncore events on Westmere processors. Submitted by: Davide Italiano Reviewed by: gnn MFC after: 1 week END K 10 svn:author V 8 truckman K 8 svn:date V 27 2012-01-13T18:32:56.013197Z K 7 svn:log V 314 Allow an MBR primary or extended Linux swap partition to be specified as the system dump device. This was already allowed for GPT. The Linux swap metadata at the beginning of the partition should not be disturbed because the crash dump is written at the end. Reviewed by: alfred, pjd, marcel MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T18:49:04.473997Z K 7 svn:log V 308 MFC 228738: Allow boot0cfg to force a PXE boot via boot0 on the next boot. - Fix boot0 to check for PXE when using the pre-set setting for the preferred slice. - Update boot0cfg to use slice 6 to select PXE. Accept a 'pxe' argument instead of a number for the 's' option as a way to select PXE as well. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T18:49:28.191229Z K 7 svn:log V 308 MFC 228738: Allow boot0cfg to force a PXE boot via boot0 on the next boot. - Fix boot0 to check for PXE when using the pre-set setting for the preferred slice. - Update boot0cfg to use slice 6 to select PXE. Accept a 'pxe' argument instead of a number for the 's' option as a way to select PXE as well. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T18:53:48.771060Z K 7 svn:log V 196 MFC 228849, 229727: Add post-VOP hooks for VOP_DELETEEXTATTR() and VOP_SETEXTATTR() and use these to trigger a NOTE_ATTRIB EVFILT_VNODE kevent when the extended attributes of a vnode are changed. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T18:54:10.450033Z K 7 svn:log V 196 MFC 228849, 229727: Add post-VOP hooks for VOP_DELETEEXTATTR() and VOP_SETEXTATTR() and use these to trigger a NOTE_ATTRIB EVFILT_VNODE kevent when the extended attributes of a vnode are changed. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T18:58:15.395053Z K 7 svn:log V 118 MFC 229622: Fix a logic bug in change 228207 in the check for a thread's new user priority being a realtime priority. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T18:58:31.846249Z K 7 svn:log V 118 MFC 229622: Fix a logic bug in change 228207 in the check for a thread's new user priority being a realtime priority. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T19:03:30.728890Z K 7 svn:log V 122 MFC 229728: Add 5 spare VOPs as placeholders to avoid breaking the KBI in the future when new VOPs are MFC'd to a branch. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T19:10:53.431606Z K 7 svn:log V 280 MFC 229400: Improve the cscope target's handling of MD directories. Automatically include the MACHINE_CPUARCH directory if it differents from MACHINE when building an index for a single machine. Also, include the 'x86' directory when building an index for i386, pc98, or amd64. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T19:13:43.913903Z K 7 svn:log V 467 MFC 215605,215606,222952,229400: Various improvements to the 'cscope' target: - Add x86 to ALL_ARCH. - Add lex and yacc sources to things cscope'd. - Include sys/xen in cscope tag file generation. - Improve the cscope target's handling of MD directories. Automatically include the MACHINE_ARCH directory if it differs from MACHINE when building an index for a single machine. Also, include the 'x86' directory when building an index for i386, pc98, or amd64. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T19:20:09.014838Z K 7 svn:log V 434 MFC 229414,229476,229477: Various fixes to the SIOC[DG]LIFADDR ioctl handlers: - Grab a reference on any matching interface address (ifa) before dropping the IF_ADDR_LOCK() and release the reference after using it to prevent a potential use-after-free. - Fix the IPv4 ioctl handlers in in_lifaddr_ioctl() to work with IPv4 interface addresses rather than IPv6. - Add missing interface address list locking in the IPv4 handlers. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T19:20:33.307573Z K 7 svn:log V 434 MFC 229414,229476,229477: Various fixes to the SIOC[DG]LIFADDR ioctl handlers: - Grab a reference on any matching interface address (ifa) before dropping the IF_ADDR_LOCK() and release the reference after using it to prevent a potential use-after-free. - Fix the IPv4 ioctl handlers in in_lifaddr_ioctl() to work with IPv4 interface addresses rather than IPv6. - Add missing interface address list locking in the IPv4 handlers. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T19:50:52.762678Z K 7 svn:log V 812 MFC 229390,229420,229479: Fix some races in the multicast code by removing places where we would drop the IF_ADDR_LOCK while walking an interface's multicast address list: - Use TAILQ_FOREACH() instead of TAILQ_FOREACH_SAFE() for some loops that do not modify the queues they iterate over. - When cancelling multicast timers on an interface, don't release the reference on a group in the leaving state while iterating over the loop. Instead, use the same approach used in igmp_ifdetach() and mld_ifdetach() of placing the groups to free on a pending release list and then releasing the references after dropping the IF_ADDR_LOCK. - Use the mli_relinmhead list normally used to defer calls to in6m_release_locked() to defer calls to mld_v1_transmit_report() until after the IF_ADDR_LOCK is dropped. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T19:51:15.783092Z K 7 svn:log V 812 MFC 229390,229420,229479: Fix some races in the multicast code by removing places where we would drop the IF_ADDR_LOCK while walking an interface's multicast address list: - Use TAILQ_FOREACH() instead of TAILQ_FOREACH_SAFE() for some loops that do not modify the queues they iterate over. - When cancelling multicast timers on an interface, don't release the reference on a group in the leaving state while iterating over the loop. Instead, use the same approach used in igmp_ifdetach() and mld_ifdetach() of placing the groups to free on a pending release list and then releasing the references after dropping the IF_ADDR_LOCK. - Use the mli_relinmhead list normally used to defer calls to in6m_release_locked() to defer calls to mld_v1_transmit_report() until after the IF_ADDR_LOCK is dropped. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T19:54:00.477620Z K 7 svn:log V 454 MFC 229427: Fix a few bugs in the SRAT parsing code: - Actually increment ndomain when building our list of known domains so that we can properly renumber them to be 0-based and dense. - If the number of domains exceeds the configured maximum (VM_NDOMAIN), bail out of processing the SRAT and disable NUMA rather than hitting an obscure panic later. - Don't bother parsing the SRAT at all if VM_NDOMAIN is set to 1 to disable NUMA (the default). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T20:15:27.614518Z K 7 svn:log V 736 MFC 229429: Some small fixes to CPU accounting for threads: - Only initialize the per-cpu switchticks and switchtime in sched_throw() for the very first context switch on APs during boot. This avoids a small gap between the middle of thread_exit() and sched_throw() where time is not accounted to any thread. - In thread_exit(), update the timestamp bookkeeping to track the changes to mi_switch() introduced by td_rux so that the code once again matches the comment claiming it is mimicing mi_switch(). Specifically, only update the per-thread stats directly and depend on ruxagg() to update p_rux rather than adjusting p_rux directly. While here, move the timestamp bookkeeping as late in the function as possible. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T20:15:49.337564Z K 7 svn:log V 736 MFC 229429: Some small fixes to CPU accounting for threads: - Only initialize the per-cpu switchticks and switchtime in sched_throw() for the very first context switch on APs during boot. This avoids a small gap between the middle of thread_exit() and sched_throw() where time is not accounted to any thread. - In thread_exit(), update the timestamp bookkeeping to track the changes to mi_switch() introduced by td_rux so that the code once again matches the comment claiming it is mimicing mi_switch(). Specifically, only update the per-thread stats directly and depend on ruxagg() to update p_rux rather than adjusting p_rux directly. While here, move the timestamp bookkeeping as late in the function as possible. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T20:22:57.760218Z K 7 svn:log V 83 MFC 229519: Fix 'make clean' for this module so it cleans up the generated gssd.h. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T20:23:18.144969Z K 7 svn:log V 83 MFC 229519: Fix 'make clean' for this module so it cleans up the generated gssd.h. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T20:25:38.960388Z K 7 svn:log V 252 MFC 228960: Cap the priority calculated from the current thread's running tick count at SCHED_PRI_RANGE to prevent overflows in the priority value. This can happen due to irregularities with clock interrupts under certain virtualization environments. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T20:25:56.691566Z K 7 svn:log V 252 MFC 228960: Cap the priority calculated from the current thread's running tick count at SCHED_PRI_RANGE to prevent overflows in the priority value. This can happen due to irregularities with clock interrupts under certain virtualization environments. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T20:28:11.527753Z K 7 svn:log V 835 MFC 228961: Further relax the strictness of enforcing allocations to only come from decoded ranges. Pass any request for a specific range that fails because it is not in a decoded range for an ACPI Host-PCI bridge up to the parent to see if it can still be allocated. This is based on the assumption that many BIOSes are inconsistent/broken and that settings programmed into BARs or resources assigned to other built-in components are more trustworthy than the list of decoded resource ranges in _CRS. This effectively limits the decoded ranges to only being used for "wildcard" ranges when allocating fresh resources for a BAR, etc. At some point I would like to only be this permissive during an early scan of firmware-assigned resources during boot and to be strict about all later allocations, but that isn't viable currently. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T20:35:12.982909Z K 7 svn:log V 758 MFC 229665,229672,229700: Remove the assertion from tcp_input() that rcv_nxt is always greater than or equal to rcv_adv and fix tcp_twstart() to handle this case by assuming the last window was zero rather than a negative value. The code in tcp_input() already safely handled this case. It can happen due to delayed ACKs along with a remote sender that sends data beyond the window we previously advertised. If we have room in our socket buffer for the extra data beyond the advertised window, we will accept it. However, if the ACK for that segment is delayed, then we will not effectively fixup rcv_adv to account for that extra data until the next segment arrives and forces out an ACK. When that next segment arrives, rcv_nxt will be beyond rcv_adv. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-01-13T20:35:43.197703Z K 7 svn:log V 765 MFC 221891,229665,229672,229700: Remove the assertion from tcp_input() that rcv_nxt is always greater than or equal to rcv_adv and fix tcp_twstart() to handle this case by assuming the last window was zero rather than a negative value. The code in tcp_input() already safely handled this case. It can happen due to delayed ACKs along with a remote sender that sends data beyond the window we previously advertised. If we have room in our socket buffer for the extra data beyond the advertised window, we will accept it. However, if the ACK for that segment is delayed, then we will not effectively fixup rcv_adv to account for that extra data until the next segment arrives and forces out an ACK. When that next segment arrives, rcv_nxt will be beyond rcv_adv. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-01-13T20:50:18.345107Z K 7 svn:log V 98 Add an open issue and workaround about possible device detection failure on FreeBSD/{amd64,i386}. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-01-13T22:16:47.402682Z K 7 svn:log V 54 Remove unused ACPICA sources from userland makefiles. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-01-13T22:19:14.637441Z K 7 svn:log V 121 Bugfix: Make sure the XHCI driver doesn't clear the route string field. Else USB 3.0 HUBs won't work. MFC after: 5 days END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-01-13T22:26:13.703914Z K 7 svn:log V 127 Improve support for USB 3.0 HUBs. In certain states we should do a warm reset instead of the default reset. MFC after: 5 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-01-13T23:25:35.572236Z K 7 svn:log V 35 Style cleanups. MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-13T23:25:58.508499Z K 7 svn:log V 212 Merge r228463, that explicily uses 255.0.0.0 mask for the temporary prefix. This change isn't actually needed in the stable/8, but let it be here, in case if anyone tries to run stable/8 world on a head/ kernel. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-01-13T23:31:36.399291Z K 7 svn:log V 173 Fix backtrace for MIPS64: - Properly print 64-bit addresses - Get whole 64 bits of address using kdbpeekd - Make check for kernel address compatible with MIPS64 END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-13T23:32:27.168185Z K 7 svn:log V 237 sh: Properly show "Not a directory" error in cd builtin. The errno message display added in r222292 did not take attempting to cd to a non-directory or something that cannot be stat()ed into account. PR: bin/164070 MFC after: 10 days END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-01-14T00:28:02.872158Z K 7 svn:log V 18 Integrate to head END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-01-14T00:36:07.287104Z K 7 svn:log V 686 Fix kernel modules loading for MIPS64 kernel: On amd64, link_elf_obj.c must specify KERNBASE rather than VM_MIN_KERNEL_ADDRESS to vm_map_find() because kernel loadable modules must be mapped for execution in the same upper region of the kernel map as the kernel code and data segments. For MIPS32 KERNBASE lies below KVA area (it's less than VM_MIN_KERNEL_ADDRESS) so basically vm_map_find got whole KVA to look through. On MIPS64 it's not the case because KERNBASE is set to the very end of XKSEG, well out of KVA bounds, so vm_map_find always fails. We should use VM_MIN_KERNEL_ADDRESS as a base for vm_map_find. Details obtained from: alc@ END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-01-14T00:53:26.482557Z K 7 svn:log V 44 Add the definition of NFSCLLAYOUTHIGHWATER. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-01-14T02:18:41.876051Z K 7 svn:log V 695 Prepare for the removal of set_rcvar() by changing the rcvar= assignments to the literal values it would have returned. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones. During the discussion on freebsd-rc@ a preference was expressed for using ${name}_enable instead of the literal values. However the code portability concept doesn't really apply since there are so many other places where the literal name has to be searched for and replaced. Also, using the literal value is also a tiny bit faster than dereferencing the variables, and every little bit helps. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-01-14T04:04:58.470244Z K 7 svn:log V 338 Tai Horgan reported via email that there were two places in the new NFSv4 server where the code follows the wrong list. Fortunately, for these fairly rare cases, the lc_stateid[] lists are normally empty. This patch fixes the code to follow the correct list. Reported by: tai.horgan at isilon.com Discussed with: zack MFC after: 2 weeks END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-01-14T07:26:16.977872Z K 7 svn:log V 327 Convert FFS mount error messages from kernel printf's to using the vfs_mount_error error message facility provided by the nmount interface. Clean up formatting of mount warnings which still need to use kernel printf's since they do not return errors. Requested by: Craig Rodrigues MFC after: 2 weeks END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-14T08:11:40.778168Z K 7 svn:log V 133 Fix a test that doesn't work on architectures where long double is no wider than double. Thanks to Ian Lepore for catching the bug. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-01-14T08:59:02.136793Z K 7 svn:log V 241 Now that its callers have been udpated, remove set_rcvar(). The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-01-14T09:10:20.621135Z K 7 svn:log V 177 Fix two bugs, which result in a panic when calling getsockopt() using SCTP_RECVINFO or SCTP_NXTINFO. Reported by Clement Lecigne and forwarded to us by zi@. MFC after: 3 days. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-01-14T09:32:58.833517Z K 7 svn:log V 121 Add an entry detailing the removal of set_rcvar() from /etc/rc.subr Requested by: Garrett Cooper END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-14T09:57:13.913971Z K 7 svn:log V 164 - Add possibility to build release from a certain revision, supplied via -r. - To ease adding new features, roll out a getopt loop here. Reviewed by: nwhitehorn END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-14T14:43:22.041618Z K 7 svn:log V 123 Autoguess number of make jobs based on hw.ncpu. MAKE_FLAGS can override this. While here move 'mkdir' down below 'set -e'. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-14T17:07:52.231331Z K 7 svn:log V 62 - Fix trivial typo Approved by: nwhitehorn MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-14T17:34:32.317543Z K 7 svn:log V 132 - Document TheDraw splash screens in the default loader.conf Submitted by: Jason Hellenthal Approved by: glebius MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-14T18:16:10.210992Z K 7 svn:log V 54 No need to run buildworld before generate-release.sh. END K 10 svn:author V 3 ume K 8 svn:date V 27 2012-01-14T19:08:39.667779Z K 7 svn:log V 127 MFC r229766: Handle the internal scope address representation of the KAME IPv6 stack for the node-local multicast address. END K 10 svn:author V 3 ume K 8 svn:date V 27 2012-01-14T19:22:45.485404Z K 7 svn:log V 127 MFC r229766: Handle the internal scope address representation of the KAME IPv6 stack for the node-local multicast address. END K 10 svn:author V 3 ume K 8 svn:date V 27 2012-01-14T19:38:24.952839Z K 7 svn:log V 187 MFC r228284, r228308: - Make heimdal buildable with WITH_OPENLDAP defined, again. - Our heimdal uses the deprecated OpenLDAP functions. - Don't support OpenLDAP during lib32 build. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-14T21:09:54.957904Z K 7 svn:log V 102 Update the tests for arm and other ports where long double is the same as double, similar to r178141. END K 10 svn:author V 3 das K 8 svn:date V 27 2012-01-14T21:38:31.351501Z K 7 svn:log V 92 Add .t files for tests, missed in prior checkins, so that prove(1) works in this directory. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-01-14T21:51:44.459468Z K 7 svn:log V 67 Remove documentation for set_rcvar() now that it has been removed. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-14T21:54:12.775023Z K 7 svn:log V 96 sh: Fix out of bounds array access when trap is used with an invalid signal. MFC after: 1 week END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-14T22:46:18.583131Z K 7 svn:log V 65 sh: Change input buffer size from 1023 to 1024. PR: bin/161756 END K 10 svn:author V 4 csjp K 8 svn:date V 27 2012-01-14T22:51:34.949068Z K 7 svn:log V 348 Revert to the old behavior of allocating table/table entries using M_NOWAIT. Currently, the code allows for sleeping in the ioctl path to guarantee allocation. However code also handles ENOMEM gracefully, so propagate this error back to user-space, rather than sleeping while holding the global pf mutex. Reviewed by: glebius Discussed with: bz END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-01-14T23:04:27.873828Z K 7 svn:log V 1097 Neither tmpfs_nocacheread() nor tmpfs_mappedwrite() needs to call vm_object_pip_{add,subtract}() on the swap object because the swap object can't be destroyed while the vnode is exclusively locked. Moreover, even if the swap object could have been destroyed during tmpfs_nocacheread() and tmpfs_mappedwrite() this code is broken because vm_object_pip_subtract() does not wake up the sleeping thread that is trying to destroy the swap object. Free invalid pages after an I/O error. There is no virtue in keeping them around in the swap object creating more work for the page daemon. (I believe that any non-busy page in the swap object will now always be valid.) vm_pager_get_pages() does not return a standard errno, so its return value should not be returned by tmpfs without translation to an errno value. There is no reason for the wakeup on vpg in tmpfs_mappedwrite() to occur with the swap object locked. Eliminate printf()s from tmpfs_nocacheread() and tmpfs_mappedwrite(). (The swap pager already spam your console if data corruption is imminent.) Reviewed by: kib MFC after: 3 weeks END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-01-14T23:10:18.280073Z K 7 svn:log V 69 sh: Add testcases that should not be broken by future optimizations. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-01-14T23:19:10.565728Z K 7 svn:log V 72 For the mass rc.d changes, add a command line to make the update easier END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-15T00:08:14.235557Z K 7 svn:log V 591 Rework SLB trap handling so that double-faults into an SLB trap handler are possible, and double faults within an SLB trap handler are not. The result is that it possible to take an SLB fault at any time, on any address, for any reason, at any point in the kernel. This lets us do two important things. First, it removes the (soft) 16 GB RAM ceiling on PPC64 as well as any architectural limitations on KVA space. Second, it lets the kernel tolerate poorly designed hypervisors that have a tendency to fail to restore the SLB properly after a hypervisor context switch. MFC after: 6 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-01-15T00:46:29.347826Z K 7 svn:log V 84 MFC r229828: Avoid LOR between vfs_busy() lock and covered vnode lock on quotaon(). END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-15T07:09:18.527159Z K 7 svn:log V 171 - Fix undefined behavior when device_get_name is null - Make error message more informative PR: kern/149800 Submitted by: olgeni Approved by: cperciva MFC after: 1 week END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-01-15T07:48:12.347895Z K 7 svn:log V 35 Document ugen devctl event change. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-15T08:36:25.360436Z K 7 svn:log V 254 Restore functionality to pack several kernels into release. All kernels specified by KERNCONF are built and packed into release. The first one is packed into kernel.txz, all others to kernel.CONFIG.txz. The first one is installed on bootables in /boot. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-01-15T09:27:00.347020Z K 7 svn:log V 56 Use getopts instead of getopt(1). Suggested by: jilles END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-01-15T12:08:20.454813Z K 7 svn:log V 409 Introduce vn_path_to_global_path() This function updates path string to vnode's full global path and checks the size of the new path string against the pathlen argument. In vfs_domount(), sys_unmount() and kern_jail_set() this new function is used to update the supplied path argument to the respective global path. Unbreaks jailed zfs(8) with enforce_statfs set to 1. Reviewed by: kib MFC after: 1 month END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-01-15T13:21:36.604316Z K 7 svn:log V 1575 Major snd_hda driver rewrite: - Huge old hdac driver was split into three independent pieces: HDA controller driver (hdac), HDA CODEC driver (hdacc) and HDA sudio function driver (hdaa). - Support for multichannel recording was added. Now, as specification defines, driver checks input associations for pins with sequence numbers 14 and 15, and if found (usually) -- works as before, mixing signals together. If it doesn't, it configures input association as multichannel. - Signal tracer was improved to look for cases where several DACs/ADCs in CODEC can work with the same audio signal. If such case found, driver registers additional playback/record stream (channel) for the pcm device. - New controller streams reservation mechanism was implemented. That allows to have more pcm devices then streams supported by the controller (usually 4 in each direction). Now it limits only number of simultaneously transferred audio streams, that is rarely reachable and properly reported if happens. - Codec pins and GPIO signals configuration was exported via set of writable sysctls. Another sysctl dev.hdaa.X.reconfig allows to trigger driver reconfiguration in run-time. - Driver now decodes pins location and connector type names. In some cases it allows to hint user where on the system case connectors, related to the pcm device, are located. Number of channels supported by pcm device, reported now (if it is not 2), should also make search easier. - Added workaround for digital mic on some Asus laptops/netbooks. MFC after: 2 months Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 uqs K 8 svn:date V 27 2012-01-15T13:23:01.103326Z K 7 svn:log V 226 Reencode morse.c to UTF-8. This does not make it Unicode aware. No changes in resulting object file. Moved user-visible symbols into comment table, so you can see all chars, not just the ones matching your (fallback) locale. END K 10 svn:author V 3 uqs K 8 svn:date V 27 2012-01-15T13:23:18.232850Z K 7 svn:log V 23 Convert files to UTF-8 END K 10 svn:author V 3 uqs K 8 svn:date V 27 2012-01-15T13:23:33.439700Z K 7 svn:log V 60 Remove spurious 8bit chars, turning files into plain ASCII. END K 10 svn:author V 3 uqs K 8 svn:date V 27 2012-01-15T13:23:43.871473Z K 7 svn:log V 23 Convert files to UTF-8 END K 10 svn:author V 3 uqs K 8 svn:date V 27 2012-01-15T13:23:54.616139Z K 7 svn:log V 60 Remove spurious 8bit chars, turning files into plain ASCII. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-01-15T13:35:55.146401Z K 7 svn:log V 36 Two cleanups. No functional change. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-01-15T13:36:47.884156Z K 7 svn:log V 25 Fix a few comment typos. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-01-15T14:03:05.047341Z K 7 svn:log V 37 Small cleanup, no functional change. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-15T16:57:18.570777Z K 7 svn:log V 137 Now that we can tolerate LPAR context switches on the PS3 hypervisor, going to hypervisor-idle on both threads will not hang the kernel. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-15T16:58:44.675029Z K 7 svn:log V 198 Fix some unreliability problems related to MSR bits inherited from kboot by setting an absolute MSR when during on the MMU. This prevents delay(), in particular, from intermittently malfunctioning. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-01-15T17:01:28.881924Z K 7 svn:log V 142 Remove duplicate line from usage PR: bin/164139 Submitted by: Yuri Pankov Approved by: nwhitehorn MFC after: 3 days END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-15T17:04:39.922888Z K 7 svn:log V 111 IFC @ r230140. This obsoletes r223407 from this branch, which has been superseded by a similar change in HEAD. END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-01-15T18:08:15.921774Z K 7 svn:log V 152 Fix missing in r230129: kern_jail.c: initialize fullpath_disabled to zero vfs_cache.c: add missing dot in comment Reported by: kib MFC after: 1 month END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-01-15T18:26:43.862538Z K 7 svn:log V 184 Pick a constant high IRQ value for the PS3 IPI, which lets PS3 devices be usefully loaded and unloaded as modules. Submitted by: geoffrey dot levand at mail dot ru MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-01-15T18:47:24.498399Z K 7 svn:log V 534 Abrogate nchr argument in proc_getargv() and proc_getenvv(): we always want to read strings completely to know the actual size. As a side effect it fixes the issue with kern.proc.args and kern.proc.env sysctls, which didn't return the size of available data when calling sysctl(3) with the NULL argument for oldp. Note, in get_ps_strings(), which does actual work for proc_getargv() and proc_getenvv(), we still have a safety limit on the size of data read in case of a corrupted procces stack. Suggested by: kib MFC after: 3 days END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-01-15T18:51:07.623388Z K 7 svn:log V 284 In kvm_argv(), the case when the supplied buffer was too short to hold the requested value was handled incorrectly, and the function retuned NULL instead of the truncated result. Fix this and also remove unnecessary check for buf != NULL, which alway retuns true. MFC after: 3 days END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-01-15T19:22:34.865151Z K 7 svn:log V 615 Break out the "memory" EEPROM data read method from being AR9130 specific to being more generic. Other embedded SoCs also throw the configuration/PCI register info into flash. For now I'm just hard-coding the AR9280 option (for on-board AR9220's on AP94 and commercial designs (eg D-Link DIR-825.)) TODO: * Figure out how to support it for all 11n SoC NICs by doing it in ar5416InitState(); * Don't hard-code the EEPROM size - add another field which is set by the relevant chip initialisation code. * 'owl_eep_start_loc' may need to be overridden in some cases to 0x0. I need to do some further digging. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-01-15T19:29:33.074504Z K 7 svn:log V 1076 Some of the atheros based embedded devices use one or more PCI NICs on-board, glued to the AR71xx CPU. These may forgo separate WMAC EEPROMs (which store configuration and calibration data) and instead store it in the main board SPI flash. Normally the NIC reads the EEPROM attached to it to setup various PCI configuration registers. If this isn't done, the device will probe as something different (eg 0x168c:abcd, or 0x168c:ff??.) Other setup registers are also written to which may control important functions. This introduces a new compile option, AR71XX_ATH_EEPROM, which enables the use of this particular code. The ART offset in the SPI flash can be specified as a hint against the relevant slot/device number, for example: hint.pcib.0.bus.0.17.0.ath_fixup_addr=0x1fff1000 hint.pcib.0.bus.0.18.0.ath_fixup_addr=0x1fff5000 TODO: * Think of a better name; * Make the PCIe version of this fixup code also use this option; * Maybe also check slot 19; * This has to happen _before_ the SPI flash is set from memory-mapped to SPI-IO - so document that somewhere. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-01-15T19:30:32.466332Z K 7 svn:log V 54 Add the new option introduced in the previous commit. END