ƒ° 239000 179 118 166 150 200 220 311 268 176 1107 139 281 132 244 341 106 99 99 324 115 208 145 314 141 171 316 418 213 219 242 186 136 415 423 334 246 196 450 547 182 237 368 281 205 198 472 219 125 248 243 240 649 2530 201 383 253 645 137 116 316 1439 223 153 251 224 120 533 229 113 227 120 244 1239 238 133 1755 400 237 199 263 242 198 263 205 113 212 320 431 163 144 568 118 269 288 337 182 551 340 162 223 244 236 288 310 502 275 297 328 495 245 283 292 135 355 99 125 135 139 155 429 323 272 544 108 168 123 311 187 268 572 120 122 324 229 510 202 185 106 300 317 139 142 128 121 1728 150 161 311 174 326 602 379 502 608 634 111 119 189 999 204 226 235 113 134 150 114 261 115 126 154 467 441 338 110 209 132 248 131 124 531 K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-03T04:54:36.871500Z K 7 svn:log V 27 Add nandfs partition type. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-08-03T05:25:27.686002Z K 7 svn:log V 69 Add bpf to the BEAGLEBONE config to help diagnose networking issues. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-08-03T05:26:40.145436Z K 7 svn:log V 53 cpsw is a regular Ethernet port, not a USB Ethernet. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-08-03T05:31:12.404252Z K 7 svn:log V 102 Mark a couple of unused arguments, separate debugging messages between SIOCGIFMEDIA and SIOCSIFMEDIA. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-08-03T05:39:32.662422Z K 7 svn:log V 122 Split the SMSC LAN8710A into a separate PHY module. It's not really that similar to the SEEQ PHYs supported by smcphy.c. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-03T09:08:20.514926Z K 7 svn:log V 218 Microoptimize time math. As soon as our event periods are always below ome second we may not add intereger parts by using bintime_addx() instead of bintime_add(). Profiling shows handleevents() time redction by 15%. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2012-08-03T11:22:09.116312Z K 7 svn:log V 174 MFC: r238933 - Change back "d_ofs" to int8_t to not pessimize padding and size of "struct puc_cfg" - Use "puc_config_moxa" for Moxa boards that need d_ofs greater than 0x7f END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-03T12:55:31.653796Z K 7 svn:log V 84 Remove duplicate check. Submitted by: Dmitry Luhtionov END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-03T13:50:29.252463Z K 7 svn:log V 1013 Improve the handling of static DMA buffers that use non-default memory attributes (currently just BUS_DMA_NOCACHE): - Don't call pmap_change_attr() on the returned address, instead use kmem_alloc_contig() to ask the VM system for memory with the requested attribute. - As a result, always use kmem_alloc_contig() for non-default memory attributes, even for sub-page allocations. This requires adjusting bus_dmamem_free()'s logic for determining which free routine to use. - For x86, add a new dummy bus_dmamap that is used for static DMA buffers allocated via kmem_alloc_contig(). bus_dmamem_free() can then use the map pointer to determine which free routine to use. - For powerpc, add a new flag to the allocated map (bus_dmamem_alloc() always creates a real map on powerpc) to indicate which free routine should be used. Note that the BUS_DMA_NOCACHE handling in powerpc is currently #ifdef'd out. I have left it disabled but updated it to match x86. Reviewed by: scottl MFC after: 1 month END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-08-03T14:00:26.792507Z K 7 svn:log V 45 support building vtnet as an embedded driver END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-03T14:25:35.752503Z K 7 svn:log V 185 Oops. We only do allocate room for extended commands and responses for 2300 cards are newer. Sponsored by: Spectralogic Noticed by: Our Friend Manfred MFC after: 1 month X-MFC: 238869 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-08-03T14:49:18.563213Z K 7 svn:log V 36 Merge head r233826 through r239010. END K 10 svn:author V 6 thomas K 8 svn:date V 27 2012-08-03T14:55:35.897964Z K 7 svn:log V 148 New command "gmultipath prefer" to force selection of a specified provider in an Active/Passive configuration. Reviewed by: mav MFC after: 4 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-03T15:19:59.738735Z K 7 svn:log V 248 Microoptimize LAPIC timer routines to avoid reading from hardware during programming using earlier cached values. This makes respective routines to disappear from PMC top and reduces total number of active CPU cycles on idle 24-core system by 10%. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-03T15:29:19.330520Z K 7 svn:log V 11 MFC@239013 END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-03T15:38:28.469589Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-03T15:58:05.622992Z K 7 svn:log V 4 MFC END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-08-03T16:04:35.866543Z K 7 svn:log V 228 Some optimizations: simplify the logic of softclock() removing a check which is likely to be false in most of the cases, after recent changes. Also, remove an unneeded and duplicated bitwise and operation. Discussed with: mav END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-08-03T16:18:20.746064Z K 7 svn:log V 20 MFC as per r239013. END K 10 svn:author V 3 kan K 8 svn:date V 27 2012-08-03T17:04:41.548565Z K 7 svn:log V 115 Parse notes only after object structure had been allocated. Reported by: kargl Reviewed by: kib (sans whitespace) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-03T18:40:44.890327Z K 7 svn:log V 53 Correct function name in comment. Submitted by: alc END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-08-03T20:24:16.610020Z K 7 svn:log V 215 In virstor_ctl_stop(), check for a valid softc before trying to update metadata. Sponsored by: Intel Reported and tested by: Marcelo Gondim PR: kern/170199 MFC after: 3 days END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-08-03T20:30:40.130437Z K 7 svn:log V 43 Document "destroy" as an alias for "stop". END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-04T00:00:30.397610Z K 7 svn:log V 76 Add detach logic to SBus variant. Obtained from: Marius MFC after: 1 month END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-04T02:06:55.252405Z K 7 svn:log V 222 Force certain bits in %cr4 to be hard-wired to '1' or '0' from a guest's perspective. If we don't do this some guest OSes (e.g. Linux) will reset the CR4_VMXE bit in %cr4 with disastrous consequences. Reported by: grehan END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-04T02:14:27.222440Z K 7 svn:log V 324 There is no need to explicitly specify the CR4_VMXE bit when writing to guest CR4. This bit is specific to the Intel VTX and removing it makes the library more portable to AMD/SVM. In the Intel VTX implementation, the hypervisor will ensure that this bit is always set. See vmx_fix_cr4() for details. Suggested by: grehan END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-04T02:38:05.121149Z K 7 svn:log V 119 API to map an apic id to the vcpu. At the moment this is a simple mapping because the numerical values are identical. END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2012-08-04T03:05:01.237540Z K 7 svn:log V 121 Add backlight support for nVidia-based PowerBooks/iBooks/iMacs. Approved by: nwhitehorn (mentor) MFC after: 9.1-RELEASE END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-04T04:24:41.994149Z K 7 svn:log V 148 Check that 'opts' is actually not NULL before dereferencing it. It is expected that 'opts' will be NULL for the second serial port (-S ,uart) END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-04T04:26:17.092251Z K 7 svn:log V 93 Use the correct variable to index into the 'lirq[]' array to check the legacy IRQ ownership. END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-04T04:30:26.660713Z K 7 svn:log V 43 Include 'device uart' in the guest kernel. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-08-04T05:30:20.524788Z K 7 svn:log V 319 Ensure we align the stack to 8 bytes in rtld. This is not strictly required with the current ABI but will be when we switch to the ARM EABI. The aapcs requires the stack to be 4 byte aligned at all times and 8 byte aligned when calling a public subroutine where the current ABI only requires sp to be a multiple of 4. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-08-04T05:31:26.156652Z K 7 svn:log V 327 Ensure we align the stack to 8 bytes in system calls. This is not strictly required with the current ABI but will be when we switch to the ARM EABI. The aapcs requires the stack to be 4 byte aligned at all times and 8 byte aligned when calling a public subroutine where the current ABI only requires sp to be a multiple of 4. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-08-04T05:38:25.858938Z K 7 svn:log V 238 Correctly return EFAULT in copyin & copyout on a fault. This fixes NFS when running FreeBSD on QEMU emulating a Gumstix board. While here remove the use of a magic number in the not-XScale version. Pointed out by: kib Reviewed by: stas END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-04T07:46:58.990754Z K 7 svn:log V 153 Partialy MFcalloutng r236894 (by davide): ... While here, Bruce Evans told me that "unsigned int" is spelled "u_int" in KNF, so replace it where needed. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-08-04T08:03:30.056945Z K 7 svn:log V 100 Testing an interface property should depend on the interface, not on an address. MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-04T08:06:37.285251Z K 7 svn:log V 357 Particlly MFcalloutng r238425 (by davide): Fix an issue related to old periodic timers. The code in kern_clocksource.c uses interrupt to keep track of time, and this time may not match with binuptime(). In order to address such incoherency, switch periodic timers to binuptime(). Except further calloutng it is needed for already present cyclic subsystem. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-08-04T15:11:36.945709Z K 7 svn:log V 452 Support multiple interface devices. The driver had previously hardcoded support for only the first port, but the CP2105 can have multiple ports. Although this allowed the first port to mostly work on multi port devices, there could be issues with this arrangement. Update the man page to reflect support for both ports and the CP2105. Many thanks to Silicon Labs (www.silabs.com) for providing a CP2105-EK dev board for testing. MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-04T18:10:04.566238Z K 7 svn:log V 90 Remove verbose unused commented out debugging printf. MFC after: 1 week Reviewed by: alc END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-04T18:12:54.707586Z K 7 svn:log V 144 The header uma_int.h is internal uma header, unused by this source file. Do not include it needlessly. Reviewed by: alc MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-04T18:16:43.761329Z K 7 svn:log V 275 Reduce code duplication and exposure of direct access to struct vm_page oflags by providing helper function vm_page_readahead_finish(), which handles completed reads for pages with indexes other then the requested one, for VOP_GETPAGES(). Reviewed by: alc MFC after: 1 week END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-08-04T20:40:36.595156Z K 7 svn:log V 185 Fix a bug reported by Simon L. B. Nielsen: If an SCTP endpoint receives an ASCONF with a wildcard lookup address and incorrect verification tag, the system crashes. MFC after: 3 days. END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-04T22:46:29.949979Z K 7 svn:log V 111 Allow the 'bhyve' process to control whether or not the virtual machine sees an ioapic. Obtained from: NetApp END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-04T22:48:04.724020Z K 7 svn:log V 104 Add the "-I" option to control whether or not an ioapic is visible to the guest. Obtained from: NetApp END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-04T23:51:21.251724Z K 7 svn:log V 378 The displacement field in the decoded instruction should be treated as a 8-bit or 32-bit signed integer. Simplify the handling of indirect addressing with displacement by unconditionally adding the 'instruction->disp' to the target address. This is alright since 'instruction->disp' is non-zero only for the addressing modes that specify a displacement. Obtained from: NetApp END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-05T00:00:52.416424Z K 7 svn:log V 125 Device model for ioapic emulation. With this change the uart emulation is entirely interrupt driven. Obtained from: NetApp END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-08-05T06:15:12.423998Z K 7 svn:log V 28 Fix typo. Reviewed by: jhb END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-08-05T08:08:34.081123Z K 7 svn:log V 152 Remove variables which are initialized but never used thereafter reported by gcc46 warning Reviewed by: scottl Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-08-05T08:10:02.107911Z K 7 svn:log V 147 Add additional Perle Speed LE serial cards PR: kern/168816 Submitted by: Dennis Oyama Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-08-05T08:19:52.759465Z K 7 svn:log V 144 Use new method of assigning IPv4 addresses PR: conf/167648 Submitted by: Jeff Kletsky Approved by: bcr MFC after: 3 days END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-05T08:56:29.762072Z K 7 svn:log V 551 Minor style nit: Use the interface number from the USB interface descriptor like in the other USB serial drivers. These numbers are not supposed to be different, though in theory they can. Make sure that the driver then uses the interface number given by the USB descriptor, and not the logical index of the USB stack. For the future: Whenever the term "index" is used in the USB code, it refers to a number computed by the USB stack. Whenever the term "number" is used in the USB code, it refers to a number in a USB descriptor. MFC after: 2 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-05T10:12:27.417544Z K 7 svn:log V 2433 Migrate the ath_hal_filltxdesc() API to take a list of buffer/seglen values. The existing API only exposes 'seglen' (the current buffer (segment) length) with the data buffer pointer set in 'ds_data'. This is fine for the legacy DMA engine but it won't work for the EDMA engines. The EDMA engine has a significantly different TX descriptor layout. * The legacy DMA engine had a ds_data pointer at the same offset in the descriptor for both TX and RX buffers; * The EDMA engine has no ds_data for RX - the data is DMAed after the descriptor; * The EDMA engine has support for 4 TX buffer/segment pairs in the TX DMA descriptor; * The EDMA TX completion is in a different FIFO, and the driver will 'link' the status completion entry to a QCU by a "QCU ID". I don't know why it's just not filled in by the hardware, alas. So given that, here are the changes: * Instead of directly fondling 'ds_data' in ath_desc, change the ath_hal_filltxdesc() to take an array of buffer pointers as well as segment len pointers; * The EDMA TX completion status wants a descriptor and queue id. This (for now) uses bf_state.bfs_txq and will extract the hardware QCU ID from that. * .. and this is ugly and wasteful; it should change to just store the QCU in the bf_state and save 3/7 bytes in the process. Now, the weird crap: * The aggregate TX path was using bf_state->bfs_txq for the TXQ, rather than taking a function argument. I've tidied that up. * The multicast queue frames get put on a software TXQ and then that is appended to the hardware CABQ when appropriate. So for now, make sure that bf_state->bfs_txq points at the CABQ when adding frames to the multicast queue. * .. but the multicast queue TX path for now doesn't use the software queue and instead (a) directly sets up the descriptor contents at that point; (b) the frames on the vap->avp_mcastq are then just appended wholesale to the CABQ. So for now, I don't have to worry about making the multicast path work with aggregation or the per-TID software queue. Phew. What's left to do: * I need to modify the 11n ath_hal_chaintxdesc() API to do the same. I'll do that in a subsequent commit. * Remove bf_state.bfs_txq entirely and store the QCU as appropriate. * .. then do the runtime "is this going on the right HWQ?" checks using that, rather than comparing pointer values. Tested on: * AR9280 STA/AP * AR5416 STA/AP END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-08-05T10:47:18.140689Z K 7 svn:log V 105 Fix a refcount issue. The called only decrements is stcb is NULL. MFC after: 3 days Discussed with: rrs END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-05T11:24:21.343893Z K 7 svn:log V 287 Migrate the 802.11n ath_hal_chaintxdesc() API to use a buffer/segment array, similar to what filltxdesc() uses. This removes the last reference to ds_data in the TX path outside of debugging statements. These need to be adjusted/fixed. Tested: * AR9280 STA/AP with iperf TCP traffic END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-05T11:29:44.339828Z K 7 svn:log V 161 Create the interface to work with various partition tables from the loader(8). The following partition tables are supported: BSD label, GPT, MBR, EBR and VTOC8. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-05T11:50:56.405581Z K 7 svn:log V 547 Update the list of devices supported by the FTDI driver. It might be that the wrong UART reference clock will be used for a few of the IDs. It is currently not possible to figure that out because the Linux FTDI driver detects this run-time and not compile time based on the bcdDevice field of the USB device descriptor. Some of the ID's in usbdevs are not sorted according to the product ID value. Please feel free to fix this. I'm out of my xemacs magic today. This syncronises us with the linux kernel at kernel.org (HEAD). MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-05T11:53:16.628991Z K 7 svn:log V 40 Regenerate usb.conf MFC after: 2 weeks END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-05T11:59:46.817030Z K 7 svn:log V 25 Remove unused variables. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-05T12:15:15.648160Z K 7 svn:log V 224 Introduce new API to work with disks from the loader's drivers. It uses new API from the part.c to work with partition tables. Update userboot's disk driver to use new API. Note that struct loader_callbacks_v1 has changed. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-05T12:16:11.361757Z K 7 svn:log V 1345 In sbin/camcontrol/camcontrol.c, function smpcmd(), initialize the 'error' variable to zero, to avoid returning garbage in several cases. This fixes the following clang 3.2 warnings: sbin/camcontrol/camcontrol.c:4634:8: warning: variable 'error' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (amt_written == -1) { ^~~~~~~~~~~~~~~~~ sbin/camcontrol/camcontrol.c:4656:10: note: uninitialized use occurs here return (error); ^~~~~ sbin/camcontrol/camcontrol.c:4619:7: warning: variable 'error' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (fd_response == 0) { ^~~~~~~~~~~~~~~~ sbin/camcontrol/camcontrol.c:4656:10: note: uninitialized use occurs here return (error); ^~~~~ sbin/camcontrol/camcontrol.c:4617:6: warning: variable 'error' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (((ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sbin/camcontrol/camcontrol.c:4656:10: note: uninitialized use occurs here return (error); ^~~~~ MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-05T12:57:38.338680Z K 7 svn:log V 131 When GPT signature is invalid in the primary GPT header, then try to read backup GPT header. Submitted by: hrs (previous version) END K 10 svn:author V 3 dfr K 8 svn:date V 27 2012-08-05T13:38:15.386969Z K 7 svn:log V 61 Reduce namespace pollution from gssapi.h MFC after: 2 weeks END K 10 svn:author V 3 dfr K 8 svn:date V 27 2012-08-05T13:40:35.152014Z K 7 svn:log V 158 Add an option for pam_krb5 to allow it to authenticate users which don't have a local account. PR: 76678 Submitted by: daved at tamu.edu MFC after: 2 weeks END K 10 svn:author V 4 nyan K 8 svn:date V 27 2012-08-05T14:05:11.064518Z K 7 svn:log V 130 MFi386: the part of r219452 and r236405. - bunch of variables are turned into uint8_t. - Remove unnecessary initializations. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2012-08-05T14:11:07.330315Z K 7 svn:log V 27 Reduce diffs against i386. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-05T14:11:42.104256Z K 7 svn:log V 440 After the PHYS_TO_VM_PAGE() function was de-inlined, the main reason to pull vm_param.h was removed. Other big dependency of vm_page.h on vm_param.h are PA_LOCK* definitions, which are only needed for in-kernel code, because modules use KBI-safe functions to lock the pages. Stop including vm_param.h into vm_page.h. Include vm_param.h explicitely for the kernel code which needs it. Suggested and reviewed by: alc MFC after: 2 weeks END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-05T14:37:48.951096Z K 7 svn:log V 137 Add offset field to the i386_devdesc structure to be compatible with disk_devdesc structure. Update biosdisk driver to the new disk API. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-05T14:38:53.181237Z K 7 svn:log V 22 Remove unneeded flag. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-05T14:48:28.443239Z K 7 svn:log V 135 Teach the ZFS use new partitions API when probing. Note: now ZFS does probe only for partitions with type "freebsd-zfs" and "freebsd". END K 10 svn:author V 4 nyan K 8 svn:date V 27 2012-08-05T14:48:55.542775Z K 7 svn:log V 27 Reduce diffs against i386. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-05T15:40:16.830001Z K 7 svn:log V 152 Add simple test program that uses the partition tables handling code. It is useful to test and debug how boot loader handles partition tables metadata. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-05T15:55:36.794780Z K 7 svn:log V 1145 In usr.bin/make/var.c, function ParseModifier(), initialize the 'error' variable to NULL, to avoid using it uninitialized in certain cases. This fixes the following clang 3.2 warning: usr.bin/make/var.c:1770:10: error: variable 'error' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (vp->execute) { ^~~~~~~~~~~ usr.bin/make/var.c:1777:10: note: uninitialized use occurs here if (error) ^~~~~ usr.bin/make/var.c:1770:6: note: remove the 'if' if its condition is always true if (vp->execute) { ^~~~~~~~~~~~~~~~~ usr.bin/make/var.c:1768:23: note: initialize the variable 'error' to silence this warning const char *error; ^ = NULL MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-05T16:59:02.575313Z K 7 svn:log V 145 Shave off a few more cycles from the average execution time of pmap_enter() by simplifying the control flow and reducing the live range of "om". END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-05T17:04:58.401125Z K 7 svn:log V 42 Bump USERBOOT_VERSION. Requested by: dfr END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-05T17:23:47.015066Z K 7 svn:log V 1661 In usr.sbin/ctladm/ctladm.c, function cctl_error_inject(), initialize the 'retval' variable to zero, to avoid returning garbage in several cases. This fixes the following clang 3.2 warnings: usr.sbin/ctladm/ctladm.c:1234:6: error: variable 'retval' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (ioctl(fd, CTL_ERROR_INJECT, &err_desc) == -1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usr.sbin/ctladm/ctladm.c:1243:10: note: uninitialized use occurs here return (retval); ^~~~~~ usr.sbin/ctladm/ctladm.c:1234:2: note: remove the 'if' if its condition is always true if (ioctl(fd, CTL_ERROR_INJECT, &err_desc) == -1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usr.sbin/ctladm/ctladm.c:1161:7: error: variable 'retval' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (ioctl(fd, CTL_ERROR_INJECT_DELETE, &err_desc) == -1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usr.sbin/ctladm/ctladm.c:1243:10: note: uninitialized use occurs here return (retval); ^~~~~~ usr.sbin/ctladm/ctladm.c:1161:3: note: remove the 'if' if its condition is always true if (ioctl(fd, CTL_ERROR_INJECT_DELETE, &err_desc) == -1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usr.sbin/ctladm/ctladm.c:1029:12: note: initialize the variable 'retval' to silence this warning int retval; ^ = 0 MFC after: 1 week END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-08-05T17:30:17.674865Z K 7 svn:log V 303 In tcp timers, check INP_DROPPED flag a little later, after callout_deactivate(), so if INP_DROPPED is set we return with the timer active flag cleared. For me this fixes negative keep timer values reported by `netstat -x' for connections in CLOSE state. Approved by: net (silence) MFC after: 2 weeks END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-08-05T19:37:18.969615Z K 7 svn:log V 141 Add support for SIIG Cyber Serial Dual PCI 16C850 Submitted by: David Boyd David.Boyd@insightbb.com Approved by: cperciva MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-08-05T20:19:27.728540Z K 7 svn:log V 103 Include for PA_LOCK_COUNT in order to fix kernel build with options ZFS after r239065. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-08-05T21:13:21.324339Z K 7 svn:log V 167 Add interactive option to override portsnap's automagical detection of a terminal. Submitted by: Hannes h2+fbsdports@fsfe.org Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-08-05T22:03:13.469824Z K 7 svn:log V 146 Merge r236494 from x86: Isolate the global TTE list lock from data and other locks to prevent false sharing within the cache. MFC after: 3 days END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-08-05T23:54:33.684478Z K 7 svn:log V 100 Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process. Approved by: re (implicit) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-08-05T23:59:32.793994Z K 7 svn:log V 165 Since releng/9.1 has been copied bump __FreeBSD_version so stable/9 will not have a value lower than what will be in releng/9.1 shortly. Approved by: re (implicit) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-08-06T00:15:49.609721Z K 7 svn:log V 107 Update __FreeBSD_version to reflect this being the 9.1-RELEASE release branch. Approved by: re (implicit) END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-06T00:36:07.559687Z K 7 svn:log V 19 Fix build warning. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-08-06T05:27:26.666441Z K 7 svn:log V 115 Add PCI IDs for various new High Point RocketRAID 43xx and 3xxx devices. Obtained from: FreeNAS MFC after: 3 days END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-06T06:51:27.277843Z K 7 svn:log V 226 Add support for emulating PCI multi-function devices. These function number is specified by an optional [:] after the slot number: -s 1:0,virtio-net,tap0 Ditto for the mptable naming: -n 1:0,e0a Obtained from: NetApp END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-08-06T07:20:25.587473Z K 7 svn:log V 337 Fix a bug in how a 64-bit bar in a pci passthru device would be presented to the guest. Prior to the fix it was possible for such a bar to appear as a 32-bit bar as long as it was allocated from the region below 4GB. This had the potential to confuse some drivers that were particular about the size of the bars. Obtained from: NetApp END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-06T08:39:29.345304Z K 7 svn:log V 72 Add to the debug output the offset from the parent partitioning scheme. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-06T08:54:06.308060Z K 7 svn:log V 53 Fix start offset calculation for the EBR partitions. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-08-06T08:58:54.718470Z K 7 svn:log V 472 - Merge from NetBSD: When issuing a non-DMA command, make sure to set the "remaining length of command to be transferred via DMA" (sc_cmdlen) to zero up-front, otherwise we might get confused on command competition interrupt (no DMA active but still data left to transfer). - Implement handling of MSG_IGN_WIDE_RESIDUE which some targets produce, as just rejecting these leads to a resend and disconnect loop. Reported and tested by: mjacob MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-08-06T08:59:39.207746Z K 7 svn:log V 22 Add supported device. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-08-06T10:50:23.231727Z K 7 svn:log V 173 Fix a bug found by dim@: Don't use an uninitilized variable, if INVARIANTS is on and an illegal packet with destination 0 is received. MFC after: 3 days X-MFC with: 238003 END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-08-06T10:50:43.058318Z K 7 svn:log V 193 use FREE_PKT instead of m_freem to free an mbuf. The former is the standard form used in ipfw/dummynet, so that it is easier to remap it to different memory managers depending on the platform. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-08-06T11:02:23.415428Z K 7 svn:log V 242 move functions outside the SYSBEGIN/SYSEND block (SYSBEGIN/SYSEND are specific to ipfw/dummynet and are used to emulate sysctl on platforms that do not have them, and they work by creating an array which contains all the sysctl-ed symbols.) END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-06T15:22:11.970686Z K 7 svn:log V 88 Fix mutex recursion in NFS client by removing MNT_ILOCK and MNT_INUNLOCK in nfs_sync(). END K 10 svn:author V 3 kan K 8 svn:date V 27 2012-08-06T16:37:43.643307Z K 7 svn:log V 458 Do not add handler to event handlers list until ithread is created. In rare event when fast and ithread interrupts share the same vector and the fast handler was registered first, we can end up trying to schedule the ithread that is not created yet. The kernel built with INVARIANTS then triggers an assertion. Change the order to create the ithread first and only then add the handler that needs it to the interrupt event handlers list. Reviewed by: jhb END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-06T16:55:01.471354Z K 7 svn:log V 245 Remove need of passing trapframes between consecutive arm_dispatch_irq() calls. Trapframe will be stored in thread td_intr_frame variable in first arm_dispatch_irq() call (at root interrupt controlled) and maintained in whole IRQ handling path. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-06T17:00:29.579345Z K 7 svn:log V 68 Enable INVARIANTS, WITNESS and DIAGNOSTIC on Pandaboard by default. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-06T17:58:58.799953Z K 7 svn:log V 128 Improvements in intrng code: fill in arm_remove_irqhandler() routine, add support for interrupt counting, some general cleanup. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-06T18:40:14.751472Z K 7 svn:log V 151 Fix two instances in pam_krb5(8), where the variable 'princ_name' could be used uninitialized. Found by: clang 3.2 Reviewed by: des MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-06T18:44:59.533996Z K 7 svn:log V 143 Fix an instance in pam_krb5(8), where the variable 'user' could be used uninitialized. Found by: clang 3.2 Reviewed by: des MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-06T18:51:14.166959Z K 7 svn:log V 195 In cxgb(4), in function iwch_reregister_phys_mem(), initialize the 'npages' variable to zero, to avoid using it uninitialized in certain cases. Found by: clang Reviewed by: np MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-06T18:54:17.087899Z K 7 svn:log V 217 In sys/dev/cxgbe/firmware/t4fw_interface.h, change the enum 'fw_hdr_intfver' into an anonymous enum, which avoids a clang 3.2 warning about all the enum values being the same value. Reviewed by: np MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-06T19:49:57.296019Z K 7 svn:log V 409 Explicitly enable busmastering on PCI-PCI bridges. Transactions initiated on the secondary side of a bridge will not be propagated to the primary bus unless this is enabled. Busmastering is not enabled by default (we have relied on firmware to set this bit to date). The OS needs to set it for any bridges not configured by system firmware. Tested by: Steve Polyack korvus comcast net MFC after: 2 weeks END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-06T20:01:32.464300Z K 7 svn:log V 182 In sys/dev/aic7xxx/aic79xx_osm.c, function ahd_attach(), initialize the 'path' variable to NULL, to avoid using it uninitialized in certain cases. Found by: clang MFC after: 1 week END K 10 svn:author V 3 jfv K 8 svn:date V 27 2012-08-06T20:44:05.149276Z K 7 svn:log V 204 Correct the mq_start routine to avoid out-of-order packet delivery, always enqueue when possible. Also correct the DEPLETED test as multiple bits might be set. Thanks to Randall Stewart for the changes! END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-06T21:02:40.369477Z K 7 svn:log V 235 Make sure the compiler knows g_gate_xvlog() and g_gate_xlog() do not return. This silences a warning from clang 3.2 about uninitialized use of the variable 'mediasize' in sbin/ggate/shared/ggate.c. Reviewed by: pjd MFC after: 1 week END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-08-06T21:24:43.297057Z K 7 svn:log V 399 MFP4 change 214967: Make the process of embedding MDROOT images less perilous by makeing the target that links kernel and embedding the image depend on the image. This means, if the image doesn't exist you find out before you try to boot from it and that if you change the image you don't have to touch some random source file to cause a rebuild. Don't hide that we're embedding the image. END K 10 svn:author V 5 simon K 8 svn:date V 27 2012-08-06T21:33:11.627289Z K 7 svn:log V 150 Fix named(8) DNSSEC validation Denial of Service. Security: FreeBSD-SA-12:05.bind Security: CVE-2012-3817 Obtained from: ISC Approved by: so (simon) END K 10 svn:author V 3 jfv K 8 svn:date V 27 2012-08-06T22:43:49.421417Z K 7 svn:log V 190 Make the polling interface in igb able to handle multiqueue, and correct the rxdone handling. Update the polling man page to include igb as well. Thanks to Mark Johnston for these changes. END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-08-06T22:53:24.914199Z K 7 svn:log V 196 Remove a spurious bace which cause build fail in case BCE_DEBUG option is turned on. Reviewed by: delphij Approved by: gnn (mentor) Sponsored by: Google Summer of Code 2012 MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-06T22:54:10.601826Z K 7 svn:log V 40 Remove unnecessary debugging printf()s. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-06T22:58:46.846847Z K 7 svn:log V 258 libfuse caches dot and dotdot entries, not passing through the normal lookup path. This means that in order to keep nlookup counter consistent the bumping for dot and dotdot entries must not be performed. In collaboration with: pho Reported by: flo, gustau END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-06T23:05:32.018168Z K 7 svn:log V 4 MFC END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-06T23:15:46.102696Z K 7 svn:log V 31 Initial IPI support in intrng. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-06T23:21:15.626557Z K 7 svn:log V 41 Get FDT interrupt decoding back to work. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-06T23:46:17.874876Z K 7 svn:log V 45 Remove now unused pieces of ti_machdep code. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-07T00:15:33.560373Z K 7 svn:log V 61 Add support for high/low vector addresses in arm_mmu_init(). END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-08-07T00:28:29.397239Z K 7 svn:log V 333 Remove some unneeded checks. For non-direct callouts softclock_call_cc() is only called for callouts on cc_expireq queue, and all the callouts there have CALLOUT_PROCESSED flag. Similarly, for direct callouts the aforementioned function is called for callouts on the wheel, which haven't CALLOUT_PROCESS flag set. Reviewed by: mav END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-08-07T00:34:15.807795Z K 7 svn:log V 227 Optimize a bit callout_process() routine avoiding some calculations if they're redundant. While here, rather use bintime_isset() macro rather than checking if both fields of struct bintime are equal to zero. Reviewed by: mav END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-07T00:42:46.101408Z K 7 svn:log V 176 Correct re-initialise the link pointer to be the final descriptor in the last buffer. This fixes traffic stalls that were occuring with stuck beacon events. PR: kern/170433 END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-07T04:48:14.286193Z K 7 svn:log V 451 Never sleep on busy pages in vm_pageout_launder(), always skip them. Long ago, sleeping on busy pages in vm_pageout_launder() made sense. The call to vm_pageout_flush() specified asynchronous I/O and sleeping on busy pages blocked vm_pageout_launder() until the flush had completed. However, in CVS revision 1.35 of vm/vm_contig.c, the call to vm_pageout_flush() was changed to request synchronous I/O, but the sleep on busy pages was not removed. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-07T05:03:53.855618Z K 7 svn:log V 17 Sync with head/. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-08-07T05:46:36.832913Z K 7 svn:log V 72 Remove duplicate header inclusion of Discussed with: bz END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-08-07T07:52:25.603935Z K 7 svn:log V 29 s/lenght/length/ in comments END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-07T08:36:10.244837Z K 7 svn:log V 218 Do not apply errata 721 workaround when under hypervisor, since typical hypervisor does not implement access to the required MSR, causing #GP on boot. Reported and tested by: olgeni PR: amd64/170388 MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-07T08:37:35.179722Z K 7 svn:log V 95 Fix obvious problem with emulate_fp sysctl. Submitted by: Paul Ambrose END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-07T09:22:46.131260Z K 7 svn:log V 176 As it turned out, there are some installations, where BSD label contains partitions with type zero. And it has worked. So, allow detect these partitions. Reported by: glebius END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-07T12:40:31.880351Z K 7 svn:log V 479 Don't try to stop the IPMI watchdog timer if it is not running. Starting or stopping the IPMI watchdog is rather expensive with the current implementation as all IPMI requests are bounced via thread. This is not viable during shutdown or dumps, and this avoids headache in the common case that the watchdog is not enabled. The IPMI watchdog should probably be reworked to not use a separate thread to fix this in the case when the watchdog timer is enabled. MFC after: 2 weeks END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-08-07T12:45:46.665295Z K 7 svn:log V 28 Added missing include file. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-08-07T13:11:47.842505Z K 7 svn:log V 27 Minor style(9) improvement END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-08-07T18:50:33.636736Z K 7 svn:log V 227 In g_gate_dumpconf() always check the result of g_gate_hold(). This fixes "Negative sc_ref" panic possible when sysctl_kern_geom_confxml() is run simultaneously with destroying GATE device. Reviewed by: pjd MFC after: 3 days END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-08-07T20:16:10.044178Z K 7 svn:log V 130 Clone BIO_ORDERED flag, for disk drivers (namely CAM) that try to consume it. Sponsored by: Intel Discussed with: gibbs, scottl END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-08-07T23:16:11.976669Z K 7 svn:log V 411 During TSC synchronization test, use rdtsc() rather than rdtsc32(), to protect against 32-bit TSC overflow while the sync test is running. On dual-socket Xeon E5-2600 (SNB) systems with up to 32 threads, there is non-trivial chance (2-3%) that TSC synchronization test fails due to 32-bit TSC overflow while the synchronization test is running. Sponsored by: Intel Reviewed by: jkim Discussed with: jkim, kib END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-07T23:45:43.093689Z K 7 svn:log V 106 Commit device IDs for the (eventually upcoming) AR9380 HAL. Obtained from: Qualcomm Atheros, Linux ath9k END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-08T00:20:30.981079Z K 7 svn:log V 93 Always initialize pl_event. Submitted by: Andrey Zonov MFC after: 3 days END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-08T04:28:45.095666Z K 7 svn:log V 11 MFC@239135 END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-08T05:28:30.765423Z K 7 svn:log V 207 The assertion that I added in r238889 could legitimately fail when a debugger creates a breakpoint. Replace that assertion with a narrower one that still achieves my objective. Reported and tested by: kib END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-08-08T09:42:44.741954Z K 7 svn:log V 221 Import compiler-rt r160957. This is mostly a no-op other than for ARM where it adds missing __aeabi_mem* and __aeabi_*divmod functions. Even on ARM these will remain unused until the rest of the ARM EABI code is merged. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-08-08T13:54:26.108717Z K 7 svn:log V 44 Round displayed pps (instead of truncating) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-08-08T15:27:01.953928Z K 7 svn:log V 47 Clarify comments about number of tx / rx rings END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-08-08T15:28:29.343679Z K 7 svn:log V 33 Fix whitespace (missing newline) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-08T17:16:06.350600Z K 7 svn:log V 26 Fix an incorrect comment. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-08T18:24:33.576740Z K 7 svn:log V 1631 More rototilling with target mode in an attemp to get multiple CCB at a time outstanding reliable. It's not there yet, but this is the direction to go in so might as well commit. So far, multiple at a time CCBs work (see ISP_INTERNAL_TARGET test mode), but it fails if there are more downstream than the SIM wants to handle and SRR is sort of confused when this happens, plus it is not entirely quite clear what one does if a CCB/CTIO fails and you have more in flight (that don't fail, say) and more queued up at the SIM level that haven't been started yet. Some of this is driven because there apparently is no flow control to requeue XPT_CONTINUE_IO requests like there are for XPT_SCSI_IO requests. It is also more driven in that the few target mode periph drivers there are are not really set up for handling pushback- heck most of them don't even check for errors (and what would they really do with them anyway? It's the initiator's problem, really....). The data transfer arithmetic has been worked over again to handle multiple outstanding commands, so you have a notion of what's been moved already as well as what's currently in flight. It turns that this led to uncovering a REPORT_LUNS bug in the ISP_INTERNAL_TARGET code which was sending back 24 bytes of rpl data instead of the specified 16. What happened furthermore here is that sending back 16 bytes and reporting an overrun of 8 bytes made the initiator (running FC-Tape aware f/w) mad enough to request, and keep requesting, another FCP response (I guess it didn't like the answer so kept asking for it again). Sponsored by: Spectralogic MFC after: 1 month END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-08-08T18:39:29.481149Z K 7 svn:log V 53 Prep for 9.1-RC1 builds. Approved by: re (implicit) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-08-08T19:15:01.324607Z K 7 svn:log V 66 Be more descriptive about poll error / timeout when transmitting. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-08-08T20:05:25.006323Z K 7 svn:log V 215 MFC r239041: Fix a bug reported by Simon L. B. Nielsen: If an SCTP endpoint receives an ASCONF with a wildcard lookup address and incorrect verification tag, the system crashes. This bug was found by Shaun Colley. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-08-08T20:08:45.221962Z K 7 svn:log V 79 MFC r239052: Fix a refcount issue. The called only decrements is stcb is NULL. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-08T20:21:33.798763Z K 7 svn:log V 233 Make the addition of the d_gone binary compatible. This allows storage drivers compiled for 9.0 to work on 9.1 and preserves the ABI for disks. Reviewed by: scottl, ken Approved by: re@ (kensmith) MFS after: releng/9.1 gets sorted END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-08-09T14:46:52.139542Z K 7 svn:log V 506 Improve lock and unlock symmetry - Move destruction of per-ring locks to netmap_dtor_locked to mirror the initialization that happens in NIOCREGIF. Otherwise unloading a netmap- capable interface that was never put into netmap mode would try to mtx_destroy an uninitialized mutex, and panic. - Destroy core_lock in netmap_detach, mirroring init in netmap_attach. - Also comment out the knlist_destroy for now as there is currently no knlist_init. Sponsored by: ADARA Networks Reviewed by: luigi@ END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-08-09T15:04:06.318723Z K 7 svn:log V 283 nftw(): Do not check the maxfds argument against OPEN_MAX. Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed to RLIMIT_NOFILE from getrlimit() or _SC_OPEN_MAX from sysconf()), POSIX does not require us to check this. PR: 95239 Submitted by: Todd Miller END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-08-09T15:11:38.762733Z K 7 svn:log V 406 ftw(): Do not check the maxfds argument against OPEN_MAX. Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed to RLIMIT_NOFILE from getrlimit() or _SC_OPEN_MAX from sysconf()), POSIX does not require us to check this. POSIX does have a requirement on the application that maxfds not exceed {OPEN_MAX}, but does not require the implementation to check it ("may fail"). PR: 95239 END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-09T16:38:17.701084Z K 7 svn:log V 515 Merge r132141 and r111272 from amd64/i386: Reduce the size of a PV entry by eliminating pv_ptem. There is no need to store a pointer to the page table page in the PV entry because it is easily computed during the walk down the page table. Eliminate the ptphint from the pmap. Long, long ago, page table pages belonged to a vm object, and we would look up page table pages based upon their offset within this vm object. In those days, this hint may have had tangible benefits. Tested by: jchandra END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-09T18:09:59.774312Z K 7 svn:log V 541 SCHED_4BSD scheduling quantum mechanism appears to be broken for some time. With switchticks variable being reset each time thread preempted (that is done regularly by interrupt threads) scheduling quantum may never expire. It was not noticed in time because several other factors still regularly trigger context switches. Handle the problem by replacing that mechanism with its equivalent from SCHED_ULE called time slice. It is effectively the same, just measured in context of stathz instead of hz. Some unification is probably not bad. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-09T19:08:08.208592Z K 7 svn:log V 17 Resync with HEAD END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-09T19:11:31.323083Z K 7 svn:log V 25 Remove duplicate options END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-08-09T19:22:54.761073Z K 7 svn:log V 93 Refresh with OpenBSD RCS ID changes to reflect that we now have essentionally the same file. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-09T19:26:13.232895Z K 7 svn:log V 906 Rework r220198 change (by fabient). I believe it solves the problem from the wrong direction. Before it, if preemption and end of time slice happen same time, thread was put to the head of the queue as for only preemption. It could cause single thread to run for indefinitely long time. r220198 handles it by not clearing TDF_NEEDRESCHED in case of preemption. But that causes delayed context switch every time preemption happens, even when not needed. Solve problem by introducing scheduler-specifoc thread flag TDF_SLICEEND, set when thread's time slice is over and it should be put to the tail of queue. Using SW_PREEMPT flag for that purpose as it was before just not enough informative to work correctly. On my tests this by 2-3 times reduces run time deviation (improves fairness) in cases when several threads share one CPU. Reviewed by: fabient MFC after: 2 months Sponsored by: iXsystems, Inc. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-08-09T20:22:24.381348Z K 7 svn:log V 107 MFC r238997: Correct a typo. Reported by: Sascha Wildner Reviewed by: scottl END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-08-09T20:27:11.720369Z K 7 svn:log V 129 MFC r239084: Add PCI IDs for various new High Point RocketRAID 43xx and 3xxx devices. Obtained from: FreeNAS MFC after: 3 days END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-08-09T22:05:40.953833Z K 7 svn:log V 139 nftw(): POSIX says directories causing loops should be silently skipped. Formerly, loops caused nftw() to abort the traversal with ELOOP. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-09T23:04:20.719618Z K 7 svn:log V 18 Add HAL_DMA_ADDR. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-09T23:08:22.508579Z K 7 svn:log V 39 Add a missing HAL_DMA_ADDR definition. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-10T01:33:59.041485Z K 7 svn:log V 56 Adopt new style of ARM CPU initialization for TI boards END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-10T01:34:22.034943Z K 7 svn:log V 20 Add missing include END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-08-10T02:54:35.151924Z K 7 svn:log V 165 In callout_cc_add(), r_val is sum up with the fractional part of struct bintime, so it needs to be uint64_t rather than int. Make this change. Discussed with: mav END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-08-10T03:01:39.102361Z K 7 svn:log V 20 MFC as per r239165. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-10T04:47:20.479438Z K 7 svn:log V 34 Add charge pump current register. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-10T04:48:06.776651Z K 7 svn:log V 62 More comments about setting PLLA, or rather that we never do. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-08-10T04:48:58.197435Z K 7 svn:log V 370 RFC 2289 requires all hashes be stored in little endian format before folding to 64 bits, while SHA1 code is big endian. Therefore, a bswap32 is required before using the value. Without this change, the implementation does not conform to test vector found in RFC 2289. PR: bin/170519 Submitted by: Arthur Mesh (with changes) MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-10T05:00:50.845576Z K 7 svn:log V 348 Merge r134393 from amd64/i386: The machine-independent parts of the virtual memory system always pass a valid pmap to the pmap functions that require one. Remove the checks for NULL. (These checks have their origins in the Mach pmap.c that was integrated into BSD. None of the new code written specifically for FreeBSD included them.) END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-10T05:47:04.714128Z K 7 svn:log V 245 Eliminate an unnecessary acquisition and release of the page queues lock from pmap_pte(). PT_SET_MA() is not a queued mapping update, but instead an immediate mapping update, so the page queues lock is not required here. Reviewed by: cperciva END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-08-10T09:04:02.908480Z K 7 svn:log V 15 MFC to r239171 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-08-10T11:01:55.287071Z K 7 svn:log V 112 Catch up with r238421 in pfsync. We need to initalize allocated keys. Reported by: Ben Wilber END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-08-10T11:11:04.788943Z K 7 svn:log V 36 Merge head r233826 through r239173. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-10T13:36:33.254818Z K 7 svn:log V 155 Add missing FAILED event to g_raid_subdisk_event2str() to print it properly in debug messages. Submitted by: Dmitry Luhtionov END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-10T14:44:04.086587Z K 7 svn:log V 34 Fix spelling. MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-10T14:51:41.518673Z K 7 svn:log V 27 Style. MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-10T15:02:49.825612Z K 7 svn:log V 433 Add new device method to free the automatically allocated softc structure which is returned by device_get_softc(). This method can be used to easily implement softc refcounting. This can be desirable when the softc has memory references which are controlled by userspace handles for example. This solves the problem of blocking the caller of device_detach() for a non-deterministic time. Discussed with: kib, ed MFC after: 2 weeks END