ƒ³232707 176 1017 168 240 139 145 240 254 214 152 271 260 162 380 186 571 222 252 146 146 145 243 2456 258 192 104 165 168 224 161 219 128 185 135 233 169 485 198 365 474 170 160 520 562 262 195 318 785 182 199 299 298 1538 362 469 203 275 143 873 470 228 134 143 206 286 203 211 141 114 164 179 610 135 500 126 292 142 493 228 635 204 204 189 207 184 184 184 755 450 344 190 352 688 455 102 187 125 677 208 218 141 151 141 163 143 340 938 133 143 134 159 210 208 218 141 209 716 130 365 729 265 265 299 110 197 1072 497 170 400 355 292 159 274 237 140 126 270 168 521 468 167 378 390 360 603 290 446 498 191 211 388 644 430 199 114 556 249 277 404 1481 346 227 217 204 205 205 232 147 154 139 139 247 247 161 188 147 254 K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-08T23:53:38.555536Z K 7 svn:log V 921 Correctly initialise the TXQ link pointer to the last descriptor in the last buffer in the list. The current behaviour (due to me, so pointy hat is firmly on my head here) was incorrect - it was setting the link pointer to the last descriptor of the _first_ buffer in the TXQ. Instead, it should have set it to the last descriptor in the _last_ buffer in the TXQ. This showed up as occasional TX stalls with frames in the TXQ but no TX progress being made. Further inspection showed the TXQ looked like it contained multiple "lists" of frames - there'd be a list of correct frames, then a NULL link pointer, but there'd be a next buffer in the list. Since this code is only called upon an interface reset, it's likely this only began showing up when I started doing stress testing in environments which annoy the radios enough to cause lockups. I've not yet any TX stalls with this patch applied. PR: kern/165866 END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-08T23:59:49.247752Z K 7 svn:log V 75 MFi386: r232699 Increase UFS2-only boot block size to 16KB (32 sectors). END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-09T00:12:05.400548Z K 7 svn:log V 147 Decomission mnt_noasync. Introduce MNTK_NOASYNC mnt_kern_flag which allows a filesystem to request VFS to not allow MNTK_ASYNC. MFC after: 1 week END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T00:28:28.629721Z K 7 svn:log V 46 Increase BBSIZE to 16KB and add compat shims. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T00:53:54.827917Z K 7 svn:log V 52 Spread more shrink ray on boot2. Submitted by: dim END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-09T01:32:05.831348Z K 7 svn:log V 144 Fix a variety of grammar and style nits PR: docs/165841 Submitted by: Robert Simmons Approved by: brd MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-03-09T02:13:47.199930Z K 7 svn:log V 156 Add checks for callbacks working before either asking for layouts or trying to use them. Callbacks are required for pNFS, so the server can recall layouts. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-03-09T02:23:03.283487Z K 7 svn:log V 113 Make sure not to tar up CVS directories if this ports tree is a CVS checkout. PR: bin/165868 MFC after: 5 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-09T05:37:55.037852Z K 7 svn:log V 60 MFC r232376: Add ahci(4) and siis(4) to the hardware notes. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-09T05:43:08.082792Z K 7 svn:log V 178 MFC r232380: Fix names of some Marvell SATA chips. It looks like chips with proprietary interface supported by mvs(4) are 88SX, while AHCI-like chips are 88SE. PR: kern/165271 END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-09T07:30:48.400040Z K 7 svn:log V 167 Be more polite when setting state->nextevent inside cpu_new_callout(). Hardclock is not the only who wakes idle CPU since kdtrace cyclic addition. MFC after: 2 weeks END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-09T07:53:44.789112Z K 7 svn:log V 65 Enable COMPAT_FREEBSD32 for the Octeon kernel config by default. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-09T08:36:30.969559Z K 7 svn:log V 284 Insert extra paranoia into the ath(4) driver. This function must be called with both the source and destination TXQs locked or things will get hairy. I added this as part of some debugging in a PR but it turned out to not be the cause. I still think it's -correct- so, here it is. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-09T09:32:20.225453Z K 7 svn:log V 89 "Did you still want the not yet? I think we just arrived at yet." Submitted by: thompsa END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-03-09T11:48:56.096367Z K 7 svn:log V 477 Clean up x86 endian.h: - Remove extern "C". There are no functions with external linkage here. [1] - Rename bswapNN_const(x) to bswapNN_gen(x) to indicate that these macros are generic implementations that can take non-constant arguments. [1] - Split up __GNUCLIKE_ASM && __GNUCLIKE_BUILTIN_CONSTANT_P and deal with each separately. - Replace _LP64 with __amd64__ because asm instructions are machine dependent, not ABI dependent. Submitted by: bde [1] Reviewed by: bde END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-03-09T13:06:24.548356Z K 7 svn:log V 130 MFC r232350: Since r199137 namei() returns EINVAL for DELETE and RENAME operations if the last component of the pathname is ".". END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-09T13:12:33.385989Z K 7 svn:log V 156 Fix a bug reported by Peter Holm which results in a crash: Verify in sctp_peeloff() that the socket is a one-to-many style SCTP socket. MFC after: 3 days. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-09T13:15:40.402301Z K 7 svn:log V 51 Add support for stf interfaces. MFC after: 3days. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-03-09T15:25:27.391162Z K 7 svn:log V 51 Remove undesired sysctl(3) xref Submitted by: bde END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-03-09T15:42:47.878640Z K 7 svn:log V 50 Fix a warning reported by bz@ MFC after: 3 days. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-09T16:05:11.095710Z K 7 svn:log V 150 Remove PAE special-case 2GB DMA boundary and always use a 4GB boundary now that DMA tags in PAE kernels support 4GB boundaries. Reviewed by: yongari END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-03-09T16:17:46.794984Z K 7 svn:log V 2363 Jail-mount MFC: r231265,r231267,r231269,r232059,r232186,r232247, r232278,r232307,r232342 MFC r231265: Introduce the "ruleset=number" option for devfs(5) mounts. Add support for updating the devfs mount (currently only changing the ruleset number is supported). Check mnt_optnew with vfs_filteropt(9). This new option sets the specified ruleset number as the active ruleset of the new devfs mount and applies all its rules at mount time. If the specified ruleset doesn't exist, a new empty ruleset is created. MFC r231267 [1]: Add support for mounting devfs inside jails. A new jail(8) option "devfs_ruleset" defines the ruleset enforcement for mounting devfs inside jails. A value of -1 disables mounting devfs in jails, a value of zero means no restrictions. Nested jails can only have mounting devfs disabled or inherit parent's enforcement as jails are not allowed to view or manipulate devfs(8) rules. Utilizes new functions introduced in r231265. MFC r231269: Allow mounting nullfs(5) inside jails. This is now possible thanks to r230129. MFC r232059 [1]: To improve control over the use of mount(8) inside a jail(8), introduce a new jail parameter node with the following parameters: allow.mount.devfs: allow mounting the devfs filesystem inside a jail allow.mount.nullfs: allow mounting the nullfs filesystem inside a jail Both parameters are disabled by default (equals the behavior before devfs and nullfs in jails). Administrators have to explicitly allow mounting devfs and nullfs for each jail. The value "-1" of the devfs_ruleset parameter is removed in favor of the new allow setting. MFC r232186: Analogous to r232059, add a parameter for the ZFS file system: allow.mount.zfs: allow mounting the zfs filesystem inside a jail This way the permssions for mounting all current VFCF_JAIL filesystems inside a jail are controlled wia allow.mount.* jail parameters. Update sysctl descriptions. Update jail(8) and zfs(8) manpages. MFC r232247: mdoc(7) stype - start new sentences on new line MFC r232278 [1]: Add procfs to jail-mountable filesystems. MFC r232291: Bump .Dd to reflect latest update MFC r232307: Add "export" to devfs_opts[] and return EOPNOTSUPP if called with it. Fixes mountd warnings. MFC r232342 (jamie) [2]: Handle the case where a boolean parameter is also a node. PR: bin/165515 [2] Reviewed by: jamie [1] END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-09T16:21:40.549972Z K 7 svn:log V 165 Remove the use of toupper() from rtld_printf.c. Use of the libc function relies on working TLS, which is particulary not true for LD_DEBUG uses. MFC after: 1 week END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-03-09T16:39:34.035462Z K 7 svn:log V 99 Cast the expression in __bswap16(x) to __uint16_t because it is promoted to int. Reviewed by: dim END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T17:13:08.807263Z K 7 svn:log V 11 Fix build. END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-03-09T17:19:50.590258Z K 7 svn:log V 73 Revert r232692 as the correct place to fix this is at the syscall level. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T17:32:34.761400Z K 7 svn:log V 75 Add UFS2-only boot2 and restore UFS1+UFS2 boot2 to prevent POLA violation. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T17:45:29.411081Z K 7 svn:log V 130 Add "-Oz" to CLANG_OPT_SMALL. It is available since Clang r130554. http://llvm.org/viewvc/llvm-project?view=rev&revision=130554 END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T17:47:59.469832Z K 7 svn:log V 68 Remove noinline attribute for memcpy(). "-Oz" made it less useful. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T18:15:38.143478Z K 7 svn:log V 125 Initialize opts and kname correctly. BSS for boot2 does not auto-clear. See r219452 for more information. Reported by: jhb END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T18:26:35.631022Z K 7 svn:log V 35 Fix a typo in the previous commit. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-03-09T18:34:14.590870Z K 7 svn:log V 91 Improve error reporting in diskinfo(8) by not displaying errno when it doesn't make sense. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T18:50:49.083638Z K 7 svn:log V 42 Remove a Clang option obsoleted by "-Oz". END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-09T19:09:08.942118Z K 7 svn:log V 140 Make kern.sched.idlespinthresh default value adaptive depending of HZ. Otherwise with HZ above 8000 CPU may never skip timer ticks on idle. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T19:18:31.191567Z K 7 svn:log V 76 Revert r232734 and r232739. It seems inline-threshold=25 is still too big. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-09T19:20:19.570381Z K 7 svn:log V 392 MFamd64: - Return failure for a suspend attempt if we have no wake address. - Use intr_disable()/intr_restore() instead of ACPI_DISABLE_IRQS(). - Invoke intr_suspend() earlier and call intr_resume() if suspend fails. - Use pause in the loop waiting for CPU to suspend. - Restore PAT MSR, switchtime, switchticks, and MTRRs on resume. Reviewed by: jkim (earlier version) MFC after: 2 weeks END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T19:22:31.935827Z K 7 svn:log V 104 Remove -ffunction-sections and -fdata-sections. These options only gave us three more bytes for Clang. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-09T19:42:48.444473Z K 7 svn:log V 272 Allow a native i386 kernel to be built with 'nodevice atpic'. Just as on amd64, if 'device isa' is present quiesce the 8259A's during boot and resume from suspend. While here, be more selective on amd64 about which kernel configurations need elcr.c. MFC after: 2 weeks END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-09T20:34:31.129792Z K 7 svn:log V 381 Add casts to __uint16_t to the __bswap16() macros on all arches which didn't already have them. This is because the ternary expression will return int, due to the Usual Arithmetic Conversions. Such casts are not needed for the 32 and 64 bit variants. While here, add additional parentheses around the x86 variant, to protect against unintended consequences. MFC after: 2 weeks END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T20:41:42.726987Z K 7 svn:log V 77 Refine DIOCSPC98 to make it more like DIOCBSDBB and remove hardcoded BBSIZE. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-09T20:43:29.919110Z K 7 svn:log V 68 Move i386's intr_machdep.c to the x86 tree and share it with amd64. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-09T20:50:15.819246Z K 7 svn:log V 427 After r232745, which makes sure __bswap16(), ntohs() and htons() return __uint16_t, we can partially undo r228668. Note the remark "Work around a clang false positive with format string warnings and ntohs macros (see LLVM PR 11313)" was actually incorrect. Before r232745, on some arches, the ntohs() macros did in fact return int, not uint16_t, so clang was right in warning about the %hu format string. MFC after: 2 weeks END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-09T21:02:39.441427Z K 7 svn:log V 469 Partially undo r228693, by removing NO_WFORMAT.clang in fsdb's Makefile, and fixing the format string in sbin/fsdb/fsdbutil.c instead. Note the remark "Work around a problem with format string warnings and ntohs macros" was actually incorrect. The DIP(dp, di_nlink) macro invocation actually returned an int, due to its ternary expression, even though the di_nlink members of struct ufs1_dinode and struct ufs2_dinode are both defined as int16_t. MFC after: 2 weeks END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-03-09T21:31:12.801060Z K 7 svn:log V 169 Perform the parameter validation before assigning it to a signed int variable. This fixes the problem seen with readdir(3) fuzzing. Submitted by: bde MFC after: 1 week END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-09T22:30:54.829534Z K 7 svn:log V 98 Export intrcnt correctly when running under 32-bit compatibility. Reviewed by: gonzo, nwhitehorn END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-09T22:41:09.620212Z K 7 svn:log V 222 Should the mcast queue be locked here? In case more multicast traffic comes along? This commit was brought to you via an Atheros AR5210, associated to an 3x3 HT40 11na access point. Yes, this driver still works with it. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-09T22:58:34.799574Z K 7 svn:log V 689 Document that we may end up with some suboptimal handling of data frames with stations in power saving mode. I'm not (yet) sure how to handle TX'ing aggregates frames to stations that are in power saving mode, or whether that's even a feasible thing to do. So in order to (mostly) not forget, leave a couple of comments in the code. The code presently assumes that the aggregation TID state for an ath_node is locked not by the ath_node lock or a node+TID lock, but behind the hardware queue said TID maps to. This assumption is going to be incorrect for stations in power saving mode as we'll be TX'ing frames on the multicast queue. In any case, I'm afraid its a "later problem". :/ END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-03-09T23:30:30.185237Z K 7 svn:log V 89 Make boot2 build with Clang again. Submitted by: dim (bsd.sys.mk) Reviewed by: dim, jhb END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-03-10T01:36:42.074382Z K 7 svn:log V 105 Create branch to add NAND Framework, NANDSim utility and NAND File System. Approved by: cognet (mentor) END K 10 svn:author V 6 rstone K 8 svn:date V 27 2012-03-10T02:26:12.344568Z K 7 svn:log V 203 MFC r230984: Whenever a new kernel thread is spawned, explicitly clear any CPU affinity set on the new thread. This prevents the thread from inadvertently inheriting affinity from a random sibling. END K 10 svn:author V 6 rstone K 8 svn:date V 27 2012-03-10T02:27:04.417384Z K 7 svn:log V 202 MFC r230984: Whenever a new kernel thread is spawned, explicitly clear any CPU affinity set on the new thread. This prevents the thread from inadvertently inheriting affinity from a random sibling. END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-03-10T02:30:14.069894Z K 7 svn:log V 1443 The FreeBSD NAND framework consists of a set of interfaces that aim to provide an extensible, object oriented environment for NAND controllers and NAND Flash memory chips from various hardware vendors, and to allow for uniform and flexible management of the NAND devices. It comprises of the following major components: - NAND Flash controller (NFC) interface. Defines methods which allow to send commands as well as send/receive data between the controller and a NAND chip. Back-end drivers for specific NAND controllers plug into this interface and implement low- level routines for a given NAND controller. - NAND chip interface. Provides basic operations like read page, program page, erase block. Currently three generic classes of drivers are available, which pro- vide support for the following chips: large page, small page, ONFI-compliant. - NANDbus. This layer is responsible for enumerating NAND chips in the system and establishing the hierarchy between chips and their supervising controllers. - NAND character / GEOM device. For each NAND chip found in a system a character and GEOM devices are created which allows to read / write directly to a device, as well as perform other specific operations (like via ioctl). Obtained from: Semihalf Supported by: The FreeBSD Foundation, Juniper Networks END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-03-10T02:40:01.778478Z K 7 svn:log V 268 Add nandtool utility. The nandtool utility can be used to perform various operations on gnand(4) devices (read, write, erase, read and write OOB area and to get info about NAND flash chip). Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-03-10T02:46:55.193276Z K 7 svn:log V 375 Add NAND simulator. The NAND simulator is very simple utility which allows to create ONFI compliant device based on given configuration file (simple configuration file is provided). NAND Framework creates gnand(4) device for this virtual chip which allow to access it (read, write, erase, etc..). Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-03-10T02:52:36.971859Z K 7 svn:log V 109 Add NAND simulator as a module. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-03-10T02:58:15.991362Z K 7 svn:log V 181 Initial cut of the WITH_NAND / WITHOUT_NAND build knob. By default the WITH_NAND is currently selected. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-10T04:02:52.376418Z K 7 svn:log V 48 Enforce that wtap requires VIMAGE to be useful. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-10T04:14:04.142619Z K 7 svn:log V 777 Don't flood the cabq/mcastq with frames. In a very noisy 2.4GHz environment (with HT/40 enabled, making it worse) I saw the following occur: * the air was considered "busy" a lot of the time; * the cabq time is quite short due to staggered beacons being enabled; * it just wasn't able to keep up TX'ing CABQ frames; * .. and the cabq would swallow up all the TX ath_buf's. This patch introduces a twiddle which allows the maximum cabq depth to be set, forcing further frames to be dropped. It defaults to the TX buffer count at the moment, so the default behaviour isn't changed. I've also started fleshing out a similar setup for the data path, so it doesn't swallow up all the available TX buffers and preventing management frames (such as ADDBA) out. PR: kern/165895 END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-10T05:38:04.290547Z K 7 svn:log V 372 o) Bump INTRCOUNT_COUNT to 256, since Octeon already has >128. XXX It would be good to use a better way to size intrcnt. o) Fix literal 4s that are supposed to be sizeof (u_long). XXX Why the * 2 here? Is this an artifact of a different system that this code came from? We seem to allocate twice as much space for intrcnt as we admit to in sintrcnt. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-10T06:12:14.331936Z K 7 svn:log V 131 After r232403, DMA transactions does not cross 4GB boundary for all PCI devices. Remove driver workaround for 4GB boundary issue. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-10T06:31:28.658274Z K 7 svn:log V 37 Reduce diffs with freebsd32_sysarch. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-10T06:43:41.792331Z K 7 svn:log V 46 Don't truncate physical addresses to 32-bits. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-10T06:45:21.797764Z K 7 svn:log V 108 Get rid of mainbus.c. The version in nexus.c is being used and is perfectly-sufficient and equally-crufty. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-10T06:54:37.247837Z K 7 svn:log V 188 o) Remove some CPU_CNMIPS-related magical thinking about the status register's contents for user programs. o) Conditionalize the installation of an XTLB handler on ABI, not CPU family. END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-03-10T07:06:54.563837Z K 7 svn:log V 109 Add geom devices for NAND chips Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-03-10T07:09:05.779073Z K 7 svn:log V 117 Changes to add nand into build process. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-10T07:54:41.847176Z K 7 svn:log V 44 Use ABI to determine bus_addr_t for cnMIPS. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-03-10T08:25:49.513979Z K 7 svn:log V 23 MFC r232101: style(9). END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-03-10T08:27:37.619005Z K 7 svn:log V 73 MFC r232102: Exit with proper status when wake() fails. PR: bin/153527 END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-10T08:48:52.267340Z K 7 svn:log V 87 Add brackets around bare '-1' used as the macro body. Noted by: bde MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-10T08:49:44.962970Z K 7 svn:log V 517 Optimize tls_get_addr_common(). The change provides around 30% speedup for TLS microbenchmark using global-dynamic TLS model on amd64 (which is default for PIC dso objects). Split the slow path into tls_get_addr_slow(), for which inlining is disabled. This prevents the registers spill on tls_get_addr_common() entry. Provide static branch hint to the compiler, indicating that slow path is not likely to be taken. While there, do some minimal style adjustments. Reported and tested by: davidxu MFC after: 1 week END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-03-10T10:54:52.021592Z K 7 svn:log V 41 Cross-reference sigqueue(2) and kill(2). END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-03-10T11:25:53.910965Z K 7 svn:log V 405 Move determination of socket buffer sizes from startup to the first time a socket is used. The previous code structure assumed that AF_INET sockets were always available, which is an invalid assumption on IPv6-only systems. This merges the fololowing revisions from NetBSD: src/usr.bin/ftp/main.c 1.120 src/usr.bin/ftp/util.c 1.156 PR: bin/162661 Tested by: bz Obtained from: NetBSD MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-03-10T14:35:09.499320Z K 7 svn:log V 35 Fix whitespace. MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-03-10T14:38:34.017417Z K 7 svn:log V 200 Perform even more style changes. - Remove unneeded whitespace for function calls. - Add empty line at the top of functions without local variables. - Change while (1) to for (;;). MFC after: 1 week END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-03-10T14:38:49.952469Z K 7 svn:log V 48 Remove useless thread_{lock,unlock}() in raccd. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-10T14:57:21.750418Z K 7 svn:log V 400 Idle ticks optimization: - Pass number of events to the statclock() and profclock() functions same as to hardclock() before to not call them many times in a loop. - Rename them into statclock_cnt() and profclock_cnt(). - Turn statclock() and profclock() into compatibility wrappers, still needed for arm. - Rename hardclock_anycpu() into hardclock_cnt() for unification. MFC after: 1 week END K 10 svn:author V 4 nyan K 8 svn:date V 27 2012-03-10T15:08:37.166054Z K 7 svn:log V 134 MFi386: revisions 232570 and 232754 Fix boot2 to handle boot config files that only contain a custom path to a loader or kernel. END K 10 svn:author V 7 iwasaki K 8 svn:date V 27 2012-03-10T17:08:57.469393Z K 7 svn:log V 538 Fix wrong asresp frame parsing in iwi_checkforqos(). After 8.0-RELEASE, iwi(4) doesn't send any data frames in infrastructure mode. Bacause of the condition `while (frm < efrm)', IEEE80211_VERIFY_LENGTH() was checking item length beyond the ieee80211_frame region, and returned from iwi_checkforqos() without setting flags, capinfo and associd. In infrastructure mode associd is required, so this problem causes discarding mbuf in ieee80211_start(). PR: kern/165819 Tested/Reviewed/Supported by: bschmidt and adrian MFC after: 1 week END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-03-10T17:47:43.491785Z K 7 svn:log V 109 Merge r232250 from head: Correct capitalization of "Hz" in user-visible text (manpages, printf(), etc). END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-03-10T17:55:58.696124Z K 7 svn:log V 109 Merge r232250 from head: Correct capitalization of "Hz" in user-visible text (manpages, printf(), etc). END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-10T18:26:25.541301Z K 7 svn:log V 94 MFC r227626, r227642: - be more precise about the unit of measurement Approved by: cperciva END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-10T18:35:38.896428Z K 7 svn:log V 109 Fix reversed logic in previous commit that broke build and earned me quite the pointy hat. Submitted by: bz END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-10T18:36:12.982468Z K 7 svn:log V 89 MFC r232471: Document the [n]eei and [n]bacc options PR: docs/165009 Approved by: bcr END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-10T18:36:40.057866Z K 7 svn:log V 89 MFC r232471: Document the [n]eei and [n]bacc options PR: docs/165009 Approved by: bcr END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-10T18:37:01.243696Z K 7 svn:log V 89 MFC r232471: Document the [n]eei and [n]bacc options PR: docs/165009 Approved by: bcr END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-10T18:56:16.448610Z K 7 svn:log V 662 Revert r175376 and tune cpufreq(4) frequency comparison logic instead. Instead of using 25MHz equality threshold, look for the nearest value when handling dev.cpu.0.freq sysctl and for exact match when it is expected. ACPI may report extra level with frequency 1MHz above the nominal to control Intel Turbo Boost operation. It is not a bug, but feature: dev.cpu.0.freq_levels: 2934/106000 2933/95000 2800/82000 ... In this case value 2933 means 2.93GHz, but 2934 means 3.2-3.6GHz. I've found that my Core i7-870 based system has Intel Turbo Boost disabled by default and without this change it was absolutely invisible and hard to control. MFC after: 2 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-10T19:58:23.391259Z K 7 svn:log V 354 Fix a panic introduced in a previous commit - non-beaconing modes (eg STA) don't setup the avp mcast queue. This is a bit annoying though - it turns out the mcast queue isn't initialised for STA mode but it's then touched to see whether anything is in it. That should be fixed in a subsequent commit. Noticed by: gperez@entel.upc.edu PR: kern/165895 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-10T20:09:02.917850Z K 7 svn:log V 248 Stick the if_drv_flags access (check and modify) behind the ifq lock. Although access to the flags to check/set OACTIVE is racy due to how the default if_start() function works, this should remove any races with read/modify/write between threads. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-10T20:15:40.915627Z K 7 svn:log V 93 Remove my personal Octeon branch, which is on the order of a year and a half without update. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-10T21:08:07.288050Z K 7 svn:log V 259 ServerWorks HT1000 HPET reported to have problems with IRQs >= 16. Lower (ISA) IRQs are working, but allowed mask is not set correctly. Block both by default to allow HP BL465c G6 blade system to boot. Reported by: Attila Nagy MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-10T21:58:08.190500Z K 7 svn:log V 595 MFC r230130, r230181, r230312, r230326, r230331, r230451, r230465, r230488, r230507, r230511, r230513, r230532, r230537, r230551, r230554, r230571, r230574, r230585, r230641, r230768, r230807, r231024: Sync snd_hda(4) driver with HEAD. This includes major code refactoring, HDMI support, new volume control, automatic recording source selection, runtime reconfigureation, support for more then 4 PCM devices on controller, multichannel recording, additional playback/record streams, higher bandwidths support, more informative device names and many other things. Sponsored by: iXsystems, Inc. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2012-03-10T23:10:18.525870Z K 7 svn:log V 357 - add comments to syscalls.master and linux(32)_dummy about which linux kernel version introduced the sysctl (based upon a linux man-page) - add comments to sscalls.master regarding some names of sysctls which are different than the linux-names (based upon the linux unistd.h) - add some dummy sysctls - name an unimplemented sysctl MFC after: 1 month END K 10 svn:author V 8 netchild K 8 svn:date V 27 2012-03-10T23:11:21.114628Z K 7 svn:log V 6 regen END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-10T23:27:03.969741Z K 7 svn:log V 90 Remove some headers not used by kernel or world and which are not present in other ports. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T00:33:54.623255Z K 7 svn:log V 33 MFC r232694: Document P_ORPHAN. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T00:34:14.720004Z K 7 svn:log V 579 Fix promiscuous mode with if_octm: o) The MAC set must occur before the multicast list is set up as the former will enable the CAM unconditionally, while promiscuous mode disables it, so if promiscuous mode is to be set this must occur after the MAC is programmed. o) The multicast list must be set up unconditionally as even if flags have not changed, if the interface has gone through a reinitialization, the state of the CAM as changed by the MAC initialization could be incorrect. o) Call octm_init when flags change, even if the interface is already running. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T00:43:01.871012Z K 7 svn:log V 115 MFC r232178: Remove apparently redundand checks for socket so_proto being non-NULL from sosetopt() and sogetopt(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T00:48:54.048010Z K 7 svn:log V 125 MFC r232179: Add SO_PROTOCOL/SO_PROTOTYPE socket SOL_SOCKET-level option to get the socket protocol number. PR: kern/162352 END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T00:51:16.130265Z K 7 svn:log V 49 MFC r232180: Document SO_PROTOCOL socket option. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-11T02:00:59.261553Z K 7 svn:log V 56 Stop some of the output from wrapping at 80 characters. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T04:12:59.096982Z K 7 svn:log V 44 Raise my limit for Octeon SDK 2.3.0 import. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T04:14:00.409550Z K 7 svn:log V 66 Import Cavium Octeon SDK 2.3.0 Simple Executive from cnusers.org. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T04:16:42.037659Z K 7 svn:log V 46 Tag Cavium Octeon SDK 2.3.0 Simple Executive. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T06:11:31.334364Z K 7 svn:log V 242 Disable -Winline on MIPS in preparation for the import of the latest version of the Cavium Simple Executive, which violates large function growth rules in such a way that simply increasing the large function growth parameter is insufficient. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T06:17:49.868701Z K 7 svn:log V 840 Merge the Cavium Octeon SDK 2.3.0 Simple Executive code and update FreeBSD to make use of it where possible. This primarily brings in support for newer hardware, and FreeBSD is not yet able to support the abundance of IRQs on new hardware and many features in the Ethernet driver. Because of the changes to IRQs in the Simple Executive, we have to maintain our own list of Octeon IRQs now, which probably can be pared-down and be specific to the CIU interrupt unit soon, and when other interrupt mechanisms are added they can maintain their own definitions. Remove unmasking of interrupts from within the UART device now that the function used is no longer present in the Simple Executive. The unmasking seems to have been gratuitous as this is more properly handled by the buses above the UART device, and seems to work on that basis. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T06:18:38.653549Z K 7 svn:log V 36 Remove files not needed by FreeBSD. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T06:18:56.799770Z K 7 svn:log V 46 Reenable foot-shooting protection for myself. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T06:49:31.160795Z K 7 svn:log V 37 Do not try to use libfdt in FreeBSD. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T06:55:17.216257Z K 7 svn:log V 62 Disable the Simple Executive's error decoding/reporting code. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T08:12:30.840380Z K 7 svn:log V 112 Reenable -Winline on MIPS now that we're not compiling Cavium's error decoding stuff, which is impossibly-huge. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T09:22:05.660619Z K 7 svn:log V 115 MFC r232178: Remove apparently redundand checks for socket so_proto being non-NULL from sosetopt() and sogetopt(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T09:27:09.074038Z K 7 svn:log V 125 MFC r232179: Add SO_PROTOCOL/SO_PROTOTYPE socket SOL_SOCKET-level option to get the socket protocol number. PR: kern/162352 END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T09:29:02.674220Z K 7 svn:log V 49 MFC r232180: Document SO_PROTOCOL socket option. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T12:19:58.491110Z K 7 svn:log V 116 Remove fifo.h. The only used function declaration from the header is migrated to sys/vnode.h. Submitted by: gianni END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-11T13:39:19.211900Z K 7 svn:log V 620 Fix a bug introduced in r223938; on big-endian machines coping a 32-bit quantum bytewise to the address of a 64-bit variable results in writing to the "wrong" 32-bit half so adjust the address accordingly. This fix is implemented in a hackish way for two reasons: o in order to be able to get it into 8.3 with zero impact on the little- endian architectures where this bug has no effect and o to avoid blowing the x86 boot2 out of the water again when compiling it with clang, which all sane versions of this fix tested do. This change fixes booting from UFS1 file systems on big-endian machines. MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T15:58:27.549757Z K 7 svn:log V 38 Update comment. Submitted by: gianni END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-03-11T17:35:12.016408Z K 7 svn:log V 270 - remove an extra parenthesis in a closing brace; - add the macro NETMAP_RING_FIRST_RESERVED() which returns the index of the first non-released buffer in the ring (this is useful for code that retains buffers for some time instead of processing them immediately) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-11T19:08:56.540299Z K 7 svn:log V 633 Upgrade the netgraph vlan node to support 802.1q, encapsulation type, PCP and CFI fields. * Ethernet_type for VLAN encapsulation is tunable, default is 0x8100; * PCP (Priority code point) and CFI (canonical format indicator) is tunable per VID; * Tunable encapsulation to support 802.1q * Encapsulation/Decapsulation code improvements New messages have been added for this netgraph node to support the new features. However, the legacy "vlan" id is still supported and compiled in by default. It can be disabled in a future release. TODO: * Documentation * Examples PR: kern/161908 Submitted by: Ivan END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-03-11T19:23:37.504071Z K 7 svn:log V 170 Merge r226862 from head: Remove example for linking /dev/vga to /dev/ttyv0, this hasn't been required since X version 4.3.0. PR: conf/161847 Submitted by: eadler END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-03-11T19:23:42.391809Z K 7 svn:log V 170 Merge r226862 from head: Remove example for linking /dev/vga to /dev/ttyv0, this hasn't been required since X version 4.3.0. PR: conf/161847 Submitted by: eadler END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T19:38:49.962087Z K 7 svn:log V 206 ELF image can have several PT_NOTE program headers. Look for the ELF brand note in each header, instead of using only first one. Reviewed by: kan Tested by: andrew (arm), flo (sparc64) MFC after: 3 weeks END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-03-11T19:44:00.824141Z K 7 svn:log V 13 IFC r232824. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T19:56:58.450312Z K 7 svn:log V 104 Add a header with definitions useful for constructing ELF notes. Reviewed by: kan MFC after: 3 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T20:03:09.892587Z K 7 svn:log V 979 Add support for preinit, init and fini arrays. Some ABIs, in particular on ARM, do require working init arrays. Traditional FreeBSD crt1 calls _init and _fini of the binary, instead of allowing runtime linker to arrange the calls. This was probably done to have the same crt code serve both statically and dynamically linked binaries. Since ABI mandates that first is called preinit array functions, then init, and then init array functions, the init have to be called from rtld now. To provide binary compatibility to old FreeBSD crt1, which calls _init itself, rtld only calls intializers and finalizers for main binary if binary has a note indicating that new crt was used for linking. Add parsing of ELF notes to rtld, and cache p_osrel value since we parsed it anyway. The patch is inspired by init_array support for DragonflyBSD, written by John Marino. Reviewed by: kan Tested by: andrew (arm, previous version), flo (sparc64, previous version) MFC after: 3 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T20:04:09.546044Z K 7 svn:log V 404 Stop calling _init/_fini methods from crt1 for dynamic binaries. Do call preinit, init and fini arrays methods from crt1 for static binaries. Mark new crt1 with FreeBSD-specific ELF note. Move some common crt1 code into new MI file ignore_init.c, to reduce duplication. Also, conservatively adjust nearby sources for style. Reviewed by: kan Tested by: andrew (arm), flo (sparc64) MFC after: 3 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T20:15:12.710478Z K 7 svn:log V 78 Remove not needed ARGSUSED lint command. Submitted by: bde MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T20:18:14.714133Z K 7 svn:log V 307 In ffs_syncvnode(), pass boolean false as second argument of ffs_update(). Synchronous inode block update is not needed for MNT_LAZY callers (syncer), and since waitfor values are not zero, code did unneccessary synchronous update. Submitted by: bde Reviewed by: mckusick Tested by: pho MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T20:23:46.620381Z K 7 svn:log V 262 Do not fall back to slow synchronous i/o when low on memory or buffers. The bawrite() schedules the write to happen immediately, and its use frees the current thread to do more cleanups. Submitted by: bde Reviewed by: mckusick Tested by: pho MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T20:26:19.927395Z K 7 svn:log V 199 Do schedule delayed writes for async mounts. While there, make some style adjustments, like missed () around return values. Submitted by: bde Reviewed by: mckusick Tested by: pho MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-11T21:25:42.354801Z K 7 svn:log V 67 Remove superfluous brackets. Submitted by: alc MFC after: 2 weeks END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-03-11T22:07:41.699959Z K 7 svn:log V 179 Merge r216121 from head: Remove two unused variables, left over from the refactoring in r180104. PR: bin/152551 Submitted by: Henning Petersen END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-03-11T22:12:05.047327Z K 7 svn:log V 141 sh: Add a test for variables with underscores in arithmetic. Things like $((_x+1)) are broken in stable/8 sh but work in stable/9 and head. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-11T22:17:01.403555Z K 7 svn:log V 43 We've supported 64-bit PTEs for some time. END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-03-11T22:30:06.857976Z K 7 svn:log V 35 Fix whitespace. MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-03-12T00:47:13.996114Z K 7 svn:log V 177 Simplify the error checking in one branch of trap_pfault() and update the nearby comment. Add missing whitespace to a return statement in trap_pfault(). Submitted by: kib [2] END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-03-12T00:48:20.356183Z K 7 svn:log V 68 Remove work arounds for bugs in QEMU now that they have been fixed. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-03-12T01:06:29.173343Z K 7 svn:log V 425 Remove extraneous log message When ntp switched between PLL and FLL mode it produced a log message "kernel time sync status change %04x". This issue is reported in ntp bug 452[1] which claims that this behaviour is normal and the log message isn't necessary. I'm not sure exactly when it was removed, but it's gone in the latest ntp release (4.2.6p5). [1] http://bugs.ntp.org/show_bug.cgi?id=452 Approved by: roberto END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-12T01:15:58.813007Z K 7 svn:log V 372 Begin modifying the PB92 config file to actually generate a flashable, bootable image. The kernel has to fit inside an 896KiB area in a 4MB SPI flash. So a bunch of stuff can't be included (and more is to come), including (unfortunately) IPv6. TODO: * GPIO modules need to be created * Shrink the image a bit more by removing some of the CAM layer debugging strings. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-12T01:19:41.552399Z K 7 svn:log V 73 Implement pmc_save_user_callchain and pmc_save_kernel_callchain for MIPS END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-12T01:23:09.224608Z K 7 svn:log V 283 - Rename apb_intr to apb_filter since it's a filter handler - Pass interrupt trapframe for handlers dow the chain - Add PMC interrupt handler PMC interrupt is a special case, so we want handle it as soon as possible with minimum overhead. So we handle it apb filter routine. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-12T02:09:47.397457Z K 7 svn:log V 293 Add workaround for PCI-X BCM5704 controller that live behind AMD-8131 PCI-X bridge. The bridge seems to reorder write access to mailbox registers such that it caused watchdog timeouts by out-of-order TX completions. Tested by: Michael L. Squires siralan dot org > Reviewed by: jhb END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-12T02:42:47.157201Z K 7 svn:log V 263 Show PCI bus speed and width as well as running mode of PCI-X device in device attach. This would help to narrow down issue to a specific controller and operating mode of the controller. While I'm here rename BGE_MISCCFG_BOARD_ID with BGE_MISCCFG_BOARD_ID_MASK. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-12T03:47:30.967795Z K 7 svn:log V 506 Make if_ierrors updated whenever any of the following counters are updated. o Number of times NIC ran out of RX buffer descriptors o Number of inbound packet errors o Number of inbound packets that were chosen to be discarded Previously only the discarded packet counter was used to update if_ierrors. This change fixes wrong if_ierrors counter on BCM570[0-4] controllers. For BCM5705 and later controllers bge(4) already correctly counted it. Reported by: Eugene Grosbein rdtc dot ru> END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-03-12T05:28:02.744334Z K 7 svn:log V 197 Simplify the error checking in one branch of trap_pfault() and update the nearby comment. Correct the style of two return statements in trap_pfault(). Merge a comment from amd64's trap_pfault(). END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-12T07:02:16.870187Z K 7 svn:log V 353 Tune cpuset macros to optimize cases when CPU_SETSIZE fits into single machine word. For example, it turns CPU_SET() into expected shift and OR, removing two extra shifts and additional index on memory access. Generated code checked for kernel (optimized) and user-level (unoptimized) cases with GCC and CLANG. Reviewed by: attilio MFC after: 2 weeks END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-12T07:34:15.890496Z K 7 svn:log V 400 Remove platform APIs which are not used by any code and which had only stub implementations or no implementation on all platforms. Some of these functions might be good ideas, but their semantics were unclear given the lack of implementation, and an unlucky porter could be fooled into trying to implement them or, worse, being baffled when something like platform_trap_enter() failed to be called. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2012-03-12T08:03:51.421337Z K 7 svn:log V 96 Convert a number of drivers to obtaining their parent DMA tag from their PCI device attachment. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-12T08:13:04.325780Z K 7 svn:log V 113 Remove more unused code and declarations, and add dire warnings to the 64-bit atomic ops used by 32-bit kernels. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-12T10:36:03.728125Z K 7 svn:log V 295 When iterating over the dso program headers, the object is not initialized yet, and object segments are not yet mapped. Only parse the notes that appear in the first page of the dso (as it should be anyway), and use the preloaded page content. Reported and tested by: stass MFC after: 20 days END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-12T11:04:48.323642Z K 7 svn:log V 551 Fix the following warning/error with clang: libexec/rtld-elf/rtld.c:1898:22: error: comparison between pointer and integer ('Elf_Addr *' (aka 'unsigned int *') and 'Elf_Addr' (aka 'unsigned int')) [-Werror] if (preinit_addr == (Elf_Addr)NULL) ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ libexec/rtld-elf/rtld.c:2039:16: error: comparison between pointer and integer ('Elf_Addr *' (aka 'unsigned int *') and 'Elf_Addr' (aka 'unsigned int')) [-Werror] if (init_addr != (Elf_Addr)NULL) { ~~~~~~~~~ ^ ~~~~~~~~~~~~~~ Reviewed by: kib END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-12T11:15:44.201317Z K 7 svn:log V 337 After r232548, clang complains about the apparent '=-' operator (a left-over from ancient C times, and a frequent typo) in growfs.c: sbin/growfs/growfs.c:1550:8: error: use of unary operator that may be intended as compound assignment (-=) [-Werror] blkno =- 1; ^~ Use 'blkno = -1' instead, to silence the error. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-12T11:22:23.346614Z K 7 svn:log V 106 Amend r232857, now dropping the casts entirely, as they were not necessary at all. Submitted by: stefanf END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-03-12T11:56:57.101379Z K 7 svn:log V 22 Allways call fdrop(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-12T12:15:47.526837Z K 7 svn:log V 463 Rtld on diet part 1: Provide rtld-private implementations of __stack_chk_guard, __stack_chk_fail() and __chk_fail() symbols, to be used by functions linked from libc_pic.a. This avoids use of libc stack_protector.c, which pulls in syslog(3) and stdio as dependency. Also, do initialize rtld-private copy __stack_chk_guard, previously libc-provided one was not initialized, since we do not call rtld object _init() methods. Reviewed by: kan MFC after: 3 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-12T12:16:08.212079Z K 7 svn:log V 156 Rtld on diet part 2: Do not use stdio for libmap.conf read. Directly map the file and parse lines from the mappings. Reviewed by: kan MFC after: 3 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-12T12:29:31.731527Z K 7 svn:log V 184 MFC r232572: Use hand-made isspace1() macro which is enough to detect spaces in libmap.conf. MFC r232590 (by pluknet): Rename isspace1() macro to the more appropriate rtld_isspace(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-12T12:53:27.893009Z K 7 svn:log V 311 MFC r232240: Currently, the debugger attached to the process executing vfork() does not get syscall exit notification until the child performed exec of exit. Swap the order of doing ptracestop() and waiting for P_PPWAIT clearing, by postponing the wait into syscallret after ptracestop() notification is done. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-03-12T14:07:57.284972Z K 7 svn:log V 1382 - Add ipfw eXtended tables permitting radix to be used for any kind of keys. - Add support for IPv6 and interface extended tables - Make number of tables to be loader tunable in range 0..65534. - Use IP_FW3 opcode for all new extended table cmds No ABI changes are introduced. Old userland will see valid tables for IPv4 tables and no entries otherwise. Flush works for any table. IP_FW3 socket option is used to encapsulate all new opcodes: /* IP_FW3 header/opcodes */ typedef struct _ip_fw3_opheader { uint16_t opcode; /* Operation opcode */ uint16_t reserved[3]; /* Align to 64-bit boundary */ } ip_fw3_opheader; New opcodes added: IP_FW_TABLE_XADD, IP_FW_TABLE_XDEL, IP_FW_TABLE_XGETSIZE, IP_FW_TABLE_XLIST ipfw(8) table argument parsing behavior is changed: 'ipfw table 999 add host' now assumes 'host' to be interface name instead of hostname. New tunable: net.inet.ip.fw.tables_max controls number of table supported by ipfw in given VNET instance. 128 is still the default value. New syntax: ipfw add skipto tablearg ip from any to any via table(42) in ipfw add skipto tablearg ip from any to any via table(4242) out This is a bit hackish, special interface name '\1' is used to signal interface table number is passed in p.glob field. Sponsored by Yandex LLC Reviewed by: ae Approved by: ae (mentor) MFC after: 4 weeks END K 10 svn:author V 3 rrs K 8 svn:date V 27 2012-03-12T15:05:17.601797Z K 7 svn:log V 253 This fixes PR 165210. Basically we just add in the netgraph interface to the list of acceptable interfaces. A todo at the next IETF code blitz, though is we need to review why we screen interfaces, there was a reason ;-). PR: 165210 MFC after: 1 week END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-03-12T15:13:17.538569Z K 7 svn:log V 132 Move *mp0 initialization for the direct mbuf dequeue case before the for() loop to correctly move the mbuf's. Reported by: trociny END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-03-12T15:41:36.505910Z K 7 svn:log V 119 Fix VNET build broken by r232865. Temporary remove the ability to assign different number of tables per VNET instance. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-12T17:25:35.744052Z K 7 svn:log V 108 This header file no longer exists when doing cross builds, so remove it. mips24k hwpmc now compiles again. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-12T17:54:17.861296Z K 7 svn:log V 107 MFC r232448: Make sure that the USB system suspend event is executed synchronously and not asynchronously. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-12T17:56:57.796146Z K 7 svn:log V 107 MFC r232448: Make sure that the USB system suspend event is executed synchronously and not asynchronously. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-12T18:10:01.507481Z K 7 svn:log V 134 Remove more unused stuff, primarily a set of (unused, thankfully) PIO functions. Adjust nearby style of one assembly function END(). END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-12T18:13:59.941841Z K 7 svn:log V 50 MFC r230238 and r232684: Add new USB device ID's. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2012-03-12T18:15:08.679998Z K 7 svn:log V 59 More conversions of drivers to use the PCI parent DMA tag. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-12T18:17:43.745773Z K 7 svn:log V 42 MFC r230238 and r232684: Add new USB IDs. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-12T18:22:04.001198Z K 7 svn:log V 42 MFC r232257: Add support for the MCS7832. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-12T18:38:40.125352Z K 7 svn:log V 149 MFC r228485 and r227843: Stop USB audio transfers early so that any audio applications will time out and close opened /dev/dspX.Y device(s), if any. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-12T18:41:41.603132Z K 7 svn:log V 149 MFC r228485 and r228484: Stop USB audio transfers early so that any audio applications will time out and close opened /dev/dspX.Y device(s), if any. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-12T18:44:30.661136Z K 7 svn:log V 64 MFC r232039: Avoid creating PCM devices for MIDI only adapters. END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-03-12T18:50:37.967965Z K 7 svn:log V 91 Fix a bug running the autoinstall functionality. Submitted by: kris Obtained from: PC-BSD END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-12T18:56:16.328463Z K 7 svn:log V 50 Use 64-bit bus space constants on 64-bit kernels. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-03-12T19:29:32.757500Z K 7 svn:log V 156 Remove comments about creating DMA tags as children of the DMA tags of their parent bus where the code has now been modified to do so. Reviewed by: scottl END