ı~136372 173 295 1083 367 206 195 161 153 102 125 121 139 132 594 157 183 136 112 195 573 304 254 458 371 548 237 231 322 203 415 127 398 150 843 141 223 165 151 164 394 137 180 268 748 497 157 154 175 133 124 161 323 317 369 320 147 421 666 178 288 139 313 267 288 478 353 266 317 296 1574 342 421 616 204 1548 154 168 108 339 143 206 157 151 212 173 136 148 649 249 452 204 140 231 2105 183 331 315 117 480 449 346 407 250 164 158 128 125 209 143 136 313 186 735 130 205 204 767 560 732 420 168 194 231 215 187 370 260 152 134 246 269 176 336 600 118 130 1419 166 1772 673 498 327 425 282 434 175 125 161 178 319 136 165 218 186 149 490 173 237 182 209 298 152 139 116 171 168 168 297 354 382 212 259 166 442 K 10 svn:author V 6 philip K 8 svn:date V 27 2004-10-11T07:57:08.000000Z K 7 svn:log V 199 Add 'virtual scrolling' support to moused(8). When holding down the middle mouse button, motions are interpreted as scrolling. Submitted by: Jordan Sissel Approved by: njl END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-11T08:11:26.000000Z K 7 svn:log V 986 Rework sofree() logic to take into account a possible race with accept(). Sockets in the listen queues have reference counts of 0, so if the protocol decides to disconnect the pcb and try to free the socket, this triggered a race with accept() wherein accept() would bump the reference count before sofree() had removed the socket from the listen queues, resulting in a panic in sofree() when it discovered it was freeing a referenced socket. This might happen if a RST came in prior to accept() on a TCP connection. The fix is two-fold: to expand the coverage of the accept mutex earlier in sofree() to prevent accept() from grabbing the socket after the "is it really safe to free" tests, and to expand the logic of the "is it really safe to free" tests to check that the refcount is still 0 (i.e., we didn't race). RELENG_5 candidate. Much discussion with and work by: green Reported by: Marc UBM Bocklet Reported by: Vlad END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-11T08:26:18.000000Z K 7 svn:log V 270 Add entropy harvest mutex to hard-coded spin lock witness lock order, remove previous entropy harvesting mutex names as they are no longer present. Commit to this file was ommitted when randomdev_soft.c:1.5 was made. Feet shot: Robert Huff END K 10 svn:author V 5 brian K 8 svn:date V 27 2004-10-11T09:45:58.000000Z K 7 svn:log V 111 Add a bunch of malloc() return checks PR: 71592 Submitted by: Dan Lukes with further changes END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-11T10:21:34.000000Z K 7 svn:log V 99 When harvesting entropy from an ethernet mbuf, do so before freeing the mbuf. RELENG_5 candidate. END K 10 svn:author V 5 brian K 8 svn:date V 27 2004-10-11T10:21:53.000000Z K 7 svn:log V 67 Handle a malloc() failure when allocating urgent ports PR: 59995 END K 10 svn:author V 3 den K 8 svn:date V 27 2004-10-11T12:59:07.000000Z K 7 svn:log V 61 Merge from English version 1.761.2.11 Approved by: re (hrs) END K 10 svn:author V 3 den K 8 svn:date V 27 2004-10-11T13:07:04.000000Z K 7 svn:log V 10 Fix typo. END K 10 svn:author V 3 den K 8 svn:date V 27 2004-10-11T13:09:51.000000Z K 7 svn:log V 33 Fix typo. Approved by: re (hrs) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2004-10-11T13:27:44.000000Z K 7 svn:log V 24 vge(4) supports polling END K 10 svn:author V 6 cognet K 8 svn:date V 27 2004-10-11T14:41:38.000000Z K 7 svn:log V 44 Use MD_ROOT_SIZE, instead of our own macro. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2004-10-11T14:42:06.000000Z K 7 svn:log V 37 Use a default MD_ROOT_SIZE of 65535. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-11T16:09:45.000000Z K 7 svn:log V 497 Add a simple exercise suite for IP-level socket options. The suite atempts to read and write various IP-level socket options as root and nobody, making sure the initial values are as expected, that they can be changed to valid values and take effect, etc. No attempt is made to check for the correct implementation of side effects (such as changes in packet headers) as yet. The IP options section is currently broken but will be fixed shortly. Not all multicast options are currently tested. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2004-10-11T18:13:52.000000Z K 7 svn:log V 61 Add and document ilogbl(), a long double version of ilogb(). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2004-10-11T18:40:19.000000Z K 7 svn:log V 87 Rename _m_tag_free() to m_tag_free_default() and make it non-static. Approved by: sam END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2004-10-11T18:40:45.000000Z K 7 svn:log V 40 Add regression tests for ilogb{,f,l}(). END K 10 svn:author V 5 green K 8 svn:date V 27 2004-10-11T18:40:50.000000Z K 7 svn:log V 18 s/ENOBUF/ENOBUFS/ END K 10 svn:author V 5 green K 8 svn:date V 27 2004-10-11T18:42:12.000000Z K 7 svn:log V 100 This means that traffic may be dropped unconditionally for a short period of time. Approved by: re END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-11T19:03:53.000000Z K 7 svn:log V 476 A number of improvements to the IP socket option API regression test: - Consistently use err/errx/warnx throughout, rather than using perror() and exit(). - Teach the tests how to better manage (and therefore test) privilege: in particular, how to create sockes with root credentials but exercise the privileges with non-root credentials, etc. - Teach the test suite to apply each of the non-IP_HDRINCL options across each of SOCK_DGRAM, SOCK_STREAM, and SOCK_RAW. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-11T19:12:40.000000Z K 7 svn:log V 207 Resort unprivileged uid with privileged socket after unprivileged uid with privileged socket in test runs. If running unprivileged and instructed to use unprivileged sockets, don't try and use raw sockets. END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-11T19:52:31.000000Z K 7 svn:log V 161 Add acpi attachments for ISA sound drivers. This is needed so they'll probe and attach when ACPI is enabled. Submitted by: takawata (sbc fix) MFC after: 1 day END K 10 svn:author V 5 andre K 8 svn:date V 27 2004-10-11T20:01:43.000000Z K 7 svn:log V 363 Correctly unregister a netisr by clearing the ni->ni_queue field to NULL as well. This field is actually used by various netisr functions to determine the availablility of the specified netisr. This uncomplete unregister leads directly to a crash when the KLD unregistering the netisr is unloaded. Submitted by: Sam MFC after: 3 days END K 10 svn:author V 6 julian K 8 svn:date V 27 2004-10-11T20:04:59.000000Z K 7 svn:log V 275 MFC: Capture calls to execve() to make sure that the signal mask is set correctly on the thread that is going to continue in the new process. Required for Posix compliance. This is not perfect and better fixes may happen after 5.3 is released. Approved by: re (scottl) END K 10 svn:author V 3 das K 8 svn:date V 27 2004-10-11T20:13:52.000000Z K 7 svn:log V 455 More updates for math(3): - Make some minor rearrangements in the introduction. - Mention the problem with argument reduction on i386. - Add recently-implemented functions to the table. - Un-document the error bounds that only apply to the old 4BSD math library, and fill in the correct values where I know them. No attempt has been made to document bounds lower than 1 ulp, although smaller bounds are usually achievable in round-to-nearest mode. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2004-10-11T20:48:36.000000Z K 7 svn:log V 140 - Document RT_[UN]LOCK, RT_ADDREF, RT_REMREF. - Describe how RT_FREE actually works. Grammar check: ru Reviewed by: sam MFC after: 1 month END K 10 svn:author V 3 imp K 8 svn:date V 27 2004-10-11T21:10:23.000000Z K 7 svn:log V 138 Make the lower range of the memory area 0x80000000 again. Also introduce hw.{pci,acpi}.host_mem_start tunable to change this. MFC: ASAP END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-11T21:15:10.000000Z K 7 svn:log V 229 Update C3 support when BM control is not present. * Fix a bug where caches were flushed on non-C3 transitions. * Be sure a working flush cache instruction is present before using it. * Disable C3 completely if it isn't present. END K 10 svn:author V 3 ups K 8 svn:date V 27 2004-10-11T21:22:59.000000Z K 7 svn:log V 110 Trace information about a buffer while we still control it. Reviewed by: phk Approved by: sam (mentor) END K 10 svn:author V 5 joerg K 8 svn:date V 27 2004-10-11T21:23:56.000000Z K 7 svn:log V 320 Revert the change from rev 1.168. ru convinced me that the situation that was fixed by this should not normally happen, and since I did not record the traces of my failed build attempt that had been solved with that change, it's not entirely clear whether it hadn't been a pilot error on my end. In dubio pro reo. :-) END K 10 svn:author V 5 peter K 8 svn:date V 27 2004-10-11T21:51:27.000000Z K 7 svn:log V 33 MFi386: sync with latest updates END K 10 svn:author V 5 peter K 8 svn:date V 27 2004-10-11T21:56:27.000000Z K 7 svn:log V 303 Belatedly catch up with the dev_t/cdev changes from a few months back. Extract the struct cdev pointer and the tty device from inside rather than incorrectly casting the 'struct cdev *' pointer to a 'dev_t' int. Not that this was particularly important since it was only used for reading vmcore files. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2004-10-11T22:04:05.000000Z K 7 svn:log V 55 Build as a shared lib again. Discussed with: kientzle END K 10 svn:author V 5 peter K 8 svn:date V 27 2004-10-11T22:04:16.000000Z K 7 svn:log V 748 Put on my peril sensitive sunglasses and add a flags field to the internal sysctl routines and state. Add some code to use it for signalling the need to downconvert a data structure to 32 bits on a 64 bit OS when requested by a 32 bit app. I tried to do this in a generic abi wrapper that intercepted the sysctl oid's, or looked up the format string etc, but it was a real can of worms that turned into a fragile mess before I even got it partially working. With this, we can now run 'sysctl -a' on a 32 bit sysctl binary and have it not abort. Things like netstat, ps, etc have a long way to go. This also fixes a bug in the kern.ps_strings and kern.usrstack hacks. These do matter very much because they are used by libc_r and other things. END K 10 svn:author V 5 peter K 8 svn:date V 27 2004-10-11T22:14:47.000000Z K 7 svn:log V 47 Don't leave noschg files laying around in /tmp END K 10 svn:author V 6 obrien K 8 svn:date V 27 2004-10-11T22:37:34.000000Z K 7 svn:log V 127 'portupgrade' places obsoleted shared libraries in /usr/local/lib/compat/pkg, so add this the list of directories ldconfig'ed. END K 10 svn:author V 5 peter K 8 svn:date V 27 2004-10-11T23:51:13.000000Z K 7 svn:log V 71 Catch another gcc-3.3 c++ include path reference and update it to 3.4. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2004-10-11T23:59:03.000000Z K 7 svn:log V 56 MFC fixes for working with PAE kernels. Approved by: re END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2004-10-12T00:08:02.000000Z K 7 svn:log V 67 MFC: rev. 1.14 vge(4) supports polling Approved by: re (rwatson) END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-12T01:56:03.000000Z K 7 svn:log V 301 * Remove the acpi attachment from the es1888. It has an identify method that conjures up the device node so it isn't true PNP. Noticed by jhb@. * Add an attachment for esscontrol since it too uses ISA_PNP_PROBE. * Move an attachment from snd_mss to snd_pnpmss. The latter is the real PNP user. END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2004-10-12T02:04:11.000000Z K 7 svn:log V 42 Use the "normal form" for copyright text. END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2004-10-12T02:36:24.000000Z K 7 svn:log V 85 Add a manual page for hashinit(9), hashdestroy(9) and phashinit(9). Reviewed by: ru END K 10 svn:author V 5 green K 8 svn:date V 27 2004-10-12T04:02:06.000000Z K 7 svn:log V 173 Further modify bulk endpoint behavior to be able to tear down the current transfer fully in the "purge" routine, and to actually finish kicking out any read()s in progress. END K 10 svn:author V 5 green K 8 svn:date V 27 2004-10-12T04:44:54.000000Z K 7 svn:log V 653 When loading GEOM modules, we expect the actual load process to be done by the time that kldload(8) returns. Satisfy that by making the GEOM module load event -- only when the kernel is !cold -- wait until the GEOM module init function has finished instead of returning immediately. This is the other half of fixing md(8) (actually, "mfs" in fstab(5)) that is similar to r1.128 of src/sys/dev/md/md.c. This bug would be why RAM disks would often fail on boot and the first call to mdconfig(8) would probably fail. pjd has ideas for not requiring kldload(8) to work synchronously for control devices that could make this obsolete. Silence on: -arch END K 10 svn:author V 5 green K 8 svn:date V 27 2004-10-12T04:47:16.000000Z K 7 svn:log V 402 Account for failure in vm_pager_allocate() or vm_pager_get_pages() in md(8). The former is generally not going to fail, but the latter can fail when the underlying swap device returns an error. There are still plenty of other places where vm_pager_get_pages() failing will lead directly to crashes, so it's a good idea to put your swap on RAID if you care enough to put any of your disks on RAID.... END K 10 svn:author V 6 julian K 8 svn:date V 27 2004-10-12T05:33:33.000000Z K 7 svn:log V 62 MFC: remove duplicate slot release. Approved by: re (scottl) END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T07:49:15.000000Z K 7 svn:log V 62 Add missing zero flag arguments to calls to userland_sysctl() END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T07:58:13.000000Z K 7 svn:log V 83 Add missing zero flag arguments to sysctl calls. Add missing pointy hat to peter@ END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T07:59:02.000000Z K 7 svn:log V 41 Add zero flags argument to sysctl calls. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T08:22:08.000000Z K 7 svn:log V 32 Add missing zero flag argument. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T08:22:31.000000Z K 7 svn:log V 69 Use generic tty code instead of (comparatively little) local copies. END K 10 svn:author V 3 bms K 8 svn:date V 27 2004-10-12T08:51:04.000000Z K 7 svn:log V 230 Add mode page 0x1b, "Removable Block Access Capacities". This mode page is implemented by USB floppy devices using the UFI command set. Reviewed by: ken, scottl Source: USB Mass Storage UFI Specification v1.0 MFC after: 2 weeks END K 10 svn:author V 3 bms K 8 svn:date V 27 2004-10-12T08:55:02.000000Z K 7 svn:log V 224 Add necessary data structures and definitions for the 12-byte SCSI commands READ_FORMAT_CAPACITIES, WRITE_AND_VERIFY, and VERIFY. Reviewed by: ken, scottl Source: USB Mass Storage UFI Specification v1.0 MFC after: 2 weeks END K 10 svn:author V 3 bms K 8 svn:date V 27 2004-10-12T08:58:57.000000Z K 7 svn:log V 276 Pass through the commands necessary to format USB floppy devices, from within umass_ufi_transform(). This includes the 12-byte commands FORMAT_UNIT, WRITE_AND_VERIFY, VERIFY, and READ_FORMAT_CAPACITIES (sorted in numerical order). Reviewed by: ken, scottl MFC after: 2 weeks END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T09:18:37.000000Z K 7 svn:log V 227 Use generic tty code instead of local copies. New devicename is ttyy{unit}{port} No callout devices created as there is no modemcontrol on these ports. Add data structure to represent each port to avoid excessive array use. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T09:21:03.000000Z K 7 svn:log V 55 Use generic tty code. New device names are ttyy{unit} END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-12T09:25:52.000000Z K 7 svn:log V 324 Mark i4b IPR and SPPP drivers as NET_NEEDS_GIANT(), as they both interface with the network stack but are not yet sufficiently synchronized to run without the Giant lock. It migh be possible to mark the interfaces as IFF_NEEDSGIANT, but I'm unable to test that configuration and am unfamiliar with the architecture of i4b. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2004-10-12T10:33:42.000000Z K 7 svn:log V 569 Fix packet flow when both ng_ether(4) and bridge(4) are in use: - push all bridge logic from if_ethersubr.c into bridge.c make bridge_in() return mbuf pointer (or NULL). - call only bridge_in() from ether_input(), after ng_ether_input() was optinally called. - call bridge_in() from ng_ether_rcv_upper(). Long description: http://lists.freebsd.org/mailman/htdig/freebsd-net/2004-May/003881.html Reported by: Jian-Wei Wang Tested by: myself, Sergey Lyubka Reviewed by: sam Approved by: julian (mentor) MFC after: 2 months END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T13:21:44.000000Z K 7 svn:log V 86 We accept both "option" and "options" so also accept both "nooption" and "nooptions". END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T13:31:39.000000Z K 7 svn:log V 195 Do not enable ECHO modes by default when a tty port is opened. If the other device also does echo'ing this can result in a character-storm before we ever get a chance to disable the echo modes. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2004-10-12T13:52:46.000000Z K 7 svn:log V 45 Document net.inet.tcp.sack.initburst sysctl. END K 10 svn:author V 8 keramida K 8 svn:date V 27 2004-10-12T14:52:52.000000Z K 7 svn:log V 215 Correctly document the return value of strerror() and strerror_r() and the contents of the returned buffer for unknown error codes. PR: docs/72578 Submitted by: Jilles Tjoelker MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-12T14:55:59.000000Z K 7 svn:log V 170 Add a note ahea of the esource enum that if new entropy source categories are added, the set of entropy source assertions in the harvesting code also need to be updated. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-12T14:57:14.000000Z K 7 svn:log V 191 Assert that the entropy source category provided by a caller submitting entropy is valid, as an invalid source will cause dereferencing of an array of queues to an incorrect memory location. END K 10 svn:author V 2 ru K 8 svn:date V 27 2004-10-12T15:04:10.000000Z K 7 svn:log V 386 Style fixes, including: - Sort kmod.mk knobs in the documentation section. - Fixed misuses of the word "KLD" which stands for "kernel ld", or "kernel linker", where kernel module is meant. - Removed redundant uses of ${.OBJDIR}. - Whitespace and indentation fixes. - CLEANFILES cleanup. - Target redefinition protection (install.debug). Submitted by: bde, ru Reviewed by: ru, bde END K 10 svn:author V 2 ru K 8 svn:date V 27 2004-10-12T15:08:24.000000Z K 7 svn:log V 261 Back out cumulative changes from revs. 1.92-1.94: "make depend" followed by "make depend" shouldn't do anything. It doesn't seem to be a problem anymore, and if someone finds it to break again, please contact me so we can work on a real fix. Reviewed by: bde END K 10 svn:author V 3 ups K 8 svn:date V 27 2004-10-12T16:28:18.000000Z K 7 svn:log V 173 Force MUTEX_WAKE_ALL. A race condition in single thread wakeup may break priority inheritance. Tested by: pho Reviewed by: jhb,julian Approved by: sam (mentor) MFC: ASAP END K 10 svn:author V 3 ups K 8 svn:date V 27 2004-10-12T16:30:20.000000Z K 7 svn:log V 224 Prevent preemption in slot_fill. Implement preemption between threads in the same ksegp in out of slot situations to prevent priority inversion. Tested by: pho Reviewed by: jhb, julian Approved by: sam (mentor) MFC: ASAP END K 10 svn:author V 3 ups K 8 svn:date V 27 2004-10-12T16:31:23.000000Z K 7 svn:log V 203 Directly modifying the priority of a thread that may be on the runqueue can break the sorting order of the ksegp run queue. Tested by: pho Reviewed by: jhb, julian Approved by: sam (mentor) MFC: ASAP END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-12T16:47:25.000000Z K 7 svn:log V 1476 When the access control on creating raw sockets was modified so that processes in jail could create raw sockets, additional access control checks were added to raw IP sockets to limit the ways in which those sockets could be used. Specifically, only the socket option IP_HDRINCL was permitted in rip_ctloutput(). Other socket options were protected by a call to suser(). This change was required to prevent processes in a Jail from modifying system properties such as multicast routing and firewall rule sets. However, it also introduced a regression: processes that create a raw socket with root privilege, but then downgraded credential (i.e., a daemon giving up root, or a setuid process switching back to the real uid) could no longer issue other unprivileged generic IP socket option operations, such as IP_TOS, IP_TTL, and the multicast group membership options, which prevented multicast routing daemons (and some other tools) from operating correctly. This change pushes the access control decision down to the granularity of individual socket options, rather than all socket options, on raw IP sockets. When rip_ctloutput() doesn't implement an option, it will now pass the request directly to in_control() without an access control check. This should restore the functionality of the generic IP socket options for raw sockets in the above-described scenarios, which may be confirmed with the ipsockopt regression test. RELENG_5 candidate. Reviewed by: csjp END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-12T17:10:40.000000Z K 7 svn:log V 245 Modify the thrilling "%D is using my IP address %s!" message so that it isn't printed if the IP address in question is '0.0.0.0', which is used by nodes performing DHCP lookup, and so constitute a false positive as a report of misconfiguration. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-12T17:34:13.000000Z K 7 svn:log V 324 Merge socketvar.h:1.134 from HEAD to RELENG_5: date: 2004/10/09 16:42:57; author: rwatson; state: Exp; lines: +1 -0 Add SOCKBUF_UNLOCK_ASSERT(), which asserts that the current thread does not hold the mutex for a socket buffer. This change is a dependency to merge tcp_output.c:1.103. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-12T17:36:45.000000Z K 7 svn:log V 519 Merge tcp_output.c:1.103 from HEAD to RELENG_5: date: 2004/10/09 16:48:51; author: rwatson; state: Exp; lines: +14 -2 Acquire the send socket buffer lock around tcp_output() activities reaching into the socket buffer. This prevents a number of potential races, including dereferencing of sb_mb while unlocked leading to a NULL pointer deref (how I found it). Potentially this might also explain other "odd" TCP behavior on SMP boxes (although haven't seen it reported). Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2004-10-12T18:27:14.000000Z K 7 svn:log V 111 Add a WITNESS_WARN() to uiomove() to whine if locks are held when this function is called. MFC after: 1 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2004-10-12T18:36:20.000000Z K 7 svn:log V 1454 Refine the turnstile and sleep queue interfaces just a bit: - Add a new _lock() call to each API that locks the associated chain lock for a lock_object pointer or wait channel. The _lookup() functions now require that the chain lock be locked via _lock() when they are called. - Change sleepq_add(), turnstile_wait() and turnstile_claim() to lookup the associated queue structure internally via _lookup() rather than accepting a pointer from the caller. For turnstiles, this means that the actual lookup of the turnstile in the hash table is only done when the thread actually blocks rather than being done on each loop iteration in _mtx_lock_sleep(). For sleep queues, this means that sleepq_lookup() is no longer used outside of the sleep queue code except to implement an assertion in cv_destroy(). - Change sleepq_broadcast() and sleepq_signal() to require that the chain lock is already required. For condition variables, this lets the cv_broadcast() and cv_signal() functions lock the sleep queue chain lock while testing the waiters count. This means that the waiters count internal to condition variables is no longer protected by the interlock mutex and cv_broadcast() and cv_signal() now no longer require that the interlock be held when they are called. This lets consumers of condition variables drop the lock before waking other threads which can result in fewer context switches. MFC after: 1 month END K 10 svn:author V 3 des K 8 svn:date V 27 2004-10-12T18:36:32.000000Z K 7 svn:log V 62 Remove a pointless syslogd_flags example. MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2004-10-12T18:45:15.000000Z K 7 svn:log V 76 Remove hcsecd line which was inadvertantly included in the previous commit. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2004-10-12T19:36:00.000000Z K 7 svn:log V 16 Whitespace fix. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-12T20:03:56.000000Z K 7 svn:log V 242 Don't release the udbinfo lock until after the last use of UDP inpcb in udp_input(), since the udbinfo lock is used to prevent removal of the inpcb while in use (i.e., as a form of reference count) in the in-bound path. RELENG_5 candidate. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T20:16:02.000000Z K 7 svn:log V 51 Use ttyconsolemode() to set the console tty modes. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2004-10-12T20:18:27.000000Z K 7 svn:log V 109 Fix comment: since move from mballoc to mbuma, the allocation functions live in kern_mbuf.c, not subr_mbuf.c END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T20:57:37.000000Z K 7 svn:log V 65 Make !SMP kernels compile, and as far as I can tell, work again. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T21:00:19.000000Z K 7 svn:log V 59 Remove asserts which are not correct if the port is a tty. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T21:23:33.000000Z K 7 svn:log V 119 Add a couple of XXX comments and fix a couple of fine points. I have not tried to make this a "canonical tty driver". END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-12T21:33:08.000000Z K 7 svn:log V 81 Attach the device description for ISA devices on the ACPI bus. MFC after: 1 day END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T21:40:41.000000Z K 7 svn:log V 44 Don't call driver close unless we have one. END K 10 svn:author V 3 jmg K 8 svn:date V 27 2004-10-12T21:43:03.000000Z K 7 svn:log V 56 update document date Reminded by: ru (a few weeks ago) END K 10 svn:author V 3 jmg K 8 svn:date V 27 2004-10-12T21:51:20.000000Z K 7 svn:log V 556 MFC: if_re.c v1.35, if_rlreg.h v1.48: > fix jumbo frames as much as they can be fixed for re. We now cap the MTU > to 7422 since it appears that the 8169S can't transmit anything larger.. > The 8169S can receive full jumbo frames, but we don't have an mru to let > the upper layers know this... > > add fixup so that this driver should work on alignment constrained > platforms > (!i386 && !amd64) re.4 v1.9 & v1.10: > document the limit on jumbo frame size.. and bump document date Approved by: re (scottl) END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-12T22:33:19.000000Z K 7 svn:log V 156 Use generic tty code instead of local copies. New devicename is ttyz{port} No callout devices created. Isn't this driver superseeded by uart(4) anyway ? END K 10 svn:author V 4 emax K 8 svn:date V 27 2004-10-12T23:33:46.000000Z K 7 svn:log V 358 Get rid of device nodes interface. It is useless and confusing. The original idea was to use it for firmware upgrading and similar operations. In real life almost all Bluetooth USB devices do not need firmware download. If device does require firmware download then ugen(4) (or specialized driver like ubtbcmfw(8)) should be used instead. MFC after: 3 days END K 10 svn:author V 4 emax K 8 svn:date V 27 2004-10-12T23:35:34.000000Z K 7 svn:log V 110 ng_ubt(4) no longer provides device nodes interface. Update the man page to document this. MFC after: 3 days END K 10 svn:author V 4 emax K 8 svn:date V 27 2004-10-12T23:38:22.000000Z K 7 svn:log V 47 ooops.. vkbd(4) should not have been committed END K 10 svn:author V 8 takawata K 8 svn:date V 27 2004-10-13T00:51:01.000000Z K 7 svn:log V 133 MFC: uhid.c:1.74 Don't use matchlvl attach arg. It seems to be not initialized in FreeBSD probe mechanism. Approved by: re(scottl) END K 10 svn:author V 5 green K 8 svn:date V 27 2004-10-13T04:12:20.000000Z K 7 svn:log V 2009 Back out rev.1.91 which implemented bulk read transfers in ugen(4) as asynchronous. I realize that this means the custom application will not work as written, but it is not okay to break most users of ugen(4). The major problem is that a bulk read transfer is not an interrupt saying that X bytes are available -- it is a request to be able to receive up to X bytes, with T timeout, and S short-transfer-okayness. The timeout is a software mechanism that ugen(4) provides and cannot be implemented using asynchronous reads -- the timeout must start at the time a read is done. The status of up to how many bytes can be received in this transfer and whether a short transfer returns data or error is also encoded at least in ohci(4)'s requests to the controller. Trying to detect the "maximum width" results in using a single buffer of far too small when an application requests a large read. Even if you combat this by replacing all buffers again with the maximal sized read buffer (1kb) that ugen(4) would allow you to use before, you don't get the right semantics -- you have to throw data away or make all the timeouts invalid or make the short-transfer settings invalid. There is no way to do this right without extending the ugen(4) API much further -- it breaks the USB camera interfaces used because they need a chain of many maximal-width transfers, for example, and it makes cross-platform support for all the BSDs gratuitously hard. Instead of trying to do select(2) on a bulk read pipe -- which has neither the information on desired transfer length nor ability to implement timeout -- an application can simply use a kernel thread and pipe to turn that endpoint into something poll-able. It is unfortunate that bulk endpoints cannot provide the same semantics that interrupt and isochronous endpoints can, but it is possible to just use ioctl(USB_GET_ENDPOINT_DESC) to find out when different semantics must be used without preventing the normal users of the ugen(4) device from working. END K 10 svn:author V 5 green K 8 svn:date V 27 2004-10-13T04:13:05.000000Z K 7 svn:log V 89 Permit fcntl(F_SETFL) to work on a ugen(4) device by not returning failure for FIOASYNC. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2004-10-13T05:15:41.000000Z K 7 svn:log V 234 mdoc(7) police: .Dt should have a third argument. new sentence should start on its own line. use precise width specifier. Add AUTHORS section and correct device name to /dev/led/auxioled. Approved by: jake (mentor) Pointed by: ru END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2004-10-13T05:38:42.000000Z K 7 svn:log V 217 - Split dcons core code and OS dependent code. - Implement dcons_ischar() and dcons_load_buffer(). - If loader passed a dcons buffer address, keep using it. (We still need a patch to cheat memory management system.) END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2004-10-13T05:41:09.000000Z K 7 svn:log V 20 Add dcons_os.{c,h}. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2004-10-13T05:45:16.000000Z K 7 svn:log V 383 Audio drivers failed to detect failure condition and attempted to assign DMA address to the wrong address. It can cause system lockup or other mysterious errors. Since most sound cards requires low DMA address(BUS_SPACE_MAXADDR_24BIT) sndbuf_alloc() would fail when the audio driver is loaded after long running of operations. Approved by: jake (mentor) Reviewed by: truckman, matk END K 10 svn:author V 7 yongari K 8 svn:date V 27 2004-10-13T06:04:01.000000Z K 7 svn:log V 352 Limit DMA address space to 1GB since the trident audio cards can't handle DMA addresses located above 1GB. The LBA(loop begin address) register which holds DMA base address is 32bits register. But the MSB 2bits are used for other purposes. This effectivly limits the DMA address space up to 1GB. Approved by: jake (mentor) Reviewed by: truckman, matk END K 10 svn:author V 2 ru K 8 svn:date V 27 2004-10-13T07:00:21.000000Z K 7 svn:log V 254 Fix a botched rev. 1.221 commit. Also, a number of people have pointed out that /usr/local/etc/rc.d/000.pkgtools.sh installed with the portupgrade does an equivalent thing, so I personally would like to see the change reverted, but let David handle it. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-13T07:02:56.000000Z K 7 svn:log V 314 First half of tty code rework: unifdef -D__FreeBSD_Version=600000 The changes in the next commit would make the code totally unreadable if the #ifdef'ing were maintained. It might make a lot of sense to split if_cx.c in a netgraph related and in a tty related file but I will not attempt that without hardware. END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-13T07:10:41.000000Z K 7 svn:log V 157 Set flags for devices before probing them. In the non-ISA case, flags set via hints were not getting passed to the child. PR: kern/72489 MFC after: 1 day END K 10 svn:author V 2 ru K 8 svn:date V 27 2004-10-13T07:12:14.000000Z K 7 svn:log V 73 Accidentally removed the last component of the pathname when committing. END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-13T07:27:21.000000Z K 7 svn:log V 66 If flags are present, print them like ISA does. MFC after: 1 day END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-13T07:29:29.000000Z K 7 svn:log V 36 Print before the footer, not after. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2004-10-13T08:14:41.000000Z K 7 svn:log V 31 Bump the date of the document. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-13T08:27:20.000000Z K 7 svn:log V 116 Use generic tty code instead of local stuff. NB: device names are now consistent: {cua,tty}d$(port)[.lock,.init] END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-13T08:32:34.000000Z K 7 svn:log V 51 Reflect sio driver device name change cuaa -> cuad END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-13T09:27:18.000000Z K 7 svn:log V 44 Use generic tty code instead of local copy. END K 10 svn:author V 3 bms K 8 svn:date V 27 2004-10-13T09:31:04.000000Z K 7 svn:log V 220 Remove references to the second byte of a CCB containing the LUN, as this is valid only for SCSI-2 and older devices. Rename the second byte of the VERIFY CCB from 'lun' to 'byte2'. Submitted by: ken MFC after: 2 weeks END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2004-10-13T11:03:50.000000Z K 7 svn:log V 89 - D-Link DFE-500TX verified to work - remove the 'Asante' entry which isn't very helpful END K 10 svn:author V 3 mtm K 8 svn:date V 27 2004-10-13T11:42:20.000000Z K 7 svn:log V 642 1. Now that it's a thread's state is changed from within the kernel, where no userland locks are heald, the dead thread lock can no longer protect access to it. Therefore, instead of using an if (!dead)...else clause after walking the active threads list test the thread pointer before deciding not to walk the dead threads list. If the thread pointer is null it means it was not found in the active threads list and the dead threads list should be checked. 2. Do not free the stack of a thread that is not marked dead. This is the 2nd and final part of eliminating the race to free a thread's stack. MFC after: 3 days END K 10 svn:author V 5 maxim K 8 svn:date V 27 2004-10-13T12:05:33.000000Z K 7 svn:log V 36 s/Oct /October/ Pointed out by: ru END K 10 svn:author V 2 le K 8 svn:date V 27 2004-10-13T14:51:42.000000Z K 7 svn:log V 113 Add device IDs for Intel ICH6. PR: kern/72492 Submitted by: Florian Le Goff END K 10 svn:author V 3 sos K 8 svn:date V 27 2004-10-13T15:16:35.000000Z K 7 svn:log V 111 Refine locking so it covers the "running" variable as well. Adjust comments etc to fit the new locking system. END K 10 svn:author V 2 ru K 8 svn:date V 27 2004-10-13T15:47:02.000000Z K 7 svn:log V 675 - Utilize standard means for installing files and symlinks. - Simplify the symlink list construction by implementing a generic mechanism to map LC_MONETARY files from one locale to another, possibly with a different _ components of the locale name. Example: ENCODING-1_ENCODING-2= fo_BA fo_FO:ba_BA in Makefile will result in the following symlinks: fo_BA.ENCODING-1/LC_MONETARY -> fo_BA.ENCODING-2/LC_MONETARY fo_FO.ENCODING-1/LC_MONETARY -> ba_BA.ENCODING-2/LC_MONETARY - Install LC_MONETARY files with mode 444. - While here, fixed trashing of the sr_YU.UTF-8/LC_MONETARY file by a symlink, and removed one duplicate symlink. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2004-10-13T16:27:27.000000Z K 7 svn:log V 463 MFC revision 1.36 date: 2004/09/08 10:57:09; author: tjr; state: Exp; lines: +5 -0 Merge from NetBSD: Fix a panic that occurred when trying to traverse a corrupt msdosfs filesystem. With this particular corruption, the code in pcbmap() would compute an offset into an array that was way out of bounds, so check the bounds before trying to access and return an error if the offset would be out of bounds. Approved by: re (scottl) Approved by: murray (mentor) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2004-10-13T16:28:40.000000Z K 7 svn:log V 635 MFC revision 1.41 date: 2004/09/08 11:25:41; author: tjr; state: Exp; lines: +18 -3 Merge from NetBSD: Fix a problem in previous: we can't blindly assume that we have wincnt entries available at the offset the file has been found. If the dos directory entry is not preceded by appropriate number of long name entries (happens e.g. when the filesystem is corrupted, or when the filename complies to DOS rules and doesn't use any long name entry), we would overwrite random directory entries. There are still some problems, the whole thing has to be revisited and solved right. Approved by: re (scottl) Approved by: murray (mentor) END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2004-10-13T19:23:33.000000Z K 7 svn:log V 324 MFC build fix: Fix compiler warnings, when __stdcall is #defined, by adding explicit casts. These normally only manifest if the ndis compat module is statically compiled into a kernel image by way of 'options NDISAPI'. Submitted by: Dmitri Nikulin Approved by: wpaul PR: kern/71449 Approved by: re (kensmith) END K 10 svn:author V 8 schweikh K 8 svn:date V 27 2004-10-13T20:33:18.000000Z K 7 svn:log V 71 Print a usage message if a non-option is specified. MFC after: 3 weeks END K 10 svn:author V 3 jmg K 8 svn:date V 27 2004-10-13T20:55:19.000000Z K 7 svn:log V 101 fix a bug where signal events didn't set the flags for attach/detach.. PR: 72234 MFC after: 2 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2004-10-13T21:54:14.000000Z K 7 svn:log V 133 MFC: rev. 1.18 - D-Link DFE-500TX verified to work - remove the 'Asante' entry which isn't very helpful Approved by: re (kensmith) END K 10 svn:author V 3 ups K 8 svn:date V 27 2004-10-13T22:07:04.000000Z K 7 svn:log V 122 Fix maybe_preempt_in_ksegrp for !SMP. Tested by: tegge Reviewed by: julian Approved by: sam (mentor) MFC after: 3 days END K 10 svn:author V 5 green K 8 svn:date V 27 2004-10-13T22:07:05.000000Z K 7 svn:log V 93 MFC r1.78: further rule verification (against corrupt rules added by root). Approved by: re END K 10 svn:author V 8 keramida K 8 svn:date V 27 2004-10-13T22:12:59.000000Z K 7 svn:log V 272 Add the necessary magic to make the thousands separator work for floating-point formats in the Greek locale. This allows printing numbers with the ' format modifier, like this: $ env -i LC_NUMERIC=el_GR.ISO8859-7 printf "%'.3f\n" 1024000 1.024.000,000 Reviewed by: das END K 10 svn:author V 8 keramida K 8 svn:date V 27 2004-10-13T22:32:12.000000Z K 7 svn:log V 162 Add a regression test for floating-point output in the Greek locale. See revision 1.3 of src/share/numericdef/el_GR.ISO8859-7.src Reviewed by: das (a while ago) END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2004-10-14T00:21:32.000000Z K 7 svn:log V 55 Fix warnings on non-i386 arch. Submitted by: keramida END K 10 svn:author V 5 green K 8 svn:date V 27 2004-10-14T03:05:39.000000Z K 7 svn:log V 40 Fix a spelling error in a panic string. END K 10 svn:author V 3 jmg K 8 svn:date V 27 2004-10-14T03:26:50.000000Z K 7 svn:log V 153 /me gets the wrong patch out of the pr :( /me had the write patch w/o comments on his test system. Pointed out by: kuriyama and ache Pointy hat to: jmg END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2004-10-14T04:36:15.000000Z K 7 svn:log V 172 MFC: Bring in the startup files to permit loading of mac_bsdextended(4) rules on system initialization. Remove requirement on FreeBSD keyword. Approved by: re (kensmith) END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2004-10-14T04:37:57.000000Z K 7 svn:log V 80 Remove requirement on FreeBSD keyword. Skipped by: mtm (/me glares at mtm) :) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2004-10-14T07:46:13.000000Z K 7 svn:log V 243 Only allow for unloading when there are no geoms in LABEL GEOM class. We have to use our own destroy_geom method, because default one, which is a part of geom_slice is broken. MT5 candidate. PR: kern/72467 Submitted by: Vladimir Novoseltsev END K 10 svn:author V 3 pjd K 8 svn:date V 27 2004-10-14T07:55:29.000000Z K 7 svn:log V 507 Ehh. Introduce a hack: Wait for 3 seconds, so GEOM is able to give us providers for tasting. Before this hack, race below is possible: SI_SUB_RAID (no not-fully-configured geoms, so don't block) GEOM tasting (now geoms are created) SI_SUB_MOUNT_ROOT (if root file system is placed on a mirror, it is possible that this mirror is not fully configured yet) There is a lot of work to do to avoid such hacks and I need a working solution before 5.3, sorry. Reported by: John Hay END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-14T08:58:28.000000Z K 7 svn:log V 26 Fix echo in console mode. END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-14T10:43:47.000000Z K 7 svn:log V 38 Add missing flag to userland_sysctl() END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-14T11:43:16.000000Z K 7 svn:log V 1321 Merge uipc_socket.c:1.213 from HEAD to RELENG_5: date: 2004/10/11 08:11:26; author: rwatson; state: Exp; lines: +19 -5 Rework sofree() logic to take into account a possible race with accept(). Sockets in the listen queues have reference counts of 0, so if the protocol decides to disconnect the pcb and try to free the socket, this triggered a race with accept() wherein accept() would bump the reference count before sofree() had removed the socket from the listen queues, resulting in a panic in sofree() when it discovered it was freeing a referenced socket. This might happen if a RST came in prior to accept() on a TCP connection. The fix is two-fold: to expand the coverage of the accept mutex earlier in sofree() to prevent accept() from grabbing the socket after the "is it really safe to free" tests, and to expand the logic of the "is it really safe to free" tests to check that the refcount is still 0 (i.e., we didn't race). RELENG_5 candidate. Much discussion with and work by: green Reported by: Marc UBM Bocklet Reported by: Vlad Note that this fix is not yet confirmed by submitters to correct the specific symptom they are seeing, but does correct a known problem. Approved by: re (scottl) END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2004-10-14T11:43:17.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_5_3'. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-14T11:45:26.000000Z K 7 svn:log V 1674 Merge raw_ip.c:1.145 from HEAD to RELENG_5: date: 2004/10/12 16:47:25; author: rwatson; state: Exp; lines: +41 -20 When the access control on creating raw sockets was modified so that processes in jail could create raw sockets, additional access control checks were added to raw IP sockets to limit the ways in which those sockets could be used. Specifically, only the socket option IP_HDRINCL was permitted in rip_ctloutput(). Other socket options were protected by a call to suser(). This change was required to prevent processes in a Jail from modifying system properties such as multicast routing and firewall rule sets. However, it also introduced a regression: processes that create a raw socket with root privilege, but then downgraded credential (i.e., a daemon giving up root, or a setuid process switching back to the real uid) could no longer issue other unprivileged generic IP socket option operations, such as IP_TOS, IP_TTL, and the multicast group membership options, which prevented multicast routing daemons (and some other tools) from operating correctly. This change pushes the access control decision down to the granularity of individual socket options, rather than all socket options, on raw IP sockets. When rip_ctloutput() doesn't implement an option, it will now pass the request directly to in_control() without an access control check. This should restore the functionality of the generic IP socket options for raw sockets in the above-described scenarios, which may be confirmed with the ipsockopt regression test. RELENG_5 candidate. Reviewed by: csjp Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-14T11:48:05.000000Z K 7 svn:log V 576 Merge i4b_ipr.c:1.30 and i4b_isppp.c:1.27 from HEAD to RELENG_5: date: 2004/10/12 09:25:52; author: rwatson; state: Exp; lines: +2 -0 date: 2004/10/12 09:25:52; author: rwatson; state: Exp; lines: +2 -0 Mark i4b IPR and SPPP drivers as NET_NEEDS_GIANT(), as they both interface with the network stack but are not yet sufficiently synchronized to run without the Giant lock. It migh be possible to mark the interfaces as IFF_NEEDSGIANT, but I'm unable to test that configuration and am unfamiliar with the architecture of i4b. Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-10-14T11:49:25.000000Z K 7 svn:log V 401 Merge udp_usrreq.c:1.167 from HEAD to RELENG_5: date: 2004/10/12 20:03:56; author: rwatson; state: Exp; lines: +3 -3 Don't release the udbinfo lock until after the last use of UDP inpcb in udp_input(), since the udbinfo lock is used to prevent removal of the inpcb while in use (i.e., as a form of reference count) in the in-bound path. RELENG_5 candidate. Approved by: re (scottl) END K 10 svn:author V 6 brooks K 8 svn:date V 27 2004-10-14T14:38:49.000000Z K 7 svn:log V 231 MFC rev 1.33: A power failure left the temporary /var/.diskless directory on my system, and since then my /var was always created as MFS which was very surprising. Fix this for /tmp and /var. Approved by: re (kensmith) END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-14T17:14:56.000000Z K 7 svn:log V 332 Update flags patch for the !ISA case. * Get flags first, in case there is no devclass. * Reset flags after each probe in case the next driver has no hints so it doesn't inherit the old ones. * Set them again before the winning probe. Tested ok both with and without ACPI for ISA device flags. Reviewed by: imp MFC after: 1 day END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-14T18:30:24.000000Z K 7 svn:log V 189 Add missing chunk of code to enforce the lock-bits of termios. This solves the problem where serial consoles suddenly required DCD to be asserted. Reported by: Randy Bush END K 10 svn:author V 3 mux K 8 svn:date V 27 2004-10-14T18:37:01.000000Z K 7 svn:log V 341 Merge if_dc.c:1.152 from HEAD to RELENG_5: date: 2004/10/01 15:23:31; author: mux; state: Exp; lines: +4 -4 Read the MAC address in the EEPROM in the correct byte order. This is a no-op on little endian architectures, but fixes getting the MAC address for some dc(4) cards on big endian architectures. Approved by: re (scottl) END K 10 svn:author V 3 phk K 8 svn:date V 27 2004-10-14T18:37:59.000000Z K 7 svn:log V 83 Remove unused ttys field. Spotted by: Peter Jeremy END K 10 svn:author V 3 pjd K 8 svn:date V 27 2004-10-14T19:00:44.000000Z K 7 svn:log V 33 Add a missing newline character. END K 10 svn:author V 5 andre K 8 svn:date V 27 2004-10-14T19:19:24.000000Z K 7 svn:log V 67 MFC 1.15: Correctly unregister netisr's. Approved by: re (scottl) END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2004-10-14T21:31:42.000000Z K 7 svn:log V 82 Remove extra closing parenthesis added in revision 1.4. Noticed by: Andrea Campi END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-14T22:21:59.000000Z K 7 svn:log V 226 Remove local hacks to set flags now that the device probe does this for us. Tested on every device except sio_pci and the pc98 fd.c. Perhaps something similar should be done for the "disabled" hints also. MFC after: 2 weeks END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-14T22:36:47.000000Z K 7 svn:log V 44 Print flags in the nexus for child devices. END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-14T22:37:51.000000Z K 7 svn:log V 73 Let nexus print our flags for us. Also, clean up an obfuscated if stmt. END K 10 svn:author V 3 imp K 8 svn:date V 27 2004-10-14T23:47:00.000000Z K 7 svn:log V 125 MFC 1.115 Refert to using 0x800000 as start address. hw.pci.host_start_mem tunable overrides Approved by: re@ (scottl) END K 10 svn:author V 3 imp K 8 svn:date V 27 2004-10-14T23:52:21.000000Z K 7 svn:log V 94 MFC 1.42: hw.acpi.host_start_mem and revert back to old default. Approved by: re@ (scottl) END K 10 svn:author V 3 imp K 8 svn:date V 27 2004-10-15T00:15:07.000000Z K 7 svn:log V 57 Document hw.{pci,acpi}.host_start_mem Requested by: ru@ END K 10 svn:author V 3 sam K 8 svn:date V 27 2004-10-15T00:36:07.000000Z K 7 svn:log V 397 Move session state from on-card memory to host memory so we no longer are constrained to a small number of sessions by the small on-card memories found in newer devices. This is really a stopgap solution as having session state in main memory incurs a (small but noticeable) performance penalty. The better solution is to manage session state so that it's cached on chip. Obtained from: openbsd END K 10 svn:author V 3 kan K 8 svn:date V 27 2004-10-15T03:22:13.000000Z K 7 svn:log V 81 Import a patch from GCC PR c/16999 to stop quoting already quoted ident strings. END K 10 svn:author V 3 kan K 8 svn:date V 27 2004-10-15T03:22:13.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r136527, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2004-10-15T03:22:14.000000Z K 7 svn:log V 86 This commit was manufactured by cvs2svn to create tag 'gcc-vendor-gcc_3_4_2_20041014'. END K 10 svn:author V 3 kan K 8 svn:date V 27 2004-10-15T03:44:56.000000Z K 7 svn:log V 116 Use a taskqueue rather than an swi to handle deferred notifications. Obtained from: same change for umct(4) driver. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2004-10-15T03:50:04.000000Z K 7 svn:log V 201 Plug possible memory leak in sound DMA buffer handling. It also changes return code to ENOMEM in case of allocation failure. Approved by: jake (mentor), scottl (co-mentor) Reviewed by: truckman, matk END K 10 svn:author V 3 sam K 8 svn:date V 27 2004-10-15T03:54:56.000000Z K 7 svn:log V 60 add missing ';' that didn't show up with INVARIANTS enabled END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-15T04:54:16.000000Z K 7 svn:log V 47 Remove unused variable. Pointy hat candidate. END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-15T04:59:21.000000Z K 7 svn:log V 24 Remove unused variable. END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-15T05:13:25.000000Z K 7 svn:log V 79 Re-add an acpi attachment for the legacy probe that was inadvertently removed. END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-15T05:14:10.000000Z K 7 svn:log V 76 MFC: Add acpi attachments for the PNP devices. Approved by: re (kensmith) END K 10 svn:author V 3 njl K 8 svn:date V 27 2004-10-15T05:20:20.000000Z K 7 svn:log V 76 MFC: print flags values in device announcement. Approved by: re (kensmith) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2004-10-15T06:08:14.000000Z K 7 svn:log V 204 Only allow for unloading when there are no geoms in LABEL GEOM class. We have to use our own destroy_geom method, because default one, which is a part of geom_slice is broken. Approved by: re (kensmith) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2004-10-15T06:10:12.000000Z K 7 svn:log V 261 - Just use MAXPHYS as maximum I/O request size, instead of using my own #define for this purpose. - Before root file system is mounted, wait for mirrors in degraded state. - Be sure to always return 0 for negative access requests. Approved by: re (kensmith) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2004-10-15T06:11:28.000000Z K 7 svn:log V 289 - There is no need to skip providers with 0 sectorsize in taste routine anymore. - Avoid race while synchronizing components. - Decrease timeout to 4 seconds. - Just use MAXPHYS as maximum I/O request size, instead of using my own #define for this purpose. Approved by: re (kensmith) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2004-10-15T06:12:29.000000Z K 7 svn:log V 119 Deny invalid I/O requests which comes from userland here, because later we'll get a panic. Approved by: re (kensmith) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2004-10-15T06:13:10.000000Z K 7 svn:log V 166 - Set maximum request size to MAXPHYS (128kB), instead of DFLPHYS (64kB). - Set minimum request size to sectorsize, instead of 512 bytes. Approved by: re (kensmith) END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2004-10-15T06:13:11.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_5_3'. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2004-10-15T06:14:43.000000Z K 7 svn:log V 349 - There don't have to be a lock file. - Be more userfriendly and allow to specify gbde device name in those forms: device device.bde /dev/device /dev/device.bde - Fix stop routine: + There don't have to be file system mounted on gbde device, so ignore errors from umount(8). + Only detach existing gbde devices. Approved by: re (kensmith) END