ƒ´o227762 178 173 198 201 164 167 174 141 354 224 305 219 197 394 206 953 150 876 423 150 163 225 629 232 358 244 151 525 574 214 1106 219 183 429 149 260 255 288 392 256 190 619 329 126 415 392 212 292 363 1228 148 242 538 244 140 251 250 248 475 460 399 269 227 305 171 173 844 162 356 174 109 206 503 255 2312 345 352 213 174 138 183 561 516 124 139 182 163 205 217 699 332 182 272 889 522 130 286 121 170 262 111 297 608 126 168 263 122 331 169 160 187 357 136 147 273 108 272 152 477 477 453 453 134 352 227 352 225 249 249 467 227 467 257 198 198 117 114 173 173 276 171 158 118 240 347 146 137 114 202 453 227 245 361 297 174 430 274 164 320 620 1049 305 508 665 219 799 508 113 113 242 242 148 250 116 165 136 108 240 240 K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-20T17:06:20.036587Z K 7 svn:log V 76 MFC: r227275 Add qlxgb(4) to the hardware notes. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-20T17:08:32.647297Z K 7 svn:log V 100 MFC: r227466, r227480, r227516 Add mps(4) and mvs(4) to the hardware notes. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-20T17:09:13.079408Z K 7 svn:log V 103 MFC: r227466, r227480, r227516 Add mps(4) and mvs(4) to the hardware notes. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-20T17:11:11.753293Z K 7 svn:log V 67 MFC: r227742 Add 2010 and 2011 copyrights. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-20T17:11:49.641600Z K 7 svn:log V 70 MFC: r227742 Add 2010 and 2011 copyrights. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-20T17:15:32.640168Z K 7 svn:log V 77 MFC: r227466, r227480, r227516 Add mps(4) and mvs(4) to the hardware notes. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-20T18:01:45.369440Z K 7 svn:log V 44 MFC: r227742 Add 2010 and 2011 copyrights. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-11-20T19:05:32.172896Z K 7 svn:log V 261 Add a note to src/Makefile that explains that 'rm' runs twice because the second invocation only needs to operate on files with the immutable flag set. Submitted by: arundel (via private email) (original version) Discussed on: -toolchain@ MFC after: 3 days END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-11-20T19:27:52.882370Z K 7 svn:log V 131 Fix the note in r227769 to be less specific to the immutable flag. Submitted by: arundel MFC after: 3 days X-MFC-With: r227769 END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-11-20T20:05:47.610000Z K 7 svn:log V 212 Replace 'chflags' with 'file flags' in a comment, since 'chflags' is a command, not a flag itself. While here, wrap a line for readability. Submitted by: arundel MFC after: 3 days X-MFC-With: 227769, 227770 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-11-20T21:47:25.766850Z K 7 svn:log V 118 IFC @ r227771. Of particular interest here are virtio drivers, which should be useful for the QEMU pSeries emulation. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-11-20T21:48:50.207836Z K 7 svn:log V 101 sh: Allow unsetting OPTIND. Note that only assigning the decimal value 1 resets getopts, as before. END K 10 svn:author V 6 wblock K 8 svn:date V 27 2011-11-21T00:02:49.755510Z K 7 svn:log V 298 Add a section that explicitly describes partitioning schemes. Modify existing sections to refer to the new one. Rearrange partitioning scheme list so MBR and EBR types are together. Also add several corrections for grammar, clarity, and consistency. Approved by: gjb (mentor) MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-11-21T00:49:46.784106Z K 7 svn:log V 105 Connect LLVM/clang to the build on powerpc64. After the binutils 2.17.50 import, it works without issue. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-11-21T01:26:10.658959Z K 7 svn:log V 855 - Add the ffclock_getcounter(), ffclock_getestimate() and ffclock_setestimate() system calls to provide feed-forward clock management capabilities to userspace processes. ffclock_getcounter() returns the current value of the kernel's feed-forward clock counter. ffclock_getestimate() returns the current feed-forward clock parameter estimates and ffclock_setestimate() updates the feed-forward clock parameter estimates. - Document the syscalls in the ffclock.2 man page. - Regenerate the script-derived syscall related files. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au) END K 10 svn:author V 6 wblock K 8 svn:date V 27 2011-11-21T02:03:18.963564Z K 7 svn:log V 55 Fix date. Approved by: gjb (mentor) MFC after: 1 week END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-11-21T04:17:24.321784Z K 7 svn:log V 778 - When feed-forward clock support is compiled in, change the BPF header to contain both a regular timestamp obtained from the system clock and the current feed-forward ffcounter value. This enables new possibilities including comparison of timekeeping performance and timestamp correction during post processing. - Add the net.bpf.ffclock_tstamp sysctl to provide a choice between timestamping packets using the feedback or feed-forward system clock. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-11-21T04:35:23.678085Z K 7 svn:log V 322 The PPC IRQ layer assumes that the IPI IRQ is the last IRQ on the PIC. This assumption is invalid and the code should be fixed, but humor it for now and set the "IPI" for PS3s in the non-SMP case to a large number. This fixes boot with a non-SMP kernel. Submitted by: geoffrey dot levand at mail dot ru MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-21T06:45:12.545583Z K 7 svn:log V 55 Always leave the -current kernel debugging options on. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-11-21T07:50:29.430329Z K 7 svn:log V 66 Add new USB IDs to RUN driver. PR: usb/162712 MFC after: 1 week END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-11-21T07:55:37.396459Z K 7 svn:log V 127 XLP processors have the release 2 pagegrain register Add accessors to cpufunc.h Obtained from: prabhath at netlogicmicro com END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-11-21T08:12:36.906584Z K 7 svn:log V 531 Merge XLP 3XX updates and related rework. * Update message station (CMS) code, read queue ids from PCI header. * Use interrupts to wakeup message handling threads on 3XX * Update PIC code, read interrupt information from PCI header instead of using fixed values. * Update PCI interrupt handling for the PIC change. * Update code for getting chip frequency, new code support XLP 3XX * Misc style(9) fixes In collaboration with: prabhath at netlogicmicro com (CMS/PIC) venkatesh at netlogicmicro.com (PCI) END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-11-21T10:36:57.425570Z K 7 svn:log V 135 Use the acquired reference to the vmspace instead of direct dereferencing of p->p_vmspace like it is done in sysctl_kern_proc_vmmap(). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-21T12:07:18.195059Z K 7 svn:log V 261 - Reduce severity for all ARP events, that can be triggered from remote machine to LOG_NOTICE. Exception left to "using my IP address". - Fix multicast ARP warning: add newline and also log the bad MAC address. Tested by: Alexander Wittig END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-11-21T12:21:00.345465Z K 7 svn:log V 147 Remove no more relevant XXXRW comments since accessing the vmspace is now properly done with the acquired vmspace reference. Pointed out by: kib END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-21T12:23:22.846947Z K 7 svn:log V 55 Better use pkill(1) in last commit. Submitted by: pjd END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-21T12:59:52.912662Z K 7 svn:log V 428 Introduce the same mutex-wise fix in r227758 for sx locks. The functions that offer file and line specifications are: - sx_assert_ - sx_downgrade_ - sx_slock_ - sx_slock_sig_ - sx_sunlock_ - sx_try_slock_ - sx_try_xlock_ - sx_try_upgrade_ - sx_unlock_ - sx_xlock_ - sx_xlock_sig_ - sx_xunlock_ Now vm_map locking is fully converted and can avoid to know specifics about locking procedures. Reviewed by: kib MFC after: 1 month END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-11-21T13:34:29.802874Z K 7 svn:log V 476 - Add Pulse-Per-Second timestamping using raw ffcounter and corresponding ffclock time in seconds. - Add IOCTL to retrieve ffclock timestamps from userland. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-21T13:40:35.613962Z K 7 svn:log V 117 Be more informative for "unknown hardware address format" message. Submitted by: Andrzej Tobola END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-21T14:10:13.292954Z K 7 svn:log V 1008 Historically in_control() did not check sockaddrs supplied with structs ifreq/in_aliasreq and there've been several panics due to that problem. All these panics were fixed just a couple of lines above the panicing code. Take a more general approach: sanity check sockaddrs supplied with SIOCAIFADDR and SIOCSIF*ADDR at the beggining of the function and drop all checks below. One check is now disabled due to strange code in ifconfig(8) that I've removed recently. I'm going to enable it with next __FreeBSD_version bump. Historically in_ifinit() was able to recover from an error and restore old address. Nowadays this feature isn't working for all error cases, but for some of them. I suppose no software relies on this behavior, so I'd like to remove it, since this simplifies code a lot. Also, move if_scrub() earlier in the in_ifinit(). It is more correct to wipe routes before removing address from local address list, and interface address list. Silence from: bz, brooks, andre, rwatson, 3 weeks END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-11-21T14:36:19.281718Z K 7 svn:log V 122 Add history for setsockopt(2). PR: docs/162719 Submitted by: Niclas Zeising MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-11-21T14:50:17.583328Z K 7 svn:log V 92 For now, remove MANFILTER from ZFS manpages (bad effect on html output). MFC after: 4 days END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-11-21T15:26:20.793408Z K 7 svn:log V 337 Update zfs(8) and zpool(8) manpages from CDDL-licensed sources [1]. Improved alignment for a maximum width of 80 characters. Mark unsupported parts as such. Reported to vendor: Illumos issue #1801 References: https://www.illumos.org/issues/1801 Obtained from: OpenSolaris CDDL manual pages (snv_134, s11express) [1] MFC after: 4 days END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-11-21T15:33:37.748196Z K 7 svn:log V 58 Fix mismerge in copyright of zpool(8). MFC after: 4 days END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-11-21T16:06:23.061617Z K 7 svn:log V 162 Clean up some cruft in the NFSv4 client left over from the OpenBSD port, so that it is more readable. No logic change is made by this commit. MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2011-11-21T16:35:57.459424Z K 7 svn:log V 162 As threatened on -arch, add {SHARED,STATIC}_{C,CXX}FLAGS, which allow a Makefile to specify different CFLAGS for shared and static libraries. MFC after: 3 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2011-11-21T16:40:39.269290Z K 7 svn:log V 195 Simplify the libpam build by removing the shared modules' dependency on the shared library. The modules are loaded by the library, so we know it'll be there when we need it. MFC after: 3 weeks END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-11-21T16:43:24.719824Z K 7 svn:log V 294 Do dcache flush on CPU core before enabling threads. The dcache flush has to be done using the core control registers before splitting the L1D cache by enabling the hardware threads. Also replace .word calls for mfcr/mtcr with a C macro. In collaboration with: prabhath at netlogicmicro com END K 10 svn:author V 6 wblock K 8 svn:date V 27 2011-11-21T18:04:37.154251Z K 7 svn:log V 160 Correct and expand BSD partitioning scheme description. Correct GUID to GPT in RECOVERING section. Reviewed by: ae Approved by: gjb (mentor) MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-21T20:07:12.904917Z K 7 svn:log V 94 This check isn't needed now, sanity checking done in the beginning. Missed it in last commit. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-11-21T20:26:22.398451Z K 7 svn:log V 522 Improve the way to calculate available pages in tmpfs: - Don't deduct wired pages from total usable counts because it does not make any sense. To make things worse, on systems where swap size is smaller than physical memory and use a lot of wired pages (e.g. ZFS), tmpfs can suddenly have free space of 0 because of this; - Count cached pages as available; [1] - Don't count inactive pages as available, technically we could but that might be too aggressive; [1] [1] Suggested by kib@ MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-11-21T20:33:18.610833Z K 7 svn:log V 237 Revert back to revision 227649 because of license uncertainity. Manual pages from OpenSolaris svn_134 are still properly CDDL licensed but I have been informed that the parts from s11ex are uncertain even if they contain a CDDL header. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-21T21:59:01.486247Z K 7 svn:log V 31 Fix some whitespace pollution. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-11-21T22:19:12.563376Z K 7 svn:log V 317 The DC calibration result obtained during initialization can't be passed over to the runtime firmware on 6050 devices. Instead let the runtime firmware do the calibration itself. This fixes support for the 6050 series devices. Obtained from: OpenBSD Submitted by: kevlo Tested by: lx, Tz-Huan Huang(earlier version) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-21T22:57:28.946275Z K 7 svn:log V 296 Use the correct lock when calling msleep(). This fixes panics that users have been seeing when operating in station mode, where the interface undergoes a lot more resets then in hostap mode (ie whilst doing channel scanning.) Reported by: arundel, wblock@wonkity.com Sponsored by: Hobnob, Inc. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2011-11-21T23:32:14.686087Z K 7 svn:log V 114 (Hopefully) Fix the build with clang by removing a typedef that's no longer needed. Approved by: brooks (mentor) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-22T00:07:53.317143Z K 7 svn:log V 196 - add check for pointer equality prior to performing the O(n) pass - while here change 's' to 's1' in strcoll Submitted by: eadler@ Reviewed by: theraven@ Approved by: brooks@ MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-11-22T00:35:30.365517Z K 7 svn:log V 265 This patch enables the new/default NFS server's use of shared vnode locking for read, readdir, readlink, getattr and access. It is hoped that this will improve server performance for these operations, since they will no longer be serialized for a given file/vnode. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-11-22T01:32:57.876536Z K 7 svn:log V 1129 MFC: r227059 Both a crash reported on freebsd-current on Oct. 18 under the subject heading "mtx_lock() of destroyed mutex on NFS" and PR# 156168 appear to be caused by clnt_dg_destroy() closing down the socket prematurely. When to close down the socket is controlled by a reference count (cs_refs), but clnt_dg_create() checks for sb_upcall being non-NULL to decide if a new socket is needed. I believe the crashes were caused by the following race: clnt_dg_destroy() finds cs_refs == 0 and decides to delete socket clnt_dg_destroy() then loses race with clnt_dg_create() for acquisition of the SOCKBUF_LOCK() clnt_dg_create() finds sb_upcall != NULL and increments cs_refs to 1 clnt_dg_destroy() then acquires SOCKBUF_LOCK(), sets sb_upcall to NULL and destroys socket This patch fixes the above race by changing clnt_dg_destroy() so that it acquires SOCKBUF_LOCK() before testing cs_refs. This is a slightly modified patch for stable/7. It fixes the above race, although others still exist, since some patches such as r193272 cannot be MFC'd. Tested by: nonesuch at longcount.org (Mark Saad) PR: kern/156168 END K 10 svn:author V 6 grehan K 8 svn:date V 27 2011-11-22T02:27:59.822672Z K 7 svn:log V 53 IFC @ r227804 Pull in the virtio drivers from head. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-22T02:50:24.942298Z K 7 svn:log V 146 - fix some style(9) nits with my last commit - add a comment explaining why I used '|' instead of '||' Submitted by: danfe@ Approved by: emaste@ END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-11-22T06:56:45.655609Z K 7 svn:log V 440 Integrate DIFFUSE related functionality into the IPFW userspace control utility. The code extends sbin/ipfw to manage, parse and output DIFFUSE specific configuration exchanged with the DIFFUSE kernel module via the DIFFUSE control raw socket. The UI extension for features and classifiers is kept modular to minimise the overhead involved in adding new features and classifiers in future. Sponsored by: FreeBSD Foundation Reviewed by: bz END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-22T11:35:24.718070Z K 7 svn:log V 147 - Use ppb_assert_locked() rather than using explicit mtx_assert call - Make ppbus code agnostic in regard of INVARIANTS option MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2011-11-22T12:12:01.267371Z K 7 svn:log V 48 Shell script for performing zfs-to-zfs backups. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-22T13:27:53.101520Z K 7 svn:log V 158 Remove the wrong comment about ufs not being loadable. Note that only root filesystem module needs to be available before root is mounted. MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-22T13:30:36.829737Z K 7 svn:log V 157 Put all the messages from msdosfs under the MSDOSFS_DEBUG ifdef. They are confusing to user, and not informative for general consumption. MFC after: 1 week END K 10 svn:author V 8 theraven K 8 svn:date V 27 2011-11-22T14:11:42.140234Z K 7 svn:log V 150 Fix a crash when trying to duplicate a locale that contains some implicit C locale components. Reported by: Michael Butler Approved by: dim (mentor) END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-11-22T15:04:59.886282Z K 7 svn:log V 377 Add the diffuse_exporter program, which can be used to receive export data from the DIFFUSE kernel module via UDP and propagate it out to one or more action nodes using UDP, TCP or SCTP. The exporter caches propagated rules for 5 minutes, and will forward the rules to action nodes again if a state request packet is received. Sponsored by: FreeBSD Foundation Reviewed by: bz END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-11-22T15:50:24.860317Z K 7 svn:log V 362 Add the diffuse_collector program, which can be used to receive export data from the DIFFUSE kernel module via UDP or export data relayed from a diffuse_exporter via SCTP, TCP or UDP. The collector instantiates firewall rules based on the flow and classification data received from one or more classifier nodes. Sponsored by: FreeBSD Foundation Reviewed by: bz END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-11-22T16:08:12.406363Z K 7 svn:log V 301 We don't need bsd.own.mk for either utility and for some reason, including it counteracts the inclusion of "NO_MAN=" in the Makefile. This causes the build to break when bsd.prog.mk sets the default manpage to .1 and attempts to make the non-existant file. Sponsored by: FreeBSD Foundation END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2011-11-22T16:18:12.062241Z K 7 svn:log V 173 Avoid panics from recursive rename operations. Not a perfect patch but good enough for now. PR: kern/159418 Submitted by: Gleb Kurtsou Reviewed by: kib MFC after: 1 month END K 10 svn:author V 2 jh K 8 svn:date V 27 2011-11-22T16:44:50.321243Z K 7 svn:log V 135 Append unit number to the WMI status device name to allow attaching multiple acpi_wmi(4) instances. PR: kern/162491 Reviewed by: avg END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-11-22T17:25:22.903916Z K 7 svn:log V 207 - Manual pages for the DIFFUSE kernel module, exporter and collector - An update to the ipfw.8 manual page to describe DIFFUSE's IPFW grammar extensions. Sponsored by: FreeBSD Foundation Reviewed by: bz END K 10 svn:author V 8 theraven K 8 svn:date V 27 2011-11-22T17:30:41.115890Z K 7 svn:log V 74 Import libcxxrt / libc++ into a vendor branch. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2011-11-22T17:33:08.721731Z K 7 svn:log V 76 Create versioned copies of the vendor branches.. Approved by: dim (mentor) END K 10 svn:author V 3 rmh K 8 svn:date V 27 2011-11-22T18:53:54.629618Z K 7 svn:log V 751 Define __FreeBSD_kernel__ macro in sys/param.h. __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, which by definition is always true on FreeBSD. This macro is also defined on other systems that use the kernel of FreeBSD, such as GNU/kFreeBSD. It is tempting to use this macro in userland code when we want to enable kernel-specific routines, and in fact it's fine to do this in code that is part of FreeBSD itself. However, be aware that as presence of this macro is still not widespread (e.g. older FreeBSD versions, 3rd party compilers, etc), it is STRONGLY DISCOURAGED to check for this macro in external applications without also checking for __FreeBSD__ as an alternative. Approved by: kib (mentor) MFC after: 2 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-22T18:58:39.441722Z K 7 svn:log V 66 Always start MII auto polling before accessing any MII registers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-22T19:31:43.112684Z K 7 svn:log V 260 - Add a DEVMETHOD_END alias for KOBJMETHOD_END so that along with 'driver_t' and DEVMETHOD() we can fully hide the explicit mention of kobj(9) from device drivers. - Update the example in driver.9 to use DEVMETHOD_END. Submitted by: jhb MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-22T19:37:57.148820Z K 7 svn:log V 78 Fix SIOCDIFADDR semantics: if no address is specified, then delete first one. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-22T19:39:27.921613Z K 7 svn:log V 13 style(9) nit END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-22T19:42:17.776766Z K 7 svn:log V 109 Improve logging: - don't hardcode function name - use LOG_DEBUG for such a debug message - print error value END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-11-22T20:40:18.380385Z K 7 svn:log V 406 Add new sysctls, KERN_PROC_ENV and KERN_PROC_AUXV, to return environment strings and ELF auxiliary vectors from a process stack. Make sysctl_kern_proc_args to read not cached arguments from the process stack. Export proc_getargv() and proc_getenvv() so they can be reused by procfs and linprocfs. Suggested by: kib Reviewed by: kib Discussed with: kib, rwatson, jilles Tested by: pho MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-11-22T20:43:03.872363Z K 7 svn:log V 158 In procfs_doproccmdline() if arguments are not cashed read them from the process stack. Suggested by: kib Reviewed by: kib Tested by: pho MFC after: 2 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-22T20:45:09.790529Z K 7 svn:log V 2214 Rework link establishment and link state detection logic. - Remove MIIBUS statchg callback and program VGE_DIAGCTL before initiating link establishment. Previously driver used to program VGE_DIAGCTL after getting a link in statchg callback. It seems the VGE_DIAGCTL register works like a kind of MII register such that it requires setting a 'to be' mode in advance rather than relying on resolved speed/duplex of established link. This means the statchg callback is not needed in driver. In addition, if there was no link at the time of media change, this was not called at all. - Introduce vge_ifmedia_upd_locked() to change current media to configured one. Actual media change is performed only after PHY reset and VGE_DIAGCTL setup. - In WOL configuration, make sure to clear forced mode such that controller can rely on auto-negotiation. - Unlike most other drivers that use miibus(4), vge(4) used controller's auto-polling feature for link state tracking via interrupt. This came from controller's inefficient mechanism to access MII registers. On link state change interrupt, vge(4) used to get current link state with series of MII register accesses. Because vge(4) already enabled auto polling, read PHY status register to resolved speed/duplex/flow control parameters. vge(4) still does not drive MII_TICK to reduce number of MII register accesses which in turn means the driver does not know the status of auto-negotiation. This was a one of long standing issue of vge(4). Probably driver may be able to implement a timer that keeps track of auto-negotiation state and restart auto-negotiation when driver couldn't establish a link within a specified period. However the controller does not provide a reliable way to detect auto-negotiation failure so I'm not sure whether it's worth to implement it in driver. Alternatively driver can completely disable MII auto-polling and let miibus(4) poll link state by driving MII_TICK. This may reduce unnecessary overhead of stopping/restarting MII auto-polling of controller. Unfortunately it was known that some variants of controller does not work correctly if MII auto-polling is disabled. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-11-22T20:45:11.692886Z K 7 svn:log V 248 Retire linprocfs_doargv(). Instead use new functions, proc_getargv() and proc_getenvv(), which were implemented using linprocfs_doargv() as a reference. Suggested by: kib Reviewed by: kib Approved by: des (linprocfs maintainer) MFC after: 2 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-22T20:57:06.058904Z K 7 svn:log V 255 Announce flow control capability to underlying PHY driver. Pause timer value is initialized to 0xFFFF. Controller allows just 4 different TX pause thresholds. The lowest possible threshold value looks too aggressive so use next available threshold value. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-11-22T20:59:52.549637Z K 7 svn:log V 116 Add new options, -e and -x, to display process environment variables and ELF auxiliary vectors. MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-11-22T21:12:28.585074Z K 7 svn:log V 78 Now kvm_getenvv() and kvm_getargv() don't need procfs(5). MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-11-22T21:14:46.194730Z K 7 svn:log V 42 No need in procfs(5). MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2011-11-22T21:18:14.365863Z K 7 svn:log V 91 Remove libpam from _prebuild_libs. This should unbreak the -jX build. MFC after: 3 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-22T21:22:06.573939Z K 7 svn:log V 464 For IP1001 PHY, do not set multi-port device(MASTER). Ideally this bit should not affect link establishment process of auto-negotiation if manual configuration is not used, which is true in auto-negotiation. However it seems setting this bit interfere with IP1001 PHY's down-shifting feature such that establishing a 10/100Mbps link failed when 1000baseT link is not available during auto-negotiation process. Tested by: Andrey Smagin mail dot ru > END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-22T21:28:20.008994Z K 7 svn:log V 420 - There's no need to overwrite the default device method with the default one. Interestingly, these are actually the default for quite some time (bus_generic_driver_added(9) since r52045 and bus_generic_print_child(9) since r52045) but even recently added device drivers do this unnecessarily. Discussed with: jhb, marcel - While at it, use DEVMETHOD_END. Discussed with: jhb - Also while at it, use __FBSDID. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-22T21:49:29.068516Z K 7 svn:log V 29 Update to use DEVMETHOD_END. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2011-11-22T21:50:38.455512Z K 7 svn:log V 45 forgot to merge NETMAP entries in sys/conf ! END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-11-22T21:53:06.245863Z K 7 svn:log V 86 Remove yet another outdated note about procfs(5) being required. Spotted by: arundel END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-11-22T21:53:19.203055Z K 7 svn:log V 66 Style change. Suggested by: jhb @ and marius @ MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-22T21:55:40.595857Z K 7 svn:log V 109 s,KOBJMETHOD_END,DEVMETHOD_END,g in order to fully hide the explicit mention of kobj(9) from device drivers. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-11-22T21:56:55.588791Z K 7 svn:log V 119 Rename device_delete_all_children() into device_delete_children(). Suggested by: jhb @ and marius @ MFC after: 1 week END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-22T23:19:49.207961Z K 7 svn:log V 602 Writing access to RL_CFG5 register also requires EEPROM write access. While I'm here, enable WOL through magic packet but disable waking up system via unicast, multicast and broadcast frames. Otherwise, multicast or unicast frame(e.g. ICMP echo request) can wake up system which is not probably wanted behavior on most environments. This was not known as problem because RL_CFG5 register access had not effect until this change. The capability to wake up system with unicast/multicast frames are still set in driver, default off, so users who need that feature can still activate it with ifconfig(8). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-22T23:27:59.022673Z K 7 svn:log V 235 Perform media change after setting IFF_DRV_RUNNING flag. Without it, driver would ignore the first link state update if controller already established a link such that it would have to take additional link state handling in re_tick(). END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-11-22T23:46:56.491597Z K 7 svn:log V 87 fdopendir(): Do not close the passed file descriptor on failure. Reviewed by: delphij END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2011-11-23T00:01:45.769347Z K 7 svn:log V 175 MFC r227604: Pass CVWAIT flags to kernel, this should handle Timeout correctly for pthread_cond_timedwait when it uses kernel-based condition variable. Approved by: re (kib) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-23T02:08:05.322309Z K 7 svn:log V 792 Disable accepting frames in re_stop() to put RX MAC into idle state. Because there is no reliable way to know whether RX MAC is in stopped state, rejecting all frames would be the only way to minimize possible races. Otherwise it's possible to receive frames while stop command execution is in progress and controller can DMA the frame to freed RX buffer during that period. This was observed on recent PCIe controllers(i.e. RTL8111F). While this change may not be required on old controllers it wouldn't make negative effects on old controllers. One side effect of this change is disabling receive so driver reprograms RL_RXCFG to receive WOL frames when it is put into suspend or shutdown. This should address occasional 'memory modified free' errors seen on recent RealTek controllers. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:05:07.698087Z K 7 svn:log V 425 Allow for the ability of a per-build file make.conf.client. In use, the lines of this file will be *appended* -- not replace -- to the per-host make.conf. The latter deal with overriding default fetching locations. (Although in practice they are per-site, not per-host, for historical reasons they remain per-host). This, for example, allows some builds to be run with clang as default, while not having to change others. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:13:43.437661Z K 7 svn:log V 34 Try to tighten up error handling. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:14:54.316885Z K 7 svn:log V 189 Add an optional per-build make.conf.client line, whose lines will be *appended* to the per-host make.conf as specified in the per-client tarball. While here, add some more error handling. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:15:34.829618Z K 7 svn:log V 25 Try to make more robust. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:16:29.021108Z K 7 svn:log V 74 Compile ptimeout here, and only if needed, rather than every single time. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:17:59.148851Z K 7 svn:log V 165 Allow for a per-build make.conf called make.conf.server. Unlike make.conf.client, it is a complete make.conf file (since it does not need to be specific per-host). END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:18:20.593265Z K 7 svn:log V 15 Remove an XXX. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:20:44.877976Z K 7 svn:log V 200 Make the ARCHS_REQUIRING_LINPROCFS logic common to server and client. Add OVERRIDE_LINUX_NONBASE_PORTS logic common to server and client. Comment out the ${pbd}/${arch}/make.conf logic as obsolete. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:39:03.916937Z K 7 svn:log V 511 Make missing_header also trigger on blah.H not found, not just blah.h. Generalize badc++ case: s/ISO C++ does not support/ISO C++/ . Fine-tune clang a bit by removing the following false positives: error: expected.*(at end of declaration|expression|identifier) error: invalid (argument type|integral value|operand|token|use of a cast|value) error:.*not supported Remove some false positives for assumes_gcc (would fire on any fetch failure for a gcc component) Cope with some POLA in runaway_process. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:52:34.641780Z K 7 svn:log V 30 Fix typo in SRC_BRANCH_9_TAG. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:53:13.815337Z K 7 svn:log V 72 Delete LoadModule php5_module here, it generates a 'duplicate' warning. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:54:28.190007Z K 7 svn:log V 166 Bring this up to what is on production on pointyhat-west. Note: I no longer believe this file is actually relevant; it is overridden in all know client/*.tar files. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-23T03:55:48.618512Z K 7 svn:log V 26 Add some more robustness. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-23T05:00:25.232761Z K 7 svn:log V 235 Flesh out the TX aggregation completion statistics. * Failall is now named just that. * Add TX ok and TX fail, for aggregate frame sub-frames. This will break athstats; a followup commit wil resolve this. Sponsored by: Hobnob, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-23T05:01:23.352781Z K 7 svn:log V 74 Add the new statistics introduced in r227868. Sponsored by: Hobnob, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-23T05:03:27.962867Z K 7 svn:log V 65 Tidy up the statistic documentation. Sponsored by: Hobnob, Inc. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-11-23T05:34:01.264333Z K 7 svn:log V 93 Remove unused variable mii. This variable is initialized but not used. Reviewed by: yongari END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-23T07:12:26.061726Z K 7 svn:log V 261 Re-lock the ath lock after ath_reset() has been called. The calibrate callout is done with the sc lock held. This only showed up when using an older NIC (AR5212) whose radio/phy requires the rfgain adjustment. Pointy-hat-to: adrian Sponsored by: Hobnob, Inc. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-11-23T07:34:09.913417Z K 7 svn:log V 40 Fix build, hopefully. Reviewed by: kib END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-11-23T08:11:04.666424Z K 7 svn:log V 51 Fix build without INVARIANTS. Discussed with: kib END K 10 svn:author V 5 luigi K 8 svn:date V 27 2011-11-23T09:45:48.098190Z K 7 svn:log V 178 fix formatting warning using casts. The numbers involved are small and these are debug statements, so there is no reason to obfuscate the format string with PRIsomeKINDofINTEGER END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-11-23T10:27:18.864745Z K 7 svn:log V 14 Plug fd leaks END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2011-11-23T11:59:01.995031Z K 7 svn:log V 175 MFC r227604: Pass CVWAIT flags to kernel, this should handle Timeout correctly for pthread_cond_timedwait when it uses kernel-based condition variable. Approved by: re (kib) END K 10 svn:author V 5 luigi K 8 svn:date V 27 2011-11-23T12:05:39.885430Z K 7 svn:log V 58 some tweaks to build picobsd for different architectures. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-11-23T12:23:32.668900Z K 7 svn:log V 384 MFC r227769, 227770, 227771: - Add a note to src/Makefile that explains that 'rm' runs twice because thesecond invocation only needs to operate on files with the immutable flag set. - Fix the note in r227769 to be less specific to the immutable flag. - Replace 'chflags' with 'file flags' in a comment, since 'chflags'is a command, not a flag itself. Approved by: re (kib) END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-11-23T12:24:04.567324Z K 7 svn:log V 384 MFC r227769, 227770, 227771: - Add a note to src/Makefile that explains that 'rm' runs twice because thesecond invocation only needs to operate on files with the immutable flag set. - Fix the note in r227769 to be less specific to the immutable flag. - Replace 'chflags' with 'file flags' in a comment, since 'chflags'is a command, not a flag itself. Approved by: re (kib) END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-11-23T12:24:29.578123Z K 7 svn:log V 360 MFC r227769, 227770, 227771: - Add a note to src/Makefile that explains that 'rm' runs twice because thesecond invocation only needs to operate on files with the immutable flag set. - Fix the note in r227769 to be less specific to the immutable flag. - Replace 'chflags' with 'file flags' in a comment, since 'chflags'is a command, not a flag itself. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-11-23T12:24:48.995150Z K 7 svn:log V 360 MFC r227769, 227770, 227771: - Add a note to src/Makefile that explains that 'rm' runs twice because thesecond invocation only needs to operate on files with the immutable flag set. - Fix the note in r227769 to be less specific to the immutable flag. - Replace 'chflags' with 'file flags' in a comment, since 'chflags'is a command, not a flag itself. END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-11-23T13:50:14.488469Z K 7 svn:log V 42 MFC: r227527 Removed extra PRELE() call. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-23T15:03:15.433270Z K 7 svn:log V 259 MFC r227657: Consistently use process spin lock for protection of the p->p_boundary_count. Race could cause the execve(2) from the threaded process to hung since thread boundary counter was incorrect and single-threading never finished. Approved by: re (bz) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T15:10:15.633738Z K 7 svn:log V 135 MFC r227481: Return the correct value for the IPV6_MULTICAST_HOPS getsockopt() call. Submitted by: rpaulo Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-23T15:16:05.747735Z K 7 svn:log V 259 MFC r227657: Consistently use process spin lock for protection of the p->p_boundary_count. Race could cause the execve(2) from the threaded process to hung since thread boundary counter was incorrect and single-threading never finished. Approved by: re (bz) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T15:18:16.004578Z K 7 svn:log V 133 MFC r227481: Return the correct value for the IPV6_MULTICAST_HOPS getsockopt() call. Submitted by: rpaulo Approved by: re (kib) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-23T15:37:03.307559Z K 7 svn:log V 152 MFC r227058: Disable interrupt and preemption for smp_rendezvous() also in the UP/!SMP case. Sponsored by: Sandvine Incorporated Approved by: re (kib) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-23T15:41:55.944937Z K 7 svn:log V 152 MFC r227058: Disable interrupt and preemption for smp_rendezvous() also in the UP/!SMP case. Sponsored by: Sandvine Incorporated Approved by: re (kib) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T16:02:12.440307Z K 7 svn:log V 375 MFC r227547: The maximum TSO frame size should be: maximum IP datagram size (65535 bytes) + Ethernet header size (14 bytes) + 2 * VLAN tag size (4 bytes) [1]. [1] We need to multiply by 2 to account for the double VLAN tag provision added in IEEE 802.1ad. Submitted by: David Somayajulu (david.somayajulu qlogic.com) Approved by: re (kib) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-23T16:02:36.598182Z K 7 svn:log V 130 MFC r227058: Disable interrupt and preemption for smp_rendezvous() also in the UP/!SMP case. Sponsored by: Sandvine Incorporated END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T16:03:47.345498Z K 7 svn:log V 375 MFC r227547: The maximum TSO frame size should be: maximum IP datagram size (65535 bytes) + Ethernet header size (14 bytes) + 2 * VLAN tag size (4 bytes) [1]. [1] We need to multiply by 2 to account for the double VLAN tag provision added in IEEE 802.1ad. Submitted by: David Somayajulu (david.somayajulu qlogic.com) Approved by: re (kib) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-11-23T17:02:27.232113Z K 7 svn:log V 161 Avoid double free creating a new RAID with invalid command line arguments. Submitted by: Xin Huang Reviewed by: rstone@ MFC after: 1 week END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T18:04:30.546175Z K 7 svn:log V 106 MFC r227061 (by mlaier): Fix a use-after-free/redzone issue in the routing code. Approved by: re (kib) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T18:04:53.396519Z K 7 svn:log V 106 MFC r227061 (by mlaier): Fix a use-after-free/redzone issue in the routing code. Approved by: re (kib) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-11-23T18:05:37.659448Z K 7 svn:log V 24 Import ACPICA 20111123. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-11-23T18:06:50.074527Z K 7 svn:log V 21 Tag ACPICA 20111123. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T18:10:47.841173Z K 7 svn:log V 82 MFC r226938 (by kevlo): Add missing PF_UNLOCK in pf_test Approved by: re (kib) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T18:11:10.215626Z K 7 svn:log V 82 MFC r226938 (by kevlo): Add missing PF_UNLOCK in pf_test Approved by: re (kib) END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-11-23T18:15:49.676287Z K 7 svn:log V 183 MFH r224639, r224657: Disable generation of SGR sequences. This is a no-op when using base groff, as it hasn't been changed in stable. This helps when using the ports groff, though. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-23T18:38:08.844833Z K 7 svn:log V 75 Fix parsing of redirect_addr argument. PR: kern/162739 MFC after: 3 days END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-11-23T19:06:30.604775Z K 7 svn:log V 65 - Remove unused old libdialog includes - Remove unused functions END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-11-23T19:11:03.309440Z K 7 svn:log V 25 Remove unused functions. END K 10 svn:author V 3 lev K 8 svn:date V 27 2011-11-23T19:38:32.014628Z K 7 svn:log V 147 Merge r227901 from head geom_multipath is not merged, but overwritten from HEAD, need to understand new code logic and add geom-events back. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-11-23T20:01:35.129667Z K 7 svn:log V 250 Apply a different approach for the timeout from Scott Long. Instead of doing the (expensive) dummy read and do nothing with the result, move it to the end of the interrupt handler, and restart the interrupt handler if we see more pending job to do. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-23T20:08:56.945303Z K 7 svn:log V 51 Sync with NetBSD rev. 1.104 Obtained from: NetBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-23T20:09:34.355537Z K 7 svn:log V 42 Probe the BCM5785. Obtained from: NetBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-23T20:27:26.746385Z K 7 svn:log V 19 Use DEVMETHOD_END. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T21:19:38.008510Z K 7 svn:log V 110 MFC r227481: Return the correct value for the IPV6_MULTICAST_HOPS getsockopt() call. Submitted by: rpaulo END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-11-23T21:41:31.702282Z K 7 svn:log V 356 MFC r225849: Test if the interface is afif in dhcpif() and syncdhcpif(), as done in ipv6_autoconfif. This fixes a regression that causes e.g. ifconfig_DEFAULT="DHCP" to run on non-afif interfaces like pfsync0, which in turn would cause excessive delay on system startup. Sponsored by: iXsystems, Inc. Reviewed by: hrs (freebsd-rc@) Approved by: re (bz) END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-11-23T21:43:00.918813Z K 7 svn:log V 134 MFC: r227550, r227576 Handle invalid large values for getdirentries(2) data buffer size. Fix build, use %d for int value formatting. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-23T21:43:51.865530Z K 7 svn:log V 149 - Just use cam_calc_geometry(9) on newer version of FreeBSD rather than duplicating it. - In hptmv(4) and hptrr(4) use __FBSDID and DEVMETHOD_END. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-23T22:05:44.003603Z K 7 svn:log V 265 Wrap BCM5785 in #ifdef notyet for now. According to yongari@ there are issues probably needing workarounds in bge(4) when brgphy(4) handles this PHY. Letting ukphy(4) handle it instead results in a working configuration, although likely with performance penalties. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-23T22:07:13.570247Z K 7 svn:log V 200 Make sure to stop TX MAC before freeing queued TX frames. For RTL8111DP, check if the TX MAC is active by reading RL_GTXSTART register. For RTL8402/8168E-VL/8168F/8411, wait until TX queue is empty. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-23T22:16:45.314070Z K 7 svn:log V 83 MFC r227061 (by mlaier): Fix a use-after-free/redzone issue in the routing code. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-23T23:29:18.828496Z K 7 svn:log V 333 To save more power, switch to 10/100Mbps link when controller is put into suspend/shutdown. Old PCI controllers performed that operation in firmware but for RTL8111C or newer controllers, it's responsibility of driver. It's not clear whether the firmware of RTL8111B still downgrades its speed to 10/100Mbps so leave it as it was. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T04:19:02.460382Z K 7 svn:log V 178 Slim the default build down a little: * Disable the NFS client, it's not needed for booting off of flash. * Don't compile in softdep, snapshots, ufs acls and directory hashing. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T04:21:19.293799Z K 7 svn:log V 69 Flip on these debugging options by default. This is -HEAD after all. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T04:23:42.633453Z K 7 svn:log V 224 Add a comment documenting where the WMAC hangs off of. At some point it would be nice to correctly update the bus glue to make this "correct", including having the DDR flush occur in the right spot (ie, any AHB interrupt.) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T04:34:04.020233Z K 7 svn:log V 524 Compile in the right bits so the AR9130 WMAC support functions correctly. A previous commit disabled compiling the AR9130 support in the default HAL build in the kernel. Since the AR9130 support won't actually function without AH_SUPPORT_AR9130 (and that abomination needs to be undone at some point, in order to allow USB 11n NICs to also work), we now have to explicitly compile it in. But since the 11n RF backends don't (currently) join the RF linker set, one has to compile in _an_ RF backend for the HAL to compile. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T04:39:01.399683Z K 7 svn:log V 953 Flesh out a geom_map setup, so the kernel can be squeezed _onto_ the device. The default flash layout gives only 1 megabyte for the kernel, gzipped. The uboot firmware running on this device only supports gzip, not lzma, so we actually _do_ have to try and slim the kernel down a bit. But, since I can't actually do that at the present, I'm opting to: * extend the kernel from 1mb to 2mb; * have rootfs fill the rest of that, save 64k; * eventually I'll hide a 64k config partition at the end, between the end of rootfs and the ART (radio configuration data.) The uboot firmware doesn't care about the partition layout. It just expects the kernel application image to sit at 0xbf020000 (right after the 128k uboot image.) The uboot header isn't actually read either - it's "faked" from a "tplink" flash image header. So as long as the map configuration here matches what is being written out via the tplink firmware generator, everything is a-ok. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T06:27:47.419881Z K 7 svn:log V 209 Don't compile in the AR9130 embedded WMAC code into the HAL by default. This won't work unless AH_SUPPORT_AR9130 which can't be enabled - it breaks the other 11n chipsets for now. Sponsored by: Hobnob, Inc. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-11-24T07:25:43.585936Z K 7 svn:log V 415 MFC r227110,r227111: r227110: In zvol_open() if the spa_namespace_lock is already held, it means that ZFS is trying to open and taste ZVOL as its VDEV. This is not supported, so return an error instead of panicing on spa_namespace_lock recursion. Reported by: Robert Millan PR: kern/162008 r227111: Correct typo in comment. Reported by: Fabian Keil Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T07:32:52.525809Z K 7 svn:log V 569 Introduce a new (global, sorry!) option which controls whether the ar71xx platform code should assume a uboot or redboot environment. The current code gets very confused (and just crashes) on a uboot environment, where each attribute=value pair is in a single entry. Redboot on the other hand stores it as "attribute", "value", "attribute", "value", ... This allows the kernel to boot on a TP-LINK TL-WR1043ND from flash, where the uboot environment gets setup. This didn't show up during a netboot as "tftpboot" and "go" don't setup the uboot environment variables. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T07:33:41.076403Z K 7 svn:log V 123 Flip on AR71XX_ENV_UBOOT so the environment variables are properly processed. (Which is to say they're currently ignored.) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T07:37:19.592381Z K 7 svn:log V 703 Now that I've brought up FreeBSD via flash, I've discovered that the second-last 64k seems to be the default firmware board configuration area. Since I have no idea whether uboot uses it or not - and it's prefixed with an atheros eeprom signature (0xaa55), I figure the safest thing to do is mark it as read-only. I've modified my local tplink firmware building program to generate a board configuration section - which is separate to this partition. It's located in the 64k _before_ this particular 64k. The firmware build program from OpenWRT never initialises those values and the firmware images from tplink also leave it 0x0, so I don't currently know what the exact, correct details should be. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-11-24T07:39:01.804537Z K 7 svn:log V 415 MFC r227110,r227111: r227110: In zvol_open() if the spa_namespace_lock is already held, it means that ZFS is trying to open and taste ZVOL as its VDEV. This is not supported, so return an error instead of panicing on spa_namespace_lock recursion. Reported by: Robert Millan PR: kern/162008 r227111: Correct typo in comment. Reported by: Fabian Keil Approved by: re (kib) END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-11-24T08:56:24.975860Z K 7 svn:log V 20 Remove unused code. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-11-24T10:08:22.132996Z K 7 svn:log V 20 Remove unused code. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-11-24T10:54:30.767552Z K 7 svn:log V 146 Move up the address to the top of the sctp_paddrthlds structure like in all other structures. This avoids alignment problems. MFC after: 3 days. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-11-24T10:58:48.157369Z K 7 svn:log V 146 Move up the address to the top of the sctp_udencaps structure like in all other structures. This avoids alignment problems. MFC after: 3 months. END K 10 svn:author V 3 des K 8 svn:date V 27 2011-11-24T13:13:50.968746Z K 7 svn:log V 56 Add CTF magic to the new .c.o rule. MFC after: 3 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2011-11-24T13:18:58.883644Z K 7 svn:log V 157 Revert r227841 and part of r227798. We still build libpam in two passes, but we use STATIC_CFLAGS instead of our own private .c.o rule. MFC after: 3 weeks END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-11-24T13:24:06.805222Z K 7 svn:log V 23 Port to new libdialog. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-11-24T14:16:01.023424Z K 7 svn:log V 72 Utility script to build specific parts of the source tree on all arches END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-11-24T14:17:04.308427Z K 7 svn:log V 43 Use ${VAR} instead of $(VAR) consistently. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-11-24T14:22:05.742300Z K 7 svn:log V 15 Add missing ;; END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-11-24T15:12:57.318239Z K 7 svn:log V 144 I've had verification that the second-last 64k is actually used by the tplink firmware to store configuration data. It's safe to overwrite it. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-11-24T15:47:01.860833Z K 7 svn:log V 146 Disk selection dialog is now a normal menu, not a checkboxed menu: checkboxed menu is confusing and also can not be implemented in new libdialog. END