ƒ²T188372 178 1442 808 1210 1656 556 169 339 313 171 322 148 184 117 166 175 154 154 503 115 274 176 162 179 198 211 232 210 183 310 209 124 431 280 249 214 734 286 525 217 360 526 320 238 193 405 305 334 225 333 333 149 126 194 379 150 236 171 163 132 124 165 155 152 113 248 152 329 209 838 688 202 167 121 260 148 245 291 186 289 277 209 198 338 435 193 224 165 228 167 157 117 117 399 246 130 242 168 119 145 167 232 152 255 356 231 469 161 159 1607 263 177 816 496 1116 117 965 132 165 147 179 190 124 132 133 147 682 467 481 168 351 429 312 136 166 252 404 169 198 127 234 112 154 146 209 496 193 233 233 277 170 241 814 419 287 227 145 532 174 953 170 1450 364 379 697 446 145 157 326 253 525 249 163 129 163 169 204 321 183 K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T03:43:46.828236Z K 7 svn:log V 1344 MFC r185328: o Introduce a new function, fxp_new_rfabuf which allocates a new Rx buffer and loads DMA map. Also add a function fxp_discard_rfabuf that handles reusing Rx buffer/DMA map. With this change fxp_add_rfabuf just handles appending a new RFA to existing chain. o Initialize mbuf length in fxp_new_rfabuf. o Don't reset rnr and have fxp(4) handle received frames even if it couldn't allocate new Rx buffer. This will make fxp(4) reload updated RFA under rnr case. The rnr would still be reset to 0 if polling is active and fxp(4) processed number of allowed Rx events. o Update if_iqdrops if fxp(4) couldn't allocate Rx buffer. Previously fxp(4) used to try to reuse Rx buffer when new buffer allocation is failed. But fxp(4) didn't take into account loaded DMA map such that the same DMA map was loaded again without unloading the map. There is no reason to unload the loaded map and reload the same map again, just reusing the map is enough. I believe the spare DMA map in softc was introduced to implement this behaviour. Also fxp(4) used to stop Rx processing if once Rx buffer allocation or DMA map load fails which in turn resulted in losing incoming frames under heavy network load. With this change fxp(4) should survive from resource shortage condition. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T03:46:15.003060Z K 7 svn:log V 711 MFC r185329: Implement Rx checksum offload for 82559 or later controllers. 82559 or later controllers added simple checksum calculation logic in RU. For backward compatibility the computed checksum is appended at the end of the data posted to Rx buffer. This type of simple checksum calculation support had been used on several vendors such as Sun HME/GEM, SysKonnect GENESIS and Marvell Yukon controllers. Because this type of checksum offload support requires parsing of received frame and pseudo checksum calculation with software routine it still consumes more CPU cycles than that of full-fledged checksum offload controller. But it's still better than software checksum calculation. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T03:48:49.451122Z K 7 svn:log V 1112 MFC r185330: Implement TSO for 82550/82551 controllers. o Configure controller to use dynamic TBD as TSO requires that operation mode. o Add a dummy TBD to tx_cb_u as TSO can access one more TBD in TSO operation. o Increase a DMA segment size to 4096 to hold a full IP segment with link layer header. o Unlike other TSO capable controllers, 82550/82551 does not modify the first IP packet in TSO operation so driver should create an IP packet with proper header. Subsequent IP packets are generated from the header information in the first IP packet header. Likewise pseudo checksum also should be computed by driver for the first packet. o TSO requires one more TBD to hold total TCP payload. To make code simple for TSO/non-TSO case, increase the index of the first available TBD array. o Remove KASSERT that checks the size of a DMA segment should be less than or equal to MCLBYTES as it's no longer valid in TSO. o Tx threshold and number of TBDs field is used to store MSS in TSO. So don't set the Tx threshold in TSO case. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T03:53:20.527655Z K 7 svn:log V 1558 MFC r185354,185538: r185354: Add basic WOL support for 82550/82551/82558 and 82559 based controllers. ICH based controllers are treated as 82559. 82557, earlier revision of 82558 and 82559ER have no WOL capability. o WOL support requires help of a firmware so add check whether hardware is capable of handling magic frames by reading EEPROM. o Enable accepting WOL frames only when hardware is about to suspend or shutdown. Previously fxp(4) used to allow receipt of magic frame under normal operation mode which could cause hardware hang if magic frame is received by hardware. Datasheet clearly states driver should not allow WOL frames under normal operation mode. o Disable WOL frame reception in device attach so have fxp(4) immunize against system hang which can be triggered by magic packets when the hardware is not in fully initialized state. o Don't reset all hardware configuration data in fxp_stop() otherwise important configuration data is lost and this would reset WOL configuration to default state which in turn cause hardware hang on receipt of magic frames. To fix the issue, preserve hardware configuration data by issuing a selective reset. o Explicitly disable interrupts after issuing selective reset as reset may unmask interrupts. r185538: Make sure to clear PMDR register by writing back power management events. Just reading PMDR register was not enough to have fxp(4) immuninize against received magic packets during system boot. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T03:55:51.429387Z K 7 svn:log V 459 MFC r185540: Add VLAN hardware tag insertion/stripping support. Tx/Rx checksum offload for VLAN frames are also supported. The VLAN hardware assistance is available only on 82550/82551 based controllers. While I'm here change the confusing name of bit1 in byte 22 of configuration block to vlan_drop_en. The bit controls whether hardware strips VLAN tagged frame or not. Special thanks to wpaul who sent valuable VLAN related information to me. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T03:58:29.665694Z K 7 svn:log V 73 MFC r185758: mutex.h is needed here. It got it by namespace pollution. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T04:00:54.913561Z K 7 svn:log V 242 MFC r186262: It seems that we don't need to reserve a TBD to set total TCP payload length in TSO case. Leaving unused TBD also seem to cause SCB timeouts under certain conditions when TSO/non-TSO traffics are active at the same time. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T04:02:53.648451Z K 7 svn:log V 216 MFC r186884: Always check whether dma map is valid before unloading the map. When fxp(4) intializes Rx buffers for the first time, there is no loaded dma map so attempting to unload it is an invalid operation. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2009-02-09T04:39:16.713826Z K 7 svn:log V 75 mark M_LASTFRAG at the last fragment. Reviewed by: sam MFC after: 3 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T04:59:13.091871Z K 7 svn:log V 225 Reclaim transmitted frames in re_tick(). This is for PCIe controllers that lose Tx completion interrupts under certain conditions. With this change it's safe to use MSI on PCIe controllers so enable MSI on these controllers. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-09T05:09:52.290975Z K 7 svn:log V 52 Document loader tunable hw.re.msi_disable. Bump .Dd END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-02-09T06:23:21.532532Z K 7 svn:log V 92 Avoid some cases of unnecessary page queues locking by vm_fault's delete- behind heuristic. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2009-02-09T10:28:16.737906Z K 7 svn:log V 23 MFC r187913: fix typo. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-09T11:27:56.234870Z K 7 svn:log V 75 Remove a stale comment from the clists code. We don't support quote bits. END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-02-09T11:32:23.714752Z K 7 svn:log V 83 Comment out the assertion from r188321. It is not valid for nfs. Reported by: alc END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-09T11:41:54.356612Z K 7 svn:log V 62 Fix INET only build breakage with SCTP - pointy hat to me :-) END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-09T11:42:23.016710Z K 7 svn:log V 62 Fix minor spacing problem found by s9indent from last commit. END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-02-09T12:22:49.442276Z K 7 svn:log V 410 MFC r187715: The kernel may do unbalanced calls to fifo_close() for fifo vnode, without corresponding number of fifo_open(). This causes assertion failure in fifo_close() due to vp->v_fifoinfo being NULL for kernel with INVARIANTS, or NULL pointer dereference otherwise. In fact, we may ignore excess calls to fifo_close() without bad consequences. Turn KASSERT() into the return, and print warning for now. END K 10 svn:author V 3 mbr K 8 svn:date V 27 2009-02-09T13:29:01.838568Z K 7 svn:log V 23 s/SS_FDREF/SS_NOFDREF/ END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-09T15:55:21.881610Z K 7 svn:log V 182 Properly implement GIO_ATTR and CONS_GETINFO. It seems I didn't implement these two ioctl()'s properly, which meant vidcontrol couldn't properly obtain certain terminal parameters. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2009-02-09T16:53:37.383594Z K 7 svn:log V 83 Destroy TX tag outside of loop scope. Found with: Coverity Prevent(tm) CID: 3886 END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2009-02-09T16:57:07.314177Z K 7 svn:log V 69 Remove unused variable. Found with: Coverity Prevent(tm) CID: 3693 END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2009-02-09T16:58:18.138507Z K 7 svn:log V 86 Do not self-initialize a variable. Found with: Coverity Prevent(tm) CID: 3864, 3865 END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2009-02-09T17:02:54.103300Z K 7 svn:log V 104 cam_periph_alloc: fix "invalid periph name" error condition Found with: Coverity Prevent(tm) CID: 130 END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2009-02-09T17:07:29.575190Z K 7 svn:log V 117 tulip_busdma_cleanup: pass correct vaddr (2nd arg) to bus_dmamem_free() Found with: Coverity Prevent(tm) CID: 1998 END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-02-09T17:14:49.751999Z K 7 svn:log V 138 MFC r188030 Properly retun error core from kbdmux_modevent() Reported by: Christoph Mallon < christoph -dot- mallon -at- gmx -dot- de > END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-09T17:37:17.019227Z K 7 svn:log V 117 Add padding to then end of the xsctp_xxx structures to allow future changes to be able to maintain ABI compatibility END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T17:38:16.663180Z K 7 svn:log V 87 Be sure to drain the transfers so the tx resources are returned before they get freed. END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-02-09T17:50:19.131180Z K 7 svn:log V 216 MFC r187454 Properly return error code to the caller. This should fix the following panic in ng_l2cap(4). panic: ng_l2cap_l2ca_con_req: ubt0l2cap - could not find connection! While i'm here get rid of few goto's. END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-02-09T17:53:45.283643Z K 7 svn:log V 115 MFC r186466 Change message severity level from WARN to INFO. This should reduce amount of messages sent to syslog END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-09T18:01:54.904255Z K 7 svn:log V 32 temporarily remove crypto stuff END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-09T18:03:31.952513Z K 7 svn:log V 335 The bounce zone sees its page number increased if multiple dma maps use it in the same dma tag. However, it can happen multiple dma tags share the same bounce zone too, so add a per-bounce zone map counter, and check it instead of the dma tag map counter, to know if we have to alloc more pages. Reported by: miwi Reviewed by: scottl END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-09T18:19:58.070116Z K 7 svn:log V 183 Remove extra 'comma = 0' in socket state printing code, which otherwise could lead to an extra comma in output. Submitted by: Christoph Mallon END K 10 svn:author V 4 lulf K 8 svn:date V 27 2009-02-09T20:13:55.935583Z K 7 svn:log V 155 - Fix an issue where file attributes were not installed correctly during a Touch and SetAttrs operation. - SetAttrs and Touch were incorrectly switched. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-09T20:42:51.126348Z K 7 svn:log V 121 Use the same style as the rest of the file for the optional data string after each path component rather than a GCC-ism. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-09T20:50:23.413301Z K 7 svn:log V 641 Mark udf(4) MPSAFE and add support for shared vnode locks during pathname lookups: - Honor the caller's locking flags in udf_root() and udf_vget(). - Set VV_ROOT for the root vnode in udf_vget() instead of only doing it in udf_root(). - Honor the requested locking flags during pathname lookups in udf_lookup(). - Release the buffer holding the directory data before looking up the vnode for a given file to avoid a LOR between the "udf" vnode locks and "bufwait". - Use vn_vget_ino() to handle ".." lookups. - Special case "." lookups instead of calling udf_vget(). We have to do extra checking for the vnode lock for "." lookups. END K 10 svn:author V 4 lulf K 8 svn:date V 27 2009-02-09T21:34:06.318355Z K 7 svn:log V 192 - Sanitize disk parameters retrieved from GEOM, as they are not guaranteed to have sane values. It caused sysinstall to crash when installing on certain SD cards. Discussed with: marcel END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T21:47:39.718760Z K 7 svn:log V 428 MFp4 //depot/projects/usb; 157069,157296,157375,157384,157430 - Change "usb2_pause_mtx" so that it takes the timeout value in ticks - USB controller: EHCI High Speed Interrupt endpoint fix. - Fix OHCI and EHCI counting bug when multiple TD's are involved in a short USB transfer and a short packet happens on the non-last TD in the USB transfer frame. - USB process naming cleanup. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T21:50:04.147219Z K 7 svn:log V 120 MFp4 //depot/projects/usb - Bring in ehci2_ixp4xx.c and ehci2_mbus.c from dev/usb. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T21:56:33.235397Z K 7 svn:log V 263 MFp4 //depot/projects/usb; 157069, 157429, 157430 - Change "usb2_pause_mtx" so that it takes the timeout value in ticks - Factor out USB ethernet and USB serial driver specific control request. - USB process naming cleanup. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:02:38.023761Z K 7 svn:log V 429 MFp4 //depot/projects/usb; 157100 1. Move most of the ifnet logic into the usb2_ethernet module, this includes, - make all usb ethernet interfaces named ue%d - handle all threading in usb2_ethernet - provide default ioctl handler - handle mbuf rx - provide locked callbacks for init,start,stop,etc 2. Cleanup CDC-Ethernet driver. Submitted by: Hans Petter Selasky Obtained from: svn.freebsd.org/base/user/thompsa/usb [1] END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:05:25.373845Z K 7 svn:log V 223 MFp4 //depot/projects/usb; 157069, 157136, 157143, 157145, 157429 - USB serial drivers cleanup, factor out code - Simplify line state programming - Integrate uslcom from old USB stack Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:06:52.483649Z K 7 svn:log V 141 MFp4 //depot/projects/usb; 157069 - Change "usb2_pause_mtx" so that it takes the timeout value in ticks Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:09:21.025898Z K 7 svn:log V 97 MFp4 //depot/projects/usb; 157203 - Remove CAM layer quirks Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:11:02.596032Z K 7 svn:log V 308 MFp4 //depot/projects/usb; 157069, 157255 - Change "usb2_pause_mtx" so that it takes the timeout value in ticks - Make sure that attach waits for the generic probe to leave room for firware loader drivers and device specific USB Audio drivers like USB phone adapters Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:12:47.639745Z K 7 svn:log V 208 MFp4 //depot/projects/usb; 157412 Sync from svn.freebsd.org/base/user/thompsa/usb which is a minimal changeset from oldUSB (no config_td). This excludes the taskqueue changes (for the moment) as requested. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:14:38.686901Z K 7 svn:log V 237 Correct sources for r188417 MFp4 //depot/projects/usb; 157412 Sync from svn.freebsd.org/base/user/thompsa/usb which is a minimal changeset from oldUSB (no config_td). This excludes the taskqueue changes (for the moment) as requested. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:18:11.125672Z K 7 svn:log V 128 MFp4 //depot/projects/usb; 157429, 157433, 157443 Various changes wrt. usb procs and tasks. Submitted by: Hans Petter Selasky END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-09T22:21:38.720857Z K 7 svn:log V 237 MFC r188112 r188112 | cognet | 2009-02-04 02:14:06 +0100 (Wed, 04 Feb 2009) | 8 lines Erm... Report the buffer as being bounced even when it's the entire buffer, or we would end up invalidating the cache line for what we just copied... END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-09T22:22:09.737539Z K 7 svn:log V 237 MFC r188112 r188112 | cognet | 2009-02-04 02:14:06 +0100 (Wed, 04 Feb 2009) | 8 lines Erm... Report the buffer as being bounced even when it's the entire buffer, or we would end up invalidating the cache line for what we just copied... END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:23:01.983926Z K 7 svn:log V 53 Remove usb2_config_td.[ch], they are no longer used. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-09T22:38:55.361902Z K 7 svn:log V 30 Hook uslcom2 up to the build. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-09T22:59:22.505542Z K 7 svn:log V 99 Hmm... "base? base : 0" and "base" should be equivalent. Pointy hat to: cognet MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-09T23:23:00.122553Z K 7 svn:log V 282 In unp_connect(), don't unlock the global UNIX domain socket lock when UNP_CONNECTING is set, as the caller will do that. (Due to significantly different locking in 7.0 and later, this fix applies only to stable/7). PR: kern/128974 Submitted by: Larry Baird END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-02-10T00:08:39.019950Z K 7 svn:log V 55 Add option GEOM_PART_EBR by default on amd64 and i386. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T01:37:55.168645Z K 7 svn:log V 143 correctly fixup iv_des_chan after installing a new channel table; if the previous channel is now invalid we must set it to IEEE80211_CHAN_ANYC END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T01:39:55.740375Z K 7 svn:log V 79 merge 188427: correctly fixup iv_des_chan after installing a new channel table END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-10T02:43:07.258164Z K 7 svn:log V 71 Fix g_part_dumpconf and g_part_name prototpyes. Submitted by: marcel@ END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-02-10T04:56:08.089462Z K 7 svn:log V 35 Merge r188055:188429 from stable/7 END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-02-10T06:08:28.653916Z K 7 svn:log V 32 Eliminate an unused definition. END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2009-02-10T08:09:03.076847Z K 7 svn:log V 68 More updates to edquota based on feedback from Dag-Erling Smorgrav. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-02-10T08:10:57.922427Z K 7 svn:log V 61 Vendor import of tzdata2009b - No leap second halfway 2009. END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2009-02-10T08:11:44.193317Z K 7 svn:log V 55 Bug fixes found from using these functions in edquota. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-02-10T08:11:49.788279Z K 7 svn:log V 19 Tag of tzdata2009b END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-02-10T08:21:59.493307Z K 7 svn:log V 153 MFV of tzdata2009b. - Updated leapseconds (but that one was already commited earlier phk@ without it going through the proper path) MFC after: 1 week END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2009-02-10T15:03:08.085943Z K 7 svn:log V 55 Turn off the building of boot floppies for amd64/i386. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2009-02-10T15:07:57.047288Z K 7 svn:log V 231 Due to some recent-ish work on GEOM/G_PART the c partition (by tradition the whole disk) isn't available any more since it was redundant. Just use /dev/md0 instead of /dev/md0c to build the filesystem on. Consulted-with: marcel END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2009-02-10T15:11:26.200519Z K 7 svn:log V 111 Turn off the parallel make options accidentally turned on by the previous commit. Sigh. Noticed by: rdivacky END K 10 svn:author V 7 attilio K 8 svn:date V 27 2009-02-10T15:50:19.418738Z K 7 svn:log V 741 Scanning all the formats for binary translation of modules loading can result in errors for a format loading but subsequent correct recognizing for another format. File format loading functions should avoid printing any additional informations but just returning appropriate (and different between each other) error condition, characterizing different informations. Additively, the linker should handle appropriately different format loading errors. While a general mechanism is desired, fix a simple and common case on amd64: file type is not recognized for link elf and confuses the linker. Printout an error if all the registered linker classes can't recognize and load the module. Reviewed by: jhb Sponsored by: Sandvine Incorporated END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-02-10T17:43:47.824541Z K 7 svn:log V 595 MFC r187467: Change vinvalbuf() to not remove any pages from the object when V_NORMAL or V_ALT are specified. Instead, the only in-tree caller in ffs_inode.c:ffs_truncate() that specifies V_ALT explicitely removes the corresponding page range. The V_NORMAL caller does vnode_pager_setsize(vp, 0) immediately after the call to vinvalbuf(V_NORMAL) already. MFC r187490: The r187467 should remove all pages for V_NORMAL case too, because indirect block pages are not removed by the mentioned invocation of the vnode_pager_setsize(). Put a common code into the helper function ffs_pages_remove(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-02-10T17:47:35.520033Z K 7 svn:log V 109 MFC r187468: Revert vnode_pager_setsize() back when UFS_BALLOC() failed, for ffs_truncate() and ffs_write(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-02-10T17:50:03.600790Z K 7 svn:log V 75 MFC r187470: Unconditionally reload fsbase when switching to 32bit binary. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T19:23:25.171813Z K 7 svn:log V 29 consolidate conditional code END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T19:25:11.773079Z K 7 svn:log V 167 on resume ah_curchan may be NULL if no channel change has been done; workaround this by passing net80211's channel as we know it'll never be null Submitted by: trasz END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T19:26:42.351153Z K 7 svn:log V 56 add hw.ath.bstuck to control the stuck beacon threshold END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T19:27:50.086871Z K 7 svn:log V 152 mark the CLR key installed for open auth stations such that it is reclaimed when net80211 tears down station state; without this we leak keycache slots END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T19:37:38.540238Z K 7 svn:log V 198 merge r188444: consolidate conditional code merge r188445: fix resume when ah_curchan is NULL merge r188446: add hw.ath.bstuck to control the stuck beacon threshold merge r188447: fix keycache leak END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-02-10T20:03:26.680847Z K 7 svn:log V 93 MFC r182881 Document TAPGIFNAME, TAPSIFINFO and TAPGIFINFO tap(4) character device ioctl's. END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-02-10T20:04:20.802545Z K 7 svn:log V 195 MFC r182880$$ Add new TAPGIFNAME tap(4) character device ioctl. This is a convenient shortcut to obtain network interface name using file descriptor for character device. Obtained from: NetBSD END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-02-10T20:08:03.373635Z K 7 svn:log V 183 MFC r185320 Straighten out those pesky SDP records for the Bluetooth Service Discovery Application Profile. Discussed with: Iain Hibbert of NetBSD plunky at rya dash online dot net END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-02-10T20:27:05.378871Z K 7 svn:log V 115 Update comment. soalloc() is no longer performing M_WAITOK memory allocations. Submitted by: ru MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-02-10T20:29:57.527028Z K 7 svn:log V 102 Mark the BSP as being awake. This supresses the message that not all usable CPUs could be woken up... END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-02-10T21:09:54.267195Z K 7 svn:log V 244 MFC r183058 Add uuid_enc,dec_le,be() functions to Symbol.map Pointy hat goes to me. MFC r183192 Move uuid_enc_le, uuid_dec_le, uuid_enc_be and uuid_dec_be symbols into FBSD_1.1 section where they should be (as Pointed out by: kib, deischen) END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-02-10T21:48:42.611266Z K 7 svn:log V 339 - Use the generally more appropriate PROM base rather than the kernel one as the non-faulting flush address in the loader so we can can change KERNBASE and VM_MIN_KERNEL_ADDRESS if we ever want to without needing to worry about using a compatible loader. - Correctly check for LOADER_DEBUG. - Add a missing const for page_sizes[]. END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-02-10T21:51:33.634943Z K 7 svn:log V 98 Improve r185008 so the streaming cache is only flushed when a mapping actually met the threshold. END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-02-10T21:54:23.065682Z K 7 svn:log V 128 Don't reset the PHY probe retry counter within the loop so it will eventually terminate as intended. Submitted by: Helen Zhang END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-10T22:39:44.981328Z K 7 svn:log V 73 Adding dynamic sysctls no longer requires Giant. Submitted by: rdivacky END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T22:46:33.442862Z K 7 svn:log V 135 Welcome Chris Zimmermann (cbzimmer) as a src committer. Chris will initially be working on 802.11 and related bits. Approved by: core END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-10T22:46:36.999962Z K 7 svn:log V 75 fix arcmsr_attach, probe, detach, and shutdown prototypes to match newbus. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-10T22:50:23.039499Z K 7 svn:log V 65 Fix iicbus_intr, iicbus_write and device_read_ivar prototypes... END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-10T23:13:48.049996Z K 7 svn:log V 25 Fix read_ivar prototype. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-10T23:17:20.425144Z K 7 svn:log V 25 Fix shutdown prototypes. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-10T23:22:29.128128Z K 7 svn:log V 306 Check for device_set_devclass() errors and skip driver probe/attach if any. Attach call without devclass set crashes the system. On resume AHCI driver sometimes tries to create duplicate adX device. It is surely his own problem, but IMHO it is not a reason to crash here. Other reasons are also possible. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T23:48:29.732419Z K 7 svn:log V 153 don't do phantom beacon miss checking for s/w beacon miss handling, this can mistakenly drop events that cause the s/w bmiss timer to never get re-armed END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T23:51:18.883781Z K 7 svn:log V 38 clean neighbor entries on beacon miss END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T23:52:28.453663Z K 7 svn:log V 149 when operating as a slave, clear neighbor entries and the peer bss node on beacon miss while here, remove a stray pointless write of iv_bmiss_count END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T23:55:23.452402Z K 7 svn:log V 76 merge r188465: don't do phantom beacon miss checking for s/w bmiss handling END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T23:58:00.649201Z K 7 svn:log V 27 revert spammage in r188468 END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-10T23:59:59.267656Z K 7 svn:log V 53 merge r188466: clean neighbor entries on beacon miss END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T00:01:02.005406Z K 7 svn:log V 75 merge r188467: clear neighbor entries and the peer bss node on beacon miss END K 10 svn:author V 4 kaiw K 8 svn:date V 27 2009-02-11T00:08:03.644501Z K 7 svn:log V 138 Added entries for Lava SP-PCI (1 serial + 1 parallel) PCI card. The card is a multifunction PCI and report itself as two logical devices. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-02-11T00:08:48.762442Z K 7 svn:log V 58 create RELENG_7 branch for backporting networking changes END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-02-11T00:23:56.683932Z K 7 svn:log V 158 Allocating 2 MSI messages do not seem to work on certain controllers so use just 1 MSI message. This fixes regression introduced in r188381. Tested by: many END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-11T04:52:46.071964Z K 7 svn:log V 263 o Introduce KOBJMETHOD_END for the end of the kobj list. o Fix a minor indentation problem. o Put in the extra-strict KOBJMETHOD define, but commented out since the tree isn't yet ready. Reviewed by: (1) was posted to arch@ without objection (and 1 go for it) END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-11T04:54:02.566768Z K 7 svn:log V 138 o Use NULL in pereference to 0 in pointer contexts. o Use newly minted KOBJMETHOD_END as appropriate o fix prototype for root_setup_intr. END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-02-11T07:50:07.072138Z K 7 svn:log V 373 - Use the generally more appropriate PROM base rather than the kernel one as the non-faulting flush address in the loader so we can can change KERNBASE and VM_MIN_KERNEL_ADDRESS if we ever want to without needing to worry about using a compatible loader. - Correctly check for LOADER_DEBUG. - Add a missing const for page_sizes[]. This file was missed in r188455. END K 10 svn:author V 3 mtm K 8 svn:date V 27 2009-02-11T09:18:09.831014Z K 7 svn:log V 69 Reword informational message by rc.d/defaultroute. PR: conf/131458 END K 10 svn:author V 5 maxim K 8 svn:date V 27 2009-02-11T10:28:55.769210Z K 7 svn:log V 65 MFC r186644: show unix sockets listen queues stats with -L flag. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2009-02-11T10:29:45.244377Z K 7 svn:log V 1508 All open fixes and improvements from Konstantin for which users had to use patches so far: + Envy24: - fix: broken init data for M Audio Delta DiO 2496 - add: support for M Audio Delta 44 - add: support for M Audio Delta 1010LT Tested by: Dominique Goncalves, dominique.goncalves at gmail.com - add: support for Terratec EWX 2496 Tested by: Stefan Sperling, stsp at stsp.name - add: support for M Audio Delta 66 Tested by: Richard Bown, richard.bown at blueyonder.co.uk - add: support for M Audio Delta 1010 Tested by: Andrew Reilly, areilly at bigpond.net.au + Envy24HT: - add: support for Terrasoniq TS22PCI - fix: M-Audio Revolution 5.1 sound volume is very low Reported by: Oliver Hartmann, ohartman at zedat.fu-berlin.de Andrey Slusar, anrays at gmail.com Tested by: Andrey Slusar, anrays at gmail.com Rusu Silviu, arol.the at gmail.com - fix: M-Audio Revolution 7.1 sound is distorted and very quiet Reported by: Olev Hannula, hannula at gmail.com Tested by: Olev Hannula, hannula at gmail.com Stanislav Belansky, stanislav at icmail.ru - fix: Terratec PHASE 22 codec is power-off due to wrong init data Reported by: Philipp Ost, pj at smo.de Tested by: Philipp Ost, pj at smo.de + SpicDS: - fix: AK4381 produce hiss sound on 192kHz sample rate - fix: stupid bug with volume control for AK4396 Submitted by: Konstantin Dimitrov END K 10 svn:author V 5 maxim K 8 svn:date V 27 2009-02-11T10:50:26.573309Z K 7 svn:log V 168 o Print an octal representation of suid, sgid and sticky bits with -x flag. PR: bin/131569 Submitted by: Jaakko Heinonen Reported by: Yannick Cadin MFC after: 1 week END K 10 svn:author V 2 mr K 8 svn:date V 27 2009-02-11T12:15:35.067827Z K 7 svn:log V 86 Add files to build i386/amd64 bootable rescue ISO images using the nanobsd framework. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-11T13:44:27.192298Z K 7 svn:log V 719 Add a regresion test to determine whether or not a file descriptor is allocated in a fork(2)-inheritable way at the beginning or end of an accept(2) system call. This test creates a test thread and blocks it in accept(2), then forks a child process which tests to see if the next available file descriptor is defined or not (EBADF vs EINVAL for ftruncate(2)). This detects a regression introduced during the network stack locking work, in which a very narrow race during which fork(2) from one thread during accept(2) in a second thread lead to an extra inherited file descriptor turned into a very wide race ensuring that a descriptor was leaked into the child even though it hadn't been returned. PR: kern/130348 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-11T14:25:09.215453Z K 7 svn:log V 403 Fix lptopen() and lptclose() to not trash the state of the HAVEBUS flag in 'sc_state'. This allows the lpt_release_ppbus() calls in those two routines to actually release the ppbus and thus fixes the hangs noticed with the lpt(4) driver since the recent ppbus changes. The old lpt(4) driver didn't actually check the HAVEBUS flag in lpt_release_ppbus() which is why these bugs weren't noticed before. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-11T15:22:01.163622Z K 7 svn:log V 1018 Modify fdcopy() so that, during fork(2), it won't copy file descriptors from the parent to the child process if they have an operation vector of &badfileops. This narrows a set of races involving system calls that allocate a new file descriptor, potentially block for some extended period, and then return the file descriptor, when invoked by a threaded program that concurrently invokes fork(2). Similar approches are used in both Solaris and Linux, and the wideness of this race was introduced in FreeBSD when we moved to a more optimistic implementation of accept(2) in order to simplify locking. A small race necessarily remains because the fork(2) might occur after the finit() in accept(2) but before the system call has returned, but that appears unavoidable using current APIs. However, this race is vastly narrower. The fix can be validated using the newfileops_on_fork regression test. PR: kern/130348 Reported by: Ivan Shcheklein Reviewed by: jhb, kib MFC after: 1 week END K 10 svn:author V 3 dfr K 8 svn:date V 27 2009-02-11T15:55:01.066906Z K 7 svn:log V 25 Enable checksum offload. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-11T16:28:49.223745Z K 7 svn:log V 873 Serialize write() calls on TTYs. Just like the old TTY layer, the current MPSAFE TTY layer does not make any attempt to serialize calls of write(). Data is copied into the kernel in 256 (TTY_STACKBUF) byte chunks. If a write() call occurs at the same time, the data may interleave. This is especially likely when the TTY starts blocking, because the output queue reaches the high watermark. I've implemented this by adding a new flag, TTY_BUSY_OUT, which is used to mark a TTY as having a thread stuck in write(). Because I don't want non-blocking processes to be possibly blocked by a sleeping thread, I'm still allowing it to bypass the protection. According to this message, the Linux kernel returns EAGAIN in such cases, but I think that's a little too restrictive: http://kerneltrap.org/index.php?q=mailarchive/linux-kernel/2007/5/2/85418/thread PR: kern/118287 END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T17:26:47.365427Z K 7 svn:log V 40 fix mis-numbering of IEEE80211_MSG_BITS END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T17:30:36.085273Z K 7 svn:log V 73 remove bogus reference reclaim on the slave-side bss node on beacon miss END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T17:32:45.388442Z K 7 svn:log V 55 merge r188488: fix mis-numbering of IEEE80211_MSG_BITS END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T17:33:36.945982Z K 7 svn:log V 87 merge r188489: emove bogus reference reclaim on the slave-side bss node on beacon miss END K 10 svn:author V 4 lulf K 8 svn:date V 27 2009-02-11T18:13:20.898280Z K 7 svn:log V 97 - Use the correct argument when determining the buffer size. PR: kern/131575 MFC after: 2 days END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T18:39:20.179656Z K 7 svn:log V 32 oops, fix octal escape sequence END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T18:40:09.754290Z K 7 svn:log V 40 improve key index map reclaim debug msg END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T18:41:48.146488Z K 7 svn:log V 41 merge r188493: fix octal escape sequence END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T18:42:56.075109Z K 7 svn:log V 55 merge r188494: improve key index map reclaim debug msg END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-11T20:24:59.599355Z K 7 svn:log V 590 Add two new routines: fdevname() and fdevname_r(). A more elegant way of obtaining a name of a character device by its file descriptor on FreeBSD, is to use the FIODGNAME ioctl. Because a valid file descriptor implies a file descriptor is visible in /dev, it will always resolve a valid device name. I'm adding a more friendly wrapper for this ioctl, called fdevname(). It is a lot easier to use than devname() and also has better error handling. When a device name cannot be resolved, it will just return NULL instead of a generated device name that makes no sense. Discussed with: kib END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-11T20:36:17.809127Z K 7 svn:log V 375 Let stat(1) use fdevname(3). Because we now have a reliable library function that converts file descriptors to character device names, let stat(1) use this. This means it can now do the following: $ stat -f %N /dev/pts/0 I've changed main() to set file properly, so output() is never called with file set to NULL. Approved by: dougb (older version, still used devname) END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T22:15:37.993492Z K 7 svn:log V 388 gcc 4.3.2 examines getLowerUpperIndex() and concludes that it's not guaranteed to initialize its two last arguments. Therefore, there is a warning in the subsequent caller ar5416FillVpdTable(), which doesn't initialize those arguments. Change getLowerUpperIndex() to assign values to indexL and indexR even in the case of assertion failure. Submitted by: Pavel Roskin END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T22:18:03.837625Z K 7 svn:log V 76 fix typo in AH_CHIP definition Submitted by: Pavel Roskin END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-11T22:19:54.549071Z K 7 svn:log V 258 - If the g_access() call for the initial root mount fails, then fully cleanup. Before the GEOM consumer would not have been closed. - Bump the reference on the character device being mounted while the associated devfs vnode is locked. Reviewed by: kib END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-11T22:22:26.078200Z K 7 svn:log V 336 - Consolidate error handling in the cd9660 and udf mount routines. - Always read the character device pointer while the associated devfs vnode is locked. Also, use dev_ref() to obtain a new reference on the vnode for the mountpoint. This reference is released on unmount. This mirrors the earlier fix to FFS. Reviewed by: kib END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-11T22:29:09.541076Z K 7 svn:log V 219 Reorder dacleanup() and cdcleanup() slightly so that the sysctl context is freed while the periph lock is not held. While here, wait until after freeing the softc before reacquiring the periph lock. Tested by: sbruno END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T22:34:22.222099Z K 7 svn:log V 44 fix both instances of name Pointy hat: sam END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-11T22:34:50.074525Z K 7 svn:log V 74 fix ARM_USE_SMALL_ALLOC after memory layout changes Submitted by: cognet END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-12T01:10:53.224354Z K 7 svn:log V 159 pmap_kenrel() was recently deleted from pmap.h. It was still used here, but inconsistently. Change all instances of it to kernel_pmap to match rest of code. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-02-12T01:14:49.103168Z K 7 svn:log V 311 Rewrite get_pv_entry() to match expectations of the rest of the kernel. Rather than just kick off the page daemon, we actively retire more mappings. The inner loop now looks a lot like the inner loop of pmap_remove_all. Also, get_pv_entry can't return NULL now, so remove panic if it did. Reviewed by: alc@ END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2009-02-12T03:05:42.566039Z K 7 svn:log V 74 Update comments around various structs. Add speeds S800, S1600 and S3200 END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2009-02-12T03:26:05.083408Z K 7 svn:log V 102 Enhance debug messages and attempt to unify them into one format where possible. Reviewed by: scottl END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-12T09:37:45.254141Z K 7 svn:log V 35 s/succeded/succeeded/ in comments. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2009-02-12T10:39:19.808237Z K 7 svn:log V 139 Add support for the Sunix SUN1889-based dual parallel port card. PR: kern/128219 Submitted by: Thinker K.F. Li END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-02-12T13:04:13.787684Z K 7 svn:log V 20 Fix spelling a bit. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-02-12T13:49:51.986428Z K 7 svn:log V 57 Checkpoint commit of an alq test harness I'm working on. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-12T14:37:58.522097Z K 7 svn:log V 54 MFC: Add simple locking for the in-kernel iconv code. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-12T14:41:23.205122Z K 7 svn:log V 116 MFC: Drop the kernel linker lock while running SYSUNINIT routines and removing sysctls during a linker file unload. END K 10 svn:author V 7 n_hibma K 8 svn:date V 27 2009-02-12T14:44:15.242781Z K 7 svn:log V 399 Fix a few problems related to building modules in /sys/modules (not checked whether this applies to builds in /sys/*/compile/* as well): - Create empty opt_*.h files were missing - Hook up svr4 to the build. It compiles fine here, so no reason to disconnect it in the Makefile. were missing - Hook up svr4 to the build. It compiles fine here, so no reason to disconnect it in the Makefile. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-02-12T14:49:20.750999Z K 7 svn:log V 100 MFC: Use CPUID to see if the current CPU supports long mode when attemping to boot an amd64 kernel. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-12T15:26:00.391239Z K 7 svn:log V 137 MFC: r188424 | cognet | 2009-02-09 23:59:22 +0100 (Mon, 09 Feb 2009) | 6 lines Hmm... "base? base : 0" and "base" should be equivalent. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-12T15:26:27.998212Z K 7 svn:log V 137 MFC: r188424 | cognet | 2009-02-09 23:59:22 +0100 (Mon, 09 Feb 2009) | 6 lines Hmm... "base? base : 0" and "base" should be equivalent. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-12T15:28:15.355443Z K 7 svn:log V 181 Don't add a bwrite() symbol, it breaks the build when building newfs statically. Instead, bring in a stripped down version of sbwrite(), and add the offset to every bwrite() calls. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T16:40:48.111952Z K 7 svn:log V 78 Merges in 182268 from head close bug where we failed to NULL the sctp_socket. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T17:26:16.416654Z K 7 svn:log V 148 MFC of 184030 - socket accept inherit bug. Basically accepted sockets were not inheriting the proper sock buf size. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T17:31:39.304903Z K 7 svn:log V 721 MFC of 184336: Two inter-related bugs. - If we send EXACTLY the size left in the send buffer and then send again, we end up with exactly 0 bytes and don't hit the pre-block code to wait for more space. - If we fall into the loop with our max_len == 0 (the bug above) we then call in to copy out the data, setup the length of the waiting to transmit data to 0 and call the mbuf copy routine which 0 indicates copy all the data to the mbuf chain.. which it does. This then leaves a "stuck" message on the stream queue with its size exactly 0 bytes but all the data there and thus nothing left in the uio structure. We then reach a stuck forever state never being able to send data. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T17:57:28.501142Z K 7 svn:log V 326 MFC of 182367 and 182403 - Make strict-sacks be the default. - Change it so that without INVARIANTs there are no panics in SCTP. - sctp_timer changes so that we have a recovery mechanism when the sent list is out of order. Fixes compile error when INVARIANTs is on. Adds an empty goto to keep the compiler happy. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T18:02:46.831322Z K 7 svn:log V 194 MFC of 184027: Reported by Yehuda Weinraub (yehudasa@gamil.com) - CRC32C algorithm uses incorrect init_bytes value. It SHOULD have the number of bytes to get to a 4 byte boundary. PR: 128134 END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T18:22:11.105272Z K 7 svn:log V 134 MFC of 184031: The flags value was not always being copied out in the recv routine like it should be. Obtained from: Michael Tuexen END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T18:24:54.508715Z K 7 svn:log V 53 MFC 184333 Invariants changes that make more sense. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T18:28:42.925892Z K 7 svn:log V 439 MFC of 184340 More issues with pre-blocking: a) Need for EEOR mode to take the min of the socket buffer size and the add more threshold, otherwise if you are so silly as to set a send buf size less than the add-more you could block forever in eeor mode. b) We were incorrectly using the sysctl vs the calculated value. This causes us to block forever if the addmore theshold is larger than then the socket buffer size. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-12T18:33:13.657877Z K 7 svn:log V 82 turn off ttyv*; not aware of any arm-based systems with syscons Reviewed by: imp END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T18:33:26.745106Z K 7 svn:log V 860 MFC 184883 - a pack of bug fixes and misc adjustments: -Improvement: Add '\n' on debug output in sctp_lower_sosend(). -Improvement: panic() on INVARIANTS kernels if memory allocation fails for a tagblock in sctp_add_vtag_to_timewait(). -Bugfix: Protect code in sctp_is_in_timewait() by SCTP_INP_INFO_WLOCK/SCTP_INP_INFO_WUNLOCK. -Cleanup: Get rid of unused variable now in sctp_init_asoc(). -Bugfix: Reuse the correct vtag in sctp_add_vtag_to_timewait(). -Cleanup: Get rid of unused constant SCTP_TIME_WAIT_SHORT in sctp_constants.h. -Improvement: Use all hash buckets of the vtag hash table. -Cleanup: Get rid of then unused constant SCTP_STACK_VTAG_HASH_SIZE_A. -Bugfix: Handle SHUTDOWN;SACK packet correctly. -Bugfix: Last TSN in a gap ack block was not being "ack'd" in the internal scoreboard. Obtained from: (with help from Michael Tuexen) END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2009-02-12T18:33:56.417417Z K 7 svn:log V 73 Remove obsolete C preprocessor assertions. Approved by: kib (mentor) END K 10 svn:author V 3 rrs K 8 svn:date V 27 2009-02-12T18:50:27.216335Z K 7 svn:log V 1356 MFC of 185694 - The IETF hack session: Code from the hack-session known as the IETF (and a bit of debugging afterwards): - Fix protection code for notification generation. - Decouple associd from vtag - Allow vtags to have less strigent requirements in non-uniqueness. o don't pre-hash them when you issue one in a cookie. o Allow duplicates and use addresses and ports to discriminate amongst the duplicates during lookup. - Add support for the NAT draft draft-ietf-behave-sctpnat-00, this is still experimental and needs more extensive testing with the Jason Butt ipfw changes. - Support for the SENDER_DRY event to get DTLS in OpenSSL working with a set of patches from Michael Tuexen (hopefully heading to OpenSSL soon). - Update the support of SCTP-AUTH by Peter Lei. - Use macros for refcounting. - Fix MTU for UDP encapsulation. - Fix reporting back of unsent data. - Update assoc send counter handling to be consistent with endpoint sent counter. - Fix a bug in PR-SCTP. - Fix so we only send another FWD-TSN when a SACK arrives IF and only if the adv-peer-ack point progressed. However we still make sure a timer is running if we do have an adv_peer_ack point. - Fix PR-SCTP bug where chunks were retransmitted if they are sent unreliable but not abandoned yet. With the help of: Michael Teuxen and Peter Lei :-) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-12T18:57:18.945705Z K 7 svn:log V 267 Add a ieee80211_waitfor_parent() function that will wait for all deferred parent interface tasks to complete. This had been added to the ioctl path but it is also need elsewhere like detach so its safe to teardown. Reported by: Hans Petter Selasky Submitted by: sam END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-12T19:00:13.218516Z K 7 svn:log V 287 Make ttyslot(3) work with pts(4) devices. It seems ttyslot() calls rindex(), to strip the device name to the last slash, but this is obviously invalid. /dev/pts/0 should be stripped until pts/0. Because /etc/ttys only supports TTY names in /dev/, just strip this piece of the pathname. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-12T19:21:48.839663Z K 7 svn:log V 605 Remove pts(4) entries from /etc/ttys. Even though I increased the amount of pts(4) entries in /etc/ttys some time ago, I didn't realize back then those entries shouldn't have been there in the first place. I just looked at the getttyent() source code and it turns out when you call setttyent(), it walks through /dev/pts and looks for the device with the highest number. After you receive EOF's from getttyent(), it makes up entries for pts(4) devices. This means that adding entries for pts(4) is somewhat harmful, because if you now traverse the list, you get redundant entries, so just remove them. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-12T19:32:52.791671Z K 7 svn:log V 354 Properly invalidate highest pts number when calling setttyent(). When calling setttyent() after calling endttyent(), pts_valid will never be set to 1, because the readdir()-loop will likely never vind a pts that has a higher number than before. Simplify the code by removing pts_valid. We'll just set maxpts to -1 when we don't have a valid count yet. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-12T21:01:16.424923Z K 7 svn:log V 50 Unbreak build by making svr4 conditional on i386. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-12T21:49:59.711234Z K 7 svn:log V 65 merge r188420: correct cache line invalidation for bounce buffer END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-12T22:55:39.537780Z K 7 svn:log V 230 Do not set thread0.td_frame to a bogus value, as it's going to overwrite the thread0 pcb, while the board-dependant code already set a good trapframe. Reported by: Mark Tinguely MFC after: 1 week END K 10 svn:author V 6 cognet K 8 svn:date V 27 2009-02-12T23:23:30.505156Z K 7 svn:log V 157 To prevent various race conditions in the RAS code, store and restore the values in ARM_RAS_START and ARM_RAS_END at context switch time. MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-12T23:34:58.140608Z K 7 svn:log V 432 o replace ieee80211_node_reclaim by individual operations to release the references to iv_bss and the sta table; this is equivalent and causes direct reclaim of the old bss node when any references in packets inflight are reclaimed (previously the old node would sit in the bss table until the inactivity processing reclaimed it) o remove ieee80211_node_reclaim now that it's only use is gone Reviewed by: avatar, cbzimmer END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-12T23:44:59.267696Z K 7 svn:log V 156 merge r180140+r182862: add support to set the bridge MAC address to the MAC address of the first interface (conditional on net.link.bridge.inherit_mac) END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-12T23:45:58.325732Z K 7 svn:log V 71 merge r188541: replace ieee80211_node_reclaim by individual operations END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-12T23:54:07.933630Z K 7 svn:log V 37 backout unintentional part of 188542 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-12T23:55:35.253706Z K 7 svn:log V 67 Remove unused ifaddr and ifreq local variables. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-02-13T00:01:11.170051Z K 7 svn:log V 73 Remove unused ifaddr local variable in ioctl routine. MFC after: 3 days END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-02-13T01:14:00.057960Z K 7 svn:log V 110 MFC r188452 Update comment. soalloc() is no longer performing M_WAITOK memory allocations. Submitted by: ru END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-02-13T01:16:51.485286Z K 7 svn:log V 224 Check the exit flag at the start of the taskqueue loop rather than the end. It is possible to tear down the taskqueue before the thread has run and the taskqueue loop would sleep forever. Reviewed by: sam MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-02-13T01:50:04.932834Z K 7 svn:log V 91 Recognize AR5212_AR2317_REV2 in ar5312Probe() Submitted by: Pavel Roskin END