ĵ4224187 170 639 537 131 346 346 151 223 566 249 222 3114 297 303 477 588 327 812 204 582 109 347 321 117 150 217 125 154 148 251 323 813 396 519 302 395 168 168 511 361 388 339 380 115 105 242 157 162 162 194 194 3104 195 193 159 256 352 355 878 315 288 219 150 179 260 394 214 189 484 285 269 170 143 580 580 163 128 128 98 175 232 337 334 302 569 389 241 185 160 160 191 191 229 229 210 228 154 293 305 233 286 140 163 297 524 172 398 118 400 464 297 375 229 147 147 390 180 159 166 127 194 598 256 403 403 185 835 135 161 161 161 161 161 161 161 161 162 162 266 266 378 310 172 234 234 166 1802 228 177 492 149 149 161 161 161 161 850 850 374 374 134 134 177 177 173 173 293 293 467 467 369 K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-07-18T15:19:40.971872Z K 7 svn:log V 542 - Remove the eintrcnt/eintrnames usage and introduce the concept of sintrcnt/sintrnames which are symbols containing the size of the 2 tables. - For amd64/i386 remove the storage of intr* stuff from assembly files. This area can be widely improved by applying the same to other architectures and likely finding an unified approach among them and move the whole code to be MI. More work in this area is expected to happen fairly soon. No MFC is previewed for this patch. Tested by: pluknet Reviewed by: jhb Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-18T17:33:08.760416Z K 7 svn:log V 444 - Export each thread's individual resource usage in in struct kinfo_proc's ki_rusage member when KERN_PROC_INC_THREAD is passed to one of the process sysctls. - Correctly account for the current thread's cputime in the thread when doing the runtime fixup in calcru(). - Use TIDs as the key to lookup the previous thread to compute IO stat deltas in IO mode in top when thread display is enabled. Reviewed by: kib Approved by: re (kib) END K 10 svn:author V 3 zml K 8 svn:date V 27 2011-07-18T18:02:06.002659Z K 7 svn:log V 39 Release zkirsch to wreak havoc on NFS. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-07-18T18:06:39.148560Z K 7 svn:log V 253 MFC r223875, r223876: style(9) and cleanup fixes. Add an option to have a fail point term only execute when run by a specified pid. This is helpful for automated testing involving a global knob that would otherwise be executed by many other threads. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-07-18T18:09:10.380129Z K 7 svn:log V 253 MFC r223875, r223876: style(9) and cleanup fixes. Add an option to have a fail point term only execute when run by a specified pid. This is helpful for automated testing involving a global knob that would otherwise be executed by many other threads. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-18T18:25:25.409490Z K 7 svn:log V 59 MFC 223874: Add device ID for the Davicom 56PDV PCI Modem. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-18T18:29:39.119701Z K 7 svn:log V 130 MFC 223952: Properly align the end of a candidate back region based on the window's granularity when growing a PCI-PCI window up. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-18T18:37:15.607479Z K 7 svn:log V 473 MFC 222530,223841: Add a new option to toggle the display of the system idle process (per-CPU idle threads). The process is displayed by default (subject to whether or not system processes are displayed) to preserve existing behavior. The system idle process can be hidden via the '-z' command line argument or the 'z' key while top is running. When it is hidden, top more closely matches the behavior of FreeBSD <= 4.x where idle time was not accounted to any process. END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2011-07-18T18:56:50.837981Z K 7 svn:log V 154 sys/cam/scsi/scsi_all.h: o Apply const qualifiers to in scsi_(2,3,4,8)btoul(). o While touching these APIs, also convert them to use stdint.h types. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-18T19:23:50.050347Z K 7 svn:log V 125 Disable gvmat64.S, the assembler version of longest_match for now. PR: kern/154073 MFC after: 3 days Approved by: re (kib) END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2011-07-18T19:26:16.307435Z K 7 svn:log V 3018 Revamp the CAM enclosure services driver, renaming it to "enc" from "ses" in the process. This updated driver uses an in-kernel daemon to track state changes and publishes physical path location information for disk elements into the CAM device database. share/examples/ses/Makefile.inc: share/examples/ses/srcs/eltsub.c: share/examples/ses/srcs/sesd.c: share/examples/ses/srcs/getencstat.c: share/examples/ses/srcs/setobjstat.c: share/examples/ses/srcs/inienc.c: share/examples/ses/srcs/getobjstat.c: share/examples/ses/srcs/getnobj.c: share/examples/ses/srcs/getobjmap.c: share/examples/ses/srcs/setencstat.c: Update for changes in driver name and API. The ioctl interface is largely unchanged and could use additional refinement. It would be nice to be able to fetch the status of all elements in a single ioctl call and to have the ioctls that return variable length data allow you to query the necessary allocation size by passing in a zero length buffer. sys/sparc64/conf/GENERIC: sys/ia64/conf/GENERIC: sys/mips/conf/OCTEON1: sys/pc98/conf/GENERIC: sys/i386/conf/GENERIC: sys/amd64/conf/GENERIC: ses -> enc sys/conf/files: sys/modules/cam/Makefile: sys/cam/scsi/scsi_enc_internal.h sys/cam/scsi/scsi_enc_ses.c sys/cam/scsi/scsi_enc_safte.c sys/cam/scsi/scsi_ses.c sys/cam/scsi/scsi_enc.c Split the enc driver into a generic driver file and one file each for the SES and SAF-TE personalities. sys/cam/scsi/scsi_ses.h: o Retain this header, but use it to only hold structures derived from the T10 SES spec. The driver interface can be found in scsi_enc.h. o Add definitions for most SES pages. sys/cam/scsi/scsi_enc.c sys/cam/scsi/scsi_enc.h o Use a function vector table to allow interaction between the generic and protocol specific portions of this driver. o Provide a generic mechanism allowing personalities to define a finite state machine that is executed from a daemon thread context. o Track CAM device arrival events and pass these on to personalities that have registered an interest in them. These notifications are used to trigger physical path updates in the CAM EDT. sys/cam/scsi/scsi_enc_safte.c: The SAF-TE personality. This module is largely untouched by this update. To achieve the same level of support as we have for SES, it will need to define an FSM and code to determine the physical paths of elements within the enclosure. sys/cam/scsi/scsi_enc_ses.c: o Implement a state machine to fetch configuration, status, element descriptors, and additional element status. o Build a "element map" that indexes into the config and status data retrieved from a SES device. Use this to simplify our responses to ioctls. o Add support for using SAS domain/phy WWN data to determine the physical path (ence@/type@/slot@) of an element. Stubs are in place for FC, but both FC and SPI will need additional work in order to be supported. Sponsored by: Spectra Logic Corporation Submitted by: gibbs, will END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-07-18T19:42:18.292764Z K 7 svn:log V 200 sintrcnt/sintrnames is the address of the size, not the actual size. Use them appropriately to fetch the actual size. That fixes vmstat -i with kvm backend. Submitted by: peter Approved by: re (kib) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-07-18T20:06:15.364189Z K 7 svn:log V 211 Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN. Provide backward compatibility defines under BURN_BRIDGES. Suggested by: jhb Reviewed by: emaste Sponsored by: Sandvine Incorporated Approved by: re (kib) END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2011-07-18T20:06:49.303471Z K 7 svn:log V 382 sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c: sys/cddl/contrib/opensolaris/uts/common/sys/sysevent/dev.h: Emit "dev_path" instead of "phys_path" in autoexpand events. The "dev_path" already is a devfs path to the device and this avoids having to convert the physical path information into a devfs path in yet another location. Sponsored by: Spectra Logic Corporation END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-07-18T20:07:29.159207Z K 7 svn:log V 495 Fix building of 32-bit compat libraries on amd64 with clang, and using -g, by reverting r219139. The LLVM PR referenced in that revision was fixed in the mean time, and we imported a clang snapshot soon afterwards, so the temporary workaround of disabling clang's integrated assembler is no longer needed. In this particular case, using e.g. DEBUG_FLAGS=-g causes clang to output certain directives into assembly that our version of GNU as chokes on. Reported by: dougb Approved by: re (kib) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-07-18T20:57:43.202121Z K 7 svn:log V 235 Constantly print the command name and if set include the thread name in per-thread mode. Discussed with: jhb Obtained from: Ed Maste at Sandvine Incorporated Sponsored by: Sandvine Incorporated MFC after: 1 week Approved by: re (kib) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-18T21:04:35.195776Z K 7 svn:log V 714 MFC: r223774 The algorithm used by nfscl_getopen() could have resulted in multiple instances of the same lock_owner when a process both inherited an open file descriptor plus opened the same file itself. Since some NFSv4 servers cannot handle multiple instances of the same lock_owner string, this patch changes the algorithm used by nfscl_getopen() in the new NFSv4 client to keep that from happening. The new algorithm is simpler, since there is no longer any need to ascend the process's parentage tree because all NFSv4 Closes for a file are done at VOP_INACTIVE()/VOP_RECLAIM(), making the Opens indistinct w.r.t. use with Lock Ops. This problem was discovered at the recent NFSv4 interoperability Bakeathon. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-18T21:08:14.756034Z K 7 svn:log V 111 Tweak the interactive description of CPU vs WCPU. PR: bin/158819 Submitted by: arundel Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-18T21:15:47.728474Z K 7 svn:log V 489 Rework the dynamic per-CPU stats code a bit. Always set 'statics->ncpus' to the maximum number of CPUs to ensure that lcpustates[] array is always allocated to the maximum size. Previously, if top was started without per-CPU stats it would allocate a smaller lcpustates[] array. When per-CPU stats were then enabled, it would overflow the array and trash the cpustates_columns[] array causing the CPU stats to be printed in the wrong locations. Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 6 grehan K 8 svn:date V 27 2011-07-18T22:00:21.766272Z K 7 svn:log V 14 IFC @ r224187 END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-07-19T00:37:24.446661Z K 7 svn:log V 250 Add the possibility to specify from kernel configs MAXCPU value. This patch is going to help in cases like mips flavours where you want a more granular support on MAXCPU. No MFC is previewed for this patch. Tested by: pluknet Approved by: re (kib) END K 10 svn:author V 6 avatar K 8 svn:date V 27 2011-07-19T03:30:42.620747Z K 7 svn:log V 225 MFC r223035: Using statfs.f_fstypename rather than statfs.f_type whilst performing fstype comparsion as nullfs will copy f_type from underlayer FS. PR: bin/156258 Submitted by: Marcin Wisnicki END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-07-19T03:31:36.299327Z K 7 svn:log V 22 Sync with head@224207 END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-07-19T09:27:37.511773Z K 7 svn:log V 58 Fix a bug that can lead to displaying an incorrect value. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-19T10:41:26.351055Z K 7 svn:log V 124 MFC r223966: Implement an RFTSIGZMB flag to rfork(2) to specify a signal that is delivered to parent when the child exists. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-19T10:45:31.228637Z K 7 svn:log V 33 MFC r223967: Document RFTSIGZMB. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-19T10:48:39.674794Z K 7 svn:log V 57 MFC r224085: - Add missing APIs. - Add some rangechecks. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-19T10:53:47.345979Z K 7 svn:log V 56 Bump __FreeBSD_version for RFTSIGZMB flag for rfork(2). END K 10 svn:author V 3 zec K 8 svn:date V 27 2011-07-19T11:04:58.220296Z K 7 svn:log V 158 MFC r224107: Clear pending ifnet events, in an attempt at preventing ng_ether_link_state() from being dispatched after we have cleared our IFP2NG(ifp). END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-07-19T12:41:57.459674Z K 7 svn:log V 226 On 64 bit architectures size_t is 8 bytes, thus it should use an 8 bytes storage. Fix the sintrcnt/sintrnames specification. No MFC is previewed for this patch. Reported, reviewed and tested by: marcel Approved by: re (kib) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-07-19T13:00:30.215649Z K 7 svn:log V 716 Bump MAXCPU for amd64, ia64 and XLP mips appropriately. From now on, default values for FreeBSD will be 64 maxiumum supported CPUs on amd64 and ia64 and 128 for XLP. All the other architectures seem already capped appropriately (with the exception of sparc64 which needs further support on jalapeno flavour). Bump __FreeBSD_version in order to reflect KBI/KPI brekage introduced during the infrastructure cleanup for supporting MAXCPU > 32. This covers cpumask_t retiral too. The switch is considered completed at the present time, so for whatever bug you may experience that is reconducible to that area, please report immediately. Requested by: marcel, jchandra Tested by: pluknet, sbruno Approved by: re (kib) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-07-19T14:57:59.874789Z K 7 svn:log V 299 Remove pc_name member of struct pcpu. pc_name is only included when KTR option is and it does introduce a subdle KBI breakage that totally breaks vmstat when world and kernel are not in sync. Besides, it is not used somewhere. In collabouration with: pluknet Reviewed by: jhb Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-19T15:22:35.936275Z K 7 svn:log V 423 This patch enables listing DFS related flags when 'ifconfig -v wlanX list channel' is run. The following new options are introduced: * D: channel requires DFS * R: channel has a radar event * I: channel has detected inteference * C: the CAC period has completed on a channel that requires it (ie, DFS + PASSIVE.) It's relevant for developing, debugging and using the DFS and interference options. Approved by: re (bz) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-19T15:24:44.356722Z K 7 svn:log V 206 This sets the BSS channel for each VAP for the given interface. It's only relevant in STA mode. The CSA forces a channel switch for the interface, but doesn't update the VAP channel. Approved by: re (bz) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-07-19T16:50:55.830563Z K 7 svn:log V 298 Remove explicit MAXCPU usage from sys/pcpu.h avoiding a namespace pollution. That is a step further in the direction of building correct policies for userland and modules on how to deal with the number of maxcpus at runtime. Reported by: jhb Reviewed and tested by: pluknet Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-20T00:36:47.378588Z K 7 svn:log V 73 Fix brokenness introduced by my last commit. Approved by: re (implicit) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-20T04:57:40.643408Z K 7 svn:log V 71 MFC r223989: Fix for dump after shutdown with USB keyboard plugged in. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-20T05:59:28.593570Z K 7 svn:log V 415 This patch removes a check in ifconfig which disables HT/40 channels on frequency bands with DFS. All Atheros chipsets >= AR9001 support radar event detection on HT40 extension channels. This should be a chipset specific item rather than enforced in the regulatory domain database. In addition, it's irrelevant for STA mode, as the radar detection is done by the access point, not the STA. Approved by: re (kib) END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-07-20T09:53:35.269563Z K 7 svn:log V 263 Export capability information via sysctls. When reporting on a capability, flag the fact that it is a capability, but also unwrap to report all of the usual information about the underlying file. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-20T12:46:58.670795Z K 7 svn:log V 292 These two are ath_hal regulatory domain updates from the Atheros reference driver. * Australia should use FCC3_WORLD * Add some new SKUs; these are just the EEPROM values and haven't been fully defined yet. As such they won't affect anything. Obtained from: Atheros Approved by: re (kib) END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-07-20T13:29:39.308857Z K 7 svn:log V 241 Add cap_new(2) and cap_getrights(2) symbols to libc. These system calls have already been implemented in the kernel; now we hook up libc symbols so userspace can drive them. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-20T15:18:24.690108Z K 7 svn:log V 287 Note that the "kernel" variable in loader.conf is the name of a directory containing a kernel under /boot and that it's default value is "kernel" not "/boot/kernel/kernel". PR: docs/158992 Reported by: Wayne Mitchell wayne.mitchell.iz at gmail Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-20T16:52:19.506575Z K 7 svn:log V 21 - Add some ERE tests END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-20T16:52:51.787147Z K 7 svn:log V 11 - Fix typo END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-20T16:53:32.420487Z K 7 svn:log V 145 Add a new field to in-core znode, z_rdev, to represent device nodes. PR: kern/159010 Reviewed by: mm@ Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-20T18:51:18.589530Z K 7 svn:log V 62 Merge from r224217: Bump MAXCPU to 64. Approved by: re (kib) END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2011-07-20T20:24:30.334993Z K 7 svn:log V 65 MFC r223957: Fix media reporting for dual port CX4 myri10ge NICs END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2011-07-20T20:24:40.216877Z K 7 svn:log V 65 MFC r223957: Fix media reporting for dual port CX4 myri10ge NICs END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2011-07-20T21:17:55.110835Z K 7 svn:log V 97 MFC r223958: Update mxge(4) firmware to the latest version available from Myricom (1.4.53a). END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2011-07-20T21:18:05.480573Z K 7 svn:log V 97 MFC r223958: Update mxge(4) firmware to the latest version available from Myricom (1.4.53a). END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2011-07-20T22:48:48.076718Z K 7 svn:log V 3008 Allow ZFS asynchronous event handling to proceed even if the root file system is mounted read-only. This restriction appears to have been put in place to avoid errors with updating the configuration cache file. However: o The majority of asynchronous event handling does not involve configuration cache file updates. o The configuration cache file need not be on the root file system, so the check was not complete. o Other classes of errors (e.g. file system full) can also prevent a successful update yet do not prevent asynchronous event processing. o Configurations such as NanoBSD never have a read-write root, so ZFS event processing is permanently disabled in these systems. o Failure to handle asynchronous events promptly can extend the window of time that a pool is in a critical state. At worst, a missed configuration cache update will force the operator to perform a manual "zfs import" (note -f is not required) to inform the system about a newly created pool. To minimize the likelihood of this rare occurrence, configuration cache write failures now emit FMA events so the operator can take corrective action, and the write is retried every 5 minutes. The retry interval, in seconds, is tunable via the sysctl "vfs.zfs.ccw_retry_interval". sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c: o Add the sysctl "vfs.zfs.ccw_retry_interval". The value defaults to 5 minutes and is used to rate limit, on a per-pool basis, configuration cache file write attempts. o Modify spa_async_dispatch to honor configuration cache write limiting. If other events are pending, a configuration cache write will be attempted at the same time, so the rate limiting only applies when the asynchronous dispatch system is otherwise idle. Async events should be rare (e.g. device arrival/departure) and configuration cache writes rarer, so a more complicated system to strictly honor the retry limit seems unwarranted. o Remove check in spa_async_dispatch() for the root file system being read-write. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c: Instead of silently ignoring configuration cache write failures, report them via a new FMA event as well as to the console. The current zfs_ereport_post() doesn't allow arbitrary name=value pairs to be appended to the report, so the configuration cache file name is only available on the console output. This limitation should be addressed in a future update. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/spa_impl.h: Add a uint64_t to the spa data structure to track the time (via LBOLT) of the last configuration cache file write failure. This is referenced in spa_async_dispatch() to effect the rate limiting. sys/cddl/contrib/opensolaris/uts/common/sys/fm/fs/zfs.h: Add FM_EREPORT_ZFS_CONFIG_CACHE_WRITE as an ereport class. Sponsored by: Spectra Logic Corporation END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-21T00:37:32.485585Z K 7 svn:log V 99 MFC r224196: Disable gvmat64.S, the assembler version of longest_match for now. PR: kern/154073 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-21T06:55:43.213766Z K 7 svn:log V 96 Add new USB ID to u3g driver. Approved by: re (kib) Submitted by: Nick Hibma MFC after: 3 days END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-21T07:04:51.772246Z K 7 svn:log V 62 MFC r224024: Restore USB MIDI transmit buffer size to 1Kbyte. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-21T07:08:39.326897Z K 7 svn:log V 158 MFC r224180: Only the USB root HUB thread is allowed to attach and detach drivers to and from USB devices. Remove related DEVMETHOD() lines from USB drivers. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-21T08:31:55.283284Z K 7 svn:log V 256 This re-enables HT40 channels for use when DFS is enabled. These should be disabled for the AR5416 in hostap/mesh/ibss mode, as the AR5416 doesn't have support for radar detection on the ext channel of a HT40 setup. Later chips do. Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-21T08:35:10.233702Z K 7 svn:log V 259 Break out the PLL setup into (mostly) per-chip methods, rather than polluting the AR5416 code with later chipset support. Note: ar9280InitPLL() supports Merlin (AR9280) and later (AR9285, AR9287.) Submitted by: ssgriffonuser@gmail.com Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-21T14:16:42.240229Z K 7 svn:log V 782 Modify the radar API a little to be easier to "change" via run-time tools. * introduce pe_enabled, which (will) indicate whether the radar detection stuff is enabled or not. Right now it's incorrectly set, based on something previously written. I'll sort it out later. * Don't set HAL_PHYERR_PARAM_ENABLE in pe_relstep to say whether radar detection is on. * Return whether blockradar, fir128 and enmaxrssi is enabled. * Change some of the phyerr params to be integers rather than HAL_BOOL so they can be set to the NOPARAM value when the setup function is called. This is in line with other radar parameters. * Add new configuration parameters for fir128, blockradar and enmaxrssi, rather than defaulting to off, on and on respectively. Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-21T14:25:12.743435Z K 7 svn:log V 219 This links in the ath dfs ioctl into the driver and defines the ioctl interface for DFS modules to use. Since there's no open source dfs code yet, this doesn't introduce any operational changes. Approved by: re (kib) END K 10 svn:author V 3 gnn K 8 svn:date V 27 2011-07-21T16:32:13.799258Z K 7 svn:log V 195 Make both stpcpy and strcpy be assembly language implementations on amd64. Submitted by: Guillaume Morin (guillaume at morinfr.org) Reviewed by: kib, jhb Approved by: re (bz) MFC after: 1 month END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-21T17:20:44.907276Z K 7 svn:log V 124 - Add some sanity checks for REG_STARTEND offsets - Use btowc() instead of mbrtowc() if input is not in a multibyte charset END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-21T19:06:51.863809Z K 7 svn:log V 56 - Add -s flag to cut to be more safe with comment lines END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-21T19:07:38.058965Z K 7 svn:log V 85 - Remove some tests that do not work with the shell script - Add some more ERE tests END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-07-21T19:39:40.453119Z K 7 svn:log V 167 Fix `diskinfo -t` operation for disks smaller then 8GB or bigger then 2TB. Tested to work with 1.44MB floppy, 4GB USB stick and 4TB disk array. Approved by: re (kib) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-21T20:01:51.512722Z K 7 svn:log V 297 A different implementation of r224231 proposed by pjd@, which does not require change in the znode structure. Specifically, it queries rdev from the znode in the same sa_bulk_lookup already done in zfs_getattr(). Submitted by: pjd (with some revisions) Reviewed by: pjd, mm Approved by: re (kib) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-21T20:02:22.981347Z K 7 svn:log V 117 Bring the code more in-line with OpenSolaris source to ease future port. Reviewed by: pjd, mm Approved by: re (kib) END K 10 svn:author V 3 gnn K 8 svn:date V 27 2011-07-21T20:06:14.203778Z K 7 svn:log V 97 Remove incorrect attribution. Approved by: re (kib) Pointed out by: brueffer Pointy hat to: gnn END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-21T20:43:43.074342Z K 7 svn:log V 391 Allow non-fixed endpoints for a producer address range if the length of the resource covers the entire range. Some BIOSes appear to mark endpoints as non-fixed incorrectly (non-fixed endpoints are supposed to be used in _PRS when OSPM is allowed to allocate a certain chunk of address space within a larger range, I don't believe it is supposed to be used for _CRS). Approved by: re (kib) END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-07-21T21:08:33.772230Z K 7 svn:log V 187 Declare more capability method rights. This is a complete set of rights that can be held in a capability's rights mask. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-21T21:52:59.299641Z K 7 svn:log V 174 - Fix skipping characters in multibyte strings - Faster initialization of matching params - Fix a bug regarding matching . - Compare from behind because it is more efficient END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-21T23:22:09.034791Z K 7 svn:log V 76 - Use TRE's internal macros where possible - Add some more portability nits END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-22T00:29:12.182733Z K 7 svn:log V 49 - Add support for testing with different locales END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-07-22T00:57:37.043833Z K 7 svn:log V 487 MFC 216823, 223991, 223992: 216823 (by pjd): - For compatibility with Linux and Solaris add poweroff(8). It is implemented as a hard link to shutdown(8) and it is equivalent of: # shutdown -p now While I'm here put one line of usage into one line of C code so it is easier to grep(1) and separate unrelated code with empty line. 223991: - Improvements to the shutdown(8) manual. 223992: - Remove trailing whitespace in the shutdown(8) manual. Approved by: delphij END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-07-22T00:58:09.437586Z K 7 svn:log V 487 MFC 216823, 223991, 223992: 216823 (by pjd): - For compatibility with Linux and Solaris add poweroff(8). It is implemented as a hard link to shutdown(8) and it is equivalent of: # shutdown -p now While I'm here put one line of usage into one line of C code so it is easier to grep(1) and separate unrelated code with empty line. 223991: - Improvements to the shutdown(8) manual. 223992: - Remove trailing whitespace in the shutdown(8) manual. Approved by: delphij END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-22T01:57:26.715258Z K 7 svn:log V 69 - Actually shift with the calculated offset - Simplify shifting code END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-07-22T04:01:37.892817Z K 7 svn:log V 33 Update to LLVM revision r132879. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-07-22T04:02:35.877152Z K 7 svn:log V 33 Update to LLVM revision r132879. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-22T06:07:20.034220Z K 7 svn:log V 4 IFC END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-22T06:47:09.058650Z K 7 svn:log V 80 Add baw_head / baw_tail ; comment how the whole ring setup is going to be used. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-22T09:34:31.255195Z K 7 svn:log V 136 Add athradar, an implementation of the radar parameter diagnostic API. This is a reimplementation from scratch. Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-22T09:39:49.736229Z K 7 svn:log V 241 Implement a basic radar parameter API in the dfs_null module. Since no actual radar data is ever handled, this won't do anything. It's mostly here as a reference for those who wish to experiment with radar detection. Approved by: re (kib) END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-07-22T12:50:21.683675Z K 7 svn:log V 236 Turn on AUDIT_ARG_RIGHTS() for cap_new(2). Now that the code is in place to audit capability method rights, start using it to audit the 'rights' argument to cap_new(2). Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-22T15:37:23.130383Z K 7 svn:log V 204 Add missing XHCI early takeover code. The XHCI takeover code is supposed to disable the BIOS from using the XHCI controller after bootup. Approved by: re (kib) Reported by: Mike Tancsa MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-07-22T16:37:04.054131Z K 7 svn:log V 476 - Use mutex to serialize index/data register pair usage, when accessing SATA registers. Unserialized access under heavy load caused wrong speed reporting and potentially could cause device loss. - To free memory and other resources (including above), allocated during chipinit() method call on attach, add new chipdeinit() method, called during driver detach. Submitted by: Andrew Boyer (initial version) Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-07-22T16:42:12.310701Z K 7 svn:log V 293 Fix the following bugs related to the SCTP support of netstat: * Correctly handle -a. * -A isn't supported. * Show all closed 1-to-1 and 1-to-many style sockets. * Show all listening 1-to-many style sockets. * Use consistent formatting for -W. PR: 150642 Approved by: re@ MFC after: 4 weeks. END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-07-22T18:03:33.082457Z K 7 svn:log V 143 Default debugging error messages to off for journaled soft updates sysctls. Delete limiting on output of these sysctls. Approved by: re (kib) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-22T21:08:19.785046Z K 7 svn:log V 91 Revert the apparently-unecessary module_path twiddling from r223917 Approved by: re (kib) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-22T21:40:55.060125Z K 7 svn:log V 66 MFC r224122: Fix the location of the default pid file in named.8 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-22T21:41:09.063311Z K 7 svn:log V 66 MFC r224122: Fix the location of the default pid file in named.8 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-22T21:43:16.102127Z K 7 svn:log V 97 MFC r224124: Pick up the 2011-06-08 update to this file, the addition of an IPv6 address for D. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-22T21:43:23.280997Z K 7 svn:log V 97 MFC r224124: Pick up the 2011-06-08 update to this file, the addition of an IPv6 address for D. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-22T21:45:12.375038Z K 7 svn:log V 134 MFC r224125: Commemorate the release of RFC 6303 by updating the comments regarding our default empty zones. No functional changes. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-22T21:45:28.797905Z K 7 svn:log V 134 MFC r224125: Commemorate the release of RFC 6303 by updating the comments regarding our default empty zones. No functional changes. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-23T08:55:05.432755Z K 7 svn:log V 112 MFC r224095: Fix for VirtualBox 4.x and other virtual machines that fail to generate a port reset change event. END K 10 svn:author V 8 deischen K 8 svn:date V 27 2011-07-23T12:55:01.645816Z K 7 svn:log V 130 MFC r218627 Allow SO_SETFIB to select/set the default routing table. Requested by: Andrew Boyer aboyer at averesystems dot com. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-07-23T18:03:08.429925Z K 7 svn:log V 58 Suppress bogus message during "Checking filesystem state" END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-07-23T22:11:40.815837Z K 7 svn:log V 200 Do not try to execute FLUSHCACHE on close and print extra messages for invalidated (considered lost) ada device. Exactly same already done for the da devices. Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-07-23T22:55:32.784041Z K 7 svn:log V 212 Fix various broken links in manual pages. Submitted by: Michiel Overtoom (motoom % xs4all nl) PR: 159130 159131 159132 159133 159134 159135 159136 159137 158138 159144 Approved by: re (kib) MFC after: 3 days END K 10 svn:author V 5 brian K 8 svn:date V 27 2011-07-24T01:36:01.627613Z K 7 svn:log V 138 MFC r218397: Add "iface name" and "iface description" commands. PR: 151400 Submitted by: Aragon Gouveia - aragon at phat dot za dot net END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-07-24T03:34:38.409946Z K 7 svn:log V 193 Document the potential for jail escape. Submitted by: Vedad KAJTAZ (vedad % kajtaz net) PR: 142341 Reviewed by: bz, rwatson Rewording by: rwatson Approved by: re (kensmith) MFC after: 3 days END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-24T09:43:44.742886Z K 7 svn:log V 43 MFC r224239: Add new USB ID to u3g driver. END K 10 svn:author V 6 sanpei K 8 svn:date V 27 2011-07-24T11:56:39.012345Z K 7 svn:log V 68 Fix svn:mergeinfo for merge of r216057 Approved by: imp(menter) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-07-24T17:24:26.116812Z K 7 svn:log V 201 MFC r212374,r221026: printf(1): Document need for "--" before format strings starting with "-". Also move the remark that hexadecimal escapes are not provided to the new CAVEATS section. PR: 158846 END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-07-24T17:43:09.548861Z K 7 svn:log V 426 This update changes the mnt_flag field in the mount structure from 32 bits to 64 bits and eliminates the unused mnt_xflag field. The existing mnt_flag field is completely out of bits, so this update gives us room to expand. Note that the f_flags field in the statfs structure is already 64 bits, so the expanded mnt_flag field can be exported without having to make any changes in the statfs structure. Approved by: re (bz) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-07-24T17:52:35.504344Z K 7 svn:log V 77 MFC r221013: printf(1): Mention effect of '#' modifier on other conversions. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2011-07-24T18:03:02.572538Z K 7 svn:log V 301 MFC: 220736, 220806, 220808 If we can retrieve interface address sleep for one second and try again. This can happen during start-up, when natd starts before dhclient has a chance to receive IP address from the upstream provider. Do this only in background, dynamic mode. Reminded by: brian END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-24T18:16:14.642821Z K 7 svn:log V 24 - Actually fix shifting END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-07-24T18:27:09.611672Z K 7 svn:log V 302 Move the MNTK_SUJ flag in mnt_kern_flag to MNT_SUJ in mnt_flag so that it is visible to userland programs. This change enables the `mount' command with no arguments to be able to show if a filesystem is mounted using journaled soft updates as opposed to just normal soft updates. Approved by: re (bz) END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-07-24T19:13:54.741830Z K 7 svn:log V 372 MFC r223744: Improve portability of config(8). - Use strlen(dp->d_name) instead of the unportable dp->d_namlen. Rename i to len to make it slightly more descriptive and prevent negative indexing of the array. - Replace index() by strchr(). This supposedly fixes compilation on GNU systems. Submitted by: Robert Millan (original patch) END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-07-24T19:19:50.218425Z K 7 svn:log V 205 MFC r216696 and r216737: Slightly improve output of lock(1). - Remove the /dev/ portion of the TTY name. - In case we use lock -p, print the username that was used to obtain the password hash. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-07-24T20:09:42.874180Z K 7 svn:log V 279 MFC r207735: Update xrefs from 4.3BSD to modern signal functions in various man pages. sigvec(2) references have been updated to sigaction(2), sigsetmask(2) and sigblock(2) to sigprocmask(2), sigpause(2) to sigsuspend(2). Some legacy man pages still refer to them, that is OK. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-07-24T23:02:24.335768Z K 7 svn:log V 132 Add a great deal of error handling. A specific case that causes pollmachine to go catatonic seems to be the "disk full" condition. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-24T23:43:40.039434Z K 7 svn:log V 53 MFC r197728: Add OpenVPN IANA assigned port number. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-24T23:44:16.509414Z K 7 svn:log V 53 MFC r197728: Add OpenVPN IANA assigned port number. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2011-07-25T00:17:20.498380Z K 7 svn:log V 293 MFC: Strip any leading slashes before feeding the label to the geom_label code. Some linux distros put mount point into the ext2fs labels, such as '/', or '/boot', which confuses the devfs code and can cause userland programs to fail reading /dev/ext2fs directory with weird error code. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2011-07-25T01:42:51.914233Z K 7 svn:log V 84 MFC: re-work dump progress indicator to work better with more than few gigs of RAM. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-07-25T06:31:04.165218Z K 7 svn:log V 67 Fix an abnormal termination caused by twice of "rtadvctl disable". END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-07-25T06:31:31.394414Z K 7 svn:log V 74 Use poll() to wait for the control message socket instead of a spin loop. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-07-25T07:14:59.353553Z K 7 svn:log V 35 Add a closing '.El' tag (r224148). END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2011-07-25T07:45:22.211950Z K 7 svn:log V 98 MFC: Add new modifier - "R", path to executable to run after rotatiion instead of sending signal. END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-07-25T09:12:48.970655Z K 7 svn:log V 505 remove RESTARTABLE_PANICS option This is done per request/suggestion from John Baldwin who introduced the option. Trying to resume normal system operation after a panic is very unpredictable and dangerous. It will become even more dangerous when we allow a thread in panic(9) to penetrate all lock contexts. I understand that the only purpose of this option was for testing scenarios potentially resulting in panic. Suggested by: jhb Reviewed by: attilio, jhb X-MFC-After: never Approved by: re (kib) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-25T13:50:54.003545Z K 7 svn:log V 164 MFC r223935: Update xz to git snapshot of v5.0 branch as of 20110711 (post-5.0.3) For architectures with __NO_STRICT_ALIGNMENT define TUKLIB_FAST_UNALIGNED_ACCESS END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:30:44.822215Z K 7 svn:log V 307 MFC: r216016 Define VM_KMEM_SIZE_MAX on sparc64. Otherwise kernel built with DEBUG_MEMGUARD panics early in kmeminit() with the message "kmem_suballoc: bad status return of 1" because of zero "size" argument passed to kmem_suballoc() due to "vm_kmem_size_max" being zero. The problem also exists on ia64. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:33:37.023659Z K 7 svn:log V 307 MFC: r216016 Define VM_KMEM_SIZE_MAX on sparc64. Otherwise kernel built with DEBUG_MEMGUARD panics early in kmeminit() with the message "kmem_suballoc: bad status return of 1" because of zero "size" argument passed to kmem_suballoc() due to "vm_kmem_size_max" being zero. The problem also exists on ia64. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:34:30.640121Z K 7 svn:log V 90 MFC: r219782 On Serengeti-class machines the OFW root isn't the parent of the CPU nodes. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:39:22.840275Z K 7 svn:log V 739 MFC: r220931 - Use the streaming cache unless BUS_DMA_COHERENT is specified. Since r220375 (MFC'ed to stable/8 in r221191) all drivers enabled in the sparc64 GENERIC should be either correctly using bus_dmamap_sync(9) calls or supply BUS_DMA_COHERENT when appropriate or as a workaround for missing bus_dmamap_sync(9) calls (sound(4) drivers and partially sym(4)). In at least some configurations taking advantage of the streaming cache results in a modest performance improvement. - Remove the memory barrier for BUS_DMASYNC_PREREAD which as the comment already suggested is bogus. - Add my copyright for having implemented several things like support for the Fire and Oberon IOMMUs, taking over PROM IOMMU mappings etc. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:42:34.164727Z K 7 svn:log V 40 MFC: r221750 Add an ATOMIC_CLEAR_LONG. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:43:51.813186Z K 7 svn:log V 66 MFC: r220938 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:44:00.762915Z K 7 svn:log V 66 MFC: r220938 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:45:13.565071Z K 7 svn:log V 66 MFC: r220939 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:45:17.727936Z K 7 svn:log V 66 MFC: r220939 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:46:24.824901Z K 7 svn:log V 66 MFC: r220940 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T14:46:24.894095Z K 7 svn:log V 66 MFC: r220940 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T15:01:37.802703Z K 7 svn:log V 66 MFC: r220941 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T15:01:40.114239Z K 7 svn:log V 66 MFC: r220941 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T15:05:37.277646Z K 7 svn:log V 67 MFC: r220943 Correct spelling in a comment. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T15:05:37.646708Z K 7 svn:log V 67 MFC: r220943 Correct spelling in a comment. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T15:10:52.908552Z K 7 svn:log V 170 MFC: r220944, r220950 - Correct spelling. [1] - Remove variables which are unused besides initialization. [2] Submitted by: brucec, N.J. Mann [1], Christoph Mallon [2] END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T15:10:53.364685Z K 7 svn:log V 170 MFC: r220944, r220950 - Correct spelling. [1] - Remove variables which are unused besides initialization. [2] Submitted by: brucec, N.J. Mann [1], Christoph Mallon [2] END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-07-25T15:14:03.921482Z K 7 svn:log V 286 Flush output buffers before closing TCP session. Fixes the case where the proxy would eat the 221 response coming from the server towards the client. This is a commit as HEAD got the change with the entire pf45 import. PR: bin/154469 Obtained from: OpenBSD r1.18 MFC after: 2 weeks END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T16:11:52.465766Z K 7 svn:log V 214 MFC: r198262 Use callout_init_mtx on FreeBSD versions recent enough. This closes the race where interrupt thread can complete the request for which timeout has fired and while mpt_timeout has blocked on mpt_lock. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T16:14:36.696651Z K 7 svn:log V 77 MFC: r207543 Print IR_RESYNC updates informatively. Obtained from: pluknet END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T16:20:00.172261Z K 7 svn:log V 138 MFC: r210943 Figure which is the IO and MEM bars- do not assume that they are in a fixed order. PR: 149220 Obtained from: John Baldwin END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T16:20:02.302266Z K 7 svn:log V 138 MFC: r210943 Figure which is the IO and MEM bars- do not assume that they are in a fixed order. PR: 149220 Obtained from: John Baldwin END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T16:24:27.410987Z K 7 svn:log V 71 MFC: r203484 Do not release device, when changing number of openings. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T16:45:12.750275Z K 7 svn:log V 1705 MFC: r209599 (partial), r209960: r209960 | marius - Make the maxsize parameter of the data buffer DMA tag match maxio, which was missed in r209599. Reported and tested by: Michael Moll - Declare mpt_dma_buf_alloc() static just like mpt_dma_buf_free(), both are used in mpt.c only. Reviewed by: ken MFC after: r209599 r209599 | ken Change the mpt driver to allow larger I/O sizes. The mpt driver previously didn't report a 'maxio' size to CAM, and so the da(4) driver limited I/O sizes to DFLTPHYS (64K) by default. The number of scatter gather segments allowed, as reported to busdma, was (128K / PAGE_SIZE) + 1, or 33 on architectures with 4K pages. Change things around so that we wait until we've determined how many segments the adapter can support before creating the busdma tag used for buffers, so we can potentially support more S/G segments and therefore larger I/O sizes. Also, fix some things that were broken about the module unload path. It still gets hung up inside CAM, though. mpt.c: Move some busdma initialization calls in here, and call them just after we've gotten the IOCFacts, and know how many S/G segments this adapter can support. mpt.h: Add max_cam_seg_cnt. mpt_cam.c: Fix the locking in mpt_cam_detach(). mpt_pci.c: Pull some busdma initialization and teardown out and put it in mpt.c. We now delay it until we know many scatter gather segments the adapter can support, and therefore how to setup our busdma tags. mpt_raid.c: Make sure we wake up the right wait channel to get the raid thread to wake up when we're trying to shut it down. Reviewed by: gibbs, mjacob MFC after: 2 weeks END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-07-25T16:45:47.799329Z K 7 svn:log V 130 Add PCI and USB support for Netlogic XLP boards. Remove iodi.c Use the PCI code and some fixups to handle internal PCI like bus. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T16:54:31.581657Z K 7 svn:log V 82 MFC: r195274 Change explicit maximium numbers to the defined macro MPT_MAX_LUNS. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T16:59:41.584326Z K 7 svn:log V 396 MFC: r219335 - Allocate the DMA memory shared between the host and the controller as coherent. - Add some missing bus_dmamap_sync() calls. This includes putting such calls before calling reply handlers instead of calling bus_dmamap_sync() for the request queue from individual reply handlers as these handlers generally read back updates by the controller. Tested on amd64 and sparc64. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:01:13.913280Z K 7 svn:log V 54 MFC: r220945 Correct spelling. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:01:14.535794Z K 7 svn:log V 54 MFC: r220945 Correct spelling. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:12:52.796429Z K 7 svn:log V 66 MFC: r220951 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:12:55.683313Z K 7 svn:log V 66 MFC: r220951 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:14:49.009316Z K 7 svn:log V 66 MFC: r221344 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:14:55.671495Z K 7 svn:log V 66 MFC: r221344 Correct spelling in comments. Submitted by: brucec END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:18:46.210258Z K 7 svn:log V 754 MFC: r221954 When setting media always and not just in case of switching to IFM_AUTO clear the options of the current media, i.e. only inherit the instance, which matches what NetBSD does. Without this it's really non-intuitive that the following sequence: ifconfig bge0 media 1000baseT mediaopt full-duplex ifconfig bge0 media 100baseTX results in 100baseTX full-duplex to be set or that: ifconfig bge0 media autoselect mediaopt flowcontrol ifconfig bge0 media 1000baseT mediaopt full-duplex tries to set 1000baseT full-duplex with flowcontrol, which isn't suported und thus fails while the following: ifconfig re0 media 1000baseT mediaopt flowcontrol,full-duplex ifconfig re0 media autoselect just switches to autoselection without flowcontrol. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:18:47.962830Z K 7 svn:log V 754 MFC: r221954 When setting media always and not just in case of switching to IFM_AUTO clear the options of the current media, i.e. only inherit the instance, which matches what NetBSD does. Without this it's really non-intuitive that the following sequence: ifconfig bge0 media 1000baseT mediaopt full-duplex ifconfig bge0 media 100baseTX results in 100baseTX full-duplex to be set or that: ifconfig bge0 media autoselect mediaopt flowcontrol ifconfig bge0 media 1000baseT mediaopt full-duplex tries to set 1000baseT full-duplex with flowcontrol, which isn't suported und thus fails while the following: ifconfig re0 media 1000baseT mediaopt flowcontrol,full-duplex ifconfig re0 media autoselect just switches to autoselection without flowcontrol. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:20:33.125209Z K 7 svn:log V 278 MFC: r221955 - Add 10baseT as an alias for 10baseT/UTP. - Add shorthand aliases for common media+option combinations as announced by miibus(4) so that one can actually supply the media strings found in the dmesg output to ifconfig(8). Obtained from: NetBSD (in principle) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:20:36.362651Z K 7 svn:log V 278 MFC: r221955 - Add 10baseT as an alias for 10baseT/UTP. - Add shorthand aliases for common media+option combinations as announced by miibus(4) so that one can actually supply the media strings found in the dmesg output to ifconfig(8). Obtained from: NetBSD (in principle) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:31:09.571027Z K 7 svn:log V 39 MFC: r221957 Add support for MK48T37. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:31:09.739155Z K 7 svn:log V 39 MFC: r221957 Add support for MK48T37. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:32:22.274281Z K 7 svn:log V 82 MFC: r221958 Recognize the eeprom device found in Fujitsu PRIMEPOWER650 and 900. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:32:22.462594Z K 7 svn:log V 82 MFC: r221958 Recognize the eeprom device found in Fujitsu PRIMEPOWER650 and 900. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:37:53.209027Z K 7 svn:log V 78 MFC: r221960 Recognize the SAB 82532 found in Fujitsu PRIMEPOWER650 and 900. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:37:54.453815Z K 7 svn:log V 78 MFC: r221960 Recognize the SAB 82532 found in Fujitsu PRIMEPOWER650 and 900. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:54:04.821118Z K 7 svn:log V 197 MFC: r222828 (partial) - Test KTR_CPUMASK against pc_cpuid rather than pc_mid to match what the C version does. - Initialize global registers early in the MP startup code so PCPU can be used. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:54:05.656432Z K 7 svn:log V 197 MFC: r222828 (partial) - Test KTR_CPUMASK against pc_cpuid rather than pc_mid to match what the C version does. - Initialize global registers early in the MP startup code so PCPU can be used. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:56:06.481069Z K 7 svn:log V 371 MFC: r222840 - For the case when tl1_align(_trap) is used to call rsf_fatal via RSF_FATAL we need to switch to alternate globals for KSTACK_CHECK just like tl1_data_excptn(_trap) does. This is more or less cosmetic because in case RSF_FATAL is called we're already heading south. - Correct an END(). - Read the window state from the correct register for a CATR(). END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T17:56:06.996494Z K 7 svn:log V 371 MFC: r222840 - For the case when tl1_align(_trap) is used to call rsf_fatal via RSF_FATAL we need to switch to alternate globals for KSTACK_CHECK just like tl1_data_excptn(_trap) does. This is more or less cosmetic because in case RSF_FATAL is called we're already heading south. - Correct an END(). - Read the window state from the correct register for a CATR(). END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-25T18:17:11.004092Z K 7 svn:log V 273 MFC: r223126 (partial) Don't include curcpu in the mask which is used as the IPI cookie as we have to ignore it when sending the IPI anyway. Actually I can't think of a good reason why this ever was done that way in the first place as it's not even usefull for debugging. END