ĵy213812 166 930 297 724 148 323 272 196 208 314 251 284 261 318 165 165 123 272 562 317 330 314 458 132 143 176 189 281 284 119 559 227 196 536 307 155 676 270 200 148 113 186 499 154 133 301 164 253 253 253 175 228 228 326 201 201 228 284 523 339 203 208 543 200 167 226 183 1621 301 204 245 286 383 141 116 275 697 158 1541 599 549 178 1257 302 1221 169 377 294 378 285 446 118 239 673 294 228 154 1264 113 372 366 882 1349 213 271 420 159 682 164 316 179 164 179 175 213 354 147 168 283 361 593 715 177 143 143 169 580 209 145 221 504 237 196 173 2250 188 314 173 188 438 121 538 538 145 145 222 222 228 228 236 236 171 171 134 159 214 214 275 263 258 181 181 345 345 127 298 298 K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-13T22:29:48.893806Z K 7 svn:log V 833 Fix a regression introduced in r213710. r213710 removed the use of auto polling such that it made all controllers obtain link status information from the state of the LNKRDY input signal. Broadcom recommends disabling auto polling such that driver should rely on PHY interrupts for link status change indications. Unfortunately it seems some controllers(BCM5703, BCM5704 and BCM5705) have PHY related issues so Linux took other approach to workaround it. bge(4) didn't follow that and it used to enable auto polling to workaround it. Restore this old behavior for BCM5700 family controllers and BCM5705 to use auto polling. For BCM5700 and BCM5701, it seems it does not need to enable auto polling but I restored it for safety. Special thanks to marius who tried lots of patches with patience. Reported by: marius Tested by: marius END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-13T22:59:04.504429Z K 7 svn:log V 204 Use a safer mechanism for determining if a task is currently running, that does not rely on the lifetime of pointers being the same. This also restores the task KBI. Suggested by: jhb MFC after: 1 month END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-13T23:29:09.982338Z K 7 svn:log V 628 Do not assume in growstackstr() that a "precious" character will be immediately written into the stack after the call. Instead let the caller manage the "space left". Previously, growstackstr()'s assumption causes problems with STACKSTRNUL() where we want to be able to turn a stack into a C string, and later pretend the NUL is not there. This fixes a bug in STACKSTRNUL() (that grew the stack) where: 1. STADJUST() called after a STACKSTRNUL() results in an improper adjust. This can be seen in ${var%pattern} and ${var%%pattern} evaluation. 2. Memory leak in STPUTC() called after a STACKSTRNUL(). Reviewed by: jilles END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-13T23:31:17.175343Z K 7 svn:log V 53 We only need to look as far as '..' to find 'test/'. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2010-10-14T00:46:33.805846Z K 7 svn:log V 227 MFC r212594: Avoid repeatedly spamming the console while a timed out command is waiting to complete. Instead, print one message after the timeout period expires, and one more when (if) the command eventually completes. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-14T01:21:44.675678Z K 7 svn:log V 176 MFC r212770 & r212832: + Add the SCRIPT environmental variable to the sub-shell. + Add the 'command' argument (if supplied on the command line) to the typescript file. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-14T01:45:49.650429Z K 7 svn:log V 102 - Add an implementation of rb_replace_node() Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-14T01:46:20.834295Z K 7 svn:log V 114 - Add implementations of test_and_set and test_and_clear Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-14T01:47:07.211114Z K 7 svn:log V 220 - Linux uses absolute timeout values while FreeBSD uses relative timeout values. Adjust accordingly. Previously this would produce absurdly long timeouts. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-14T01:47:47.378376Z K 7 svn:log V 157 - Don't hold giant when calling wrapped callouts. - Do hold giant when calling devclass_add_child. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-14T01:48:51.781292Z K 7 svn:log V 190 - Correct sign of return values from atomic functions. This was preventing atomic_add_negative() from detecting negative values. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-14T01:49:40.485800Z K 7 svn:log V 167 - Use SI_ORDER_MIDDLE for mlx4 so that it can't be reordered after the vm scheduler which does not return. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-14T02:02:55.141062Z K 7 svn:log V 224 - Port and enable CM based ipoib. - Enable multicast support. - Generally polish the ipoib port some, fix potential memory leaks, improve locking, comments, etc. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-14T02:10:49.307278Z K 7 svn:log V 70 MFC r212771: Increase the hostname display width to >12 characters. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-14T02:19:53.035287Z K 7 svn:log V 70 MFC r212771: Increase the hostname display width to >12 characters. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-14T03:11:41.025719Z K 7 svn:log V 28 MFC r212832: update manpage END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-14T03:13:20.765119Z K 7 svn:log V 176 MFC r212770 & r212832: + Add the SCRIPT environmental variable to the sub-shell. + Add the 'command' argument (if supplied on the command line) to the typescript file. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-14T08:01:33.914068Z K 7 svn:log V 465 In kern_sigtimedwait(), move initialization code out of process lock, instead of using SIGISMEMBER to test every interesting signal, just unmask the signal set and let cursig() return one, get the signal after it returns, call reschedule_signal() after signals are blocked again. In kern_sigprocmask(), don't call reschedule_signal() when it is unnecessary. In reschedule_signal(), replace SIGISEMPTY() + SIGISMEMBER() with sig_ffs(), rename variable 'i' to sig. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-14T09:29:59.364400Z K 7 svn:log V 224 MFC r213508: Explicitely call cache_purge(fvp) when msdosfs_rename() succeeded, to flush aliases created due to msdosfs being case-insensitive. MFC r213543: Add a comment describing the reason for calling cache_purge(fvp). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2010-10-14T11:20:23.180229Z K 7 svn:log V 233 Enable the shared memory reference clock driver. The GPS devices are getting more and more popular, as source of precise time, and the gpsd daemon from ports is using the shared memory to synchronize with ntpd. Reviewed by: roberto END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-14T12:32:49.725061Z K 7 svn:log V 222 Use ifa_ifwithaddr_check() rather than ifa_ifwithaddr() as we are not interested in the result and would leak a reference otherwise. PR: kern/151435 Submitted by: Andrew Boyer (aboyer averesystems.com) MFC after: 3 days END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-14T13:56:26.399989Z K 7 svn:log V 357 MFC r213406: Fix two subtle problems in PPC32 RTLD. The first is a concurrency issue where long PLT calls in multi-threaded environments could end up with incorrect jmptab values. The second is that, after the addition of extended PLT support, I forgot to update the PLT icache synchronization code to cover the extended PLT instead of just the basic PLT. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-14T14:13:44.790834Z K 7 svn:log V 36 Enable netdump working with VIMAGE. END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-10-14T14:48:11.492513Z K 7 svn:log V 52 Add FreeBSD 8.2. Reviewed by: ru MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-14T14:49:49.224761Z K 7 svn:log V 85 Style: make the asterisk go with the variable name, not the type. MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-14T15:15:22.246148Z K 7 svn:log V 98 Remove dead code: assignment to a local variable not used anywhere after that. MFC after: 3 days END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-14T15:42:32.350244Z K 7 svn:log V 180 IFC @ r213837 Take advantage of new features, including grehan's MMU inheritance code, to simplify PS3 bits. Also map the PS3 framebuffer write-combining now that we can do that. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-14T16:44:05.795404Z K 7 svn:log V 191 Re-work the internals of adding items to the driver's scatter-gather list. Use the new internals to simplify adding transaction context elements, and in future diffs, more complicated SGLs. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-14T16:44:44.343424Z K 7 svn:log V 27 Support firmware download. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-14T17:22:38.180498Z K 7 svn:log V 462 It seems some multi-port dc(4) controllers shares SROM of the first port such that reading station address from second port always returned 0xFF:0xFF:0xFF:0xFF:0xFF:0xFF Unfortunately it seems there is no easy way to know whether SROM is shared or not. Workaround the issue by traversing dc(4) device list and see whether we're using second port and use station address of controller 0 as base station address of second port. PR: kern/79262 MFC after: 2 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-14T17:57:52.718274Z K 7 svn:log V 130 Backout r204230. TX mbuf parser for VLAN is still required to enable TX checksum offloading if VLAN hardware tagging is disabled. END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-10-14T18:02:31.987559Z K 7 svn:log V 104 MFC r200036 by scottl: Fix several cases where the periph lock was held over malloc. PR: kern/130735 END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-14T18:31:40.047785Z K 7 svn:log V 439 Make sure to not use stale ip/tcp header pointers. The ip/tcp header parser uses m_pullup(9) to get access to mbuf chain. m_pullup(9) can allocate new mbuf chain and free old one if the space left in the mbuf chain is not enough to hold requested contiguous bytes. Previously drivers can use stale ip/tcp header pointer if m_pullup(9) returned new mbuf chain. Reported by: Andrew Boyer (aboyer <> averesystems dot com) MFC after: 10 days END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-14T19:19:19.603523Z K 7 svn:log V 211 Revert r213765. This is required because our build infrastructure uses the host lex instead of the lex built during buildworld. I will MFC the lex changes soon and in a few weeks this I'll commit again r213765. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-14T19:30:44.500794Z K 7 svn:log V 63 Remove stale comment. Submitted by: arundel MFC after: 3 days END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-14T20:04:05.083446Z K 7 svn:log V 579 Hooks the USB transfer taps at two points that one of them is at usbd_pipe_start() where is a location before calling the host controller-dependent code which normally enqueues a xfer into scheduler then adds it into the interrupt queue. It means it hooks all USB transfers before going into the interrupt queue. Other is at usbd_callback_wrapper() where is a function to call the developer-defined callback with status, USB_ST_TRANSFERRED or USB_ST_ERROR that we don't tap if the status is USB_ST_SETUP. Currently sizeof(struct usbpf_pkthdr) == 128 bytes for further works. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T20:04:36.713747Z K 7 svn:log V 172 LibUSB (new API): - Add a new API function to check the connected status of the USB handle in the LibUSB v1.0 and LibUSB v0.1 interfaces. Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T20:18:39.102175Z K 7 svn:log V 102 - Fix some compile warnings regarding comparing signed to unsigned. Approved by: thompsa (mentor) END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-14T20:26:19.633158Z K 7 svn:log V 52 Uses USB_PAGE_SIZE instead of defining the new one. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-14T20:31:07.421566Z K 7 svn:log V 17 Removes a space. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T20:38:18.687469Z K 7 svn:log V 89 - Add support for LibUSB in 32-bit compatibility mode. Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T20:50:33.796550Z K 7 svn:log V 401 - Add missing LibUSB API functions: * libusb_strerror() * libusb_get_driver[_np]() * libusb_detach_kernel_driver[_np]() - Factor out setting of non-blocking flag inside libusb. - Add missing NULL check after libusb_get_device() call. - Correct some wrong error codes due to copy and paste error. PR: usb/150546 Submitted by: Robert Jenssen, Alexander Leidinger Approved by: thompsa (mentor) END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-14T21:07:09.716461Z K 7 svn:log V 58 Distinguishes the kernel and userland parts for usb_pf.h. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-14T21:09:04.626899Z K 7 svn:log V 37 Moves two macros for userland parts. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T21:09:37.165728Z K 7 svn:log V 203 - Add more USB devices to usbdevs and rename some previously unknown ones. - Add more USB mass storage quirks. Submitted by: Dmitry Luhtionov PR: usb/149934, usb/143045 Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T21:14:33.114867Z K 7 svn:log V 67 Correct EHCI port register read. Approved by: thompsa (mentor) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:14:58.445905Z K 7 svn:log V 158 MFC of r213032 r213033 Fix location and year of the Battle of the Plains of Abraham PR: 150504 Submitted by: Douglas Berry END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:16:14.760566Z K 7 svn:log V 158 MFC of r213032 r213033 Fix location and year of the Battle of the Plains of Abraham PR: 150504 Submitted by: Douglas Berry END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:17:32.871149Z K 7 svn:log V 158 MFC of r213032 r213033 Fix location and year of the Battle of the Plains of Abraham PR: 150504 Submitted by: Douglas Berry END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T21:18:18.922275Z K 7 svn:log V 78 Correct EHCI root HUB interface descriptor. Approved by: thompsa (mentor) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:19:04.718457Z K 7 svn:log V 133 MFC of r212163 Adding a missing firstname (Monique) PR: conf/150049 Submitted by: Thierry Thomas END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:19:08.017122Z K 7 svn:log V 133 MFC of r212163 Adding a missing firstname (Monique) PR: conf/150049 Submitted by: Thierry Thomas END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T21:26:06.593314Z K 7 svn:log V 228 Avoid using endless retransmission at EHCI hardware level, hence this hide errors from the applications. Only use endless retransmission while in the non-addressed state on a High-Speed device. Approved by: thompsa (mentor) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:29:50.562437Z K 7 svn:log V 106 MFC of r206568 Allerheilingen -> Allerheiligen Submitted by: Ronald Klop END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:29:51.764165Z K 7 svn:log V 106 MFC of r206568 Allerheilingen -> Allerheiligen Submitted by: Ronald Klop END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-14T21:30:13.902099Z K 7 svn:log V 132 Just like xmphy(4) this driver doesn't use any of the generic subroutines so there's no need to fill mii_{ext,}capabilities either. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-14T21:34:53.099934Z K 7 svn:log V 188 - In the spirit of r212559 add a comment describing what will eventually lower the PIL. - Just as with the AP ensure that the (S)TICK timer(s) are in a known state when starting BSPs. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T21:38:06.156183Z K 7 svn:log V 425 Revert most of r197682 (EHCI Hardware BUG workaround). Implement proper solution which is to not use the TERMINATE pointer, but rather link to a halted TD. The initial fix was due to a misunderstanding about how the EHCI hardware works. Thanks to Alan Stern for clearing this up. This patch can increase mass storage read performance significantly when the IRQ rate is less than 8000 IRQ/s. Approved by: thompsa (mentor) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:38:20.764872Z K 7 svn:log V 244 MFC of r211517 r212035 r211517: '\0' -> 0 Fix silly mistake by being overly zeaolous[sp] of applying the style rules. r212035: For calendars which don't match the solar-based Gregorian calendar, be able to specify a year string in an entry. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T21:41:08.509840Z K 7 svn:log V 105 Remove unused EHCI register definition. Define reserved EHCI register. Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T21:45:41.058406Z K 7 svn:log V 110 Fix forwarding of Line Register Status changes to TTY layer. PR: usb/149675 Approved by: thompsa (mentor) END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-14T21:46:53.375231Z K 7 svn:log V 447 Explicitly lower the PIL to 0 as part of enabling interrupts, similar to what is done on other platforms. Unlike as with the sched_throw(NULL) called on BSPs during their startup apparently there's nothing which will reliably lower it on APs. I'm unsure why this only came up on V215 though, breaking these with r207248. My best guess is that these are the only supported ones so far fast enough to loose some race. PR: 151404 MFC after: 3 days END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:51:53.853389Z K 7 svn:log V 105 Remove calendar.judaic from RELENG_7: - It is out of date. - It is properly fixed in HEAD and RELENG_8. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:53:25.490149Z K 7 svn:log V 73 Update manual with regarding to the status of calendars/calendar.judaic. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T21:53:42.439119Z K 7 svn:log V 128 Add more USB device IDs to supported list of devices. Submitted by: Nick Hibma PR: usb/149900 Approved by: thompsa (mentor) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-14T21:58:51.789884Z K 7 svn:log V 89 MFC of r213875 Update manual with regarding to the status of calendars/calendar.judaic. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-14T22:01:40.609545Z K 7 svn:log V 1524 Add a NetBSD-compatible mii_attach(), which is intended to eventually replace mii_phy_probe() altogether. Compared to the latter the advantages of mii_attach() are: - intended to be called multiple times in order to attach PHYs in multiple passes (f.e. in order to only use sub-ranges of the 0 to MII_NPHY - 1 range) - being able to pass along the capability mask from the NIC to the PHY drivers - being able to specify at which address (phyloc) to probe for a PHY (instead of always probing at all addresses from 0 to MII_NPHY - 1) - being able to specify which PHY instance (offloc) to attach - being able to pass along MIIF_* flags from the NIC to the PHY drivers (f.e. as required to indicated to the PHY drivers that flow control is supported by the NIC driver, which actually is the motivation for this change). While at it, I used the opportunity to get rid of some hacks in mii(4) like miibus_probe() generally doing work besides sheer probing and the "EVIL HACK" (which will vanish entirely along with mii_phy_probe()) by passing the struct ifnet pointer via an argument of mii_attach() as well as to fix some resource leaks in mii(4) in case something fails. Commits which will update the PHY drivers to honor the MII flags passed down from the NIC drivers and take advantage of mii_attach() to get rid of certain types of hacks in NIC and PHY drivers as well as a conversion of the remaining uses of mii_phy_probe() will follow shortly. Reviewed by: jhb, yongari Obtained from: NetBSD (partially) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T22:06:52.139873Z K 7 svn:log V 203 - Add more USB devices to usbdevs and rename some previously unknown ones. - Add more USB mass storage quirks. Submitted by: Dmitry Luhtionov PR: usb/149934, usb/143045 Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-14T22:14:55.086160Z K 7 svn:log V 106 Add new USB device IDs to the list of supported devices. PR: usb/151043 Approved by: thompsa (mentor) END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-14T22:45:14.333904Z K 7 svn:log V 148 Adds two ioctl interfaces, UIOCSRTIMEOUT and UIOCGRTIMEOUT to specify the read timeout. While I'm here fixes wrong group ids for other interfaces. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-14T23:26:08.704161Z K 7 svn:log V 193 Fixes to mps_user_command(): - fix the leak of command struct on error - simplify the cleanup logic - EINPROGRESS is not a fatal error - buggy comment and error message Reviewed by: ken END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-14T23:28:31.359242Z K 7 svn:log V 287 Embellish this testcase a little bit to be more clear what the output is and why. The first case is correct usage which has but one correct output. The 2nd and 3rd cases are incorrect usage in which the exact output is not standardized and various shells give various allowable output. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-14T23:31:58.546252Z K 7 svn:log V 48 Stop hard coding nm(1) and make it overridable. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-14T23:38:37.608312Z K 7 svn:log V 20 Adds a XXX comment. END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-10-15T02:58:49.630591Z K 7 svn:log V 182 MFC r212873 Allow a POSIX shared memory object that is opened for read but not for write to nonetheless be mapped PROT_WRITE and MAP_PRIVATE, i.e., copy-on-write. PR: 150260 END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-10-15T03:23:53.559107Z K 7 svn:log V 604 MFC r209789 Correctly maintain the per-cpu field "curpmap" on amd64 just like we do on i386. The consequences of not doing so on amd64 became apparent with the introduction of the COUNT_IPIS and COUNT_XINVLTLB_HITS options. Specifically, single-threaded applications were generating unnecessary IPIs to shoot-down the TLB on other processors. MFC r209887 Reduce the number of global TLB shootdowns generated by pmap_qenter(). Specifically, teach pmap_qenter() to recognize the case when it is being asked to replace a mapping with the very same mapping and not generate a shootdown. END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-10-15T04:02:07.272210Z K 7 svn:log V 66 MFC r210124 Optimize pmap_remove()'s handling of PG_G mappings. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-15T05:17:48.204941Z K 7 svn:log V 1445 MFC of r204697 r204706 r204849 r204908 r205071 r205427 r212032 r212032: Use basename(3) to determine the name of the program. Submitted by: Alexander Best r205427: Replace -b with -C and -B (as proposed by Alexander). Add -3, -A and -B to the usage. Update regression test for the new parameters. r205071: - With the introduction of -A, -B and -3, not all combinations of arguments makes sense anymore. For example, what would a combination of -3 (show three months) and -y (show the whole year) do? We will abort on these cases. - Move the debug option -d to -H (from highlight), while -d is now used for setting the day of "today" so that -y and friends can be tested. r204908: - Fix the highlighting for non-terminals when the last week is not 7 days long. - "-m " now prints only the month, not the whole year. r204849: - document the -3, -A and -B properly in Synopsis. - add highlight of current date for non-terminals. - fix -J option. - code cleanup. r204706: Remove no-op of WARNS?= Submitted by: Ulrich Sp??rlein r204697: - Implement -3 option (show previous, this and next month) option. - Add -A option (months after this month). - Add -B option (months before this month). - Fix highlighting of today in year overview. - Fix aligning of "foreign" characters. END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-10-15T05:42:35.775102Z K 7 svn:log V 506 MFC r209605 Improve bufdone_finish()'s handling of the bogus page. Specifically, if one or more mappings to the bogus page must be replaced, call pmap_qenter() just once. Previously, pmap_qenter() was called for each mapping to the bogus page. MFC r209902 Change the implementation of vm_hold_free_pages() so that it performs at most one call to pmap_qremove(), and thus one TLB shootdown, instead of one call and TLB shootdown per page. Simplify the interface to vm_hold_free_pages(). END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-15T14:33:46.770045Z K 7 svn:log V 457 MFC r185963 (by csjp in 2008): Consider processes attaching/detaching from tun(4) devices as being link state changes. This change modifies tunopen and tunclose to call the if_link_state_change() function. Among other things, this will result in devd(8) receiving events from devctl(4) for linkup/link down. This allows us to do several useful things, including initializing tunnel parameters and adding routes. Discussed on: freebsd-net END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-15T14:34:34.321804Z K 7 svn:log V 78 Prevent the ofwdump manpage from being deleted by make delete-old on PowerPC. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-15T14:52:11.481956Z K 7 svn:log V 1160 Convert the PHY drivers to honor the mii_flags passed down and convert the NIC drivers as well as the PHY drivers to take advantage of the mii_attach() introduced in r213878 to get rid of certain hacks. For the most part these were: - Artificially limiting miibus_{read,write}reg methods to certain PHY addresses; we now let mii_attach() only probe the PHY at the desired address(es) instead. - PHY drivers setting MIIF_* flags based on the NIC driver they hang off from, partly even based on grabbing and using the softc of the parent; we now pass these flags down from the NIC to the PHY drivers via mii_attach(). This got us rid of all such hacks except those of brgphy() in combination with bce(4) and bge(4), which is way beyond what can be expressed with simple flags. While at it, I took the opportunity to change the NIC drivers to pass up the error returned by mii_attach() (previously by mii_phy_probe()) and unify the error message used in this case where and as appropriate as mii_attach() actually can fail for a number of reasons, not just because of no PHY(s) being present at the expected address(es). Reviewed by: jhb, yongari END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-15T15:00:30.468335Z K 7 svn:log V 206 Converted the remainder of the NIC drivers to use the mii_attach() introduced in r213878 instead of mii_phy_probe(). Unlike r213893 these are only straight forward conversions though. Reviewed by: yongari END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-15T15:06:32.048210Z K 7 svn:log V 1128 MFC r186391,186483,186497 (qingli, kmacy 21 months ago): r186391: Provide a condition variable to delay the cloned interface destroy operation until the referenced clone device has been closed by the process properly. The behavior is now consistently with the previous release. r186483: - Close a race during which the open flag could be cleared but the tun_softc would still be referenced by adding a separate TUN_CLOSED flag that is set after tunclose is done referencing it. - drop the tun_mtx after the flag check to avoid holding it across if_detach which can recurse in to if_tun.c r186497: The "tun?" dev need not be opened at all. One is allowed to perform the following operations, e.g.: 1) ifconfig tun0 create 2) ifconfig tun0 10.1.1.1 10.1.1.2 3) route add -net 192.103.54.0/24 -iface tun0 4) ifconfig tun0 destroy If cv wait on the TUN_CLOSED flag, then the last operation (4) will block forever. Revert the previous changes and fix the mtx_unlock() leak. PR: kern/116837 Submitted by: Mikolaj Golub (to.my.trociny gmail.com) (Not used the patch, just did the MFC) END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-15T15:16:36.912364Z K 7 svn:log V 74 Remove a device_printf() accidentally left in r213894. Submitted by: jhb END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-10-15T15:23:34.704960Z K 7 svn:log V 284 Update pmap_extract() to handle 1GB page mappings. Some device drivers use pmap_extract() rather than pmap_kextract() on direct map addresses. Thus, pmap_extract() needs to be able to deal with 1GB page mappings if we are to use 1GB page mappings for the direct map. (See r197580.) END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-15T15:24:59.161561Z K 7 svn:log V 201 Currently only opt_compat.h is included by the mps(4) driver. Also enable /dev/mps0, which was missing from my previous patches enabling f/w upload and download. opt_compat.h issue noticed by scottl. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-10-15T15:37:16.709475Z K 7 svn:log V 282 MFC r213284: tr: Fix '[=]=]' equivalence class. A closing bracket immediately after '[=' should not be treated as special. Different from the submitted patch, a string ending with '[=' does not cause access beyond the terminating '\0'. PR: bin/150384 Submitted by: Richard Lowe END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-15T15:46:58.556464Z K 7 svn:log V 189 Now that all previous users of mii_phy_probe() have been converted in r213893 and r213894 to use mii_attach() instead remove the former and along with it the "EVIL HACK". MFC after: never END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-15T17:56:51.118315Z K 7 svn:log V 353 MFC r209862: For both i386 and amd64 pmap, - change the type of pm_active to cpumask_t, which it is; - in pmap_remove_pages(), compare with PCPU(curpmap), instead of dereferencing the long chain of pointers [1]. For amd64 pmap, remove the unneeded checks for validity of curpmap in pmap_activate(), since curpmap should be always valid after r209789. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-15T18:07:45.069494Z K 7 svn:log V 26 MFC r209866: Fix spacing. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-10-15T20:01:35.987221Z K 7 svn:log V 143 sh: Allow running 'prove' from tools/regression/bin/sh again without needing to set special environment variables, testing the 'sh' from PATH. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2010-10-15T20:08:16.671634Z K 7 svn:log V 575 Add three new drivers for fan control and temperature reading on the PowerMac7,2. - The fcu driver lets us read and write the fan RPMs for all fans in the PowerMac7,2. This driver is PowerMac specific. - The ds1775 is a driver to read the temperature for the drive bay sensor. - The max6690 is another driver to read temperatures. Here it is used to read the inlet, the backside and the U3 heatsink temperature. An additional driver, the ad7417, will follow later. Thanks to nwhitehorn for guiding me through this driver development. Approved by: nwhitehorn (mentor) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-15T21:39:51.644380Z K 7 svn:log V 200 Move setting power state for children into a separate function as they were essentially the same. This also restores hw.pci.do_power_resume tunable, which was broken since r211430. Reviewed by: jhb END K 10 svn:author V 3 dim K 8 svn:date V 27 2010-10-15T21:40:20.405731Z K 7 svn:log V 135 Remove two .endp's without matching .proc in lib/csu/ia64/crtn.S. This allows it to assemble with newer binutils. Reviewed by: marcel END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-15T21:41:59.635506Z K 7 svn:log V 61 Remove unnecessary castings and fix couple of style(9) nits. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-15T23:34:31.819168Z K 7 svn:log V 1167 Convert the PHY drivers to honor the mii_flags passed down and convert the NIC drivers as well as the PHY drivers to take advantage of the mii_attach() introduced in r213878 to get rid of certain hacks. For the most part these were: - Artificially limiting miibus_{read,write}reg methods to certain PHY addresses; we now let mii_attach() only probe the PHY at the desired address(es) instead. - PHY drivers setting MIIF_* flags based on the NIC driver they hang off from, partly even based on grabbing and using the softc of the parent; we now pass these flags down from the NIC to the PHY drivers via mii_attach(). This got us rid of all such hacks except those of brgphy() in combination with bce(4) and bge(4), which is way beyond what can be expressed with simple flags. While at it, I took the opportunity to change the NIC drivers to pass up the error returned by mii_attach() (previously by mii_phy_probe()) and unify the error message used in this case where and as appropriate as mii_attach() actually can fail for a number of reasons, not just because of no PHY(s) being present at the expected address(es). This file was missed in r213893. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-16T01:35:15.330863Z K 7 svn:log V 17 Adds UIOCGSTATS. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2010-10-16T04:14:45.970744Z K 7 svn:log V 274 - Simplify implementation of uma_zone_get_max. - Add uma_zone_get_cur which returns the current approximate occupancy of a zone. This is useful for providing stats via sysctl amongst other things. Sponsored by: FreeBSD Foundation Reviewed by: gnn, jhb MFC after: 2 weeks END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2010-10-16T04:41:45.761542Z K 7 svn:log V 268 Change uma_zone_set_max to return the effective value of "nitems" after rounding. The same value can also be obtained with uma_zone_get_max, but this change avoids a caller having to make two back-to-back calls. Sponsored by: FreeBSD Foundation Reviewed by: gnn, jhb END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2010-10-16T05:37:45.226552Z K 7 svn:log V 784 - Switch the "net.inet.tcp.reass.cursegments" and "net.inet.tcp.reass.maxsegments" sysctl variables to be based on UMA zone stats. The value returned by the cursegments sysctl is approximate owing to the way in which uma_zone_get_cur is implemented. - Discontinue use of V_tcp_reass_qsize as a global reassembly segment count variable in the reassembly implementation. The variable was used without proper synchronisation and was duplicating accounting done by UMA already. The lack of synchronisation was particularly problematic on SMP systems terminating many TCP sessions, resulting in poor TCP performance for connections with non-zero packet loss. Sponsored by: FreeBSD Foundation Reviewed by: andre, gnn, rpaulo (as part of a larger patch) MFC after: 2 weeks END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2010-10-16T07:12:39.925665Z K 7 svn:log V 1250 Retire the system-wide, per-reassembly queue segment limit. The mechanism is far too coarse grained to be useful and the default value significantly degrades TCP performance on moderate to high bandwidth-delay product paths with non-zero loss (e.g. 5+Mbps connections across the public Internet often suffer). Replace the outgoing mechanism with an individual per-queue limit based on the number of MSS segments that fit into the socket's receive buffer. This should strike a good balance between performance and the potential for resource exhaustion when FreeBSD is acting as a TCP receiver. With socket buffer autotuning (which is enabled by default), the reassembly queue tracks the socket buffer and benefits too. As the XXX comment suggests, my testing uncovered some unexpected behaviour which requires further investigation. By using so->so_rcv.sb_hiwat instead of sbspace(&so->so_rcv), we allow more segments to be held across both the socket receive buffer and reassembly queue than we probably should. The tradeoff is better performance in at least one common scenario, versus a devious sender's ability to consume more resources on a FreeBSD receiver. Sponsored by: FreeBSD Foundation Reviewed by: andre, gnn, rpaulo MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-16T08:38:12.887157Z K 7 svn:log V 120 MFC r213354: Cosmetic: make it less confusing when displaying RAID 1 level, that might be 1+0 as well. PR: kern/150936 END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-16T08:43:23.451769Z K 7 svn:log V 178 MFC r213359: Release the vnode lock and close the linker file vnode earlier in the linker_load_file methods. This prevents the LOR between kernel linker sx xlock and vnode lock. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-16T09:44:31.854424Z K 7 svn:log V 327 Provide vfs.ncsizefactor instead of hard-coding namecache ratio. Move debug.ncnegfactor to vfs.ncnegfactor [1]. Provide some descriptions for the namecache related sysctls [1]. Based on the submission by: Rogier R. Mulhuijzen [1] MFC after: 2 weeks X-MFC-note: remove debug.ncnegfactor in HEAD after MFC END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-16T09:46:03.151934Z K 7 svn:log V 67 Document vfs.ncsizefactor and vfs.ncnegfactor. MFC after: 2 weeks END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T10:45:36.426531Z K 7 svn:log V 589 atrtc: remove (pre-)historic check of RTC NVRAM at address 0x0e Old scrolls tell that once upon a time IBM AT BIOS was known to put some useful system diagnostic information into RTC NVRAM. It is not really known if and for how long PC BIOSes followed that convention, but I believe that many, if not all, modern BIOSes do not do that any more (not mentioning other types of x86 firmware). Some diagnostic bits don't even make any sense any longer. The check results in confusing messages upon boot on some systems. So I am removing it. Discussed with: bde, jhb, mav MFC after: 3 weeks END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T11:19:31.369340Z K 7 svn:log V 72 MFC r213527: vm.kmem_map_size: a sysctl to query current kmem_map->size END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-16T11:20:53.441078Z K 7 svn:log V 218 - Add support for libusbhid in 32-bit compatibility mode. - Add missing check for ugd_actlen being too small. - Add missing inclusion guard to usbvar.h header file. - This also fixes buildworld breakage since r213852. END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T11:24:27.327625Z K 7 svn:log V 87 MFC r213651: add kmem_map_free sysctl: query largest contiguous free range in kmem_map END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T11:41:20.878219Z K 7 svn:log V 72 MFC r213527: vm.kmem_map_size: a sysctl to query current kmem_map->size END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T11:44:58.429590Z K 7 svn:log V 87 MFC r213651: add kmem_map_free sysctl: query largest contiguous free range in kmem_map END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T11:52:43.989728Z K 7 svn:log V 83 MFC r213730: zfs + sendfile: do not produce partially valid pages for vnode's tail END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-10-16T12:40:00.373509Z K 7 svn:log V 117 sh: Use rather than . is only for the kernel and conflicts with . END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-10-16T14:37:56.392042Z K 7 svn:log V 258 sh(1): Clarify subshells/processes for pipelines. For multi-command pipelines, 1. all commands are direct children of the shell (unlike the original Bourne shell) 2. all commands are executed in a subshell (unlike the real Korn shell) MFC after: 1 week END K 10 svn:author V 3 bcr K 8 svn:date V 27 2010-10-16T15:24:04.741442Z K 7 svn:log V 55 Correct some typos in comments, no functional changes. END K 10 svn:author V 3 bcr K 8 svn:date V 27 2010-10-16T17:30:27.874864Z K 7 svn:log V 76 Fix a grammatical error connected to the previous commit. Spotted by: gjb@ END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-16T18:42:09.133076Z K 7 svn:log V 191 lltable_drain() has never been used so far, thus #if 0 it for now. While touching it add the missing locking to the now disabled code for the time when we'll resurrect it. MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-16T19:25:27.446930Z K 7 svn:log V 269 Close a race acquiring the IF_ADDR_LOCK() for each entry while iterating over all interfaces to make sure the address will neither change nor be freed while we are working on it. PR: kern/146250 Submitted by: Mikolaj Golub (to.my.trociny gmail.com) MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-10-16T19:29:37.594582Z K 7 svn:log V 500 Allow umass to use bigger transactions for USB 3.0 devices. It is less important for USB 2.0 devices and some of them reported to have problems with large transactions. But USB 3.0 benchmarks show that limited number of transactions per second on USB makes impossible to reach high transfer speeds without using bigger transactions. On my tests this change allows to read up to 220MB/s from USB-attached SSD (at block size of 256-512KB), comparing to only 113MB/s without it. Reviewed by: hselasky END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-16T19:53:22.913649Z K 7 svn:log V 623 MfP4 CH182763 (original version): Make it harder to exploit certain in_control() related races between the intiial lookup at the beginning and the time we will remove the entry from the lists by re-checking that entry is still in the list before trying to remove it. (*) It is believed that with the current code and locking strategy we cannot completely fix all race. Reported by: Nima Misaghian (nima_misa hotmail.com) on net@ 20100817 Tested by: Nima Misaghian (nima_misa hotmail.com) (original version) PR: kern/146250 Submitted by: Mikolaj Golub (to.my.trociny gmail.com) (different version) MFC after: 1 week END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T19:56:46.946874Z K 7 svn:log V 85 MFC r213735: tmpfs + sendfile: do not produce partially valid pages for vnode's tail END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T19:58:49.543926Z K 7 svn:log V 51 MFC r213648: panic_cpu variable should be volatile END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T20:01:41.539359Z K 7 svn:log V 51 MFC r213648: panic_cpu variable should be volatile END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T20:13:15.440654Z K 7 svn:log V 77 Revert r213261 (MFC of r212652): vm_page_sleep change has not been MFCed yet END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-16T20:43:05.087644Z K 7 svn:log V 487 zfs: add vop_getpages method implementation This should make vnode_pager_getpages path a bit shorter and clearer. Also this should eliminate problems with partially valid pages. Having this method opens room for future optimizations. To do: try to satisfy other pages besides the required one taking into account tradeofs between number of page faults, read throughput and read latency. Also, eventually vop_putpages should be added too. Reviewed by: kib, mm, pjd MFC after: 3 weeks END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-10-16T22:48:48.838005Z K 7 svn:log V 116 Clear signal mask before executing a hook. Submitted by: Mikolaj Golub MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-10-16T22:50:12.820493Z K 7 svn:log V 53 Use one fprintf() instead of two. MFC after: 3 days END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-17T00:12:11.098648Z K 7 svn:log V 127 - Add base files for dapl 2.0.26, libibcm 1.0.5, and librdmacm 1.0.11 Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-17T00:14:41.033637Z K 7 svn:log V 410 - Implement the rdma address resolution function which converts an ip address into an ethernet mac or ib gid. The resolution function accepts an optional source address to select the interface to route to. We verify that this is a valid path for the destination and issue an arp request if the dest is not yet resolved. Sponsored by: Isilon Systems, iX Systems, and Panasas. Reviewed by: kmacy END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-17T00:15:12.015997Z K 7 svn:log V 143 - Enable ip/tcp/udp checksum offload. - Bypass arpresolve() for multicast addresses. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-17T00:18:26.726035Z K 7 svn:log V 102 - Merge in dapl, rdmacm, and ibcm from base. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-17T03:13:30.204510Z K 7 svn:log V 82 MFC r213836: Style: make the asterisk go with the variable name, not the type. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-17T07:11:40.769096Z K 7 svn:log V 2154 Mega-merge of ncal into stable/7: r186401: Implement a new feature for the "-m" option: if the month number is followed by 'f' or 'p', use the following or preceding month of that number, respectively. Document this. Also includes other minor grammatical and punctuation fixes to the manual page (capitalize Easter, etc.). r191330: Implement highlighting of today in month view of cal/ncal just like gnu cal does. This is currently disabled for year view because of hard coded padding in that case. This will hopefully be fixed soon. r191364: Couple of changes based on feedback o Change mr/me to so/se [1]. o Introduce a -h option to disable highlighting. [2] o Spell STDOUT_FILENO as such and pass NULL to tgetent() to handle the case of unset TERM. [3] r191687: Fixed missing dependency. r194366: Fix column width of weekday names for multibyte locales. r194447: Since the width is always 2, it is enough to put just one trailing space is enough. r204697: - Implement -3 option (show previous, this and next month) option. - Add -A option (months after this month). - Add -B option (months before this month). - Fix highlighting of today in year overview. - Fix aligning of "foreign" characters. r204706: Remove no-op of WARNS?= r204849: - document the -3, -A and -B properly in Synopsis. - add highlight of current date for non-terminals. - fix -J option. - code cleanup. r204908: - Fix the highlighting for non-terminals when the last week is not 7 days long. - "-m " now prints only the month, not the whole year. r205071: - With the introduction of -A, -B and -3, not all combinations of arguments makes sense anymore. For example, what would a combination of -3 (show three months) and -y (show the whole year) do? We will abort on these cases. - Move the debug option -d to -H (from highlight), while -d is now used for setting the day of "today" so that -y and friends can be tested. r205427: Replace -b with -C and -B (as proposed by Alexander). Add -3, -A and -B to the usage. Update regression test for the new parameters. r212032: Use basename(3) to determine the name of the program. END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-17T08:44:34.591790Z K 7 svn:log V 97 MFC r213837: Remove dead code: assignment to a local variable not used anywhere after that. END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-17T08:46:34.006814Z K 7 svn:log V 222 MFC r213832: Use ifa_ifwithaddr_check() rather than ifa_ifwithaddr() as we are not interested in the result and would leak a reference otherwise. PR: kern/151435 Submitted by: Andrew Boyer (aboyer averesystems.com) END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-17T08:59:02.976016Z K 7 svn:log V 82 MFC r213836: Style: make the asterisk go with the variable name, not the type. END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-17T09:13:47.136975Z K 7 svn:log V 97 MFC r213837: Remove dead code: assignment to a local variable not used anywhere after that. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-17T11:01:52.379126Z K 7 svn:log V 341 - Insert thread0 into correct thread hash link list. - In thr_exit() and kthread_exit(), only remove thread from hash if it can directly exit, otherwise let exit1() do it. - In thread_suspend_check(), fix cleanup code when thread needs to exit. This change seems fixed the "Bad link elm " panic found by Peter Holm. Stress testing: pho END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-10-17T11:40:29.640828Z K 7 svn:log V 30 MFC r213835: Add FreeBSD 8.2. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T11:51:55.207541Z K 7 svn:log V 442 MFC: r213873 Explicitly lower the PIL to 0 as part of enabling interrupts, similar to what is done on other platforms. Unlike as with the sched_throw(NULL) called on BSPs during their startup apparently there's nothing which will reliably lower it on APs. I'm unsure why this only came up on V215 though, breaking these with r207248. My best guess is that these are the only supported ones so far fast enough to lose some race. PR: 151404 END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T11:51:59.236765Z K 7 svn:log V 442 MFC: r213873 Explicitly lower the PIL to 0 as part of enabling interrupts, similar to what is done on other platforms. Unlike as with the sched_throw(NULL) called on BSPs during their startup apparently there's nothing which will reliably lower it on APs. I'm unsure why this only came up on V215 though, breaking these with r207248. My best guess is that these are the only supported ones so far fast enough to lose some race. PR: 151404 END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:05:37.140664Z K 7 svn:log V 50 MFC: r213104 minor simplifications and cosmetics END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:05:39.888532Z K 7 svn:log V 50 MFC: r213104 minor simplifications and cosmetics END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:11:42.123082Z K 7 svn:log V 126 MFC: r204646 The NetBSD Foundation has granted permission to remove clause 3 and 4 from the software. Obtained from: NetBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:11:43.793517Z K 7 svn:log V 126 MFC: r204646 The NetBSD Foundation has granted permission to remove clause 3 and 4 from the software. Obtained from: NetBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:16:36.782789Z K 7 svn:log V 132 MFC: r213188 - Remove clause 3 and 4 from TNF licenses. - Remove closes 3 & 4 from Manuel Bouyer's license. Obtained from: NetBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:16:38.806916Z K 7 svn:log V 132 MFC: r213188 - Remove clause 3 and 4 from TNF licenses. - Remove closes 3 & 4 from Manuel Bouyer's license. Obtained from: NetBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:29:57.156795Z K 7 svn:log V 140 MFC: r213229 Use the mii_data provided via mii_attach_args and mii_pdata respectively instead of reaching out for the softc of the parent. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:30:01.698488Z K 7 svn:log V 140 MFC: r213229 Use the mii_data provided via mii_attach_args and mii_pdata respectively instead of reaching out for the softc of the parent. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:33:15.837246Z K 7 svn:log V 76 MFC: r213361 Try to adhere to style(9) and be consistent within this file. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:33:15.948347Z K 7 svn:log V 76 MFC: r213361 Try to adhere to style(9) and be consistent within this file. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:34:20.047088Z K 7 svn:log V 39 MFC: r175703 Fix a typo in a comment. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:43:15.530917Z K 7 svn:log V 64 MFC: r176773, r178598 Recognize Cicada CS8204 and CS8244 PHYs. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T12:47:07.904361Z K 7 svn:log V 118 MFC: r182751 Recognize 88E1116R phy variation. This part is found on some embedded devices. Obtained from: Semihalf END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T13:06:18.306056Z K 7 svn:log V 118 r182037, r182038, r182064 When there's an error, we don't want to free the children, since it will be stack garbage. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T13:07:35.085277Z K 7 svn:log V 179 MFC: r182067 Move the code that looks for the companion phy to a subroutine to make sure we get the error handling right in both places. This also simplifies the code somewhat. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T13:10:22.633688Z K 7 svn:log V 167 MFC: r173164 Setting sc->mii_anegticks to MII_ANEGTICKS_GIGE in rgephy_attach() is redundant. mii_phy_add_media() already takes care of that. Pointed out by: marius END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T13:11:46.625993Z K 7 svn:log V 162 MFC: r185421 Renamed the FRAMELEN macro to TRUEPHY_FRAMELEN as for powerpc it seems to be possible to collide with FRAMELEN from machine/frame.h. Found by: zec END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T13:13:12.811151Z K 7 svn:log V 86 MFC: r213575 Just use the sparc64 version of this header rather than duplicating it. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T13:13:13.027631Z K 7 svn:log V 86 MFC: r213575 Just use the sparc64 version of this header rather than duplicating it. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T13:41:09.122511Z K 7 svn:log V 249 MFC: r213578 In the replacement text of the __bswapN_const() macros cast the argument to the expected type so they work like the corresponding __bswapN_var() functions and the compiler doesn't complain when arguments of different width are passed. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T13:41:12.800316Z K 7 svn:log V 249 MFC: r213578 In the replacement text of the __bswapN_const() macros cast the argument to the expected type so they work like the corresponding __bswapN_var() functions and the compiler doesn't complain when arguments of different width are passed. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-17T13:47:03.513871Z K 7 svn:log V 35 MFC r213846: Remove stale comment. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T14:25:01.162871Z K 7 svn:log V 202 MFC: r213868 - In the spirit of r212559 add a comment describing what will eventually lower the PIL. - Just as with the AP ensure that the (S)TICK timer(s) are in a known state when starting BSPs. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-17T14:25:55.208168Z K 7 svn:log V 202 MFC: r213868 - In the spirit of r212559 add a comment describing what will eventually lower the PIL. - Just as with the AP ensure that the (S)TICK timer(s) are in a known state when starting BSPs. END