summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix support for IBM/Lenovo Thinkcentre M52 series. Its vendorid / 0x1014ariff2006-10-121-16/+44
| | | | | | accidentally match with HP vendorid / 0x103c. Reported by: Robert Noland <rnoland@2hip.net>
* Remove redundant casts. The casts inside the macros should beimp2006-10-121-4/+4
| | | | sufficient (or fixed if not).
* Spell proc/sys/kernel/pid_max correctly in a comment.keramida2006-10-111-1/+1
| | | | Submitted by: rdivacky
* Recognize 802.1q frames in Ethernet input and process them.glebius2006-10-111-1/+29
| | | | | PR: kern/101162 Submitted by: CoolDavid (Tseng Guo-Fu) <cooldavid cdpa.nsysu.edu.tw>
* Improve ktr(4) logging for callout(9) subsystem. Log all inserts andglebius2006-10-111-7/+23
| | | | | | | | | removals, including failures, into the callwheel. XXX: Most of the CTR() macros are called with callout_lock spin mutex held, thus won't be logged into file, if KTR_ALQ is used. Moving the CTR() macros out from the spinlocked code would require copying of all arguments. I'm too lazy to do this.
* Do not leak hooks in ng_bypass().glebius2006-10-111-0/+3
| | | | Submitted by: Alexander Motin <mav alkar.net>
* Make it buildable.glebius2006-10-111-1/+1
|
* Unbreak a short one.glebius2006-10-111-2/+1
| | | | Submitted by: maxim
* Break long line.glebius2006-10-111-1/+2
|
* Use hash functions with better distribution. Tested on live traffic.glebius2006-10-111-12/+12
| | | | Submitted by: Alexander Motin <mav alkar.net>
* o Do not do args->f_id.addr_type == 6 when there ismaxim2006-10-111-2/+2
| | | | IS_IP6_FLOW_ID() exactly for that.
* o Kill a nit in the comment.maxim2006-10-111-1/+1
|
* o Extend not very informative ipfw(4) message 'drop session, too manymaxim2006-10-111-2/+32
| | | | | | | | | entries' by src:port and dst:port pairs. IPv6 part is non-functional as ``limit'' does not support IPv6 flows. PR: kern/103967 Submitted by: based on Bruce Campbell patch MFC after: 1 month
* Use bitcount32() from sys/systm.h instead of my own.glebius2006-10-111-17/+4
|
* - Update the baudrate every time the parent changes its link state.glebius2006-10-111-3/+4
| | | | | - Rearrange the curly braces so that this piece of code is more readable.
* Merge the rest of my changes.ru2006-10-111-13/+26
|
* Fix CPU value.ru2006-10-111-1/+1
|
* Using the ptr defines broke the powerpc build - convert set_mmfsa to the samekmacy2006-10-111-2/+2
| | | | convention as the rest of openfirm.c
* Change the x86 interrupt code to suspend/resume interrupt controllersjhb2006-10-1015-98/+224
| | | | | | | | | | | | | | | | | | (PICs) rather than interrupt sources. This allows interrupt controllers with no interrupt pics (such as the 8259As when APIC is in use) to participate in suspend/resume. - Always register the 8259A PICs even if we don't use any of their pins. - Explicitly reset the 8259As on resume on amd64 if 'device atpic' isn't included. - Add a "dummy" PIC for the local APIC on the BSP to reset the local APIC on resume. This gets suspend/resume working with APIC on UP systems. SMP still needs more work to bring the APs back to life. The MFC after is tentative. Tested by: anholt (i386) Submitted by: Andrea Bittau <a.bittau at cs.ucl.ac.uk> (3) MFC after: 1 week
* Don't pass unused bufsz to kern_shmctl().jhb2006-10-101-7/+6
|
* Only try to copyin a msqid for the IPC_SET command to msgctl(). Otherjhb2006-10-101-5/+6
| | | | | | commands (such as IPC_RMID) were bogusly failing with EFAULT. Tested by: jkim
* Remove unnecessary casts before PTRIN().jhb2006-10-101-11/+11
|
* Oops, fix sign bug in #ifdef for value of INTRCNT_COUNT.jhb2006-10-102-4/+4
| | | | | | PR: kern/99870 Submitted by: jkim MFC after: 3 days
* Distinguish between two distinct kinds of errors from VOP_BMAP() inalc2006-10-101-2/+12
| | | | | | | | | | | | vnode_pager_generic_getpages(): (1) that VOP_BMAP() is unsupported by the underlying file system and (2) an error in performing the VOP_BMAP(). Previously, vnode_pager_generic_getpages() assumed that all errors were of the first type. If, in fact, the error was of the second type, the likely outcome was for the process to become permanently blocked on a busy page. MFC after: 3 weeks Reviewed by: tegge
* Remind firmware of the ESSID to use in a directed scan. This fixes scanningmlaier2006-10-101-3/+17
| | | | | | | for hidden APs when we are not comming from iwi_config. Reported by: Andrew N. Below MFC after: 3 days
* Do allow jailed superuser to override the port ACL.rwatson2006-10-101-1/+1
| | | | | MFC after: 3 days Submitted by: Michal Mertl <mime at traveller dot cz>
* Mark the audit system calls as being un-implemented in jails. Currently we docsjp2006-10-101-0/+19
| | | | | | | | | | | | | | | | | | | | | not trust jails enough to execute audit related system calls. An example of this is with su(1), or login(1) within prisons. So, if the syscall request comes from a jail return ENOSYS. This will cause these utilities to operate as if audit is not present in the kernel. Looking forward, this problem will be remedied by allowing non privileged users to maintain and their own audit streams, but the details on exactly how this will be implemented needs to be worked out. This change should fix situations when options AUDIT has been compiled into the kernel, and utilities like su(1), or login(1) fail due to audit system call failures within jails. This is a RELENG_6 candidate. Reported by: Christian Brueffer Discussed with: rwatson MFC after: 3 days
* Guard against invalid metadata.pjd2006-10-101-0/+6
| | | | MFC after: 1 week
* Do not translate the IN_ACCESS inode flag into the IN_MODIFIED while filesystemkib2006-10-105-34/+89
| | | | | | | | | | | | | | | is suspending/suspended. Doing so may result in deadlock. Instead, set the (new) IN_LAZYACCESS flag, that becomes IN_MODIFIED when suspend is lifted. Change the locking protocol in order to set the IN_ACCESS and timestamps without upgrading shared vnode lock to exclusive (see comments in the inode.h). Before that, inode was modified while holding only shared lock. Tested by: Peter Holm Reviewed by: tegge, bde Approved by: pjd (mentor) MFC after: 3 weeks
* The powerpc and sparc64 MD `reboot' commands should never have existedbde2006-10-103-26/+10
| | | | | | | | | | | | | | | | | since they just duplicated the MI `reset' command. Instead of removing them, make `reboot' an MI alias for `reboot' since this gives a better way of killing the `r' alias for `reset'. Remove the `registers' command that was used to kill the alias. Turn the powerpc and sparc64 MD `halt' command into an MI command. A copy of sparc64/db_interface.c grew in sun4v just after I found the extra reboot commands. It has not been changed, and is now not identical. Duplicated commands come out duplicated in ddb's online help, but cause large problems when used (e.g., on i386's with 2 halt's and an hwatch, typing h doesn' give the expected message about an ambiguous command, but hangs like the halt command or a looping parseri would).
* Fixed loss of whitespace suppression at ends of lines. Whitespacebde2006-10-101-3/+3
| | | | | | | | | | suppression is only needed at ends of lines, but rev.1.32 forced it off precisely there. The --More-- prompt is now cleared by explicitly forcing out the whitespace in "\r \r". It might be better to use the line editor's clearing functions, but these are currently static and not much different.
* correct diag request to fetch isr state on fatal interruptssam2006-10-091-1/+1
| | | | MFC after: 1 week
* Fix style(9) nits.jkim2006-10-092-76/+74
|
* Fix 32-bit PTE in the GART table.jkim2006-10-092-2/+6
| | | | Noticed by: jmg
* provide routines to access VPD data at the PCI layer...jmg2006-10-096-182/+397
| | | | | | remove sk's own implementation, and use the new calls to get the data... Reviewed by: -arch
* more sun4v fallout - missed addkmacy2006-10-091-0/+143
| | | | Approved by: rwatson (mentor)
* unbreak buildkernel for sparc64 - fallout from sun4vkmacy2006-10-091-6/+5
| | | | | Approved by: rwatson (mentor) Reviewed by: jmg
* unbreak sparc64 loader buildkmacy2006-10-092-2/+1
| | | | | | | | re-add accidentally deleted asi value remove sun4v only header include Approved by: rwatson (mentor) Reviewed by: jmg
* kernel clean up to make the sun4v kernel buildkmacy2006-10-0914-27/+199
| | | | | Reviewed by: jmg Approved by: rwatson (mentor)
* add sun4v support to the sparc64 boot loaderkmacy2006-10-095-10/+1109
| | | | | | Approved by: rwatson (mentor) Reviewed by: jmg Tested by: kris, dwhite, and jmg
* Use LIST_FOREACH_SAFE instead of a hand rolled version.thompsa2006-10-091-8/+4
|
* Change vnode_pager_generic_getpages() so that it does not panic if thealc2006-10-081-2/+13
| | | | | | | | given file is sparse. Instead, it zeroes the requested page. Reviewed by: tegge PR: kern/98116 MFC after: 3 days
* Added few more pci ids for Intel, ATI, NVidia, VIA and SiS.ariff2006-10-081-2/+30
|
* Added some aliases:bde2006-10-081-0/+3
| | | | | | | | | | | | | - `b' is now an official alias for `break'. It used to be an unofficial alias, but this was broken by adding the `bt' alias for `trace'. - `t' is now an official alias for `trace'. It used to be an unofficial alias, but this was broken by adding the `thread' command. - `registers' is now an alias for `show registers'. This is a hack to break the unofficial `r' alias for `reset'. `r' really means `registers' in some debuggers, so I sometimes type it accidentally and am annoyed when it resets the system. A short command shouldn't have such a large effect. Now at least `res' must be typed to disambiguate `reset'.
* Fixed formatting of printing of command tables. WIth the default maxbde2006-10-084-6/+6
| | | | | | | | | | | | | | | output width of 79, only 6 columns of width 12 each fit, but 7 columns were printed. The fix is to pass the width of the next output to db_end_line() and not assume there that this width is always 1. Related unfixed bugs: - 1 character is wasted for a space after the last column - suppression of trailing spaces used to limit the misformatting, but seems to have been lost - in db_examine(), the width of the next output is not know and is still assumed to be 1.
* Remove unnecessary test case. (As written, that branch will nevernetchild2006-10-081-2/+0
| | | | | | | | be followed.) Submitted by: ryanb Found with: Coverity Prevent CID: 239860
* - change if (cond) panic() to KASSERT.netchild2006-10-081-3/+4
| | | | | | | | - Dont forget to free em in a case of error. Suggested by: ssouhlal Submitted by: rdivacky Tested with: LTP
* - Replace homegrown check for FIFO with S_ISFIFO. [1]netchild2006-10-081-1/+7
| | | | | | | | - Check the status of the options before messing with it. Inspired by: NetBSD [1] Submitted by: rdivacky Tested with: LTP
* Implement /proc/sys/kernel/pid_max.netchild2006-10-081-0/+19
| | | | | Submitted by: rdivacky Tested with: LTP
* Various mdoc and grammar fixes.piso2006-10-081-279/+282
| | | | | Approved by: glebius Reviewed by: glebius, ru
OpenPOWER on IntegriCloud