ƒ¯Y237177 175 142 410 306 207 104 211 326 315 246 470 470 166 166 129 321 321 111 124 400 381 157 273 262 285 155 738 842 312 539 539 539 432 259 960 144 222 115 1497 143 192 182 182 440 127 109 157 206 304 162 255 487 266 150 159 176 176 286 141 211 231 148 138 583 304 345 204 373 767 462 182 252 125 112 111 124 120 228 228 228 228 228 228 309 249 151 151 1097 288 704 176 117 372 164 166 304 296 411 1310 473 496 329 935 157 127 412 120 122 319 234 350 270 270 270 341 143 322 184 704 182 198 254 198 204 417 157 240 167 167 183 183 286 197 286 197 180 144 158 145 233 233 613 613 202 202 104 167 190 114 233 116 1917 2685 137 166 189 117 114 474 353 150 236 299 385 215 226 215 226 180 327 128 304 631 243 241 320 K 10 svn:author V 7 linimon K 8 svn:date V 27 2012-06-17T00:28:57.772665Z K 7 svn:log V 46 Make the dump of machines table more verbose. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-17T02:46:27.783523Z K 7 svn:log V 314 attach_generic causes missing devices in /dev when the driver interacts with some non-highpoint controollers. Change attach_generic to be off by default. PR: kern/168910 Submitted by: Richard Yao Approved by: cperciva No objections by: -hackers Obtained from: Gentoo FreeBSD MFC after: 2 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-17T03:08:33.963886Z K 7 svn:log V 210 After some discussion with bschmidt@, it's likely better to just go through ieee80211_suspend_all() and ieee80211_resume_all(). All the other wireless drivers are doing that particular dance. PR: kern/169084 END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-17T03:54:10.848431Z K 7 svn:log V 111 Fix mdoc style nits PR: kern/168910 Submitted by: gjb Approved by: gjb MFC after: 3 days X-MFC-With: r237178 END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-06-17T03:59:17.799379Z K 7 svn:log V 12 MFC r237179 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-17T04:48:47.531758Z K 7 svn:log V 115 Bring over the AR9285 specific PCIe suspend/resume/ASPM workarounds. Obtained from: Qualcomm Atheros, Linux ath9k END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-17T05:34:41.789896Z K 7 svn:log V 230 Add an disabled workaround for the AR9285SE. This just requires a little HAL change (add a new config parameter) and some glue in if_ath_pci.c, however I'm leaving this up for someone else to do. Obtained from: Qualcomm Atheros END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-17T05:56:27.559605Z K 7 svn:log V 219 AR9287 tidyups: * Add an OS_A_REG_WRITE() routine - analog writes require a 100usec delay on AR9280 and later, so create a method to do it. * Use it for the AR9287 analog writes. * Re-indent and style(9) the code. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-17T07:14:58.073883Z K 7 svn:log V 153 MFC r236848: Use the previous stack entry protection and max protection to correctly propagate the stack execution permissions when stack is grown down. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-17T09:42:56.768517Z K 7 svn:log V 374 MFC: r237101 Fix a braino in r236469 (MFC'ed to stable/9 in r236468); the number of DMA tags required for handling MAXPHYS should be based on PAGE_SIZE rather than SYM_CONF_DMA_BOUNDARY. While at it, reuse the SYM_CONF_MAX_SG macro for specifying the maximum number of DMA tags so sym(4) itself doesn't size memory beyond what's required for handling MAXPHYS. PR: 168928 END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-17T09:43:04.745548Z K 7 svn:log V 374 MFC: r237101 Fix a braino in r236469 (MFC'ed to stable/8 in r236469); the number of DMA tags required for handling MAXPHYS should be based on PAGE_SIZE rather than SYM_CONF_DMA_BOUNDARY. While at it, reuse the SYM_CONF_MAX_SG macro for specifying the maximum number of DMA tags so sym(4) itself doesn't size memory beyond what's required for handling MAXPHYS. PR: 168928 END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-17T09:50:56.215576Z K 7 svn:log V 71 MFC: r230179 BeagleBone uses an FTDI chip with an altered Product ID. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-17T09:50:59.646316Z K 7 svn:log V 71 MFC: r230179 BeagleBone uses an FTDI chip with an altered Product ID. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-06-17T11:04:38.876391Z K 7 svn:log V 36 Remove superfluous paragraph macro. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-17T11:16:14.586701Z K 7 svn:log V 225 MFC: r237107 - As a baind-aid, disable ATAPI DMA when using ATA_CAM for these controllers as well as it causes the kernel to hang during boot. Reported and tested by: Kevin Oberman - Use NULL instead of 0 for a pointer. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-17T11:16:17.481138Z K 7 svn:log V 225 MFC: r237107 - As a baind-aid, disable ATAPI DMA when using ATA_CAM for these controllers as well as it causes the kernel to hang during boot. Reported and tested by: Kevin Oberman - Use NULL instead of 0 for a pointer. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-06-17T11:33:55.731843Z K 7 svn:log V 18 Minor mdoc fixes. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-06-17T11:36:28.594445Z K 7 svn:log V 31 Remove end of line whitespace. END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-17T13:03:50.815671Z K 7 svn:log V 304 The variable 'error' in sys_poll() is initialized in declaration to value zero but in any case is overwritten by successive copyin(), making the previous initialization useless. Remove this. As an added bonus this fixes a style(9) bug. Discussed with: kib Approved by: gnn (mentor) MFC after: 3 days END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-17T13:48:39.600446Z K 7 svn:log V 285 Disable hwpmc(4) support for Intel Xeon Sandy Bridge (Model 0x2D). Due to some differences in MSRs between Xeon Sandy Bridge and Core Sandy Bridge (Model 0x2A), wrmsr() may generate in a GP# fault exception and so a panic of the machine. Approved by: gnn (mentor) MFC after: 3 days END K 10 svn:author V 7 iwasaki K 8 svn:date V 27 2012-06-17T16:19:09.386667Z K 7 svn:log V 61 Resotre LCD brightness level on resuming. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-06-17T16:32:32.952329Z K 7 svn:log V 180 If VOP_ADVLOCK() call or earlier checks failed don't check for a race with close, because even if we had a race there is nothing to unlock. Discussed with: kib MFC after: 1 month END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-06-17T16:59:37.123567Z K 7 svn:log V 169 Extend the comment about checking for a race with close to explain why it is done and why we don't return an error in such case. Discussed with: kib MFC after: 1 month END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-06-17T18:34:04.184462Z K 7 svn:log V 187 Move the nfsrpc_close() call in ncl_reclaim() for the NFSv4 client to below the vnode_destroy_vobject() call, since that is where writes are flushed. Suggested by: kib MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-17T19:16:31.998318Z K 7 svn:log V 63 MFC r237131: Use right size when freeing unneeded GTT mapping. END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-17T20:45:45.580202Z K 7 svn:log V 642 - Extend the condvar(9) KPI introducing a new cv_timedwait_bt_sig() function so that we can specify timeout precision in terms of struct bintime. - Now seltdwait() takes three argument rather than two so that their consumers can specify if the timeout should be passed as ticks or bintime. - Refactor the kern_select() and the sys_poll() code so that these two services may rely on cv_timedwait_bt_sig() rather than on the previous less precise cv_timedwait_sig(). - Rethink the sleepqueue(9) KPI in order to make an attempt of avoiding both code duplication and breakages. Your mileage WILL vary, feel free to comment. Reviewed by: mav END K 10 svn:author V 3 phk K 8 svn:date V 27 2012-06-17T21:02:48.228539Z K 7 svn:log V 749 On certain newer Intel Atom based motherboards, for instance the D2500CC which I have, syscons in text-mode fails to show the expected contents due to write errors into video-memory. At least one of the causes is that we copy from syscons internal buffer to the video memory with optimized bcopy(9) which uses >16bit operations. Until now, 32bit and wider operations have always worked on the video memory, but since I cannot find a single source which says that this SHALL work, and since these chipsets/bugs are now out there, this commit changes syscons to always use 16bit copies on i386 & amd64. This may be relevevant for PR's: 166262 166639 and various other bug reports floating elsewhere on the net, but I lack hardware to test those. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-06-17T21:04:22.559449Z K 7 svn:log V 219 Don't check for race with close on advisory unlock (there is nothing smart we can do when such a race occurs). This saves lock/unlock cycle for the filedesc lock for every advisory unlock operation. MFC after: 1 month END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-06-17T21:06:36.115605Z K 7 svn:log V 444 Improve the functionality of the PORTS_MODULES knob by adding LOCALBASE/bin and sbin to PATH, which allows dependencies to be found; adding SRC_BASE and OSVERSION to match the new kernel, and putting the related builds under MAKEOBJDIRPREFIX so that they only need to be built once per kernel. In addition to the PR this includes ideas/contributions from crees and matthew. PR: ports/161452 Submitted by: Garrett Cooper END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-06-17T21:07:00.592857Z K 7 svn:log V 444 Improve the functionality of the PORTS_MODULES knob by adding LOCALBASE/bin and sbin to PATH, which allows dependencies to be found; adding SRC_BASE and OSVERSION to match the new kernel, and putting the related builds under MAKEOBJDIRPREFIX so that they only need to be built once per kernel. In addition to the PR this includes ideas/contributions from crees and matthew. PR: ports/161452 Submitted by: Garrett Cooper END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-06-17T21:07:27.707491Z K 7 svn:log V 444 Improve the functionality of the PORTS_MODULES knob by adding LOCALBASE/bin and sbin to PATH, which allows dependencies to be found; adding SRC_BASE and OSVERSION to match the new kernel, and putting the related builds under MAKEOBJDIRPREFIX so that they only need to be built once per kernel. In addition to the PR this includes ideas/contributions from crees and matthew. PR: ports/161452 Submitted by: Garrett Cooper END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-06-17T21:28:11.443521Z K 7 svn:log V 336 MFC of r236427 Clean up and complete the incomplete deferred enable code. Make the default role NONE if target mode is selected. This allows ctl(8) to switch to/from target mode via knob settings. If we default to role 'none', this causes a reset of the 24XX f/w which then causes initiators to wake up and notice when we come online. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-06-17T21:30:24.655258Z K 7 svn:log V 163 MFC of 237135 If debug values were set, the default from tval floated down and triggered an attempt to set multiple virtual ports whether you wanted them or not. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-06-17T21:39:40.019135Z K 7 svn:log V 864 Prepare for FC-Tape support. This involved doing a lot of little cleanups and crosschecks against firmware documentation. We now check and report FC firmware attributes and at least are now prepared for the upper 48 bits of f/w attributes (which are probably for the 8100 or later cards). This involed changing how inbits and outbits are calculated for varios commands, hopefully clearer and cleaner. This also caused me to clean up the actual mailbox register usage. Finally, we are now unconditionally using a CRN for initiator mode. A longstanding issue with the 2400/2500 is that they do *not* support a "Prefer PTP followed by loop", which explains why enabling that caused the f/w to crash. A slightly more invasive change is to let the firmware load entirely drive whether multi_id support is enabled or not. Sponsored by: Spectralogic MFC after: 1 week END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-06-17T21:40:13.081002Z K 7 svn:log V 49 libc: Reduce relative relocations in strftime(). END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-06-17T21:47:24.677936Z K 7 svn:log V 126 Roll to the latest 2400/2500 firmware available from the public QLogic website. Sponsored by: Spectralogic MFC after: 1 week END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-17T21:48:40.602361Z K 7 svn:log V 20 MFC as per r237201. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-18T02:08:04.129446Z K 7 svn:log V 1400 Extend the radiotap code to be aware of the size of any extra vendor bitmaps that may occur. The way this works is: * the beginning of the radiotap frame has a 32 bit "radiotap" namespace bitmap; * if the vendor bitmap bit is set, then the next bitmap will be interpreted as a vendor bitmap; * this can keep going on and on (ie, more vendor and radiotap namespace bitmaps can be added) until the last bitmap with no "more bitmaps" set. Now, the radiotap code gets its grubby fingers into the supplied radiotap rx/tx buffer and replaces the channel configuration for each frame. I don't know why it's not up to the drivers themselves to do this, but I digress. So, if a vendor bitmap (or two, etc) exists, the offset calculations will be all completely wrong. This particular patch introduces ieee80211_radiotap_attachv(), which includes the number of vendor bitmaps (well, any other bitmaps, vendor or otherwise) between the end of the bitmap/header and the start of the actual radiotap field entries. This makes the radiotap calculations "right", so it correctly calculates where to overwrite the channel configuration. The long term fix is to go through and make each driver update the channel configuration, as some of the fields are already being updated. That, however, is a longer term fix that will need each driver fixed. I leave that as an exercise to someone in the future. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-06-18T04:00:56.154530Z K 7 svn:log V 48 Have the map method apply to a segment for now. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-18T04:55:07.055236Z K 7 svn:log V 97 MFC r233648: Remove trailing whitespace per mdoc lint warning Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-18T05:01:57.855816Z K 7 svn:log V 87 MFC 236352: Bump date for content missed in r236290 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-18T05:02:21.116336Z K 7 svn:log V 87 MFC 236352: Bump date for content missed in r236290 Approved by: cperciva (implicit) END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-06-18T07:34:38.183187Z K 7 svn:log V 347 In tty_makedev() the following construction: dev = make_dev_cred(); dev->si_drv1 = tp; leaves a small window where the newly created device may be opened and si_drv1 is NULL. As this is a vary rare situation, using a lock to close the window seems overkill. Instead just wait for the assignment of si_drv1. Suggested by: kib MFC after: 1 week END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-06-18T07:37:30.838863Z K 7 svn:log V 35 Regression test for r237219 added. END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-06-18T07:42:40.878521Z K 7 svn:log V 17 Create /user/pho END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-06-18T07:43:23.647987Z K 7 svn:log V 65 Move /projects/stress2 -> /user/pho/stress2 as requested by uqs. END K 10 svn:author V 3 phk K 8 svn:date V 27 2012-06-18T07:54:10.947736Z K 7 svn:log V 113 Fix the previous commit to only copy the data we were asked to and not twice as much. Spotted by: Taku YAMAMOTO END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-18T10:56:29.904595Z K 7 svn:log V 207 Merge 231266 from head: Add support for RICOH R5CE823 card reader, that can be found in some Lenovo laptops. The conroller needs a quirk to lower its frequency, and after that it operates normally. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-18T12:45:35.475673Z K 7 svn:log V 70 Remove never used CD/DA_FLAG_TAGGED_QUEUING flags. MFC after: 1 week END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-06-18T13:50:41.265766Z K 7 svn:log V 157 Simplify IP pointer recovery in case of mbuf reallocation. Reviewed by: glebius (previous version) Approved by: ae(mentor) MFC after: 2 weeks END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-06-18T13:56:36.075893Z K 7 svn:log V 389 Make radix lookup on src and dst flow addresses optional and configurable on per-interface basis. Remove __inline__ for several functions being called once per flow (e.g once per 10-20 packets on common traffic flows). Update manual page to simplify search for BPF data link types. Sponsored by Yandex LLC Reviewed by: glebius Approved by: ae(mentor) MFC after: 2 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-06-18T16:21:59.996289Z K 7 svn:log V 173 Add PV chunk and list locking to pmap_page_exists_quick(), pmap_page_is_mapped(), and pmap_remove_pages(). These functions are no longer serialized by the pvh global lock. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-06-18T17:09:39.493700Z K 7 svn:log V 55 Cleanup the UDP decapsulation code. MFC after: 3 days END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-06-18T17:11:24.074422Z K 7 svn:log V 64 Add rate limitation for SCTP OOTB responses. MFC after: 3 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-06-18T17:21:02.537524Z K 7 svn:log V 83 MFC: r235948 Catch up with realpath(3) changes (r236400) and unbreak acpidump(8). END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-06-18T17:23:24.097781Z K 7 svn:log V 83 MFC: r235948 Catch up with realpath(3) changes (r236400) and unbreak acpidump(8). END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-18T18:25:57.938324Z K 7 svn:log V 190 Don't compute the bucket applying the hash function if there's no need to do this. While here, try to simplify the callout_tick() logic and fix a couple of style bugs. Discussed with: mav END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-18T19:11:07.132770Z K 7 svn:log V 46 Avoid hard sentence break. MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-18T19:14:06.697409Z K 7 svn:log V 115 Document the hw.ahci.force tunable here, too, as it's also used by ataahci(4) and atanvidia(4). MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-18T19:18:31.207696Z K 7 svn:log V 135 Refine r237102 a bit: - Anounce JTAG interfaces deliberately skipped. - Bring back empty lines too eagerly removed. MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-18T19:22:10.401651Z K 7 svn:log V 53 Unbreak after r236658 by comparing the right things. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-18T19:47:25.161012Z K 7 svn:log V 43 Try to bring this file closer to style(9). END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-18T20:14:42.486160Z K 7 svn:log V 487 Revert the part of r236495 that introduced checking of SPI_SR_TXEMPTY for TX transfer completion as for reasons unknown this occasionally causes SPI_SR_RXBUFF and SPI_SR_ENDRX to not rise. In any case, once the RX part of the transfer is done it's obvious that the preceding TX part had finished and checking of SPI_SR_TXEMPTY was introduced to rule out a possible cause for the data corruption mentioned in r236495 but which didn't turn out to be the problem anyway. MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-18T20:19:07.480897Z K 7 svn:log V 208 Revert r236529, re-enabling verification of the flashed content as the underlying problem was dealt with in r237239 (in fact, disabling verification also actually only made the problem less likely to occur). END K 10 svn:author V 5 simon K 8 svn:date V 27 2012-06-18T20:48:21.725237Z K 7 svn:log V 250 Correct the patch for FreeBSD-SA-12:04.sysret for releng/8.1 where it was accidently applied to the wrong location. Reported by: Steven Chamberlain Reviewed by: jhb, kib Security: FreeBSD-SA-12:04.sysret Approved by: so (simon) END K 10 svn:author V 5 simon K 8 svn:date V 27 2012-06-18T21:00:54.386639Z K 7 svn:log V 109 Add UPDATING and newvers.sh information for the FreeBSD-SA-12:04.sysret correction. Approved by: so (simon) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-18T21:08:48.005721Z K 7 svn:log V 280 Adjust the fix in r236953, by not generating the signal manually, but performing the return to usermode using full return path. This consolidates the handling of exceptional situations in less number of places, and is less code as well. Reviewed by: jhb MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-06-18T22:17:28.998048Z K 7 svn:log V 669 Fix the NFSv4 client for the case where mmap'd files are written, but not msync'd by a process. A VOP_PUTPAGES() called when VOP_RECLAIM() happens will usually fail, since the NFSv4 Open has already been closed by VOP_INACTIVE(). Add a vm_object_page_clean() call to the NFSv4 client's VOP_INACTIVE(), so that the write happens before the NFSv4 Open is closed. kib@ suggested using vgone() instead and I will explore this, but this patch fixes things in the meantime. For some reason, the VOP_PUTPAGES() is still attaempted in VOP_RECLAIM(), but having this fail doesn't cause any problems except a "stateid0 in write" being logged. Reviewed by: kib MFC after: 1 week END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-06-18T23:18:49.520264Z K 7 svn:log V 366 Document support for Intel Enhanced Speedstep Tech interface of cpufreq(4) via a new man page est(4) Document the two exposed tuneables of est(4). I'd appreciate more reviews of content if possible. I gleaned the information contained herein from sys/x86/cpufreq/est.c and the Intel reference documentation Reviewed by: wblock hrs gjb MFC after: 2 weeks END K 10 svn:author V 2 np K 8 svn:date V 27 2012-06-19T00:41:29.208842Z K 7 svn:log V 91 - Retire arp_update_event. - style(9) fixes. - More detailed comments in netinet/toecore.h END K 10 svn:author V 6 wblock K 8 svn:date V 27 2012-06-19T02:54:54.149116Z K 7 svn:log V 156 MFC r235873, r235967: Fixes to man8 groff mandoc style, usage mistakes, or typos. PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb (mentor) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-06-19T05:48:36.713953Z K 7 svn:log V 29 Vendor import of zlib 1.2.7. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-06-19T05:49:53.215090Z K 7 svn:log V 16 Tag zlib 1.2.7. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-06-19T05:53:47.657194Z K 7 svn:log V 18 Minor mdoc fixes. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-06-19T05:55:14.777807Z K 7 svn:log V 31 Remove end of line whitespace. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-06-19T05:55:56.586554Z K 7 svn:log V 24 Add the test directory. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-19T06:09:47.449676Z K 7 svn:log V 132 Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva MFC After: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-19T06:09:58.874236Z K 7 svn:log V 132 Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva MFC After: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-19T06:10:24.533610Z K 7 svn:log V 132 Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva MFC After: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-19T06:10:27.889474Z K 7 svn:log V 132 Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva MFC After: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-19T06:10:31.084397Z K 7 svn:log V 132 Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva MFC After: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-19T06:10:34.259162Z K 7 svn:log V 132 Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva MFC After: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-19T06:18:37.298782Z K 7 svn:log V 213 Allow users with RO privilege to the device to read the RO attributes. PR: bin/167302 Submitted by: markham breitbach Discussed with: pjd (briefly) Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-19T06:18:42.394406Z K 7 svn:log V 153 Add __unused macros to appropriate places in order to allow building with WARNS=6 on base gcc, gcc46, and clang Approved by: cperciva MFC after: 1 week END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-06-19T06:46:54.441481Z K 7 svn:log V 54 MFC r236944: LibUSB v1.0 API compliance and bugfixes. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-06-19T06:52:21.061776Z K 7 svn:log V 54 MFC r236944: LibUSB v1.0 API compliance and bugfixes. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-06-19T07:34:13.941262Z K 7 svn:log V 1004 - Updated TOE support in the kernel. - Stateful TCP offload drivers for Terminator 3 and 4 (T3 and T4) ASICs. These are available as t3_tom and t4_tom modules that augment cxgb(4) and cxgbe(4) respectively. The cxgb/cxgbe drivers continue to work as usual with or without these extra features. - iWARP driver for Terminator 3 ASIC (kernel verbs). T4 iWARP in the works and will follow soon. Build-tested with make universe. 30s overview ============ What interfaces support TCP offload? Look for TOE4 and/or TOE6 in the capabilities of an interface: # ifconfig -m | grep TOE Enable/disable TCP offload on an interface (just like any other ifnet capability): # ifconfig cxgbe0 toe # ifconfig cxgbe0 -toe Which connections are offloaded? Look for toe4 and/or toe6 in the output of netstat and sockstat: # netstat -np tcp | grep toe # sockstat -46c | grep toe Reviewed by: bz, gnn Sponsored by: Chelsio communications. MFC after: ~3 months (after 9.1, and after ensuring MFC is feasible) END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-06-19T08:12:44.509058Z K 7 svn:log V 195 Condition the implementation of pv_entry_count on PV_STATS. On amd64, pv_entry_count is purely informational. It does not serve any functional purpose. Add PV chunk locking to get_pv_entry(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-19T10:04:36.686939Z K 7 svn:log V 611 MFC r236976: For incompleted block allocations or frees, the inode block count usage must be recalculated. The blk_check pass of suj checker explicitely marks inodes which owned such blocks as needing block count adjustment. But ino_adjblks() is only called by cg_trunc pass, which is performed before blk_check. As result, the block use count for such inodes is left wrong. This causes full fsck run after journaled run to still find inconsistencies like 'INCORRECT BLOCK COUNT I=14557 (328 should be 0)' in phase 1. Fix this issue by running additional adj_blk pass after blk_check, which updates the field. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-19T10:06:34.502530Z K 7 svn:log V 84 MFC r237159: Fix reading of netgroup(5) file which contains more then one netgroup. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-19T10:07:50.691557Z K 7 svn:log V 25 MFC r237160: More style. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-06-19T11:39:56.287801Z K 7 svn:log V 278 Revert user comparison back to user names as some user can share uids (root/toor for example) get the username information from old_pw structures to still allow renaming of a user. Reported by: Claude Buisson Approved by: des (mentor) MFC after: 3 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2012-06-19T14:46:18.855717Z K 7 svn:log V 72 Switch the default password hash from md5 to sha512. MFC after: 1 week END K 10 svn:author V 3 des K 8 svn:date V 27 2012-06-19T14:47:07.569947Z K 7 svn:log V 74 Passive mode is the default, and has been for a while. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-06-19T15:15:35.310245Z K 7 svn:log V 211 Fix another off-by-one error in the previous fix so that the new start address is properly aligned. While here, use a simpler expression to align the new end address that we use elsewhere for aligning the end. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-06-19T16:06:27.617567Z K 7 svn:log V 203 Add a 'wmask' variable to hold the expression '(1ul << w->step) - 1' in pcib_grow_window(). This makes the code slightly easier to read and prevents the type of bug fixed in r237271. MFC after: 3 days END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-06-19T17:13:14.012601Z K 7 svn:log V 315 Correct misunderstanding of hw.est.strict Setting strict causes a validation of the requested value vs the value currently running after a frequency change is requested. Change applicability to be single core not i386. Thanks to mav@ for reviewing and commenting on my lack of understanding. MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-06-19T18:42:24.975477Z K 7 svn:log V 1216 Further refine the implementation of POSIX_FADV_NOREUSE. First, extend the changes in r230782 to better handle the common case of using NOREUSE with sequential reads. A NOREUSE file descriptor will now track the last implicit DONTNEED request it made as a result of a NOREUSE read. If a subsequent NOREUSE read is adjacent to the previous range, it will apply the DONTNEED request to the entire range of both the previous read and the current read. The effect is that each read of a file accessed sequentially will apply the DONTNEED request to the entire range that has been read. This allows NOREUSE to properly handle misaligned reads by flushing each buffer to cache once it has been completely read. Second, apply the same changes made to read(2) by r230782 and this change to writes. This provides much better performance in the sequential write case as it allows writes to still be clustered. It also provides much better performance for misaligned writes. It does mean that NOREUSE will be generally ineffective for non-sequential writes as the current implementation relies on a future NOREUSE write's implicit DONTNEED request to flush the dirty buffer from the current write. MFC after: 2 weeks END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-19T19:40:54.993617Z K 7 svn:log V 377 - Modify a bit the callout(9) public KPI to avoid code duplication and avoid breakages, as recently done for sleepqueue(9) - Rename the 'direct' argument in callout_reset_on() and friends into 'flags' because it may used for furter enhancements, such as specify precision specification, on which I'm currently woking on. Suggested by: attilio [1], mav [2] Reviewed by: mav END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-06-19T22:21:59.646665Z K 7 svn:log V 403 The falloc() function obtains two references to newly created 'fp'. On success we have to drop one after procdesc_finit() and on failure we have to close allocated slot with fdclose(), which also drops one reference for us and drop the remaining reference with fdrop(). Without this change closing process descriptor didn't result in killing pdfork(2)ed child. Reviewed by: rwatson MFC after: 1 month END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-06-19T22:23:59.546359Z K 7 svn:log V 236 Check proper flag (PDF_DAEMON, not PD_DAEMON) when deciding if the process should be killed or not. This fixes killing pdfork(2)ed process on last close of the corresponding process descriptor. Reviewed by: rwatson MFC after: 1 month END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-19T23:45:17.512861Z K 7 svn:log V 839 Add some locally written code to tinker with radar frame capture and decoding from userland. * lib/libradarpkt/ has some bits that I've written to decode the PHY error frame format, for AR5416 and post-AR5416. The AR9280 code is just as applicable for AR9130/AR9160. * src/pktlog will read either a radiotap interface or a capture file and dump phy errors out at you. It includes a BPF filter which limits the amount of stuff that gets pushed to userland. It doesn't output anything by default; you'll have to enable debug printing for that to happen. check the source. The code relies on the patch at http://wiki.freebsd.org/ath(4)/RadarFFT. There's hard-coded -I references to my home-directory, sorry. You should replace that with the path to your kernel tree which has the ath(4) radiotap vendor extension patch. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-06-20T00:09:47.775542Z K 7 svn:log V 62 Install filemon.h into /usr/include for userland consumption. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-06-20T00:13:44.551371Z K 7 svn:log V 32 MFC: r237279: install filemon.h END K 10 svn:author V 6 scottl K 8 svn:date V 27 2012-06-20T00:17:29.223703Z K 7 svn:log V 316 Update the 'fwdownload' command to also flash disks connected over an ATA/SATA transport. The detection logic is automatic, so it should Just Work. While here, also improve the progress meter that is displayed during firmware download. Submitted by: Alistair Crooks Obtained from: Netflix, Inc. MFC after: 3 days END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-06-20T00:37:00.473383Z K 7 svn:log V 25 Correct typo in version. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-06-20T00:41:31.349785Z K 7 svn:log V 27 MFC: r237282: version typo END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-06-20T02:21:53.216269Z K 7 svn:log V 224 Fix potential symlink race condition in "rm -P" by adding a check that the file we have opened is the one we expected. Also open in non-blocking mode to avoid a potential hang with FIFOs. Obtained from: NetBSD via OpenBSD END K 10 svn:author V 6 scottl K 8 svn:date V 27 2012-06-20T04:11:34.082710Z K 7 svn:log V 138 Add progress.c and progress.h, missed in the previous commit to camcontrol. Submitted by: Garrett Cooper Obtained from: Netflix, Inc. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-20T06:38:41.714367Z K 7 svn:log V 254 Don't close an uninitialized descriptor. [1] Add a sanity check for the validity of the passed fd. PR: kern/139080 [1] Submitted by: Andrey Simonenko [1] Reviewed by: pjd (briefly) Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-20T06:58:17.648763Z K 7 svn:log V 174 MFC r236999: Include a warning when using the example code as it may not work in unusual situations. Also slightly optimize the command. Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-20T06:58:38.250927Z K 7 svn:log V 174 MFC r236999: Include a warning when using the example code as it may not work in unusual situations. Also slightly optimize the command. Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-20T06:58:56.553771Z K 7 svn:log V 174 MFC r236999: Include a warning when using the example code as it may not work in unusual situations. Also slightly optimize the command. Approved by: cperciva (implicit) END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-06-20T07:25:20.296755Z K 7 svn:log V 248 Add PV list locking to pmap_copy(), pmap_enter_object(), and pmap_enter_quick(). These functions are no longer serialized by the pvh global lock. There is no need to release the PV list lock before calling free_pv_chunk() in pmap_remove_pages(). END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T07:38:52.919694Z K 7 svn:log V 52 Prepare a workplace for review of bootcode changes. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T07:56:38.678944Z K 7 svn:log V 230 When primary GPT header is damaged and we are trying to find backup GPT header at the last LBA, check for GEOM metadata and skip them if found. This allows use GPT atop of the some GEOM providers and boot from. Submitted by: hrs END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T08:02:44.076111Z K 7 svn:log V 93 Teach PMBR boot code read the backup GPT header and skip GEOM's metadata. Submitted by: hrs END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T08:29:24.848541Z K 7 svn:log V 612 In case when we have damaged several first sectors, GEOM_PART_GPT class will not detect GPT even if backup GPT header is ok. To recover we should write PMBR to the LBA 0. But we can't use `gpart bootcode` command until GPT is detected and geom created. We can dd(8) /boot/pmbr image and kernel will be able detect GPT. But our PMBR image contains only empty partition entries and our loader can't detect GPT when it hasn't the partition record with type PMBR. Add one partition record to the PMBR image. It covers all space after the LBA 0. It is better to have one partially correct record, than have nothing. END K 10 svn:author V 7 fabient K 8 svn:date V 27 2012-06-20T09:01:44.583699Z K 7 svn:log V 86 Fix viawd(4) that was only working as a module. Obtained from: jhb MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-06-20T09:38:35.960639Z K 7 svn:log V 100 MFC: r232051 Catch up with r195837 (2.5 years ago) which renamed net_add_domain() to domain_add(). END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T10:15:45.943253Z K 7 svn:log V 162 Introduce machine independet code to work with partition tables from within the various loaders. The current API is under design, so any suggestions are welcome. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-06-20T10:59:11.526418Z K 7 svn:log V 100 MFC: r232051 Catch up with r195837 (2.5 years ago) which renamed net_add_domain() to domain_add(). END K 10 svn:author V 6 cherry K 8 svn:date V 27 2012-06-20T11:30:15.765366Z K 7 svn:log V 108 Add more Xen interface primitives to privileged ops (eg: cli, load_cr3 etc ) Approved by: gibbs (implicit) END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T11:53:04.865484Z K 7 svn:log V 325 o Remove the most of code related to partition tables from biosdisk.c in preparation to moving to the MI code from part.c. o Move BIOS CHS fields from "struct open_disk" to "struct bdinfo". o Add sectors and sectorsize fields to "struct bdinfo", also add a pointer to "struct ptable". o Fix the indent according to style(9). END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-06-20T12:22:54.209572Z K 7 svn:log V 63 Bring arm ports using old interrupt routing code back to work. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T12:46:27.987473Z K 7 svn:log V 148 Merge bd_getgeom and bd_int13probe functions. Add BIOS call to determine disk parameters (sectors count and sector size). Also some style(9) fixes. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T13:41:20.563007Z K 7 svn:log V 75 MFC r236605: Replace #ifdef CAMDEBUG + if + panic() with single KASSERT(). END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T13:42:40.802207Z K 7 svn:log V 75 MFC r236605: Replace #ifdef CAMDEBUG + if + panic() with single KASSERT(). END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T13:59:25.174792Z K 7 svn:log V 91 MFC r236602, r236613: Tune and add some missing CAM_DEBUG() points for better consistency. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:11:18.478430Z K 7 svn:log V 91 MFC r236602, r236613: Tune and add some missing CAM_DEBUG() points for better consistency. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-06-20T14:13:07.929348Z K 7 svn:log V 188 MFC r236819 Validate IPv4 network mask being passed to ipfw kernel interface. Incorrect mask can possibly be one of the reasons for kern/127209 existance. Approved by: ae(mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:14:27.536142Z K 7 svn:log V 104 MFC r236555: Add -p argument for `camcontrol debug` to allow enabling CAM_DEBUG_PROBE added at r208911. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-06-20T14:15:14.303052Z K 7 svn:log V 188 MFC r236819 Validate IPv4 network mask being passed to ipfw kernel interface. Incorrect mask can possibly be one of the reasons for kern/127209 existance. Approved by: ae(mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:15:39.190657Z K 7 svn:log V 104 MFC r236555: Add -p argument for `camcontrol debug` to allow enabling CAM_DEBUG_PROBE added at r208911. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:19:55.664766Z K 7 svn:log V 88 MFC r236604, r236639: Do not reinvent a wheel and let default error handler do its job. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-20T14:22:38.632548Z K 7 svn:log V 48 Don't use locking in the clone destroy routine. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:23:10.117485Z K 7 svn:log V 66 MFC r236639: Use default error handler when flushing disk caches. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-20T14:24:13.229637Z K 7 svn:log V 49 Don't leak mship in case if we specify syncpeer. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:27:55.395114Z K 7 svn:log V 140 MFC r236689 (by ken): Fix a memory leak in the kernel case in scsi_command_string(). Submitted by: Kashyap Desai END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:29:01.811775Z K 7 svn:log V 140 MFC r236689 (by ken): Fix a memory leak in the kernel case in scsi_command_string(). Submitted by: Kashyap Desai END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:36:09.449221Z K 7 svn:log V 520 MFC r236712: To make CAM debugging easier, compile in some debug flags (CAM_DEBUG_INFO, CAM_DEBUG_CDB, CAM_DEBUG_PERIPH and CAM_DEBUG_PROBE) by default. List of these flags can be modified with CAM_DEBUG_COMPILE kernel option. CAMDEBUG kernel option still enables all possible debug, if not overriden. Additional 50KB of kernel size is a good price for the ability to debug problems without rebuilding the kernel. In case where size is important, debugging can be compiled out by setting CAM_DEBUG_COMPILE option to 0. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:39:35.804359Z K 7 svn:log V 520 MFC r236712: To make CAM debugging easier, compile in some debug flags (CAM_DEBUG_INFO, CAM_DEBUG_CDB, CAM_DEBUG_PERIPH and CAM_DEBUG_PROBE) by default. List of these flags can be modified with CAM_DEBUG_COMPILE kernel option. CAMDEBUG kernel option still enables all possible debug, if not overriden. Additional 50KB of kernel size is a good price for the ability to debug problems without rebuilding the kernel. In case where size is important, debugging can be compiled out by setting CAM_DEBUG_COMPILE option to 0. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:43:40.516359Z K 7 svn:log V 109 MFC r236713: Add CAM_DEBUG_INFO debug messages for periph created/invalidated/destroyed and for asyncs sent. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T14:47:39.016705Z K 7 svn:log V 109 MFC r236713: Add CAM_DEBUG_INFO debug messages for periph created/invalidated/destroyed and for asyncs sent. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T15:12:31.252546Z K 7 svn:log V 13 Style fixes. END K 10 svn:author V 7 fabient K 8 svn:date V 27 2012-06-20T15:45:50.521621Z K 7 svn:log V 71 Allow booting XENHVM kernel without Xen hypervisor. MFC after: 3 days END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T15:55:43.060778Z K 7 svn:log V 99 Reimplement bd_opendisk and bd_closedisk functins using new API to get access to partition tables. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T15:59:42.450946Z K 7 svn:log V 23 Fix the name of macro. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T16:21:08.990806Z K 7 svn:log V 141 Use sector size from the bdinfo structure instead of BIOSDISK_SECSIZE. Also BIOS geometry now in the bdinfo, not in the open_disk structure. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T16:24:02.422493Z K 7 svn:log V 25 Add bd_cleanup function. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T16:51:14.467766Z K 7 svn:log V 1823 MFC r236814: One more major cam_periph_error() rewrite to improve error handling and reporting. It includes: - removing of error messages controlled by bootverbose, replacing them with more universal and informative debugging on CAM_DEBUG_INFO level, that is now built into the kernel by default; - more close following to the arguments submitted by caller, such as SF_PRINT_ALWAYS, SF_QUIET_IR and SF_NO_PRINT; consumer knows better which errors are usual/expected at this point and which are really informative; - adding two new flags SF_NO_RECOVERY and SF_NO_RETRY to allow caller specify how much assistance it needs at this point; previously consumers controlled that by not calling cam_periph_error() at all, but that made behavior inconsistent and debugging complicated; - tuning debug messages and taken actions order to make debugging output more readable and cause-effect relationships visible; - making camperiphdone() (common device recovery completion handler) to also use cam_periph_error() in most cases, instead of own dumb code; - removing manual sense fetching code from cam_periph_error(); I was told by number of people that it is SIM obligation to fetch sense data, so this code is useless and only significantly complicates recovery logic; - making ada, da and pass driver to use cam_periph_error() with new limited recovery options to handle error recovery and debugging in common way; as one of results, CAM_REQUEUE_REQ and other retrying statuses are now working fine with pass driver, that caused many problems before. - reverting r186891 by raj@ to avoid burning few seconds in tight DELAY() loops on device probe, while device simply loads media; I think that problem may already be fixed in other way, and even if it is not, solution must be different. Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 ken K 8 svn:date V 27 2012-06-20T17:08:00.805858Z K 7 svn:log V 2591 Fix several reference counting and object lifetime issues between the pass(4) and enc(4) drivers and devfs. The pass(4) driver uses the destroy_dev_sched() routine to schedule its device node for destruction in a separate thread context. It does this because the passcleanup() routine can get called indirectly from the passclose() routine, and that would cause a deadlock if the close routine tried to destroy its own device node. In any case, once a particular passthrough driver number, e.g. pass3, is destroyed, CAM considers that unit number (3 in this case) available for reuse. The problem is that devfs may not be done cleaning up the previous instance of pass3, and will panic if isn't done cleaning up the previous instance. The solution is to get a callback from devfs when the device node is removed, and make sure we hold a reference to the peripheral until that happens. Testing exposed some other cases where we have reference counting issues, and those were also fixed in the pass(4) driver. cam_periph.c: In camperiphfree(), reorder some of the operations. The peripheral destructor needs to be called before the peripheral is removed from the peripheral is removed from the list. This is because once we remove the peripheral from the list, and drop the topology lock, the peripheral number may be reused. But if the destructor hasn't been called yet, there may still be resources hanging around (like devfs nodes) that haven't been fully cleaned up. cam_xpt.c: Add an argument to xpt_remove_periph() to indicate whether the topology lock is already held. scsi_enc.c: Acquire an extra reference to the peripheral during registration, and release it once we get a callback from devfs indicating that the device node is gone. Call destroy_dev_sched_cb() in enc_oninvalidate() instead of calling destroy_dev() in the cleanup routine. scsi_pass.c: Add reference counting to handle peripheral and devfs object lifetime issues. Add a reference to the peripheral and the devfs node in the peripheral registration. Don't attempt to add a physical path alias if the peripheral has been marked invalid. Release the devfs reference once the initial physical path alias taskqueue run has completed. Schedule devfs node destruction in the passoninvalidate(), and release our peripheral reference in a new routine, passdevgonecb() once the devfs node is gone. This allows the peripheral to fully go away, and the peripheral destructor, passcleanup(), will get called. MFC after: 3 days Sponsored by: Spectra Logic END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-06-20T17:20:25.602927Z K 7 svn:log V 42 Fix ARM compilation issue. X-MFC: 237260 END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-06-20T17:26:22.002708Z K 7 svn:log V 71 Now that there is an est(4) man page, reference it here in cpufreq(4). END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-20T17:45:53.268629Z K 7 svn:log V 98 Reimplement bd_print function using new API. Use actual sector size in the display_size function. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-06-20T17:51:04.125583Z K 7 svn:log V 24 Import ACPICA 20120620. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-06-20T17:52:21.229130Z K 7 svn:log V 21 Tag ACPICA 20120620. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-06-20T18:00:26.509931Z K 7 svn:log V 381 Move the per-thread deferred user map entries list into a private list in vm_map_process_deferred() which is then iterated to release map entries. This avoids having a nested vm map unlock operation called from the loop body attempt to recuse into vm_map_process_deferred(). This can happen if the vm_map_remove() triggers the OOM killer. Reviewed by: alc, kib MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T18:25:51.673652Z K 7 svn:log V 260 Check status of cam_periph_hold() inside cdclose(). If cd device was invalidated while open, cam_periph_hold() will return error and won't get the reference. Following reference release will crash the system. Sponsored by: iXsystems, Inc. MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-20T18:35:36.160301Z K 7 svn:log V 58 Remove unused error variables in cdclose() and daclose(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-06-20T20:01:51.473977Z K 7 svn:log V 143 Only output a list of file systems that need to be dumped if the system has a non-empty dumpdates file. Reviewed by: brooks MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-06-20T21:06:51.937752Z K 7 svn:log V 206 Don't return an error if a kld does not contain any modules (e.g. a kld that only contained a sysctl). The kernel linker allows such modules, so the boot loader should not reject them. MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-06-20T21:10:38.945788Z K 7 svn:log V 288 Polish previous revision: if the fts_* routines have lstat()'ed the directory entry then use the struct stat from that instead of doing it again, and skip the rm_overwrite() call if fts_read() indicated that the entry couldn't be a regular file. Obtained from: OpenBSD MFC after: 1 week END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2012-06-20T21:28:17.113304Z K 7 svn:log V 118 MFC r236245 Fix a typo in wbwd so that CRF5 is actually written to the data register rather than the index register. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2012-06-20T21:29:19.599020Z K 7 svn:log V 129 MFC r236246 Add device ids for the Winbond 83627DHG-P chip and set the registers to trigger the keyboard reset line on timeout. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2012-06-20T21:32:54.271323Z K 7 svn:log V 118 MFC r236245 Fix a typo in wbwd so that CRF5 is actually written to the data register rather than the index register. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2012-06-20T21:34:03.421591Z K 7 svn:log V 129 MFC r236246 Add device ids for the Winbond 83627DHG-P chip and set the registers to trigger the keyboard reset line on timeout. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-06-20T21:38:16.693116Z K 7 svn:log V 85 Provide a mechanism to not clear out the work and output dirs when developing tests. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-06-20T22:21:02.216307Z K 7 svn:log V 231 MFC r236860,r237035: find(1): Extend and move description of -d option to -depth primary. The nullary -depth primary is standard and the -d option provides little advantage. Commit r236860 originally by issyl0. PR: docs/168885 END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-06-20T23:25:47.438417Z K 7 svn:log V 36 Selectively inline vm_page_dirty(). END K 10 svn:author V 6 wblock K 8 svn:date V 27 2012-06-20T23:47:48.595352Z K 7 svn:log V 208 MFC r235873: Fixes to man8 groff mandoc style, usage mistakes, or typos. Includes a partial MFC of r233648 for sbin/gvinum/gvinum.8. PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb (mentor) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-06-20T23:53:36.260608Z K 7 svn:log V 534 Currently the code uses gzFile * for a zlib file descriptor, which is not correct. The code works by accident because gzFile is currently defined as void *, and internally it would be casted from or to its real type. A newer version of zlib will instead define it as a pointer to a specific type pointer (namely, struct gzFile_s *). This therefore would cause stricter checks and compiler would catch this type mismatch. This change does not cause any changes to the resulting binary, as validated with md5(1). MFC after: 3 days END K 10 svn:author V 6 wblock K 8 svn:date V 27 2012-06-21T02:48:49.619970Z K 7 svn:log V 147 MFC r235873: Fixes to man8 groff mandoc style, usage mistakes, or typos. PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb (mentor) END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2012-06-21T03:10:48.116190Z K 7 svn:log V 147 Add support for the following Moxa PCIe multiport serial boards: - CP102E - CP102EL - CP132EL - CP114EL - CP118EL-A - CP168EL-A MFC after: 1 week END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-06-21T03:58:10.443341Z K 7 svn:log V 222 MFC of 236825 When synchronously syncing a device (MNT_WAIT), wait for buffers to become available. Otherwise we may excessively spin and fail with ``fsync: giving up on dirty''. Reviewed by: kib Tested by: Peter Holm END