summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix XPT_GET_TRAN_SETTING for FC which has been broken for while so thatmjacob2010-06-071-2/+4
| | | | | | | it will figure out the correct target to handle index and be able to find things like WWPN, etc. MFC after: 2 weeks
* Opps... my bad.. we don't need a SOCK_UNLOCK() afterrrs2010-06-071-1/+0
| | | | | | | calling socantrcvmore_locked() since it will unlock the lock for you. MFC after: 1 week
* Follow up revision 208888 with purely ident changes.delphij2010-06-071-6/+6
| | | | MFC after: 1 week
* Correct a bug in gzip(1): make sure that initialize isb with fstat() ondelphij2010-06-071-3/+9
| | | | | | | | input file before using it. PR: bin/147275 Submitted by: thomas MFC after: 1 week
* cxgb(4): add an 'nfilters' tunable that lets the user place an uppernp2010-06-071-4/+11
| | | | | limit on the number of hardware filters (and thus the amount of TCAM reserved for filtering).
* bgeom(3) does strdup of param name.ae2010-06-071-0/+1
| | | | | | | | Don't leak memory when deleting param from gctl_req. Reviewed by: marcel Approved by: mav (mentor) MFC after: 2 weeks
* Document ZFS upgrade to version 14, support for NFSv4 ACLs,mm2010-06-071-0/+5
| | | | | | changes in L2ARC and zfs send. Approved by: delphij (mentor)
* Fix so we call socantrcvmore_locked so werrs2010-06-071-1/+1
| | | | | | | | don't see a race where we unlock to call the non-locked version and have the socket go away. MFC after: 1 week
* sh: Pass through SIGINT from a child if interactive and job controljilles2010-06-061-0/+6
| | | | | | | | | | | | | | | is enabled. This already worked if without job control. In either case, this depends on it that a process that terminates due to SIGINT exits on it (so not with status 1, or worse, 0). Example: sleep 5; echo continued This does not print "continued" any more if sleep is aborted via ctrl+c. MFC after: 1 month
* 1) Optimize the cleanup and don't always depend onrrs2010-06-064-7/+28
| | | | | | | | | | | | | the timer. This is done by considering the locks we will destroy and if they are contended we consider it the same as a reference count being up. Fixing this appears to cleanup another crash that was appearing with all the timers where the socket buf lock got corrupted. 2) Fix the sysctl code to take a lot more care when looking at INP's that are in the GONE or ALLGONE state. MFC after: 1 week
* Ok, yet another bug in killing off all the hundredsrrs2010-06-064-3/+11
| | | | | | | | | | | | | | | | | | | | of apitesters.. Basically we end up with attempting to destroy a lock thats contended on. A cookie echo arrives at the same time that the close is happening. The close gets the lock but the cookie echo has already passed the check for the gone flag and is then locked waiting on the create lock.. when we go to destroy it bam. For now we do the timer destroy for all calls to close.. We can probably optimize this later so that we check whats being contended on and if there is contention then do the timer thing. but this is probably safest since the inp has been removed from all lists and references and only the timer can find it.. once the locks are released all other places will instantly see the GONE flag and bail (thats what the change in sctp_input is one place that was lacking the bail code). MFC after: 1 week
* Style-compilant order of declarations.kib2010-06-061-4/+4
| | | | | Noted by: bde MFC after: 1 month
* 1) Further enhance the INVARIANT lock validation (no locks) arerrs2010-06-061-1/+8
| | | | | | | | | | | | | held by checking the create and inp locks as well. 2) Fix a bug in that when a socket is closed an INIT-ACK is returned, we do NOT unlock the locked_tcb unless its different (an unlikely scenario). If we blindly unlock as we were doing before we can end up unlocking the actual stcb thats about to be sent down to the free function which requires the lock be held. MFC after: 1 week
* Fix a bug in the sctp_inpcb_free. Basically if the socketrrs2010-06-061-0/+4
| | | | | | | | was setup to do an abortive close an association that was in the accept_queue could get stuck and never freed. Now we properly start the kill timer on the socket and turn off the flag (same thing we do for the graceful close method). MFC after: 1 week
* Fix a bug in sctp_abort_assoc(). DON'T call the sctp_inpcb_freerrs2010-06-061-7/+0
| | | | | | | when the gone flag is set. You don't know what locks the caller has set and there is already a kill timer running. MFC after: 1 week
* Rework tcpp output so that it generates a comma-delimited list of values,rwatson2010-06-064-43/+50
| | | | | | | | | optionally with a header if "-h" is passed. Toast CPU time measurement in the server for now. Remove -C and -T, since we now always report both connections/sec and Gb/sec. MFC after: 1 week Sponsored by: Juniper Networks
* Add Open Firmware PNP info strings to GPIOs and Uninorth cells.nwhitehorn2010-06-062-0/+4
| | | | Submitted by: Andreas Tobler
* Some revisions of the Serverworks K2 SATA controller have a datanwhitehorn2010-06-063-1/+21
| | | | | | | | | | | | | | corruption bug where if an ATA command is issued before DMA is started, data will become available to the controller before it knows what to do with it. This results in either data corruption or a controller crash. This patch remedies the problem by adopting the workaround employed by Linux and Darwin: starting the DMA engine prior to sending the ATA command. Observer on: Xserve G5 Reviewed by: mav MFC after: 1 week
* - Fix signal handling in bc/dc. Now Ctrl-C terminates the execution.gabor2010-06-062-36/+5
| | | | | Requested by: gk (via private mail) Approved by: delphij (mentor)
* - Fig segmentation faultgabor2010-06-061-1/+6
| | | | Submitted by: Hizel Ildar <hizel@vyborg.ru> (via current@)
* Don't set PG_WRITEABLE in init_pte_prot() (and thus pmap_enter()) unlessalc2010-06-061-13/+7
| | | | | | | | | | | | | | | | | | | the page is managed. Don't set the machine-independent layer's dirty field for the page being mapped in init_pte_prot(). (The dirty field is only supposed to set when a mapping is removed or write-protected and the page was managed and modified.) Determine whether or not to perform dirty bit emulation based on whether or not the page is managed, i.e., pageable, not based on whether the page is being mapped into the kernel address space. Nearly all of the kernel address space consists of unmanaged pages, so this has neglible impact on the overhead of dirty bit emulation for the kernel address space. However, there can also exist unmanaged pages in the user address space. Previously, dirty bit emulation was unnecessarily performed on these pages. Tested by: jchandra@
* Hopefully this fixes a LOR by makingrrs2010-06-061-22/+17
| | | | | | | so we only hold the iterator lock during updates to the iterators work. MFC after: 1 week
* Bruce's fix for some return's inrrs2010-06-061-0/+8
| | | | | | error legs. MFC after: 1 week
* Fix a bug introduced in r199011. When bge(4) reuses loaded RXyongari2010-06-052-16/+51
| | | | | | | | | | | | | | | | | | | buffers it should also reinitialize RX descriptors otherwise some stale data could be passed to controller. This could end up with mbuf double free or unexpected NULL pointer dereference in upper stack. To fix the issue, save loaded buffer's length and reinitialize RX descriptors with the saved value whenever bge(4) reuses the loaded RX buffers. While I'm here, increase the number of RX buffers to 512 from 256. This simplifies RX buffer handling as well as giving more RX buffers. Controller supports just fixed number of RX buffers (i.e. 512) and bge(4) used to rely on hope that our CPU is fast enough to keep up with the controller. With this change, bge(4) will use 1MB for RX buffers but I don't think it would cause problems in these days. Reported by: marcel Tested by: marcel
* Convert pm_runcount to int to correctly check for negative value.fabient2010-06-052-9/+6
| | | | | | | Remove uncessary check for error. Found with: Coverity Prevent(tm) MFC after: 1 month
* Fix memory leak on error.fabient2010-06-051-1/+3
| | | | | Found with: Coverity Prevent(tm) MFC after: 1 month
* Although we currently don't compile in CPU-pinning support by default,rwatson2010-06-055-29/+45
| | | | | | | add a -P to enable it if it were. MFC after: 1 week Sponsored by: Juniper Networks
* Fix warnings found by Coverity.fabient2010-06-053-4/+8
| | | | | Found with: Coverity Prevent(tm) MFC after: 1 month
* Purge out a Windows def that somehow slippedrrs2010-06-051-7/+1
| | | | | | past the scrubber. MFC after: 1 Week
* Spacing issuesrrs2010-06-052-6/+5
| | | | MFC after: 1 Week
* This change does the following:rrs2010-06-051-13/+23
| | | | | | | | | | | | | 1) Fix the alignment of a comment. 2) Fix a BUG where we were NOT paying attention to the RESEND marking on retransmitting control chunks.. and worse we were not decrementing the retran count that could cause us to loop forever. 3) Add in the valdiate_no_lock function on invariants so that we will really check all ways out to be sure a lock does not slip out locked. MFC after: 1 week.
* Use the proper increment macro when increasing therrs2010-06-051-3/+4
| | | | | | number on sent_queue_retran_cnt. MFC after: 1 week
* This does two changes:rrs2010-06-052-6/+18
| | | | | | | | 1) Makes it so that the INVARIANT function validate nolocks is available anywhere. 2) Fixes a BUG where a close has been done on a collision socket and the cookie processing would return leaving a lock held. MFC after: 1 week
* This fixes a bug in the close up of a socket thatrrs2010-06-051-2/+15
| | | | | | | had un-accepted assoc's. Basically the assoc (and inp) would get stuck and never get cleaned up. MFC after: 1 week
* Be more specific about which CDB length we're going to use. Not really a likelymjacob2010-06-051-4/+14
| | | | | | | | | bug but we might as well be clearer. Found with: Coverity Prevent(tm) CID: 3981 MFC after: 2 weeks
* Correct a harmless typo introduced when copying code from mmu_oea64.nwhitehorn2010-06-051-1/+1
| | | | | Submitted by: alc MFC after: 8.1-RELEASE
* Don't set PG_WRITEABLE in pmap_enter() unless the page is managed.alc2010-06-053-6/+11
| | | | Correct a typo in a nearby comment on sparc64.
* Add a driver for the CPU temperature sensors attached over I2C on thenwhitehorn2010-06-052-0/+263
| | | | PowerMac 11,2.
* Add support for the I2C busses hanging off Apple system management chips.nwhitehorn2010-06-051-12/+241
|
* Utilize the Keywest I2C combined mode for messages with repeated starts.nwhitehorn2010-06-051-8/+57
|
* Add two new flags (IIC_M_NOSTOP and IIC_M_NOSTART) to struct iic_msg tonwhitehorn2010-06-051-0/+2
| | | | | | allow consumers of iicbus_transfer() to send messages with repeated starts. Reviewed by: imp
* Correct the comment. We now use level low instead of edge high for thisnwhitehorn2010-06-051-1/+1
| | | | interrupt.
* Partially revert r208162 while waiting for review on a more comprehensivenwhitehorn2010-06-051-0/+7
| | | | | | | | | | | | fix. On Apple OpenPICs, the low/high bit of the interrupt sense is only respected for interrupt 0. We currently erroneously program all OpenPIC interrupts level high instead of level low by default, which only matters for some G5 systems where the SATA controllers use IRQ 0. This change is a quick fix that will be reverted once the effect of changing the default interrupt sense on embedded systems is known. MFC after: 3 days
* Make sure that interrupt sense settings set after interrupts are enablednwhitehorn2010-06-051-1/+7
| | | | | | | | are respected. This fixes loading the Apple onboard audio driver (snd_ai2s) as a module after boot, which would previously cause a panic. PR: powerpc/146888 MFC after: 5 days
* Use the fpu_kern_enter() interface to properly separate usermode FPUkib2010-06-056-4/+53
| | | | | | | | | | | | | | context from in-kernel execution of padlock instructions and to handle spurious FPUDNA exceptions that sometime are raised when doing padlock calculations. Globally mark crypto(9) kthread as using FPU. Reviewed by: pjd Hardware provided by: Sentex Communications Tested by: pho PR: amd64/135014 MFC after: 1 month
* Introduce the x86 kernel interfaces to allow kernel code to usekib2010-06-0520-84/+440
| | | | | | | | | | | | | | | | FPU/SSE hardware. Caller should provide a save area that is chained into the stack of the areas; pcb save_area for usermode FPU state is on top. The pcb now contains a pointer to the current FPU saved area, used during FPUDNA handling and context switches. There is also a facility to allow the kernel thread to use pcb save_area. Change the dreaded warnings "npxdna in kernel mode!" into the panics when FPU usage is not registered. KPI discussed with: fabient Tested by: pho, fabient Hardware provided by: Sentex Communications MFC after: 1 month
* Add comment that this value is unused.edwin2010-06-051-1/+1
| | | | | | | It is obvious that it isn't used, but both clang and Coverity talk about it. Found with: Coverity Prevent(tm) CID: 8066
* When there is a problem with writing, also bail out.edwin2010-06-051-1/+2
| | | | Found with the clang checker.
* Make clang happier by removing unused assignments.edwin2010-06-051-16/+16
|
* Fix warnings about uninitialized variables.edwin2010-06-051-0/+2
| | | | | | | It was mostly harmless since strftime() only used %a and %b anyway. Found with: Coverity Prevent(tm) CID: 7769
OpenPOWER on IntegriCloud