summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* better integrate cyclic module with clocksource/eventtimer subsystemavg2011-05-165-41/+97
| | | | | | | | | | Now in the case when one-shot timers are used cyclic events should fire closer to theier scheduled times. As the cyclic is currently used only to drive DTrace profile provider, this is the area where the change makes a difference. Reviewed by: mav (earlier version, a while ago) X-MFC after: clocksource/eventtimer subsystem
* Fix a </<= mixup. This could result in suboptimal performance on the lastnwhitehorn2011-05-161-1/+1
| | | | page of physical memory.
* Fix a comment that got missed by r221973 which changedrmacklem2011-05-161-1/+1
| | | | the sysctl naming for the old NFS client to vfs.oldnfs.
* Add diagnostic messages for integrity checks.ae2011-05-161-0/+20
|
* Remove a useless check that served only to make 64-bit PPC systemsnwhitehorn2011-05-161-5/+0
| | | | | | | unbootable after r221855. Submitted by: andreast MFC after: 1 week
* Fix the nfsv4 man page to reflect the changes related tormacklem2011-05-151-27/+19
| | | | | making the new NFS client and server the default. This is a content change.
* sh: Minor optimization to output from ulimit/export/readonly.jilles2011-05-152-8/+7
| | | | No functional change is intended.
* Correctly disable jumbo frame support for BCM5719 A0.yongari2011-05-151-1/+1
|
* Change the sysctl naming for the old and new NFS clientsrmacklem2011-05-1514-74/+68
| | | | | to vfs.oldnfs.xxx and vfs.nfs.xxx respectively. This makes the default nfs client use vfs.nfs.xxx after r221124.
* Add a sysctl kern.geom.part.check_integrity for those who has corruptae2011-05-151-3/+14
| | | | | | partition tables and lost an ability to boot after r221788. Also unhide an error message from bootverbose, this would help to easier determine the problem.
* Fix breakage on pc98 by redefining DEBUG().brix2011-05-151-23/+24
| | | | Pointy hat to: brix
* sh: Avoid close(-1) when evaluating a multi-command pipeline.jilles2011-05-151-1/+2
| | | | Valgrind complains about this.
* Some partitioning schemes want to have partitions that are alignedae2011-05-151-10/+14
| | | | | | | | | | | | | with geometry. And they do recalculation of user specified parameters. MBR, PC98, VTOC8, EBR schemes are doing that. For these schemes an auto alignment feature (ie. gpart add -a alignment) would not work. But it can work for GPT and BSD schemes. BSD scheme usualy is created inside MBR, so we can use knowledge about offset of MBR partition to calculate aligned values for BSD partitions. Use "offset" attribute of the parent provider for better alignment. MFC after: 2 weeks
* * Add some more TX descriptor error counters; this'll be helpful whenadrian2011-05-153-7/+28
| | | | | implementing TX aggregation * Whilst I'm there, comment some RX error counters
* Add I2C bus driver for the AMD Geode LX series CS5536 Companionbrix2011-05-157-0/+1203
| | | | | | Device. Reviewed by: jhb (newbus bits only), adrian
* Recognize the SAB 82532 found in Fujitsu PRIMEPOWER650 and 900.marius2011-05-152-2/+4
|
* Recognize the eeprom device found in Fujitsu PRIMEPOWER650 and 900.marius2011-05-151-1/+4
|
* Add support for MK48T37.marius2011-05-152-1/+6
|
* - Add 10baseT as an alias for 10baseT/UTP.marius2011-05-151-0/+25
| | | | | | | | | - Add shorthand aliases for common media+option combinations as announced by miibus(4) so that one can actually supply the media strings found in the dmesg output to ifconfig(8). Obtained from: NetBSD (in principle) MFC after: 2 weeks
* When setting media always and not just in case of switching to IFM_AUTOmarius2011-05-151-5/+1
| | | | | | | | | | | | | | | | | | clear the options of the current media, i.e. only inherit the instance, which matches what NetBSD does. Without this it's really non-intuitive that the following sequence: ifconfig bge0 media 1000baseT mediaopt full-duplex ifconfig bge0 media 100baseTX results in 100baseTX full-duplex to be set or that: ifconfig bge0 media autoselect mediaopt flowcontrol ifconfig bge0 media 1000baseT mediaopt full-duplex tries to set 1000baseT full-duplex with flowcontrol, which isn't suported und thus fails while the following: ifconfig re0 media 1000baseT mediaopt flowcontrol,full-duplex ifconfig re0 media autoselect just switches to autoselection without flowcontrol. MFC after: 2 weeks
* Fix a memory leak possible in g_eli_key_allocate() if the key with thetrociny2011-05-151-0/+1
| | | | | | | same keyno is added while we aren't holding the lock. Approved by: pjd (mentor) MFC after: 1 week
* Simplify the code a bit. For own providers GEOM_PART always providesae2011-05-151-61/+14
| | | | | | "start" and "end" config attributes. MFC after: 1 week
* Only update the scheduler's byte count table for aggregation queues.bschmidt2011-05-151-6/+4
| | | | | | | | The other queues, especially the command queue, uses the FIFO mode which doesn't require the byte count table because queued entries are processed in order. Pointed out by: Lucius Windschuh <lwindschuh at googlemail dot com>
* Fix NF calibration breakage introduced by me in a past commit.adrian2011-05-151-1/+1
| | | | | | Since the returned NF will be -ve, checking for <= 0 is not good enough. For now, check whether it equals 0 or -1; a future commit will tidy this mess up and have it return HAL_BOOL instead.
* Fix few typos.mav2011-05-151-2/+2
| | | | | Submitted by: uqs MFC after: 1 week
* - Whitespace fix.stas2011-05-151-1/+1
|
* - Add symbol versioning to libprocstat.stas2011-05-143-0/+24
| | | | Suggested by: kib
* - There's no need for nibbletab to be static, it's const however.marius2011-05-141-3/+3
| | | | - Fix whitespace.
* sysctl that displays the absolute queue id of an rxq.np2011-05-141-0/+13
|
* Convert a file to UTF-8. This only changes a character in theuqs2011-05-141-1/+1
| | | | copyright section and will not require UTF-8 for fortune(6).
* fortune(6): fix typos and misspellings.uqs2011-05-149-67/+11
| | | | | | | While here, drop words in the spelling files that are no longer used anywhere. Speling errors found via: codespell from Lucas De Marchi
* morse(6): fix typos and space-before-tabsuqs2011-05-141-20/+20
|
* Fix the source address selection for boundall socketstuexen2011-05-142-44/+153
| | | | | | | | | | | when sending INITs to a global IPv4 address having only private IPv4 address. Allow the usage of a private address and make sure that no other private address will be used by the association. Initial work was done by rrs@. MFC after: 1 week.
* Encourage Ben Laurie to finish getting his commit bit by appointing himcperciva2011-05-141-1/+1
| | | | | | | as the OpenSSL maintainer. With hat: security-officer Reviewed by: simon (former maintainer)
* Currently we are unable to use capsicum for the primary worker process,pjd2011-05-145-22/+44
| | | | | | | | | | | | | | | | | because we need to do ioctl(2)s, which are not permitted in the capability mode. What we do now is to chroot(2) to /var/empty, which restricts access to file system name space and we drop privileges to hast user and hast group. This still allows to access to other name spaces, like list of processes, network and sysvipc. To address that, use jail(2) instead of chroot(2). Using jail(2) will restrict access to process table, network (we use ip-less jails) and sysvipc (if security.jail.sysvipc_allowed is turned off). This provides much better separation. MFC after: 1 week
* When using capsicum to sanbox, still use other methods first, just in casepjd2011-05-141-10/+13
| | | | one of them have some problems.
* Fix the Merlin 5ghz fast-clock EEPROM fetch to return the correct value.adrian2011-05-141-2/+4
| | | | | | | The eeprom Get method should return HAL_OK if fastclock is enabled in the EEPROM. It was returning the opposite of what it should have. Submitted by: Matthew Fleming <mdf356@gmail.com>
* Fix the eeprom set API method to return HAL_STATUS.adrian2011-05-146-6/+6
| | | | | | | | | The code assumed it could return HAL_OK, HAL_EINVAL and other HAL_STATUS types; so it shouldn't be declared as returning HAL_BOOL. This commit was brought to you by the Clang compiler. Submitted by: Matthew Fleming <mdf356@gmail.com>
* Prefer switching the memory stack from user to kernel *before* switchingmarcel2011-05-141-3/+4
| | | | | | | | | | | | the register stack. While the ordering doesn't matter, it creates an invariant not previously there: the memory stack pointer will always be larger than the register stack pointer. With this invariant in place, it's easier to add instrumentation code that detects a stack overflow because in such a scenario the memory stack pointer and register stack pointers have crossed each other. Aside: basic kernel operation needs about half the stack size (~16K) at most. We have plenty of head room on the kernel stack...
* Sharpening the saw:marcel2011-05-141-8/+12
| | | | | | | | | | o Clobber the register that holds the restart token immediately after crossing the restart point. This prevents false positives (i.e. a nested exception that we don't know can happen and that is being treated as one we know by virtue of a lingering restart token). o Now that the bootstrap kernel stack is free, switch onto it and call trap() for nested traps that we don't know about. In trap we panic() so that we can analyze the condition.
* Oops, fix order of sequence numbers in KASSERT()'s to catch negativejhb2011-05-142-2/+2
| | | | | | receive windows to match the labels in the panic message. Submitted by: trociny
* Be pedantic: mark the pcpu pointer (= register r13) itself as volatile.marcel2011-05-141-1/+1
|
* Turn ia64_srlz() and ia64_srlz_i() into defines so that the code ismarcel2011-05-141-11/+8
| | | | still correct when inlining is disabled.
* Import initial EEPROM code for Kite (AR9287).adrian2011-05-143-0/+572
| | | | | | | | | | | | I've tested this locally and it does indeed read and attach to an AR9287 EEPROM. But a lot more code needs to be ported over to the HAL before the AR9287 is functional. I'm importing this separate from the rest of the codebase (and unlinked from the build for now) in case someone wishes to begin fiddling with porting the rest of the code over from Linux ath9k. Obtained from: Linux ath9k
* sh: Add tests for lines that look like heredoc delimiters but are not.jilles2011-05-142-0/+107
|
* network.subr: Use printf(1) builtin for hexprint function.jilles2011-05-141-26/+2
| | | | | | | | | Now that printf(1) is a shell builtin, there is no need to emulate it anymore. The external printf(1) is /usr/bin/printf and therefore may not be available in early boot. It may be faster to use printf directly but the function is useful for compatibility.
* Add new USB ID's.hselasky2011-05-141-0/+5
| | | | | Submitted by: Jim Bryant MFC after: 3 days
* gcc and clang semantics imply certain -mno-* flags when other certain -mno-*brucec2011-05-141-5/+28
| | | | | | | | | | | flags are also specified. This change makes use of this behaviour and removes unneeded -mno-* flags. Note that clang does not yet enable AVX support for any CPU. However at some point in the future it will and since we definitely want to disable it for the kernel, we might as well add the -mno-avx flag now. Submitted by: arundel
* When disabling RIFS for Sowl (AR9160) and Howl (AR9130), make sure RIFSadrian2011-05-144-3/+40
| | | | | | | | | | | | is totally disabled. The Atheros HAL code does this for Sowl/Howl but not for Owl (AR5416) where RIFS is disabled by default. This seems to quieten the occasional baseband hang I've been seeing with the AR9160 in STA mode under constant heavy traffic load. Obtained from: Atheros
* Restore BOOT2CFG, accidentally removed in r212938.imp2011-05-141-1/+1
| | | | PR: 157020
OpenPOWER on IntegriCloud