‚®n166879 121 587 129 135 213 377 344 196 142 176 395 167 547 1052 134 742 276 512 502 414 224 192 145 384 209 210 422 132 389 182 407 341 118 208 273 120 113 238 219 165 328 290 113 388 216 377 836 107 301 154 353 566 213 583 317 108 153 170 377 934 378 157 198 210 191 181 231 185 125 182 298 142 220 235 302 198 297 284 178 142 125 134 190 161 493 167 652 365 132 280 116 432 166 121 169 164 200 415 135 186 183 239 769 161 588 651 769 478 220 943 338 637 261 393 432 2304 133 256 145 134 206 276 K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-22T00:14:02.000000Z K 7 svn:log V 494 Fix a bug in if_findmulti(), whereby it would not find (and thus delete) a link-layer multicast group membership. Such memberships are needed in order to support protocols such as IS-IS without putting the interface into PROMISC or ALLMULTI modes. sa_equal() is not OK for comparing sockaddr_dl as it has deeper structure than a simple byte array, so add sa_dl_equal() and use that instead. Reviewed by: rwatson Verified with: /usr/sbin/mtest Bug found by: Jouke Witteveen MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-02-22T05:31:39.000000Z K 7 svn:log V 33 Mention that BSD gzip was MFC'ed END K 10 svn:author V 3 njl K 8 svn:date V 27 2007-02-22T05:59:23.000000Z K 7 svn:log V 43 Improve readability of the version string. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-02-22T06:15:52.000000Z K 7 svn:log V 120 Change the page's CLEANCHK flag from being a page queue mutex synchronized flag to a vm object mutex synchronized flag. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-02-22T09:37:44.000000Z K 7 svn:log V 280 Add an additional MAC check to the UNIX domain socket connect path: check that the subject has read/write access to the vnode using the vnode MAC check. MFC after: 3 weeks Submitted by: Spencer Minear Obtained from: TrustedBSD Project END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-02-22T12:42:43.000000Z K 7 svn:log V 251 Adds a performance improvement for when sctp_sendx is called with only one address, we then can call the generic system call. Also fixes some socket api type issues and cleans up the "magic" numbers that were being used in the code. Reviewed by: gnn END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-02-22T13:39:57.000000Z K 7 svn:log V 103 Fixes __FreeBSD__ being present (they should not) and also trailing garbage on undef of magic numbers. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-02-22T14:32:39.000000Z K 7 svn:log V 50 First cut of the sctp man pages. Still need work. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-02-22T14:48:12.000000Z K 7 svn:log V 84 Fixes build breakage.. invalid type casts.. and invalid type for size in one place. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2007-02-22T14:50:31.000000Z K 7 svn:log V 301 Use ETHER_BPF_MTAP() instead of BPF_MTAP() here. It's possible incoming packets have had their 802.1Q tags processed by the hardware, resulting in them being stripped from the packets, and placed on the mbuf. This fixes the processing of 802.1Q tags when hardware offload of 802.1Q tags is enabled. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-02-22T14:52:59.000000Z K 7 svn:log V 71 Use LIST_EMPTY() instead of unrolled version (LIST_FIRST() [!=]= NULL) END K 10 svn:author V 6 jasone K 8 svn:date V 27 2007-02-22T19:10:30.000000Z K 7 svn:log V 451 Modify chunk_alloc() to prefer mmap()ed memory over sbrk()ed memory. This has no impact unless USE_BRK is defined (32-bit platforms), in which case user allocations are allocated via mmap() if at all possible, in order to avoid the possibility of unreclaimable chunks in the data segment. Fix an obscure bug in base_alloc() that could have allowed undefined behavior if an application were to use sbrk() in conjunction with a USE_BRK-enabled malloc. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2007-02-22T19:10:48.000000Z K 7 svn:log V 957 MFC: sync firmware(9) and iwi(4) with the version in HEAD (the changes are related and this is why the MFC is done together). In detail: firmware(9): Cleanup and document the implementation of firmware(9) based on a version that i posted earlier on the -current mailing list, and subsequent feedback received. See the commit log luigi 2007-02-15 17:21:31 UTC The core of the change is just in sys/firmware.h and kern/subr_firmware.c, while other files are just adaptation of the clients to the ABI change (const-ification of some parameters and hiding of internal info, so this is fully compatible at the binary level). Note that in RELENG_6 sys/arm/xscale/ixp425, sys/dev/ipw and sys/dev/mxge do not exist or have not been updated to use firmware(9). iwi(4) + add debugging code IWI_LOCK_CHECK() to print (under sysctl debug.iwi) missing locks; + make sure that iwi_ioctl() wait until the previous iwi_cmd() terminates. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-02-22T19:25:37.000000Z K 7 svn:log V 42 Correct typo. Spotted by: Tomasz Dudzisz END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2007-02-22T20:29:53.000000Z K 7 svn:log V 644 If floppies are used to boot the machine, the user lets the machine complete the boot and enter into sysinstall, and only then inserts a CD into the CDROM drive and tries to select that as the install media the first call to mount(2) generates EIO but the second call to mount(2) will succeed. This was 100% reproducible on 6.2-RELEASE, RELENG_6, and HEAD. If the user inserts the disc into the CDROM while the machine is booting off the floppies the first call to mount(2) succeeds with no problems. The problem was originally reported in PR #56952 against 5.1-CURRENT so it's been there for a while now. PR: bin/56952 MFC after: 2 weeks END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-02-23T05:39:58.000000Z K 7 svn:log V 180 Be a bit more restrictive about printing out 'bad' pdb entries during loop rescans. They're not bad so much as unstable, so don't print this stuff out unless ISP_LOGSANCFG is set. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-02-23T05:42:41.000000Z K 7 svn:log V 416 There is a problem in setting/getting 'options'- if we check things early, we haven't set board type, so we can't correctly check for some options. Fix this by splitting option setting/getting into generic, pci and then later board specific, option setting/getting. This was noticed when setting 'iid' (or 'hard loop id') didn't work all of a sudden. Noticed by: Mike Drangula (thanks!) via Jung-uk Kim (thanks!) END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-02-23T05:47:36.000000Z K 7 svn:log V 406 Add an xpt_rescan function and a thread that will field rescan requests. The purpose of this is to allow a SIM (or other entities) to request a bus rescan and have it then fielded in a different (process) context from the caller. There are probably better ways to accomplish this, but it's a very small change that helps solve a number of problems. Reviewed by: Justin, Ken and Scott. MFC after: 2 weeks END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-02-23T05:51:57.000000Z K 7 svn:log V 318 Use the new xpt_rescan function to truly now have dynamic attachment of new devices that arrive (and we notice them via async Fibre Channel events). We've always had the right thing (of sorts) happen when devices go away- this is the corollary function that makes multipath failover actually work. MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-02-23T11:08:45.000000Z K 7 svn:log V 127 mac_none sample policy has nothing to enforce, so remove sysctls. mac_stub acts as a template policy and holds sample sysctls. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-02-23T11:15:35.000000Z K 7 svn:log V 96 Remove empty entry point functions (init, destroy, syscall) from policies that don't need them. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-02-23T11:21:26.000000Z K 7 svn:log V 49 Remove many unneeded includes, update copyright. END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-23T12:19:07.000000Z K 7 svn:log V 290 o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@ END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-02-23T12:23:41.000000Z K 7 svn:log V 116 MFC rev. 1.98: Handle the case when both ISDOTDOT and NOCROSSMOUNT are set, inside lookup(). Submitted by: tegge END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-02-23T12:27:23.000000Z K 7 svn:log V 117 MFC rev. 1.285: Remove not needed acquision of the mount interlock aroung reading of mnt_kern_flags in ufs_itimes(). END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-02-23T13:47:34.000000Z K 7 svn:log V 324 MFp4 (114068): Use bus_get_dma_tag() to obtain the parent DMA tag to make the drivers a little bit more non-ia32/amd64 friendly. There is no man page for bus_get_dma_tag, so this is modelled after rev. 1.62 of src/sys/dev/sound/pci/es137x.c by marius. Inspired by: commit by marius END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-02-23T14:39:04.000000Z K 7 svn:log V 36 More unnecessary include reduction. END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-23T15:55:37.000000Z K 7 svn:log V 295 o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Approved by: re (implicit?) END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-23T16:21:08.000000Z K 7 svn:log V 89 Bump __FreeBSD_version after newbus api modification. Reviewed by: re@ Approved by: re@ END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-02-23T16:22:09.000000Z K 7 svn:log V 314 Add a new kernel sleep function pause(9). pause(9) is for places that want an equivalent of DELAY(9) that sleeps instead of spins. It accepts a wmesg and a timeout and is not interrupted by signals. It uses a private wait channel that should never be woken up by wakeup(9) or wakeup_one(9). Glanced at by: phk END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-02-23T16:25:08.000000Z K 7 svn:log V 248 Use 'pause' in several places rather than trying to tsleep() on NULL (which triggers a KASSERT) or local variables. In the case of kern_ndis, the tsleep() actually used a common sleep address (curproc) making it susceptible to a premature wakeup. END K 10 svn:author V 8 schweikh K 8 svn:date V 27 2007-02-23T16:50:17.000000Z K 7 svn:log V 21 Correct two grammos. END K 10 svn:author V 3 jls K 8 svn:date V 27 2007-02-23T18:41:12.000000Z K 7 svn:log V 115 Make cu/tip handle when $HOME is not set in the environment. Approved by: philip Submitted by: ale PR: bin/108775 END K 10 svn:author V 5 remko K 8 svn:date V 27 2007-02-23T18:44:20.000000Z K 7 svn:log V 178 Move to the preferred syntax for nice (-n) instead of the depricated one. PR: conf/108611 Submitted by: TAOKA Fumiyoshi Approved by: imp (mentor) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-02-23T19:27:49.000000Z K 7 svn:log V 28 Catchup to filters by piso. END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-02-23T19:34:52.000000Z K 7 svn:log V 21 Catchup with filters END K 10 svn:author V 4 emax K 8 svn:date V 27 2007-02-23T19:37:47.000000Z K 7 svn:log V 144 Check that the length of the received message is at least as big as a PDU before we use pdu->len. Submitted by: Iain Hibbert MFC after: 3 days END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-02-23T19:37:55.000000Z K 7 svn:log V 122 Move the lock init until after if_alloc in case the allocation fails and we free the softc and return. MFC after: 3 days END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-02-23T19:39:06.000000Z K 7 svn:log V 71 Use snd_setup_intr() instead of bus_setup_intr() , like other drivers. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-02-23T19:40:13.000000Z K 7 svn:log V 233 - Compile time compatibility for pre/post newbus API (intr filter) changes. This should ease the job of maintaining codebase since much of the regression tests are done across os versions. - bus_setup_intr() -> snd_setup_intr(). END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-02-23T19:41:16.000000Z K 7 svn:log V 195 - Revert arguments for several functions to pre bus_get_dma_tag() changes. Each softc contains information about their own device_t, use that instead. - bus_setup_intr() -> snd_setup_intr(). END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-02-23T19:41:34.000000Z K 7 svn:log V 21 Catchup with filters END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-02-23T19:46:59.000000Z K 7 svn:log V 295 Drop the global kernel linker lock while executing the sysinit's for a freshly-loaded kernel module. To avoid various unload races, hide linker files whose sysinit's are being run from userland so that they can't be kldunloaded until after all the sysinit's have finished. Tested by: gallatin END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-02-23T20:03:24.000000Z K 7 svn:log V 123 Use ih_filter instead of ih_handler in a couple of places. This fixes most INTR_FAST handlers on i386. Reviewed by: piso END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-23T20:11:27.000000Z K 7 svn:log V 283 o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Approved by: re (implicit?) END K 10 svn:author V 5 brian K 8 svn:date V 27 2007-02-23T20:23:35.000000Z K 7 svn:log V 741 Account for di_blocks allocations when IN_SPACECOUNTED is set in an inode's i_flag. It's possible that after ufs_infactive() calls softdep_releasefile(), i_nlink stays >0 for a considerable amount of time (> 60 seconds here). During this period, any ffs allocation routines that alter di_blocks must also account for the blocks in the filesystem's fs_pendingblocks value. This change fixes an eventual df/du discrepency that will happen as the result of fs_pendingblocks being reduced to <0. The only manifestation of this that people may recognise is the following message on boot: /somefs: update error: blocks -N files M at which point the negative pending block count is adjusted to zero. Reviewed by: tegge MFC after: 3 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-02-23T20:56:27.000000Z K 7 svn:log V 15 Fix mis-merge. END K 10 svn:author V 5 remko K 8 svn:date V 27 2007-02-23T21:07:44.000000Z K 7 svn:log V 206 Fix the cdboot twiddle display. I created and tested this with a custom FreeSBIE cd-image. PR: i386/96452 Submitted by: Yuichiro Goto MFC after: 3 days Approved by: imp (mentor) END K 10 svn:author V 4 ceri K 8 svn:date V 27 2007-02-23T21:15:14.000000Z K 7 svn:log V 61 Use the RB_AUTOBOOT define over 0. Approved by: ru (mentor) END K 10 svn:author V 5 remko K 8 svn:date V 27 2007-02-23T21:42:54.000000Z K 7 svn:log V 258 Only match on log messages containing fail,invalid, bad or illegal. This prevents matching on systems that have a name that matches the query. PR: conf/107560 Submitted by: Christian Laursen MFC after: 3 days Approved by: imp (mentor) END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-02-23T21:59:21.000000Z K 7 svn:log V 470 Don't attempt to load illegal hard loop addresses into an ICB. This shows up on card restarts, and usually for 2200-2300 cards. What happens is that we start up, attempting to acquire a hard address. We end up instead being an F-port topology, which reports out a loop id of 0xff (or 0xffff for 2K Login f/w). Then, if we restart, we end up telling the card to go off an acquire this loop address, which the card then rejects. Bah. Compilation fixes from Solaris port. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-02-23T22:29:24.000000Z K 7 svn:log V 115 MFp4 (part of 114132): - Fix a LOR caused by holding emul_lock and proctree_lock at once. Submitted by: rdivacky END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-02-23T22:39:26.000000Z K 7 svn:log V 485 MFp4 (114193 (i386 part), 114194, 114195, 114200): - Dont "return" in linux_clone() after we forked the new process in a case of problems. - Move the copyout of p2->p_pid outside the emul_lock coverage in linux_clone(). - Cache the em->pdeath_signal in a local variable and move the copyout out of the emul_lock coverage. - Move the free() out of the emul_shared_lock coverage in a preparation to switch emul_lock to non-sleepable lock (mutex). Submitted by: rdivacky END K 10 svn:author V 6 scottl K 8 svn:date V 27 2007-02-23T22:53:56.000000Z K 7 svn:log V 221 Fix a case in rman_manage_region() where the resource list would get missorted. This would in turn confuse rman_reserve_resource(). This was only seen for MSI resources that can get allocated and deallocated after boot. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-02-23T23:05:31.000000Z K 7 svn:log V 16 Whitespace fix. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-02-23T23:06:10.000000Z K 7 svn:log V 61 Use tsleep() rather than msleep() with a NULL mtx parameter. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-02-23T23:13:46.000000Z K 7 svn:log V 75 Redo previous newbus related change to be kinder to multi-release support. END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-24T02:28:07.000000Z K 7 svn:log V 283 o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Approved by: re (implicit?) END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-24T11:11:36.000000Z K 7 svn:log V 841 MFC rev 1.68: Drop unicast Ethernet frames not destined for the configured address of a tap(4) instance, if IFF_PROMISC is not set. In tap(4), we should emulate the effect IFF_PROMISC would have on hardware, otherwise we risk introducing layer 2 loops if tap(4) is used with bridges. This means not even bpf(4) gets to see them. This patch has been tested in a variety of situations. Multicast and broadcast frames are correctly allowed through. I have observed this behaviour causing problems with multiple QEMU instances hosted on the same FreeBSD machine. The checks in in ether_demux() [if_ethersubr.c, rev 1.222, line 638] are insufficient to prevent this bug from occurring, as ifp->if_vlantrunk will always be NULL for the non-vlan case. PR: 86429 Submitted by: Pieter de Boer (with changes) END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-24T11:38:47.000000Z K 7 svn:log V 285 Make IPv6 multicast forwarding dynamically loadable from a GENERIC kernel. It is built in the same module as IPv4 multicast forwarding, i.e. ip_mroute.ko, if and only if IPv6 support is enabled for loadable modules. Export IPv6 forwarding structs to userland netstat(1) via sysctl(9). END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-24T11:41:05.000000Z K 7 svn:log V 65 Note that IPv6 multicast forwarding is now dynamically loadable. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-02-24T14:27:36.000000Z K 7 svn:log V 101 Convert sis(4) to use its own watchdog procedure. Submitted by: Florian C. Smeets END K 10 svn:author V 6 philip K 8 svn:date V 27 2007-02-24T15:10:25.000000Z K 7 svn:log V 114 MFC: Optimize set_origin() use in some screensavers to stop them eating cpu power when the origin hasn't changed. END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-02-24T15:56:06.000000Z K 7 svn:log V 99 exca->pccarddev should always be non-null now. Only call it when the device is actually attached. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-02-24T16:08:03.000000Z K 7 svn:log V 86 MFC rev 1.112: Use __NO_STRICT_ALIGNMENT, instead of special casing ia64 and sparc64. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-02-24T16:49:25.000000Z K 7 svn:log V 133 Partial MFp4 of 114977: Whitespace commit: Fix grammar, spelling and punctuation. Submitted by: "Scot Hetzel" END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-24T16:56:22.000000Z K 7 svn:log V 92 Updated ia64 isa support with the new bus_setup_intr() syntax. Approved by: re (implicit?) END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-24T19:45:09.000000Z K 7 svn:log V 32 Note newbus API & ABI breakage. END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-24T20:15:04.000000Z K 7 svn:log V 89 Update my previous note about newbus API breakage mentioning the __FreeBSD_version bump. END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-24T21:09:35.000000Z K 7 svn:log V 205 Fix tinderbox. ip6_mrouter should be defined in raw_ip6.c as it is tested to determine if the userland socket is open; this, in turn, is used to determine if the module has been loaded. Tested with: LINT END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-24T21:21:53.000000Z K 7 svn:log V 50 Reword addition about MROUTING. Submitted by: ru END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-24T21:42:21.000000Z K 7 svn:log V 127 Add comments about where netstat is using KVM to read things which should really be available via sysctl for a running system. END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-24T21:56:52.000000Z K 7 svn:log V 142 Use the names 'IPv4' and 'Forwarding Table' in program output, not 'Routing Table', to be consistent with what the code actually does and is. END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-24T21:58:30.000000Z K 7 svn:log V 209 Use sysctl(2), not kvm(3), to read IPv6 multicast information from the running system. Use the name 'IPv6 Forwarding Table', not 'IPv6 Routing Table', to be consistent with what the code actually does and is. END K 10 svn:author V 5 simon K 8 svn:date V 27 2007-02-24T21:59:18.000000Z K 7 svn:log V 103 - Use a permanent URL to reference piso's mail. - Put URL on seperate line to not get very long lines. END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-02-24T23:12:58.000000Z K 7 svn:log V 204 set the antenna switch when fixing the tx antenna using the dev.ath.X.txantenna sysctl; this is typically what folks want but beware this has the side effect of disabling rx diversity MFC after: 2 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-02-24T23:23:29.000000Z K 7 svn:log V 191 don't call ath_reset when processing sysctl's before the device is marked running; we don't have all the needed state in place Noticed by: Hugo Silva MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-02-24T23:55:46.000000Z K 7 svn:log V 86 use getifaddrs from libc instead of private code Reviewed by: bms MFC after: 1 month END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-02-25T00:10:59.000000Z K 7 svn:log V 46 Improve ipx_ip.c's approximation of style(9). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-02-25T00:17:56.000000Z K 7 svn:log V 29 Further style(9) for ipx_ip. END K 10 svn:author V 4 grog K 8 svn:date V 27 2007-02-25T01:08:17.000000Z K 7 svn:log V 41 Tidy up forrmat. No functional changes. END K 10 svn:author V 4 grog K 8 svn:date V 27 2007-02-25T01:28:37.000000Z K 7 svn:log V 97 Add support for selecting from multiple tuners. Suggested by: usleepless END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-25T01:58:02.000000Z K 7 svn:log V 69 Add a regression test for ethernet link-layer multicast memberships. END K 10 svn:author V 3 bde K 8 svn:date V 27 2007-02-25T05:01:05.000000Z K 7 svn:log V 400 MFC (1.80: style fixes and 1.81: fix high resolution kernel profiling). I was reminded of the brokenness when attempting to profile sendto() to compare RELENG_6 with -current. Just configuring high res profiling made sendto() with profiling inactive almost twice as slow in RELENG_6, and actual profiles were almost unusable due to multiple copies of non-inlined inline functions like curthread(). END K 10 svn:author V 3 bde K 8 svn:date V 27 2007-02-25T05:36:25.000000Z K 7 svn:log V 75 MFC (1.118: only bzero() data in rtalloc1() if the data is actually used). END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-02-25T06:14:58.000000Z K 7 svn:log V 559 Change the way that unmanaged pages are created. Specifically, immediately flag any page that is allocated to a OBJT_PHYS object as unmanaged in vm_page_alloc() rather than waiting for a later call to vm_page_unmanage(). This allows for the elimination of some uses of the page queues lock. Change the type of the kernel and kmem objects from OBJT_DEFAULT to OBJT_PHYS. This allows us to take advantage of the above change to simplify the allocation of unmanaged pages in kmem_alloc() and kmem_malloc(). Remove vm_page_unmanage(). It is no longer used. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-02-25T06:17:56.000000Z K 7 svn:log V 270 Fix ALC883 microphone / recording issues. Setting high(er) VRef on (external) microphone pin tend to screw it. Internal microphone (found on several laptops) still need high VRef. Tested by: Pietro Cerutti lenix END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-02-25T06:51:11.000000Z K 7 svn:log V 41 Remove the traces of vm_page_unmanage(). END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-02-25T07:24:44.000000Z K 7 svn:log V 182 MFC write.c 1.54. This implements -r support for empty or nonexistent files and corrects the bad handling of files that change size during archiving. PR: bin/108607 PR: bin/108990 END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T10:52:47.000000Z K 7 svn:log V 21 Use uma_set_align(). END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-02-25T12:40:35.000000Z K 7 svn:log V 334 MFp4 (110523, parts which apply cleanly): semi-automatic style(9) The futex stuff already differs a lot (only a small part does not differ) from NetBSD, so we are already way off and can't apply changes from NetBSD automatically. As we need to merge everything by hand already, we can even make the files comply to our world order. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-02-25T12:43:07.000000Z K 7 svn:log V 69 MFp4 (110541): Sync with rev 1.7 in NetBSD. Obtained from: NetBSD END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-02-25T13:51:52.000000Z K 7 svn:log V 24 semi-automatic style(9) END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-25T14:22:03.000000Z K 7 svn:log V 77 Unlock a mutex which should be unlocked before returning. MFC after: 1 week END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-25T14:31:41.000000Z K 7 svn:log V 72 Update multicast(4) manual page to reflect the new reality of the code. END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-25T14:34:59.000000Z K 7 svn:log V 106 Fix attach of at91_pio() after bus_setup_intr() modification. Reported and tested by: Krassimir Slavchev END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-02-25T14:48:29.000000Z K 7 svn:log V 322 MFC rev 1.163: Clean up after tun(4) properly; remove routes whose ifp is set to that of the tun instance even for the !AF_INET case, and properly remove configured addresses by calling if_purgeaddrs(). Maintain the TUN_DSTADDR behaviour for compatibility with the OS/390 emulator. PR: 100080 Reviewed by: bz END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-25T14:53:55.000000Z K 7 svn:log V 42 Garbage collect a reference to INTR_FAST. END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-25T15:02:03.000000Z K 7 svn:log V 93 Catch up with bus_setup_intr() modification and garbage collect two references to INTR_FAST. END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-02-25T15:04:08.000000Z K 7 svn:log V 90 Catch up with bus_setup_intr() modification and garbage collect a reference to INTR_FAST. END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T16:07:23.000000Z K 7 svn:log V 143 MFC: miivar.h 1.16; nsgphy.c 1.20 Add macros which follow the miidevs design pattern to make it easier to construct tables for mii_phy_match. END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T16:57:43.000000Z K 7 svn:log V 673 MFC: acphy.c 1.19; amphy.c 1.20; bmtphy.c 1.12; brgphy.c 1.44, 1.47; ciphy.c 1.7; inphy.c 1.16; ip1000phy.c 1.2; lxtphy.c 1.18; mii_physubr.c 1.28; miivar.h 1.20; nsgphy.c 1.24; nsphy.c 1.27; pnaphy.c 1.18; qsphy.c 1.18; rgephy.c 1.12; rlphy.c 1.25, 1.27, 1.28; tdkphy.c 1.20; tlphy.c 1.21; xmphy.c 1.20 Add a helper function mii_phy_dev_probe(), which wraps around the mii_phy_match() API and takes care of the PHY device probe based on the struct mii_phydesc array and the match return value provided. Convert PHY drivers to take advantage of mii_phy_dev_probe(), converting drivers to provide a mii_phydesc table in the first place where necessary. END K 10 svn:author V 2 ru K 8 svn:date V 27 2007-02-25T17:34:16.000000Z K 7 svn:log V 70 Mark the vm_page_unmanage(9) manpage as obsolete. Reminded by: maxim END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T17:57:12.000000Z K 7 svn:log V 492 MFC: brgphy.c 1.48; ciphy.c 1.6, 1.8; mlphy.c 1.22; rgephy.c 1.13; tdkphy.c 1.21; tlphy.c 1.22; xmphy.c 1.21 Some style changes to a couple of PHY drivers: - Fix some whitespace nits. - Fix some spelling in comments. - Use MII_ANEGTICKS instead of 5. - Don't define variables in nested scope. - Remove superfluous returns at the end of void functions. - Remove unused static global rgephy_mii_model. - Remove dupe $FreeBSD$ in ciphy(4) and dupe $Id$ in tdkphy(4). - Sort brgphys table. END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:11:00.000000Z K 7 svn:log V 555 MFC: 1.9 (partial), 1.14, 1.15 - Remove the first rgephy_reset() invocation in rgephy_attach(). This seems to have been missed when merging rev. 1.9, which actually moves the rgephy_reset() invocation further down, in rev. 1.6.2.1. - Don't set MIIF_NOISOLATE so rgephy(4) can be used in configurations with multiple PHYs and un-comment case IFM_NONE in case MII_MEDIACHG rgephy_service(). There doesn't seem to be a problem with isolating RTL8169S and their internal PHY. - Take advantage of mii_phy_add_media(). [1] Obtained from: NetBSD [1] END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:13:14.000000Z K 7 svn:log V 673 MFC: 1.22 - Don't set MIIF_NOISOLATE so tdkphy(4) can be used in configurations with multiple PHYs. There doesn't seem to be a problem with isolating 78Q2120 per se nor in combination with the NICs they're used with and tdkphy(4) was already adding IFM_NONE anyway. - Set MIIF_NOLOOP as loopback doesn't work with this PHY. The MIIF_NOLOOP flag currently triggers nothing but hopefully will be respected by mii_phy_setmedia() later on. - Use mii_phy_add_media() instead of mii_add_media() so the latter can be eventually retired. - Take advantage of mii_phy_setmedia(). Thanks to Hans-Joerg Sirtl for lending me test hardware. Obtained from: NetBSD tqphy(4) END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:16:31.000000Z K 7 svn:log V 382 MFC: 1.35 - Add another Altima PHY, which is a AC101 workalike and integrated in at least ADMtek ADM8511 but apparently is not mentioned in any publically available data sheet so the actual identifier is unknown. - Add Davicom DM9102 PHY. - Add DM9101 to the description of AMD 79C873 as at least some Davicom DM9101F identify identical to AMD 79C873. Obtained from: NetBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:18:27.000000Z K 7 svn:log V 124 MFC: 1.2 - Correct the AC_MCTL_BYP_PCS constant. - Correct whitespace nits (use #define, remove trailing whitespace). END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:20:28.000000Z K 7 svn:log V 847 MFC: 1.20 - In acphy_service() for the MII_TICK case don't bother to check whether the currently selected media is of type IFM_AUTO as auto-negotiation doesn't need to be kicked anyway. - Fix a whitespace nit. - Probe another Altima PHY, which is a AC101 workalike and integrated in at least ADMtek ADM8511 but apparently is not mentioned in any publically available data sheet so the actual identifier is unknown. - Don't set MIIF_NOISOLATE so acphy(4) can be used in configurations with multiple PHYs. There doesn't seem to be a problem with isolating AC101 and workalikes per se nor in combination with the NICs they're used with. - Use mii_phy_add_media() instead of mii_add_media() so the latter can be eventually retired. - Take advantage of mii_phy_setmedia(). Obtained from: NetBSD (except for the first and second item) END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:22:30.000000Z K 7 svn:log V 242 MFC: 1.21 Set MIIF_HAVE_FIBER and add IFM_100_FX media when the AC_MCTL_FX_SEL and thus the FX_DIS pin indicates fibre media. This is part 1/2 of adding support for the 100baseFX interface/port of AT-2700 series adaptors. Idea from: NetBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:25:14.000000Z K 7 svn:log V 541 MFC: 1.21, 1.22 - Probe Davicom DM9102 PHYs. - Don't set MIIF_NOISOLATE so amphy(4) can be used in configurations with multiple PHYs. There doesn't seem to be a problem with isolating AM79c873 and workalikes per se nor in combination with the NICs they're used with and amphy(4) was already adding IFM_NONE anyway. - Use mii_phy_add_media() instead of mii_add_media() so the latter can be eventually retired. - Take advantage of mii_phy_setmedia(). - Fix a whitespace nit. Obtained from: NetBSD dmphy(4) (except for the last item) END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:31:48.000000Z K 7 svn:log V 165 MFC: exphy.c 1.22; inphy.c 1.17 Use mii_phy_add_media()/mii_phy_setmedia()-compatible media table indices when manually adding media. These were longstanding bugs. END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:34:57.000000Z K 7 svn:log V 297 MFC: 1.23 - Take advantage of mii_phy_dev_probe(). - In exphy_service() for the MII_TICK case don't bother to check whether the currently selected media is of type IFM_AUTO as auto-negotiation doesn't need to be kicked anyway. - Remove #if 0'ed unapplicable code. - Fix some whitespace nits. END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T18:36:36.000000Z K 7 svn:log V 336 MFC: 1.6 - Take advantage of mii_phy_dev_probe() and mii_phy_setmedia(). - Set MIIF_NOLOOP as loopback doesn't work with this PHY. The MIIF_NOLOOP flag currently triggers nothing but hopefully will be respected by mii_phy_setmedia() later on. - Use MII_ANEGTICKS instead of 5. - Remove an unused macro. - Fix some whitespace nits. END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T19:02:01.000000Z K 7 svn:log V 2207 MFC: if_pcn.c 1.76, 1.81, 1.82; if_pcnreg.h 1.15 - In detach method, move if_free() after bus_teardown_intr(). - Clear the PCN_MISC_ASEL bit so the media port can be actually set via the PCN_CSR_MODE register. Along with sys/dev/mii/nsphy.c 1.23.2.3 this fixes the case of certain Am79c971-based HP cards and on-board ones in IBM machines reporting link but not actually passing any traffic. [1] - Add support for the internal 10baseT PHY, which actually is used on at least said HP cards (together with an external DP83840A in a multiple PHYs configuration). With cards that don't make use of this internal PHY it'll also show up in FreeBSD but not cause any harm. This is still missing support for multiple PHYs configuration using the internal 100baseTX and/or HomePNA PHYs together with external PHYs or multiple external PHYs though. - Allow multiple (external) PHYs with Am79C97{2,6}, which actually only support external PHYs (besides not connectable internal ones which respond at the usual addresses, but which don't hurt if we let them show up) and don't wedge when isolating PHYs. Actually, this change special cases limiting PHYs to Am79C97{3,5,8}, for which this driver doesn't implement swiching between the internal and external PHYs, yet, and Am79C971, where isolating the external PHY (at least in case it's a DP83840A) wedges the chip. Together with sys/dev/mii/acphy.c rev. 1.16.2.5 this adds support for the 100baseFX port of AT-2700 series adaptors, which use two AC101, one for the copper and one for the fibre port (there might be variants which only use one PHY though). - In pcn_ifmedia_upd() call pcn_reset() as otherwise the Am79C971 of at least said HP cards can wedge when switching from the internal 10baseT PHY to the external PHY. This means that we need to also initialize and possibly start the chip again in pcn_ifmedia_upd(), which isn't that bad though as for setting the media port the chip has to be powered down or stopped anyway and unlike documented doesn't take effect until the next initialization. - Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that. PR: 27995, 25959, 72966 (likely) [1] END K 10 svn:author V 6 marius K 8 svn:date V 27 2007-02-25T19:08:54.000000Z K 7 svn:log V 38 MFC: 1.48 Fix typo in printf string. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-02-25T21:23:50.000000Z K 7 svn:log V 158 Don't assert() the TLS allocation requested is big enough; just fix the argument. In particular, this is a step towards breaking crt1's dependence on stdio. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-02-25T22:17:54.000000Z K 7 svn:log V 50 Update for the new prototype of bus_setup_intr(). END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-02-25T23:08:22.000000Z K 7 svn:log V 39 MFC: remove useless ixp425_icu_init(). END K 10 svn:author V 6 cognet K 8 svn:date V 27 2007-02-25T23:09:51.000000Z K 7 svn:log V 110 MFC (in preparation for IXP425 support): Use the good prototype for bus_space_unmap(). Add stream operations. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-02-26T00:33:06.000000Z K 7 svn:log V 179 MFC r1.93 Move the lock init until after if_alloc in case the allocation fails and we free the softc and return. END