summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Try the simplify determining what is ata0 and ata1.sos2004-04-241-17/+1
| | | | | Remove the PCI native addressing code, it eed to be run before we even have control in the ATA driver and should be moved to the pci code.
* Disable interrupts while testing the timer. Not doing this unnecessarilynjl2004-04-241-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added an arbitrary delay to our readings, causing us to use the ACPI-safe read method when not necessary. Submitted by: bde Old: ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks BAD min = 3, max = 19, width = 16 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks BAD min = 3, max = 19, width = 16 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks GOOD min = 3, max = 4, width = 1 Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 New: ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 Also, reduce unnecesary overhead in ACPI-fast by remove the barrier for reads. The timer in the ACPI-fast case is known to increase monotonically so there is no need to serialize access to it.
* Change setup for SiS device to allow PCI native mode.sos2004-04-241-4/+4
|
* Add IC Book Labs Gunboat x2 and x4 series of serial adapters.sobomax2004-04-241-0/+45
| | | | | Hardware provided by: IC Book Labs MFC After: 2 weeks
* Add Sandberg USB to Network Link to the list of supported devices.simon2004-04-241-0/+2
|
* Unconditionaly initialize any spin lock passed to pthread_spin_init(). Whilemtm2004-04-241-4/+0
| | | | | | makeing sure the spinlock isn't already in use might be a nice feature to have in theory, it's hard to implement in practice since the passed in pointer may not be NULL, but still be an invalid value (i.e. 1..2..3.. etc).
* Fixed some style bugs (useless forward declarations of structs andbde2004-04-241-6/+3
| | | | | | misplaced forward declarations of structs). This also reduces namespace pollution (the misplaced declarations were declared in the !_KERNEL case when they are not used).
* Fix build for non-COMPAT_FREEBSD4 configurations. Make the FreeBSD 4marcel2004-04-241-0/+10
| | | | statfs functions conditional upon the option.
* In cases where a file was resident in memory mmap(..., PROT_NONE, ...)alc2004-04-242-5/+6
| | | | | | | | | | | | | | | would actually map the file with read access enabled. According to http://www.opengroup.org/onlinepubs/007904975/functions/mmap.html this is an error. Similarly, an madvise(..., MADV_WILLNEED) would enable read access on a virtual address range that was PROT_NONE. The solution implemented herein is (1) to pass a vm_prot_t to vm_map_pmap_enter() describing the allowed access and (2) to make vm_map_pmap_enter() responsible for understanding the limitations of pmap_enter_quick(). Submitted by: "Mark W. Krentel" <krentel@dreamscape.com> PR: kern/64573
* - Catch up with recent ATA changes.grehan2004-04-232-6/+9
| | | | - Remove trailing space in ata_macio.c
* Wrap two long lines in the previous commit.silby2004-04-231-2/+4
|
* Correct an edge case in tcp_mss() where the cached path MTUandre2004-04-232-4/+4
| | | | | | | | | | | | from tcp_hostcache would have overridden a (now) lower MTU of an interface or route that changed since first PMTU discovery. The bug would have caused TCP to redo the PMTU discovery when not strictly necessary. Make a comment about already pre-initialized default values more clear. Reviewed by: sam
* Make sure RFCOMM multiplexor channel does not hang in DISCONNECTINGemax2004-04-231-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | state. Apparently it happens when both devices try to disconnect RFCOMM multiplexor channel at the same time. The scenario is as follows: - local device initiates RFCOMM connection to the remote device. This creates both RFCOMM multiplexor channel and data channel; - remote device terminates RFCOMM data channel (inactivity timeout); - local device acknowledges RFCOMM data channel termination. Because there is no more active data channels and local device has initiated connection it terminates RFCOMM multiplexor channel; - remote device does not acknowledges RFCOMM multiplexor channel termination. Instead it sends its own request to terminate RFCOMM multiplexor channel. Even though local device acknowledges RFCOMM multiplexor channel termination the remote device still keeps L2CAP connection open. Because of hanging RFCOMM multiplexor channel subsequent RFCOMM connections between local and remote devices will fail. Reported by: Johann Hugo <jhugo@icomtek.csir.co.za>
* Make sure Bluetooth stuff can be statically compiled into kernelemax2004-04-234-0/+50
| | | | | Submitted by: ps Reviewed by: imp (mentor), ru
* Clean up two printf()s that were on a line by themselves unintendedlytmm2004-04-231-2/+2
| | | | after the ethernet address printing was moved to common code.
* Enable the led-toggling magic. Compiling files which are in the kernel intophilip2004-04-233-27/+2
| | | | | | | | | modules is a very nice way to produce hard-to-find panics. Who would look for a bug in a Makefile anyway? Has anyone seen the pointy hat? :-o Approved by: njl (mentor)
* Make clone more aggressive about copying strings to the new entry.kientzle2004-04-231-9/+9
| | | | | | | | | The original might have pointers to user-specified strings; copying the string (instead of just the pointer) protects against the client re-using their own buffers. I'm trying hard to avoid dumping all of the 'set' string functions in favor of slower, but more predictable 'copy' semantics.
* Correct KASSERT()s that check for initialization of mutexes in ndis_detach(),wpaul2004-04-231-2/+6
| | | | | | which are different now that I'm not using mutex pools anymore. Noticed by: des
* Set the 'dump' flag for shardump format.kientzle2004-04-231-0/+4
| | | | | Credit Juergen Lock. Pointy hat to me for deleting this somewhere along the way.
* Add the comment of the previous commit to the source file directly.andre2004-04-231-1/+5
| | | | Requested by: ru
* Fix username/groupname cache so it returns a name thatkientzle2004-04-231-0/+2
| | | | | | | was just looked up by get{pw,gr}id(). Otherwise, it returns a NULL name unless it's already in the cache. Credit to Juergen Lock.
* Correct spelling of == so that file flags are correctly restored.kientzle2004-04-231-1/+1
| | | | Credit to Juergen Lock.
* Call ip_output() with IP_FORWARD flag to prevent it from overwriting theandre2004-04-231-2/+2
| | | | | | | | ip_id again. ip_id is already set to the ip_id of the encapsulated packet. Make a comment about mbuf allocation failures more realistic. Reviewed by: sobomax
* Add a stopgap for the EBus breakage on sparc64 since the PCI code doesmarius2004-04-231-0/+8
| | | | | | | | | | | resource pre-allocation. The problem is that the BARs of the EBus bridges contain the ranges for the resources for the EBus devices beyond the bridge. So when the EBus code tries to allocate the resource for an EBus device it's already allocated by the PCI code. To be removed again as soon as we have a proper solution in the EBus Code. Reviewed by: tmm Approved by: marcel (mentor)
* Change the dependency between these two scripts so that ipmon depends ondarrenr2004-04-230-0/+0
| | | | | | ipfilter rather than the other way around, preventing ipmon from exiting at startup because ipfilter is not yet enabled (using the device results too early results in ENXIO.)
* Add files required for the NETSMBCRYPTO option.tjr2004-04-231-0/+3
|
* Recompile of ipfw(8) is required because of new ipfw option (versrcreach).andre2004-04-231-0/+6
|
* Add the option versrcreach to verify that a valid route to theandre2004-04-234-9/+60
| | | | | | | | | | | | | | | | | | | | source address of a packet exists in the routing table. The default route is ignored because it would match everything and render the check pointless. This option is very useful for routers with a complete view of the Internet (BGP) in the routing table to reject packets with spoofed or unrouteable source addresses. Example: ipfw add 1000 deny ip from any to any not versrcreach also known in Cisco-speak as: ip verify unicast source reachable-via any Reviewed by: luigi
* Fix a potential race when purging expired hostcache entries.andre2004-04-231-3/+3
| | | | Spotted by: luigi
* Print fork statistics with %u as they are unsigned quantities.tjr2004-04-231-3/+3
| | | | | PR: 65889 Submitted by: Ken Stailey
* Hook up acpi_asus and its manual page in two more places I managed to overlookphilip2004-04-232-2/+3
| | | | | | last night. Sorry about that :-o Spotted by: njl (mentor, spotter of forgetfulness)
* Push down Giant into vm_pager_get_pages(). The only get pages methods thatalc2004-04-232-0/+5
| | | | require Giant are in the device and vnode pagers.
* Start programming the bus numbers for the pci<->cardbus. When theimp2004-04-231-1/+30
| | | | | | | | | | | | | secondary bus is 0, we program the primary bus, the secondary bus and the suborindate bus. This isn't ideal, since we start at parent_bus + 1 and store this in a static. Ideally, we'd walk the tree and assign bus numbers. However, that's harder to accomplish without some help from the bus layer which we're not planning on doing that until 6. This fixes my CardBus problems on my Sony PCG-Z1WA, and might fix the Dells that have had problems.
* Utilize sf_buf_alloc() rather than pmap_qenter() (and sometimesalc2004-04-233-21/+15
| | | | | kmem_alloc_wait()) for mapping the image header. On all machines with a direct virtual-to-physical mapping and SMP/HTT i386s, this is a clear win.
* Set the INTR_MPSAFE flag.wpaul2004-04-221-1/+1
|
* There was a thread on "unusually high load averages" when running underobrien2004-04-221-2/+2
| | | | | | | | | | sched_ule, in January 2004. Looking at this, "pagezero" is (one of) the culprit(s). We had no provision for processes with P_NOLOAD set. With pagezero not running at PRI_ITHD, kseq_load_{add,rem} count pagezero as another-normal-process, thus the "expected-plus-one" load reported in the above thread. Submitted by: Nikos Ntarmos <ntarmos@ceid.upatras.gr>
* Missed this out in my last commit. Makefile for the acpi_asus driver.philip2004-04-221-0/+10
|
* Add the ACPI Asus extras driver. Provides support for cool ACPI-controledphilip2004-04-226-0/+1377
| | | | | | | | | gadgets (hotkeys, lcd, ...) on Asus laptops. I aim to closely track the acpi4asus project which implements these features in the Linux kernel. If this breaks your laptop, please let me know how it does it :-) Approved by: njl (mentor)
* Fix some style issues in rev 1.58.obrien2004-04-221-13/+12
| | | | | Use 64-bit integer math vs. mixed FP & integer. Add -g to the usage().
* Add 'g' to SYNOPSIS.obrien2004-04-221-1/+1
|
* Fix printing of the "Mounted on" values for 'df -i'.obrien2004-04-221-2/+4
| | | | | | Fix spacing before "Mounted on" column in general. Submitted by: bde
* Look out! vn_start_write() is able to return 0 and NULL 'mp'.pjd2004-04-222-0/+4
| | | | Submitted by: Alex Lyashkov <shadow@psoft.net>
* Remove npx(4) reference for isa. While true, it is useless (sinceimp2004-04-221-1/+2
| | | | | | there are a lot of other dependencies that preclude the kernel from working). Instead, have a more generic note that isa should not be removed. This should be less confusing for users.
* Use the correct size to allocate, copy and clear argument type tablestjr2004-04-222-12/+18
| | | | | | | | | | after their change from an array of char to an array of enum. This fixes problems that occurred when using positional arguments in format strings, particularly with more than STATIC_ARG_TBL_SIZE (8) of them. PR: 65841 Submitted by: Steven Smith (mostly)
* Document the net.inet.ip.portrange.randomized sysctl.silby2004-04-221-0/+7
|
* Take out an unneeded variable I forgot to remove in the last commit,silby2004-04-221-2/+3
| | | | and make two small whitespace fixes so that diffs vs rev 1.142 are minimal.
* Simplify random port allocation, and add net.inet.ip.portrange.randomized,silby2004-04-221-27/+13
| | | | | | which can be used to turn off randomized port allocation if so desired. Requested by: alfred
* Ok, _really_ fix the Intel 2100B Centrino deadlock problems this time.wpaul2004-04-222-41/+30
| | | | | | | | | | | | | | | | (I hope.) My original instinct to make ndis_return_packet() asynchronous was correct. Making ndis_rxeof() submit packets to the stack asynchronously fixes one recursive spinlock acquisition, but it's also possible for it to happen via the ndis_txeof() path too. So: - In if_ndis.c, revert ndis_rxeof() to its old behavior (and don't bother putting ndis_rxeof_serial() back since we don't need it anymore). - In kern_ndis.c, make ndis_return_packet() submit the call to the MiniportReturnPacket() function to the "ndis swi" thread so that it always happens in another context no matter who calls it.
* define some new fields in the physical drive structure and pad theps2004-04-221-0/+3
| | | | structure to 512 bytes.
* Fix the build. opt_asr.h is gone.njl2004-04-222-2/+1
| | | | Beer or equivalent to? njl
OpenPOWER on IntegriCloud