154937 63 839 319 161 104 1491 277 277 158 319 254 150 119 120 239 123 284 908 162 856 154 115 139 459 984 443 206 219 191 226 139 1425 227 175 1316 264 185 157 446 148 225 141 130 112 183 323 143 123 151 142 145 169 190 919 140 159 387 245 138 190 134 147 178 249 K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-27T22:42:12.000000Z K 7 svn:log V 746 - Add support for having both a shared and exclusive queue of threads in each turnstile. Also, allow for the owner thread pointer of a turnstile to be NULL. This is needed for the upcoming reader/writer lock implementation. - Add a new ddb command 'show turnstile' that will look up the turnstile associated with the given lock argument and display useful information like the list of threads blocked on each queue, etc. If there isn't an active turnstile for a lock at the specified address, then the function will see if there is an active turnstile at the specified address and display info about it if so. - Adjust the mutex code to handle the turnstile API changes. Tested on: i386 (all), alpha, amd64, sparc64 (1 and 3) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-27T23:04:43.000000Z K 7 svn:log V 226 Oops, commit missed file from the previous change to enable multiple queues in turnstiles. Add a new thread member td_tsqueue which contains the sub-queue of a turnstile that a thread is on when it is blocked on a turnstile. END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2006-01-27T23:05:38.000000Z K 7 svn:log V 65 Fix a fat fingered revision number in my cvs diff. Not my month. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-27T23:06:08.000000Z K 7 svn:log V 12 Whitespace. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-27T23:13:26.000000Z K 7 svn:log V 1397 Add a basic reader/writer lock implementation to the kernel. This implementation is by no means perfect as far as some of the algorithms that it uses and the fact that it is missing some functionality (try locks and upgrades/downgrades are not there yet), however it does seem to work in my local testing. There is more detail in the comments in the code, but the short version follows. A reader/writer lock is very much like a regular mutex: it cannot be held across a voluntary sleep; it can be acquired in an interrupt thread; if the lock is held by a writer then the priority of any threads that block on the lock will be lent to the owner; the simple case lock operations all are done in a single atomic op. It also shares some similiarities with sx locks: it supports reader/writer semantics (multiple readers, but single writers); readers are allowed to recurse, but writers are not. We can extend this implementation further by either improving algorithms or adding new functionality, but this should at least give us a base to work with now. Reviewed by: arch (in theory) Tested on: i386 (4 cpu box with a kernel module that used 4 threads that randomly chose between read locks and write locks that ran w/o panicing for over a day solid. It usually panic'd within a few seconds when there were bugs during testing. :) The kernel module source is available on request.) END K 10 svn:author V 8 truckman K 8 svn:date V 27 2006-01-28T00:31:56.000000Z K 7 svn:log V 179 MFC kern_sysctl.c 1.168 Touch all the pages wired by sysctl_wire_old_buffer() to avoid PTE modified bit emulation traps on Alpha while holding locks in the sysctl handler. END K 10 svn:author V 8 truckman K 8 svn:date V 27 2006-01-28T00:43:53.000000Z K 7 svn:log V 179 MFC kern_sysctl.c 1.168 Touch all the pages wired by sysctl_wire_old_buffer() to avoid PTE modified bit emulation traps on Alpha while holding locks in the sysctl handler. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-28T00:49:31.000000Z K 7 svn:log V 66 lock unused when INVARIANTS not defined, so don't declare it then END K 10 svn:author V 3 brd K 8 svn:date V 27 2006-01-28T01:11:11.000000Z K 7 svn:log V 226 - Mention that users need to be in the wheel group to `su - root' by default, and how to change it. PR: docs/70616 Submitted by: Jilles Tjoelker Reviewed by: ru@ Approved by: ceri@ MFC after: 3 days END K 10 svn:author V 4 kris K 8 svn:date V 27 2006-01-28T03:06:35.000000Z K 7 svn:log V 160 Back out r1.653; it turns out that the race (or at least the printf) is actually not hard to trigger, and it can cause a lot of console spam. Approved by: kan END K 10 svn:author V 4 kris K 8 svn:date V 27 2006-01-28T04:02:54.000000Z K 7 svn:log V 57 MFC: Correct spelling of T_TAG_OFERFLOW Approved by: re END K 10 svn:author V 4 nyan K 8 svn:date V 27 2006-01-28T07:38:15.000000Z K 7 svn:log V 26 MFi386: revision 1.10.4.1 END K 10 svn:author V 4 nyan K 8 svn:date V 27 2006-01-28T07:55:19.000000Z K 7 svn:log V 27 MFi386: revision 1.10.10.1 END K 10 svn:author V 3 dds K 8 svn:date V 27 2006-01-28T09:19:20.000000Z K 7 svn:log V 146 Never do programs contain so few bugs as when no debugging tools are available. -- Niklaus Wirth Pointed by: Panagiotis Louridas END K 10 svn:author V 3 pav K 8 svn:date V 27 2006-01-28T11:08:47.000000Z K 7 svn:log V 31 - Add ports-net-p2p collection END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-28T14:13:15.000000Z K 7 svn:log V 191 - Add a note that passing NULL to pidfile_write(), pidfile_remove() and pidfile_close() functions is safe. This possibility is used in example code. - Cast pid_t to int. Requested by: yar END K 10 svn:author V 2 bz K 8 svn:date V 27 2006-01-28T14:37:35.000000Z K 7 svn:log V 816 MFC: rev. 1.39 sys/net/if_gre.c rev. 1.21 sys/netinet/ip_gre.c rev. 1.4 sys/netinet/ip_gre.h rev. 1.12 sys/netipsec/keysock.c rev. 1.3 sys/netipsec/keysock.h rev. 1.32 sys/netkey/keysock.c rev. 1.9 sys/netkey/keysock.h Fix stack corruptions on amd64. Vararg functions have a different calling convention than regular functions on amd64. Casting a varag function to a regular one to match the function pointer declaration will hide the varargs from the caller and we will end up with an incorrectly setup stack. Entirely remove the varargs from these functions and change the functions to match the declaration of the function pointers. Remove the now unnecessary casts. Lots of explanations and help from: peter PR: amd64/89261 END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-01-28T15:50:19.000000Z K 7 svn:log V 67 Squash another invalid use of BUS_DMA_ALLOCNOW. MFC After: 3 days END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-01-28T16:38:28.000000Z K 7 svn:log V 763 Temporarily back out the last change, rev. 1.7.2.2. The problem with it was that it swapped the relative order of IP assignment and parent interface attachment. The present if_vlan code gets certain flags from the parent, including those meaningful to the upper layers. E.g., IP assignment to an interface with IFF_BROADCAST goes somewhat differently from that to a non-broadcast interface. Consequently, assigning IP before attaching the parent results in a bogus or missing broadcast address on the vlan interface. This bug is still here, but at least it won't be triggered by doing both vlanX configuration steps, IP and vlan+vlandev, in a single ifconfig invocation, which is usual to setting up vlans via rc.conf. Work at the global issue is under way. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-01-28T17:51:20.000000Z K 7 svn:log V 59 Add _rwlock.h, apparently missed from the rwlock.h commit. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2006-01-28T17:56:16.000000Z K 7 svn:log V 20 s/R_IA64_/R_IA_64_/ END K 10 svn:author V 6 marcel K 8 svn:date V 27 2006-01-28T17:58:22.000000Z K 7 svn:log V 44 s/DT_IA64_PLT_RESERVE/DT_IA_64_PLT_RESERVE/ END K 10 svn:author V 6 marcel K 8 svn:date V 27 2006-01-28T18:40:55.000000Z K 7 svn:log V 363 MFC ia64 psABI conformance changes: s/R_IA64_/R_IA_64_/ s/DT_IA64_/DT_IA_64_/ libexec/rtld-elf/ia64/reloc.c:1.17,1.18 libexec/rtld-elf/ia64/rtld_start.S:1.4 sys/boot/ia64/efi/start.S:1.9,1.10 sys/ia64/ia64/elf_machdep.c:1.23 sys/ia64/ia64/genassym.c:1.42 sys/ia64/ia64/locore.S:1.39 sys/ia64/include/elf.h:1.12,1.13,1.14 usr.bin/elfdump/elfdump.c:1.14 END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-01-28T19:24:40.000000Z K 7 svn:log V 890 Manage the ucred for the NFS server using the crget/crfree API defined in kern_prot.c. This API handles reference counting among many other things. Notably, if MAC is compiled into the kernel, it will properly initialize the MAC labels when the ucred is allocated. This work is in preparation for a new MAC entry point which will be responsible for properly initializing policy specific labels for the NFS server credential. Utilization of the crfree/crget APIs reduce the complexity associated with this label's management. Submitted by: green (with changes) [1] Obtained from: TrustedBSD Project Discussed with: rwatson, alfred [1] I moved the ucred allocation outside the scope of the NFS server lock to prevent M_WAIKOK allocations from occurring with non-sleep-able locks held. Additionally, to reduce complexity, the ucred persist as long as the NFS server descriptor. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-28T21:03:16.000000Z K 7 svn:log V 346 Use $FreeBSD$ for the juggle version, rather than $P4$. This is good for two reasons: (1) juggle is now maintained in CVS, not P4, so the CVS revision number is the authoritative one. (2) Apparently $P4$ requires special handling and juggle was not marked as needing it, resulting in problems for the P4 importer. Requested by: gordon END K 10 svn:author V 8 ssouhlal K 8 svn:date V 27 2006-01-28T22:58:39.000000Z K 7 svn:log V 108 Don't try to load KLDs if we're mounting the root. We'd otherwise panic. Tested by: kris MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-28T23:31:19.000000Z K 7 svn:log V 122 Rename use_old_pty variable to use_pts, as this more accurately reflects the sense of the variable. Suggested by: dwhite END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-01-29T00:02:54.000000Z K 7 svn:log V 95 MFC: add a workaround for dropped interrupts on VIA EHCI controllers. Tested by: Juergen Lock END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-01-29T00:02:57.000000Z K 7 svn:log V 130 If the sysctl kern.pts.enable doesn't exist, check that /dev/ptmx is there, and if so, use the pts system. Suggested by: rwatson END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-29T00:32:40.000000Z K 7 svn:log V 47 Add a reference to geli(8). MFC after: 3 days END K 10 svn:author V 3 flz K 8 svn:date V 27 2006-01-29T00:46:57.000000Z K 7 svn:log V 1331 MFC: Add Product IDs : - Sandisk Cruzer Micro 128MB [5] - DANE-ELEC zMate 512MB USB flash drive [7] - Attache 256MB USB 2.0 Flash Drive [8] - Sandisk Cruzer Micro 256MB [9] Add scsi_da.c quirks : - Samsung USB key 128Mb [1] - Kingston DataTraveler 2.0 [2] - Creative MuVo Slim [3] - United MP 5512 Portable MP3 Player [4] - Sandisk Cruzer Micro 128MB [5], [9] - PNY USB Flash keys [6], [7], [8] Add umass.c quirks : - Sandisk Cruzer Micro 128MB [5] - DANE-ELEC zMate 512MB USB flash drive [7] - Attache 256MB USB 2.0 Flash Drive [8] - Sandisk Cruzer Micro 256MB [9] src/sys/dev/usb/usbdevs: rev 1.249 -> 1.250 src/sys/cam/scsi/scsi_da.c: rev 1.184 -> 1.185 src/sys/dev/usb/umass.c: rev 1.128 -> 1.130 PR: usb/90081 [1], usb/89196 [2], kern/86131 [3], usb/80487 [4], usb/75970 [5], usb/75578 [6], usb/72344 [7], usb/65436 [8], usb/70835 [9] Submitted by: Henri-Pierre CHARLES [1], Andrey Simonenko [2], Erich Rickheit KSC [3], tnu@chania.di.uoa.gr [4], Bram Abbekerk [5], Thomas Pornin [6], parv [7], Peter D. Quilty [8], Raymundo M. Vega [9] END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-01-29T01:26:46.000000Z K 7 svn:log V 130 MFC: synchronise the OHCI driver with HEAD: o Add some identification strings and vendor IDs o Set sc_dying to 1 when detaching END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-29T01:32:37.000000Z K 7 svn:log V 81 Tune format scoring so (non)stereo format will get better chance to be selected. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-29T02:27:28.000000Z K 7 svn:log V 1220 MFC: Various fixups: feeder.h: feeder.c: - Implement scoring mechanisme to select best format for conversion. This is actually part of newer format chaining procedures which will be commited someday. Confusion during chaining process solved by this scoring since it will try to reduce list of from/to formats to a single, best format. Related PR: kern/91683 channel.c: - Simplify feeder building process since we have smarter format chaining. - (1) Fix DMA alignment, based on bytes per sample. feeder_fmt.c: - Add few more sign conversion feeders for 24 and 32 bit format. feeder_rate.c: - Force buffer / bytes allignment. Unaligned buffer may cause panics during recording on pure 32bit sample format if it involves feeder_rate as part of feeders chain. Handle strayed bytes (mostly caused by #1) better. Tested on: ATI IXP, force 32bit recording. This DMA alignment issues are extremely hard to reproduce unless the user happen to have a 32bit capable soundcards (ATI IXP) and knowledgeable enough to force it to operate under pure 32bit operations on both record and play directions. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-29T02:33:17.000000Z K 7 svn:log V 169 MFC: Turn on native 32bit recording (at 48000hz). It works perfectly on my Compaq Presario M2000Z, but my last attempt on Acer Ferrari 4000 only produce garbled sound. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-29T02:35:19.000000Z K 7 svn:log V 91 MFC: Enable full duplex operation since it works and to solve panic issue. PR: kern/91992 END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2006-01-29T02:35:22.000000Z K 7 svn:log V 62 Unbreak on archs where %d doesn't print uintptr_t arithmetic. END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2006-01-29T02:52:42.000000Z K 7 svn:log V 350 firmware(9) is a subsystem to load binary data into the kernel via a specially crafted module. There are several handrolled sollutions to this problem in the tree already which will be replaced with this. They include iwi(4), ipw(4), ispfw(4) and digi(4). No objection from: arch MFC after: 2 weeks X-MFC after: some drivers have been converted END K 10 svn:author V 4 nyan K 8 svn:date V 27 2006-01-29T03:32:19.000000Z K 7 svn:log V 55 Set MACHINE to i386(pc98). This fixes cross-building. END K 10 svn:author V 3 njl K 8 svn:date V 27 2006-01-29T05:51:58.000000Z K 7 svn:log V 132 Enable the lowest Cx state by default. This will save power and we have had enough testing of acpi_cpu to know this is stable now. END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T06:52:35.000000Z K 7 svn:log V 49 MFC 1.18: bandaid assumption that char is signed END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T06:55:03.000000Z K 7 svn:log V 38 MFC 1.15: don't assume char is signed END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T06:56:27.000000Z K 7 svn:log V 20 MFC: add LINT build END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T07:11:24.000000Z K 7 svn:log V 91 MFC: update erp information element in the beacon frame to reflect changes in the bss END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T07:13:03.000000Z K 7 svn:log V 230 MFC 1.27: enable "aggressive mode" only when operating in ap or station mode; in particular this fixes use of wme in adhoc demo mode, it wasn't possible to set the txop limit because the aggressive mode logic would override END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T07:13:58.000000Z K 7 svn:log V 51 MFC 1.6: add flag to tag frames w/ a known bad FCS END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T07:17:02.000000Z K 7 svn:log V 31 MFC: update monitoring support END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T07:18:09.000000Z K 7 svn:log V 59 MFC 1.72: bump the scan generation number before iterating END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T07:20:23.000000Z K 7 svn:log V 50 MFC 1.68: propagate current bss state on sta join END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T07:28:02.000000Z K 7 svn:log V 53 MFC 1.86: bounds check each ie's length when parsing END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-29T07:33:27.000000Z K 7 svn:log V 77 MFC: switch beacon miss threshold from a time to the number of beacon frames END K 10 svn:author V 6 avatar K 8 svn:date V 27 2006-01-29T07:46:26.000000Z K 7 svn:log V 95 MFC: (1.4, 1.5) Allow the gif module to be built without IPv6 support when NOINET6 is defined. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-01-29T08:24:54.000000Z K 7 svn:log V 823 The change a few years ago of having contigmalloc start its scan at the top of physical RAM instead of the bottom was a sound idea, but the implementation left a lot to be desired. Scans would spend considerable time looking at pages that are above of the address range given by the caller, and multiple calls (like what happens in busdma) would spend more time on top of that rescanning the same pages over and over. Solve this, at least for now, with two simple optimizations. The first is to not bother scanning high ordered pages that are outside of the provided address range. Second is to cache the page index from the last successful operation so that subsequent scans don't have to restart from the top. This is conditional on the numpages argument being the same or greater between calls. MFC After: 2 weeks END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2006-01-29T08:44:05.000000Z K 7 svn:log V 45 Use ".Pa" for path names. MFC after: 3 days END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-01-29T11:32:48.000000Z K 7 svn:log V 65 MFC rev. 1.103: InterBase Database Remote Protocol 3050/tcp/udp. END K 10 svn:author V 6 damien K 8 svn:date V 27 2006-01-29T12:03:03.000000Z K 7 svn:log V 291 o Re-enable scatter/gather o Change MEM_READ_1/MEM_READ_4 into macros (move them to if_iwireg.h) o Add support for association LED o Silently discard f/w notifications that are unknown (fixes spurious "unknown notification 15" in logs with latest firmware) o Fix scanning of 5GHz channels END K 10 svn:author V 6 damien K 8 svn:date V 27 2006-01-29T12:35:26.000000Z K 7 svn:log V 149 o Fix short preamble support o Fix contention window o Feed rx rate to radiotap o Clean ral_setup_txdesc (sync w/ ural) o s/ic_ibss_chan/ic_curchan/ END K 10 svn:author V 6 damien K 8 svn:date V 27 2006-01-29T12:47:07.000000Z K 7 svn:log V 43 Adjust tx power based on user preferences. END K 10 svn:author V 6 damien K 8 svn:date V 27 2006-01-29T13:08:21.000000Z K 7 svn:log V 95 Fix WEP examples. Remove man page references to ipwcontrol and wicontrol. Bump copyright year. END K 10 svn:author V 6 damien K 8 svn:date V 27 2006-01-29T13:09:45.000000Z K 7 svn:log V 39 Fix WEP examples. Bump copyright year. END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-01-29T13:10:38.000000Z K 7 svn:log V 55 Touch .Dd because the last commit was content-related. END K 10 svn:author V 6 damien K 8 svn:date V 27 2006-01-29T13:12:09.000000Z K 7 svn:log V 83 Fix WEP examples. Improve rate control algorithm description. Bump copyright year. END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-01-29T13:21:05.000000Z K 7 svn:log V 156 MFC recent ftpd fixes related to handling the pidfile and unneeded open sockets when in stand-alone daemon mode: ftpd.c 1.207-1.209 ftpd.8 1.70-1.71 END