ƒ²%213632 180 155 270 379 159 159 238 136 238 186 141 477 349 206 219 269 167 374 137 141 221 171 144 318 398 633 687 192 164 191 341 209 139 425 235 235 345 264 174 658 658 304 297 271 325 208 429 132 153 104 237 796 442 777 115 98 756 209 202 250 278 175 175 332 281 745 148 162 166 183 213 162 132 250 157 200 157 212 341 360 585 502 166 210 165 648 172 267 132 436 202 202 184 184 168 738 738 230 308 1087 154 457 457 499 237 842 710 197 217 184 324 604 176 214 574 574 226 159 320 2309 213 188 273 273 304 601 202 276 238 255 195 2024 143 257 175 219 134 169 229 183 140 184 215 339 291 196 175 160 161 131 121 148 185 145 253 179 118 201 181 160 180 134 180 146 111 1837 254 202 168 117 114 232 233 176 233 116 153 372 466 123 179 K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-10-08T21:29:48.236040Z K 7 svn:log V 59 Document net.link.lagg.failover_rx_all. MFC after: 1 week END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-08T21:54:33.777822Z K 7 svn:log V 173 Fixes a regression that device up and down wasn't synchronous. To make it synchronous sx(9) is used only for up / down cases though in the previous the taskqueue was used. END K 10 svn:author V 2 mm K 8 svn:date V 27 2010-10-08T23:01:38.778987Z K 7 svn:log V 287 Change FAPPEND to IO_APPEND as this is a ioflag and not a fflag. This corrects writing to append-only files on ZFS. PR: kern/149495 [1], kern/151082 [2] Submitted by: Daniel Zhelev [1], Michael Naef [2] Approved by: delphij (mentor) MFC after: 1 week END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-08T23:11:46.190358Z K 7 svn:log V 63 MFC r212166: Implement initial device suspend/resume method. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-08T23:14:21.410321Z K 7 svn:log V 63 MFC r212166: Implement initial device suspend/resume method. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-08T23:16:02.773266Z K 7 svn:log V 141 MFC r212167: Initial WOL support. NS DP8315 was tested but SiS900/SiS7016 was not tested. While I'm here, clean up SIOCSIFCAP handler. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-08T23:29:45.598273Z K 7 svn:log V 40 MFC r188463: Fix shutdown prototypes. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-08T23:34:45.734582Z K 7 svn:log V 141 MFC r212167: Initial WOL support. NS DP8315 was tested but SiS900/SiS7016 was not tested. While I'm here, clean up SIOCSIFCAP handler. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-10-09T00:34:58.938087Z K 7 svn:log V 90 MFC r213487: Add definition for FreeBSD 7.4, which will be used in a manual page change. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-10-09T00:36:32.044675Z K 7 svn:log V 45 MFC r213488: Use a defined FreeBSD version. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-09T02:50:23.070937Z K 7 svn:log V 380 Create a global thread hash table to speed up thread lookup, use rwlock to protect the table. In old code, thread lookup is done with process lock held, to find a thread, kernel has to iterate through process and thread list, this is quite inefficient. With this change, test shows in extreme case performance is dramatically improved. Earlier patch was reviewed by: jhb, julian END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2010-10-09T05:31:08.006199Z K 7 svn:log V 251 Add -D (deterministic) option to ar. When set, it forces all timestamps and owners to zero and modes to 0644. Useful for producing libraries that are bitwise identical across multiple build runs. Submitted by: Erik Cederstrand Reviewed by: Kai Wang END K 10 svn:author V 6 gordon K 8 svn:date V 27 2010-10-09T05:50:04.955573Z K 7 svn:log V 110 Add entries to remove manpath.config from etc and the examples directory. Approved by: wes (mentor implicit) END K 10 svn:author V 6 gordon K 8 svn:date V 27 2010-10-09T05:57:23.044405Z K 7 svn:log V 123 Remove the manpath.config entry now that it's no longer installed. Submitted by: b. f. Approved by: wes (mentor implicit) END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-10-09T07:29:13.155073Z K 7 svn:log V 176 Allow the kernel to generate more spacy things and still have devd cope. Skip multiple spaces in a few contexts. PR: 96854 Submitted by: Shin'ya Kumabuchi MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-10-09T07:45:24.893817Z K 7 svn:log V 75 Enable softupdate + journals support. PR: 150862 Submitted by: Kris Moore END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-09T08:07:49.510415Z K 7 svn:log V 281 panic_cpu variable should be volatile This is to prevent caching of its value in a register when it is checked and modified by multiple CPUs in parallel. Also, move the variable into the scope of the only function that uses it. Reviewed by: jhb Hint from: mdf MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-10-09T08:39:14.303217Z K 7 svn:log V 45 Fix typo: thanks Kris for pointing this out. END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-10-09T08:52:09.894108Z K 7 svn:log V 49 Initial patches to install images... PR: 150921 END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-09T09:03:17.124049Z K 7 svn:log V 128 add kmem_map_free sysctl: query largest contiguous free range in kmem_map Suggested by: alc Reviewed by: alc MFC after: 1 week END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-09T09:24:16.074504Z K 7 svn:log V 79 MFC r210782,210837: Update the "desiredvnodes" calculation. On behalf of: alc END K 10 svn:author V 3 uqs K 8 svn:date V 27 2010-10-09T11:43:00.867396Z K 7 svn:log V 52 mdoc: drop redundant .Pp calls, kill EOL whitespace END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-10-09T12:57:06.574586Z K 7 svn:log V 222 MFC r209653: sh: Use $PWD instead of getcwd() for \w \W prompt expansions. This ensures that the logical working directory (which may include symlinks) is shown and is similar to the default behaviour of the pwd builtin. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-10-09T13:01:25.071215Z K 7 svn:log V 302 MFC r211980: Correct value for _POSIX_AIO_LISTIO_MAX in . All the "Minimum Values" (POSIX.1-2008 XBD 13 Headers ) are now correct. These should all be exactly as they are in the specification; the possibly higher values we support are announced differently. PR: standards/104743 END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-10-09T13:03:32.850657Z K 7 svn:log V 538 Merge r213061 from head: Various changes from various sources: - Add "children" [1] - Add "acknowledgement", "acknowledgment", "Austria" and "haunted" [2] - Add "near", "antidisestablishmentarianism" and "Persephone" [2] - "Transvaal" should be capitalized [2] - Correct spelling of "structurelessness" and "Athena" [2] - Add missing atomic elements [3] - Add various words from "word of the day" lists [3] PR: conf/149756 [1] Submitted by: Nick Johnson [1] Obtained from: NetBSD [2], OpenBSD [3] END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-10-09T13:07:21.513860Z K 7 svn:log V 592 Merge r213061 from head: Various changes from various sources: - Add "children" [1] - Add "acknowledgement", "acknowledgment", "Austria" and "haunted" [2] - Add "near", "antidisestablishmentarianism" and "Persephone" [2] - "Transvaal" should be capitalized [2] - Correct spelling of "structurelessness" and "Athena" [2] - Add missing atomic elements [3] - Add various words from "word of the day" lists [3] Also, set fbsd:nokeywords on web2, to allow checkin. PR: conf/149756 [1] Submitted by: Nick Johnson [1] Obtained from: NetBSD [2], OpenBSD [3] END K 10 svn:author V 5 simon K 8 svn:date V 27 2010-10-09T14:00:50.337769Z K 7 svn:log V 98 Lock out access to 'access' for now while trying to fix the CVS ,v. Approved by: core (implicit) END K 10 svn:author V 5 simon K 8 svn:date V 27 2010-10-09T15:17:40.487946Z K 7 svn:log V 70 Test commit to test that access,v works now. Approved by: clusteradm END K 10 svn:author V 5 simon K 8 svn:date V 27 2010-10-09T15:54:12.264840Z K 7 svn:log V 97 Re-enable access to 'access' now that it seems access,v is fixed. Approved by: core (implicit) END K 10 svn:author V 2 ae K 8 svn:date V 27 2010-10-09T20:06:35.582446Z K 7 svn:log V 249 MFC r212608 (by pjd): All gpart(8) subcommands apart from the 'bootcode' subcommand handle given geom/provider names with and without /dev/ prefix. Teach the 'bootcode' subcommand to handle /dev/ names as well. Approved by: kib (mentor) END K 10 svn:author V 2 ae K 8 svn:date V 27 2010-10-09T20:20:27.977057Z K 7 svn:log V 117 Replace strlen(_PATH_DEV) with sizeof(_PATH_DEV) - 1. Suggested by: kib Approved by: kib (mentor) MFC after: 5 days END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-09T20:52:36.722029Z K 7 svn:log V 43 Fix build breakage introducted in r213604. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-10T07:05:47.445788Z K 7 svn:log V 332 The r184588 changed the layout of struct export_args, causing an ABI breakage for old mount(2) syscall, since most struct _args embed export_args. The mount(2) is supposed to provide ABI compatibility for pre-nmount mount(8) binaries, so restore ABI to pre-r184588. Requested and reviewed by: bde MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-10T07:07:21.331324Z K 7 svn:log V 142 MFC r213382: In makectx(), always use the tf_rsp from trap frame. %rsp is pushed unconditionally by hardware on the trap. PR: amd64/151167 END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-10T07:28:56.513017Z K 7 svn:log V 142 MFC r213382: In makectx(), always use the tf_rsp from trap frame. %rsp is pushed unconditionally by hardware on the trap. PR: amd64/151167 END K 10 svn:author V 2 mm K 8 svn:date V 27 2010-10-10T08:41:08.233264Z K 7 svn:log V 253 - Add liblzma support to libarchive and usr.bin/tar - Do not link usr.bin/ar to liblzma if building bootstrap-tools and the local system doesn't include liblzma (fixes world build on FreeBSD 7.x) This is a direct commit. Approved by: delphij (mentor) END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-10-10T09:24:19.150814Z K 7 svn:log V 172 - Print the nmount(2) provided error message only when it is set. - Ensure that the error message is NUL-terminated before printing it. PR: bin/147482 MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2010-10-10T12:18:53.154415Z K 7 svn:log V 83 Move HAVE_LIBLZMA from Makefile to config_freebsd.h Approved by: delphij (mentor) END K 10 svn:author V 4 kaiw K 8 svn:date V 27 2010-10-10T12:20:04.824280Z K 7 svn:log V 564 MFC r212373: libelf is overly strict about the type and alignment of Elf_Data objects inside one ELF section, which prevents the creation of a ELF section with mixed data types. For example, gcc LTO use libelf to create a .gnu_lto_XXX section that contains integers and a string table, which doesn't work with our libelf implementation. The changes made in this commit include: * Allow Elf_Data type to be different than section type. * Relax Elf_Data alignment check. * Align each Elf_Data by their own alignment instead of section alignment. END K 10 svn:author V 4 kaiw K 8 svn:date V 27 2010-10-10T12:21:35.943723Z K 7 svn:log V 564 MFC r212373: libelf is overly strict about the type and alignment of Elf_Data objects inside one ELF section, which prevents the creation of a ELF section with mixed data types. For example, gcc LTO use libelf to create a .gnu_lto_XXX section that contains integers and a string table, which doesn't work with our libelf implementation. The changes made in this commit include: * Allow Elf_Data type to be different than section type. * Relax Elf_Data alignment check. * Align each Elf_Data by their own alignment instead of section alignment. END K 10 svn:author V 5 randi K 8 svn:date V 27 2010-10-10T20:37:38.440774Z K 7 svn:log V 209 Report subcommand handler errors in mfiutil/mptutil so that tools that invoke the utilities can robustly report errors. Submitted by: gcooper Reviewed by: jhb Approved by: cperciva (mentor) MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-10-10T20:49:33.226210Z K 7 svn:log V 204 Provide internal ioflags() function that converts ioflag provided by FreeBSD's VFS to OpenSolaris-specific ioflag expected by ZFS. Use it for read and write operations. Reviewed by: mm MFC after: 1 week END K 10 svn:author V 5 randi K 8 svn:date V 27 2010-10-10T20:54:01.095179Z K 7 svn:log V 176 Fix compile with -DDEBUG by using the correct mfi_pd_ref union definition in mfireg.h. Submitted by: gcooper Reviewed by: jhb Approved by: cperciva (mentor) MFC after: 1 week END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-10T21:40:35.854573Z K 7 svn:log V 228 Adds a global linked-list to link all `struct usb_bus' structures. This would be used to find a USB bus pointer by name that main consumer would be a implementation like USB transaction monitoring tools (e.g. usbmon in linux). END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-10T22:11:38.664454Z K 7 svn:log V 111 Reverts r213675 that already the device tree knows how to find it using devclass_find(9). Pointed by: yongari END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-11T00:59:46.883925Z K 7 svn:log V 332 Commits a experimental USB packet filter (aka usbpf) to capture USB packets between the driver and the host controller. It's for USB debugging and monitoring. Most code are extracted from bpf(9) interfaces and customized only for USB packets. As next step the userland application, usbdump(1), would be coming. Reviews welcome. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-11T01:01:36.247580Z K 7 svn:log V 36 Adds usb_pf.[ch] files to Makefile. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-11T01:02:14.215937Z K 7 svn:log V 57 Removes usb_process.c that it's removed at the previous. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2010-10-11T01:05:42.381213Z K 7 svn:log V 9 style(9) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-11T08:10:12.073736Z K 7 svn:log V 141 Restore the support for the 'r' and the 'y' conversion specifiers, first added on r208987. These are undocumented but are part of printf(9). END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-11T09:27:37.590559Z K 7 svn:log V 703 cam_get_device, cam_open_device: make behavior simpler and more deterministic Remove or re-work support for the several features from the past: - remove incomplete support for trimming slice/partition names - remove mapping from old device names "sd" and "st" - remove whitespace trimming - remove unconditional skipping of leading 'r' in a device name - skip leading 'n' or 'e' only if the following device name matches a list of known devices that support no-rewind and eject-on-close features; currently this is only sa(4) - reflect the above changes in comments in code and in cam(3) - remove a note cautioning against use of cam_get_device and cam_open_device in cam(3) Reviewed by: mjacob END K 10 svn:author V 2 mm K 8 svn:date V 27 2010-10-11T09:34:46.077885Z K 7 svn:log V 350 MFC r210470: Import two changesets from OpenSolaris to make future updates easier. The changes do not affect FreeBSD code because zfs_znode_move(), cleanlocks() and cleanshares() are not used. OpenSolaris onnv changeset: 9788:f660bc44f2e8, 9909:aa280f585a3e Approved by: pjd, delphij (mentor) Obtained from: OpenSolaris (Bug ID 6843700, 6790232) END K 10 svn:author V 2 ae K 8 svn:date V 27 2010-10-11T09:39:32.406678Z K 7 svn:log V 685 GPART's control interface between kernel and user space has been changed in r212614. Perform partial MFC of r213097 adapted to the stable ABI: Implement "force" (-F) option for gpart destroy verb. This option doesn't passed to kernel and handled in user-space. With -F option gpart creates new "delete" request for each partition in table. Each request has flags="X" that disables auto-commit feature. Last request is the original "destroy" request. It has own flags and can have disabled or enabled auto-commit feature. If error is occurred when deleting partitions, then new "undo" request is created and all changes will be rolled back. Approved by: kib (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-11T09:41:24.274510Z K 7 svn:log V 23 MFC r213544: Fix typo. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-11T09:42:30.802468Z K 7 svn:log V 7 Regen. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-10-11T11:25:37.356937Z K 7 svn:log V 659 MFC r213225: Add a bandaid for a long-standing race condition during route entry un-expiring. The previous version of code have no locking when testing rt_refcnt. The result of the lack of locking may result in a condition where a routing entry have a reference count but at the same time have RTPRF_OURS bit set and an expiration timer. These would eventually lead to a panic: panic: rtqkill route really not free When the system have ICMP redirects accepted from local gateway in a moderate frequency, for instance. Commit this workaround for now until we have some better solution. PR: kern/149804 Reviewed by: bz Tested by: Zhao Xin, Pete French END K 10 svn:author V 2 mm K 8 svn:date V 27 2010-10-11T12:43:51.254263Z K 7 svn:log V 117 Vendor import of xz (stripped) Git revision: d52b411716a614c202e89ba732492efb9916cd3f Approved by: delphij (mentor) END K 10 svn:author V 2 mm K 8 svn:date V 27 2010-10-11T12:57:41.731133Z K 7 svn:log V 110 Tag xz code as 20101010 Git revision: d52b411716a614c202e89ba732492efb9916cd3f Approved by: delphij (mentor) END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-10-11T13:31:09.810902Z K 7 svn:log V 158 MFC r200752: Avoid sharing the file descriptor of the output file with traced processes by setting the FD_CLOEXEC flag for the output file. PR: bin/140493 END K 10 svn:author V 3 gnn K 8 svn:date V 27 2010-10-11T14:31:24.565598Z K 7 svn:log V 185 Add code to print the number and type of the CPU that is present in the system as well has how many PMCs there are per CPU. In this code CPU and core are equivalent. MFC after: 1 day END K 10 svn:author V 3 gnn K 8 svn:date V 27 2010-10-11T16:55:17.130966Z K 7 svn:log V 83 MFC 213402: Fix punctuation and grammar, mostly by ending sentences with a period. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2010-10-11T16:57:02.457821Z K 7 svn:log V 83 MFC 213402: Fix punctuation and grammar, mostly by ending sentences with a period. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-11T17:18:23.121348Z K 7 svn:log V 236 Rework the analysis of the 'r' specifier. It turns out that we can't make it like xArg because they are different ('x' doesn't accept sign, but 'r' does). This fixes some warnings when building DDB with clang. With help from: rdivacky END K 10 svn:author V 3 dim K 8 svn:date V 27 2010-10-11T17:22:16.417023Z K 7 svn:log V 188 Remove more unneeded files and directories from contrib/llvm. This still allows us to build tblgen and clang, and further reduces the footprint in the tree. Approved by: rpaulo (mentor) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-11T19:20:53.703383Z K 7 svn:log V 648 Do not setup interrupt endpoint for axe(4). It seems axe(4) controllers support interrupt endpoint such that enabling interrupt endpoint generates about 1000 interrupts/sec. Controllers transfer 8 bytes data through interrupt endpoint and the data include link UP/DOWN state as well as some PHY related information. Previously axe(4) didn't use the transferred data and didn't even try to read the data. Because axe(4) counts on mii(4) to detect link state changes there is no need to use interrupt endpoint here. This change fixes generation of unnecessary interrupts which was seen when interface is brought to UP. No objections from: hselasky END K 10 svn:author V 2 ed K 8 svn:date V 27 2010-10-11T20:17:23.589424Z K 7 svn:log V 57 Remove stale reference to wtmp(5). Reported by: pluknet END K 10 svn:author V 2 ed K 8 svn:date V 27 2010-10-11T20:30:57.320758Z K 7 svn:log V 71 Fix reference to nonexistent manpage getuid(3). Submitted by: pluknet END K 10 svn:author V 2 mm K 8 svn:date V 27 2010-10-11T20:34:35.202604Z K 7 svn:log V 75 Remove two non-vendor files as recommended. Approved by: delphij (mentor) END K 10 svn:author V 2 mm K 8 svn:date V 27 2010-10-11T21:16:50.773086Z K 7 svn:log V 92 Upgrade xz to git snapshot as of 20101010 Approved by: delphij (mentor) MFC after: 1 month END K 10 svn:author V 3 gnn K 8 svn:date V 27 2010-10-11T21:23:07.042015Z K 7 svn:log V 120 MFC 213409: Fix two aliases that had the same name but were pointing to different events. These are now disamiguated. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-11T21:26:24.079219Z K 7 svn:log V 70 Fix up the COMPAT_FREEBSD32 ioctl logic for mps(4). Reviewed by: ken END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-11T21:34:35.662165Z K 7 svn:log V 40 camlib.c: update one overlooked comment END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-11T21:38:31.797534Z K 7 svn:log V 157 Fix a memory leak and locking inconsistency in mps(4) ioctl handling. Check copyin(9) for error and sanity check the length before copyin. Reviewed by: ken END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2010-10-11T21:53:03.407799Z K 7 svn:log V 61 Add the XHCI USB controller to NOTES. Reviewed by: hselasky END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-11T22:41:01.946936Z K 7 svn:log V 107 MFC r208722: Remove unnecessary pointer type castings, shift operations and dead code. On behalf of: jkim END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-11T22:44:05.156832Z K 7 svn:log V 65 Add function prototypes for static functions. Requested by: ken END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-11T22:44:15.539532Z K 7 svn:log V 119 Re-work the internal user ioctl command table, and support the FW_UPLOAD command. Reviewed by: ken (previous version) END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-11T22:46:15.427686Z K 7 svn:log V 248 MFC r210977: When EC burst mode is activated and multiple bytes are accessed, do not disable and enable repeatedly, just do it once per call. It also reduces code duplication. Check all parameters early and fail immediately. On behalf of: jkim END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-11T22:56:23.989410Z K 7 svn:log V 263 Remove one last reference of BGE_MI_MODE register for auto polling. Previously bge(4) always enabled auto polling for non-BGE_FLAG_TBI controllers. With this change, auto polling is not used anymore so polling through mii(4) was introduced. Reviewed by: davidch END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-11T23:07:12.902079Z K 7 svn:log V 488 The IFF_DRV_RUNNING flag is set at the end of bge_init_locked. But before setting the flag, interrupt was already enabled such that interrupt handler could be run before setting IFF_DRV_RUNNING flag. This can lose initial link state change interrupt which in turn make bge(4) think that it still does not have valid link. Fix this race by protecting the taskqueue with a driver lock. While I'm here move reenabling interrupt code after handling of link state chage. Reviewed by: davidch END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2010-10-11T23:15:18.015009Z K 7 svn:log V 404 Try and make the nfsrv_localunlock() function in the experimental NFSv4 server more readable. Mostly changes to comments, but a case of >= is changed to >, since == can never happen. Also, I've added a couple of KASSERT()s and a slight optimization, since once the "else if" case happens, subsequent locks in the list can't have any effect. None of these changes fixes any known bug. MFC after: 2 weeks END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-11T23:24:57.530109Z K 7 svn:log V 71 Correct regression test to not show a false positive when run as root. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-12T00:36:56.639831Z K 7 svn:log V 113 Add a flag TDF_TIDHASH to prevent a thread from being added to or removed from thread hash table multiple times. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-12T09:10:24.221156Z K 7 svn:log V 73 MFC r213452: Display PCID capability of CPU and add CPUID define for it. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-12T09:18:17.587240Z K 7 svn:log V 555 Add macro DECLARE_MODULE_TIED to denote a module as requiring the kernel of exactly the same __FreeBSD_version as the headers module was compiled against. Mark our in-tree ABI emulators with DECLARE_MODULE_TIED. The modules use kernel interfaces that the Release Engineering Team feel are not stable enough to guarantee they will not change during the life cycle of a STABLE branch. In particular, the layout of struct sysentvec is declared to be not part of the STABLE KBI. Discussed with: bz, rwatson Approved by: re (bz, kensmith) MFC after: 2 weeks END K 10 svn:author V 7 glebius K 8 svn:date V 27 2010-10-12T09:41:42.400701Z K 7 svn:log V 76 We already have dummy receive buffer in sc->buffer. Suggested by: hselasky END K 10 svn:author V 3 flz K 8 svn:date V 27 2010-10-12T10:04:44.891826Z K 7 svn:log V 174 - Add support for xz compression to pkg_create, bzip2 remains the default compression algorithm. - Bump PKG_INSTALL_VERSION to 20101012. Submitted by: mm MFC after: 1 month END K 10 svn:author V 4 joel K 8 svn:date V 27 2010-10-12T11:05:32.598839Z K 7 svn:log V 39 Small grammar nit in a printf message. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T13:13:20.173326Z K 7 svn:log V 343 MFC 205021: - Use an initializer macro to initialize fields in 'fake' FILE objects used by *sprintf(), etc. - Explicitly initialize _fl_mutex to PTHREAD_MUTEX_INITIALIZER for all FILE objects. This is currently a nop on FreeBSD, but is import for other platforms (or in the future) where PTHREAD_MUTEX_INITIALIZER is not simply zero. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T15:26:13.624445Z K 7 svn:log V 109 MFC 212974: Comment nit, set TDF_NEEDRESCHED after the comment describing why it is done rather than before. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T15:26:37.510771Z K 7 svn:log V 109 MFC 212974: Comment nit, set TDF_NEEDRESCHED after the comment describing why it is done rather than before. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T15:48:14.954271Z K 7 svn:log V 92 MFC 213271: Account for unlocking a spin mutex in the lock profiling code in the !SMP case. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T15:48:27.642217Z K 7 svn:log V 92 MFC 213271: Account for unlocking a spin mutex in the lock profiling code in the !SMP case. END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-10-12T15:58:52.653280Z K 7 svn:log V 77 Format prototypes to follow style(9) more closely. Discussed with: kib, phk END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T16:08:20.243568Z K 7 svn:log V 645 MFC 213028,213328: - Expand scope of tun/tap softc locks to cover more softc fields and driver-maintained ifnet fields (such as if_drv_flags). - Use soft locks as the mutex that protects each interface's knote list rather than using the global knote list lock. Also, use the softc for kn_hook instead of the cdev. - Use mtx_sleep() instead of tsleep() when blocking in the read routines. This fixes a lost wakeup race. - Remove D_NEEDGIANT now that the cdevsw routines use the softc lock where locking is needed. - Lock IFQ when calculating the result for FIONREAD in tap(4). tun(4) already did this. - Remove remaining spl calls. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T16:09:08.918162Z K 7 svn:log V 645 MFC 213028,213328: - Expand scope of tun/tap softc locks to cover more softc fields and driver-maintained ifnet fields (such as if_drv_flags). - Use soft locks as the mutex that protects each interface's knote list rather than using the global knote list lock. Also, use the softc for kn_hook instead of the cdev. - Use mtx_sleep() instead of tsleep() when blocking in the read routines. This fixes a lost wakeup race. - Remove D_NEEDGIANT now that the cdevsw routines use the softc lock where locking is needed. - Lock IFQ when calculating the result for FIONREAD in tap(4). tun(4) already did this. - Remove remaining spl calls. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T16:23:50.116368Z K 7 svn:log V 137 MFC 213268: If rt2560_bbp_init() fails, don't drop the lock as the callers of rt2560_init_locked() expect the lock to be held on return. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2010-10-12T16:52:13.244156Z K 7 svn:log V 210 Fix monitor mode which is implemented by doing a firmware scan. This is a port of stable/6, seems like the code got lost during the background scan changes in r170530. Pointed out by: danfe MFC after: 2 weeks END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-12T17:04:21.964003Z K 7 svn:log V 994 zfs + sendfile: do not produce partially valid pages for vnode's tail Since r212650 and before this change sendfile(2) could produce a partially valid page for a trailing portion of a ZFS vnode. vm_fault() always wants to see a fully valid page even if it's the last page that partially extends beyond vnode's end. Otherwise it calls vop_getpages() to bring in the page. In the case of ZFS this means that the data is read from the page into the same page and this breaks checks in ZFS mappedread() - a thread that set VPO_BUSY on the page in vm_fault() will get blocked forever waiting for it to be cleared. Many thanks to Kai and Jeremy for reproducing the issue and providing important debugging information and help. Reported by: Kai Gallasch , Jeremy Chadwick Tested by: Kai Gallasch , Jeremy Chadwick Reviewed by: kib MFC after: 3 days To-Do: apply the same treatment to tmpfs + sendfile END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T17:09:33.886462Z K 7 svn:log V 62 MFC 194070: Remove semicolon that should not have been there. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T17:12:13.013949Z K 7 svn:log V 364 MFC 213300: If an RCS file is truncated, rcsfile_getdelta() will return NULL. Instead of faulting, check for NULL. However, returning an error would cause csup to just abort the entire update. Instead, break out of the loop and return ok. The attempts to update the file will trigger a MD5 failure which will cause csup to download the entire file as a fixup. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T17:12:22.514430Z K 7 svn:log V 364 MFC 213300: If an RCS file is truncated, rcsfile_getdelta() will return NULL. Instead of faulting, check for NULL. However, returning an error would cause csup to just abort the entire update. Instead, break out of the loop and return ok. The attempts to update the file will trigger a MD5 failure which will cause csup to download the entire file as a fixup. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2010-10-12T17:12:35.278355Z K 7 svn:log V 401 When bringing the interface down we clear the command queue but do not reset the sc_cmd_cur and sc_cmd_next indices. If there are still pending commands while clearing the queue those two indices are off by at least one. This leads to no commands being sent to the firmware until the queue overruns. Fix this by also resetting the indices. This is a direct commit as the code does not exist in head. END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-12T17:16:51.297250Z K 7 svn:log V 144 tmpfs + sendfile: do not produce partially valid pages for vnode's tail See r213730 for details of analogous change in ZFS. MFC after: 3 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-12T17:40:45.131159Z K 7 svn:log V 749 generic_stop_cpus: prevent parallel execution This is based on the same approach as used in panic(). In theory parallel execution of generic_stop_cpus() could lead to two CPUs stopping each other and everyone else, and thus a total system halt. Also, in theory, we should have some smarter locking here, because two (or more CPUs) could be stopping unrelated sets of CPUs. But in practice, it seems, this function is only used to stop "all other" CPUs. Additionally, I took this opportunity to make amd64-specific suspend_cpus() function use generic_stop_cpus() instead of rolling out essentially duplicate code. This code is based on code by Sandvine Incorporated. Suggested by: mdf Reviewed by: jhb, jkim (earlier version) MFC after: 2 weeks END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-10-12T17:53:01.736693Z K 7 svn:log V 617 acpi_ec: changes in communication with hardware Short description of the changes: - attempt to retry some commands for which it is possible (read, query) - always make a short sleep before checking EC status in polled mode - periodically poll EC status in interrupt mode - change logic for detecting broken interrupt delivery and falling back to polled mode - check that EC is ready for input before starting a new command, wait if necessary This commit is based on the original patch by David Naylor. PR: kern/150517 Submitted by: David Naylor Reviewed by: jkim MFC after: 3 weeks END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-12T18:20:38.623494Z K 7 svn:log V 101 Allow one to regression test 'sh' changes without having to install a potentially bad /bin/sh first. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-12T18:36:03.556302Z K 7 svn:log V 124 Re-expose and briefly document taskqueue_run(9). The function is used in at least one 3rd party driver. Requested by: jhb END K 10 svn:author V 4 joel K 8 svn:date V 27 2010-10-12T19:00:18.507909Z K 7 svn:log V 91 Document the fact that bwn works really well on the laptop I'm using right now (HP 6715b). END K 10 svn:author V 3 gnn K 8 svn:date V 27 2010-10-12T19:07:36.452548Z K 7 svn:log V 231 MFC 204310: Moved mcgrab(1) into a separate directory -- our .mk infrastructure doesn't currently have support for building multiple programs in a single makefile. While here, fixed manpages and makefiles (missing dependencies). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-12T19:22:03.585537Z K 7 svn:log V 507 Fix a regression introduced in r213495. r213495 disabled mini receive producer ring only for BCM5700. It was believed that BCM5700 with external SSRAM is the only controller that supports mini ring but it seems all BCM570[0-4] requires to disable mini receive producer ring. Otherwise, it caused unexpected RX DMA error or watchdog timeouts. Reported by: marius, Steve Kargl troutmask dot apl dot washington dot edu> Tested by: marius, Steve Kargl troutmask dot apl dot washington dot edu> END K 10 svn:author V 3 mdf K 8 svn:date V 27 2010-10-12T19:24:29.406026Z K 7 svn:log V 84 Always set cm_complete_data before calling mps_config_complete(). Reviewed by: ken END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-12T19:24:41.936140Z K 7 svn:log V 118 If DEBUG is 3 or greater, disable STATICization of functions. Also correct the documented location of the trace file. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T19:28:20.909053Z K 7 svn:log V 481 MFC 213226: Rewrite the i386 memory probe: - Check for SMAP data from the loader first. If it exists, don't bother doing any VM86 calls at all. This will be more friendly for non-BIOS boot environments such as EFI, etc. - Move the base memory setup into a new basemem_setup() routine instead of duplicating it. - Simplify the XEN case by removing all of the VM86/SMAP parsing code rather than just jumping over it. - Adjust some comments to better explain the code flow. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-12T19:28:33.407967Z K 7 svn:log V 481 MFC 213226: Rewrite the i386 memory probe: - Check for SMAP data from the loader first. If it exists, don't bother doing any VM86 calls at all. This will be more friendly for non-BIOS boot environments such as EFI, etc. - Move the base memory setup into a new basemem_setup() routine instead of duplicating it. - Simplify the XEN case by removing all of the VM86/SMAP parsing code rather than just jumping over it. - Adjust some comments to better explain the code flow. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-12T19:31:25.489123Z K 7 svn:log V 129 Protect bge(4) from accessing invalid NIC internal memory regions on BCM5906. Tested by: Buganini < buganini <> gmail dot com > END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-12T20:53:12.039585Z K 7 svn:log V 66 Remove trailing ", " from `sysctl machdep.idle_available' output. END K 10 svn:author V 5 markm K 8 svn:date V 27 2010-10-12T21:01:26.895040Z K 7 svn:log V 225 Create the /bin/rmail symlink (which mailers such as postfix and Exim can use). This is something I thought I committed MONTHS ago, but it appears that I fatfingered it and made a local commit. Pass the pointy hat, please. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2010-10-12T21:40:43.379190Z K 7 svn:log V 2215 MFC 177387,177388,177872,178456,179528,180394,186456,203800,204310,213327: r177387 A multicast test. The mctest program acts as both a source and a sink for multicast packets. Parameters for the interface, packet size, number of packets, and interpacket gap may be given on the command line. The sink records how many packets were missed, and at what time each packet arrived. r177388 Add the correct license. r177872 Add a manual page and a Makefile. Add code to reflect packets back from the sink so that we can measure round trip at the source. r178456 Updated the test to handle multiple sinks. The sinks cut their transmissions by the number of them running so that they do not overwhelm the source. Added a simple shell script to kick off sinks on multiple hosts as well as a source on the host where the shell script is run. The script also collects the output of all the sinks and the source into files named for the host on which the tests are run. A date is appended to each output file to make it unique per run. r179528 Update mctest and its associated script to have a base port to listen on so that multiple copies can be run easily. Update documentation with group and port arguments which are optional. r180394 Add a new program to the multicast test suite. The mcgrab program is used to grab and hold some number of multicast addresses in order to test what happens when an interface goes over the number of multicast addresses it can filter in hardware. r186456 Fix a bug in the man page where we were not showing the correct flags in the explanation. Several of the flags were -i, since it was a copy/paste operation. r203800 Fixed error checking of pthread(3) functions. r204310 Moved mcgrab(1) into a separate directory -- our .mk infrastructure doesn't currently have support for building multiple programs in a single makefile. While here, fixed manpages and makefiles (missing dependencies). r213327 Change the output of mctest to give a summary of the results instead of printing a long list. Add a default base port, and default mulitcast address to the runner script. Add support for specifying a different local and remote interface in the runner script. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2010-10-12T21:45:36.416898Z K 7 svn:log V 120 MFC 213409: Fix two aliases that had the same name but were pointing to different events. These are now disamiguated. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2010-10-12T22:09:33.012074Z K 7 svn:log V 96 This commit removes Bruce Cran from mentiship ;-) Congratulations Bruce keep up the good work. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2010-10-12T22:10:07.981478Z K 7 svn:log V 180 MFC 213691: Add code to print the number and type of the CPU that is present in the system as well has how many PMCs there are per CPU. In this code CPU and core are equivalent. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2010-10-12T22:11:31.406018Z K 7 svn:log V 180 MFC 213691: Add code to print the number and type of the CPU that is present in the system as well has how many PMCs there are per CPU. In this code CPU and core are equivalent. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-13T00:21:53.802496Z K 7 svn:log V 210 Use AcpiReset() from ACPICA instead of rolling our own, which is actually incomplete. If FADT says the register is available, enable the capability by default. Remove the previous default value from acpi(4). END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2010-10-13T00:57:14.916396Z K 7 svn:log V 503 Fix the krpc so that it can handle NFSv3,UDP mounts with a read/write data size greater than 8192. Since soreserve(so, 256*1024, 256*1024) would always fail for the default value of sb_max, modify clnt_dg.c so that it uses the calculated values and checks for an error return from soreserve(). Also, add a check for error return from soreserve() to clnt_vc.c and change __rpc_get_t_size() to use sb_max_adj instead of the bogus maxsize == 256*1024. PR: kern/150910 Reviewed by: jhb MFC after: 2 weeks END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-13T02:09:06.199307Z K 7 svn:log V 101 Unify Book-E/AIM mem_valid() implementation in terms of the platform-specific mem_regions() routine. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-13T02:10:56.387892Z K 7 svn:log V 175 Make the generic OF layer do the right thing (all OF client interface routines return errors) if no OF client interface module is installed instead of calling NULL functions. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-13T02:11:59.583948Z K 7 svn:log V 137 Remove PS3 vestiges of pointless FDT code that never worked anyway, and add PS3 to GENERIC64 since it no longer conflicts with POWERMAC. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-13T04:01:01.772140Z K 7 svn:log V 159 Consistently use "STATIC" for all functions in order to be able to set breakpoints with in a debugger. And use naked "static" for variables. Noticed by: bde END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-13T06:28:40.656634Z K 7 svn:log V 99 sigqueue_collect_set() is no longer needed because other functions maintain pending set correctly. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-10-13T09:17:44.860324Z K 7 svn:log V 1925 o) Make it possible to attach a PHY directly to an octe device rather than using miibus, since for some devices that use multiple addresses on the bus, going through miibus may be unclear, and for devices that are not standard MII PHYs, miibus may throw a fit, necessitating complicated interfaces to fake the interface that it expects during probe/attach. o) Make the mv88e61xx SMI interface in octe attach a PHY directly and fix some mistakes in the code that resulted from trying too hard to present a nice interface to miibus. o) Add a PHY driver for the mv88e61xx. If attached (it is optional in kernel compiles so the default behavior of having a dumb switch is preserved) it will place the switch in a VLAN-tagging mode such that each physical port has a VLAN associated with it and interfaces for the VLANs can be created to address or bridge between them. XXX It would be nice for this to be part of a single module including the SMI interface, and for it to fit into a generic switch configuration framework and for it to use DSA rather than VLANs, but this is a start and gives some sense of the parameters of such frameworks that are not currently present in FreeBSD. In lieu of a switch configuration interface, per-port media status and VLAN settings are in a sysctl tree. XXX There may be some minor nits remaining in the handling of broadcast, multicast and unknown destination traffic. It would also be nice to go through and replace the few remaining magic numbers with macros at some point in the future. XXX This has only been tested with the MV88E6161, but it should work with minimal or no modification on related switches, so support for probing them was included. Thanks to Pat Saavedra of TELoIP and Rafal Jaworowski of Semihalf for their assistance in understanding the switch chipset. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2010-10-13T09:33:26.140098Z K 7 svn:log V 48 Use the RFC2606 domain example.com in examples. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T10:31:32.395439Z K 7 svn:log V 161 Don't define the input() function ifdef YY_NO_INPUT. This was previously done for the input() function. Submitted by: Norberto Lopes END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T10:33:01.660992Z K 7 svn:log V 80 Define YY_NO_INPUT. This makes aicasm buildable by clang with Werror turned on. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T10:45:22.130673Z K 7 svn:log V 123 Purposely tell the compiler that we ignore the return value of ADDCARRY() in the REDUCE macro. Reviewed by: dim, rdivacky END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T11:04:55.071246Z K 7 svn:log V 39 Release dim from mentorship. Congrats! END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-13T11:23:27.848494Z K 7 svn:log V 73 In HEAD, don't use the spare but just add the member at the right place. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T11:35:59.226861Z K 7 svn:log V 133 The canonical way to print __func__ when using KASSERT() is to write ("%s", __func__). This avoids clang's -Wformat-string warnings. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T11:37:12.286787Z K 7 svn:log V 88 Explicitly tell the compiler that we don't care about the return value of kbdd_ioctl(). END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T11:37:39.918920Z K 7 svn:log V 45 Ignore the return value of DE_INTERNALIZE(). END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T11:38:24.965948Z K 7 svn:log V 89 Mark acpi_bus_number() as __unused. This allows clang to this file without any warnings. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-13T11:39:36.531951Z K 7 svn:log V 122 MFC r213476: Add cross-references to lrand48(3) and arc4random(3) from rand(3) and random(3). MFC r213477: Missed space. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-13T13:17:38.188779Z K 7 svn:log V 246 Suggest that DEBUG_FLAGS be used to enable extra debugging rather than frobbing CFLAGS directly. DEBUG_FLAGS is something that can be specified on the make command line without having to edit the Makefile directly. Submitted by: Garrett Cooper END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-13T13:22:11.232716Z K 7 svn:log V 198 Make DEBUG traces 64-bit clean: - Use %t to print ptrdiff_t values. - Cast a ptrdiff_t value explicitly to int for a field width specifier. While here, sort includes. Submitted by: Garrett Cooper END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-10-13T14:02:45.201675Z 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 8 rdivacky K 8 svn:date V 27 2010-10-13T14:27:47.841981Z K 7 svn:log V 78 Extend this check for const unsigned char *. Approved by: rpaulo (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T14:37:52.976015Z K 7 svn:log V 65 WPA_CSE_WEP104 was being incorrectly checked. Found with: clang END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T14:39:54.419910Z K 7 svn:log V 66 Fix a brain-o: wrong case statement semantics. Found with: clang END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T14:41:52.945323Z K 7 svn:log V 36 Pass a format string to make_dev(). END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T14:44:38.371876Z K 7 svn:log V 26 Add opt_compat.h to SRCS. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T14:57:13.093783Z K 7 svn:log V 53 Pass a format string to make_dev(). Found by: clang END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-13T16:30:41.123167Z K 7 svn:log V 92 Remove acpi_bus_number() completely. It had to be removed in r212761. Pointed out by: jhb END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-10-13T16:34:08.996290Z K 7 svn:log V 53 Revert 212517 to restore pristine state of this file END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T16:57:06.987369Z K 7 svn:log V 157 Clang related fixes: * When calling syslog(), pass a format string. * Define YY_NO_INPUT on nslexer.l Submitted by: Norberto Lopes END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2010-10-13T17:01:33.790781Z K 7 svn:log V 82 Actually, check for any kind of "C string type". Approved by: rpaulo (mentor) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-13T17:06:25.556162Z K 7 svn:log V 25 Clean up unused headers. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T17:09:16.715085Z K 7 svn:log V 105 Fix several cases were a conditional operator was used instead of a bitwise operator. Found with: clang END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T17:09:53.560551Z K 7 svn:log V 86 Properly tell the compiler that we want to ignore the return value of certain macros. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T17:12:23.862099Z K 7 svn:log V 65 In zfs_post_common(), use %d instead of %hhu. Found with: clang END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T17:13:43.108010Z K 7 svn:log V 85 Pass a format string to panic() and to taskqueue_start_threads(). Found with: clang END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T17:16:08.415851Z K 7 svn:log V 39 Ignore the return value of ADDCARRY(). END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T17:17:50.032192Z K 7 svn:log V 85 Don't do a logical AND of the result of strcmp() with a constant. Found with: clang END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T17:21:21.600804Z K 7 svn:log V 51 When calling panic(), always pass a format string. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-13T17:38:23.997119Z K 7 svn:log V 16 Revert r213793. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-13T17:55:19.512499Z K 7 svn:log V 1739 Rewrite interrupt handler to give fairness for both RX and TX. Previously rl(4) continuously checked whether there are RX events or TX completions in forever loop. This caused TX starvation under high RX load as well as consuming too much CPU cycles in the interrupt handler. If interrupt was shared with other devices which may be always true due to USB devices in these days, rl(4) also tried to process the interrupt. This means polling(4) was the only way to mitigate the these issues. To address these issues, rl(4) now disables interrupts when it knows the interrupt is ours and limit the number of iteration of the loop to 16. The interrupt would be enabled again before exiting interrupt handler if the driver is still running. Because RX buffer is 64KB in size, the number of iterations in the loop has nothing to do with number of RX packets being processed. This change ensures sending TX frames under high RX load. RX handler drops a driver lock to pass received frames to upper stack such that there is a window that user can down the interface. So rl(4) now checks whether driver is still running before serving RX or TX completion in the loop. While I'm here, exit interrupt handler when driver initialized controller. With this change, now rl(4) can send frames under high RX load even though the TX performance is still not good(rl(4) controllers can't queue more than 4 frames at a time so low TX performance was one of design issue of rl(4) controllers). It's much better than previous TX starvation and you should not notice RX performance drop with this change. Controller still shows poor performance under high network load but for many cases it's now usable without resorting to polling(4). MFC after: 2 weeks END K 10 svn:author V 3 dim K 8 svn:date V 27 2010-10-13T17:55:53.318486Z K 7 svn:log V 161 Change two missed instances of 'retq' in aeskeys_i386.S to 'retl', which makes it possible to assemble this file with gas from newer binutils. Reviewed by: kib END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-13T18:23:43.024142Z K 7 svn:log V 106 If one wishes to set breakpoints of static the functions here, they cannot be inlined. Submitted by: jhb END K 10 svn:author V 3 bcr K 8 svn:date V 27 2010-10-13T20:08:02.896150Z K 7 svn:log V 76 s/sytem/system in comments, no functional changes. Reviewed by: alfred@ END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-13T20:35:34.180175Z K 7 svn:log V 24 Import ACPICA 20101013. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-13T20:36:42.572490Z K 7 svn:log V 21 Tag ACPICA 20101013. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-13T20:37:19.277547Z K 7 svn:log V 134 Correct some root HUB descriptor fields in multiple controller drivers. Remove an unused structure. Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-13T20:51:06.155948Z K 7 svn:log V 135 USB network (UHSO): - Correct network interface flags. PR: usb/149039 Submitted by: Fredrik Lindberg Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-13T20:56:54.606003Z K 7 svn:log V 79 USB WLAN: - Add new device ID PR: usb/150989 Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-13T21:36:42.626904Z K 7 svn:log V 135 USB Network: - Add new driver for iPhone tethering - Supports the iPhone 3G/3GS/4G ethernet protocol Approved by: thompsa (mentor) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-13T21:37:02.861987Z K 7 svn:log V 23 Merge ACPICA 20101013. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-10-13T21:45:56.863137Z K 7 svn:log V 56 Keep polling at 50hz as long as link state is changing. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-13T21:53:37.393115Z K 7 svn:log V 275 Add more checks for resolved link speed in bge_miibus_statchg(). Link UP state could be reported first before actual completion of auto-negotiation. This change makes bge(4) reprogram BGE_MAC_MODE, BGE_TX_MODE and BGE_RX_MODE register only after controller got a valid link. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-13T22:04:55.640150Z K 7 svn:log V 368 USB network (NCM driver): - correct the ethernet payload remainder which must be post-offseted by -14 bytes instead of 0 bytes. This is not very clearly defined in the NCM specification. - add development feature about limiting the maximum datagram count in each NCM payload. - zero-pad alignment data - add TX-interval tuning sysctl Approved by: thompsa (mentor) END K 10 svn:author V 5 luigi K 8 svn:date V 27 2010-10-13T22:07:57.881095Z K 7 svn:log V 29 document logging through bpf END K 10 svn:author V 6 obrien K 8 svn:date V 27 2010-10-13T22:18:03.774078Z K 7 svn:log V 84 In the spirit of r90111, depend on c89 and remove the "STATIC" macro and its usage. END