summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement syscall clock_getcpuclockid2, so we can get a clock iddavidxu2012-08-1721-23/+272
| | | | | | | | for process, thread or others we want to support. Use the syscall to implement POSIX API clock_getcpuclock and pthread_getcpuclockid. PR: 168417
* The TCP PAWS fix for kernels with fast tick rates (r231767) changed the TCPlstewart2012-08-171-4/+6
| | | | | | | | | | | | | | | | | | | timestamp related stack variables to reference ms directly instead of ticks. The h_ertt(4) Khelp module relies on TCP timestamp information in order to calculate its enhanced RTT estimates, but was not updated as part of r231767. Consequently, h_ertt has not been calculating correct RTT estimates since r231767 was comitted, which in turn broke all delay-based congestion control algorithms because they rely on the h_ertt RTT estimates. Fix the breakage by switching h_ertt to use tcp_ts_getticks() in place of all previous uses of the ticks variable. This ensures all timestamp related variables in h_ertt use the same units as the TCP stack and therefore results in meaningful comparisons and RTT estimate calculations. Reported & tested by: Naeem Khademi (naeemk at ifi uio no) Discussed with: bz MFC after: 3 days
* Make 'junk' volatile so that compilers won't be tempted to optimizekevlo2012-08-171-1/+1
| | | | | Reviewed by: ache MFC after: 3 days
* Support for TCP DDP (Direct Data Placement) in the T4 TOE module.np2012-08-1710-52/+1486
| | | | | | | | | | | | Basically, this is automatic rx zero copy when feasible. TCP payload is DMA'd directly into the userspace buffer described by the uio submitted in soreceive by an application. - Works with sockets that are being handled by the TCP offload engine of a T4 chip (you need t4_tom.ko module loaded after cxgbe, and an "ifconfig +toe" on the cxgbe interface). - Does not require any modification to the application. - Not enabled by default. Use hw.t4nex.<X>.toe.ddp="1" to enable it.
* Initialize various DDP parameters in the main cxgbe(4) driver:np2012-08-163-12/+19
| | | | | | | | | | | | | | | | - Setup multiple DDP page sizes. When the driver attempts DDP it will try to combine physically contiguous pages into regions of these sizes. - Set the indicate size such that the payload carried in the indicate can be copied in the header mbuf (and the 16K rx buffer can be recycled). - Set DDP threshold to the max payload that the chip will coalesce and deliver to the driver (this is ~16K by default, which is also why the offload rx queue is backed by 16K buffers). If the chip is able to coalesce up to the max it's allowed to, it's a good sign that the peer is transmitting in bulk without any TCP PSH. MFC after: 2 weeks
* Merge ACPICA 20120816.jkim2012-08-1651-682/+2202
|\
| * Import ACPICA 20120816.jkim2012-08-1667-2249/+2491
| |
* | Make room for DDP page pods in the default configuration profile. Whilenp2012-08-161-3/+4
| | | | | | | | | | | | here, bump up the L2 table's size to 4K entries. MFC after: 2 weeks
* | Add a routine (t4_set_tcb_field) to update arbitrary parts of a hardwarenp2012-08-164-5/+60
| | | | | | | | | | | | | | | | | | TCB. Filters are programmed by modifying the TCB too (via a different routine) and the reply to any TCB update is delivered via a CPL_SET_TCB_RPL. Figure out whether the reply is for a filter-write or something else and route it appropriately. MFC after: 2 weeks
* | - Typo fixgonzo2012-08-161-3/+6
| | | | | | | | | | | | - style(9) fix Spotted by: kib@, Andrey Zonov
* | Allow for a different handler for each type of firmware message.np2012-08-164-11/+52
| | | | | | | | MFC after: 2 weeks
* | Remove D_NEEDGIANT from dead_devsw. biofinish() (and thus dead_strategy)jhb2012-08-161-1/+0
| | | | | | | | | | | | does not need Giant. MFC after: 1 month
* | Its never a good idea to double free the samerrs2012-08-161-1/+1
| | | | | | | | | | | | address. MFC after: 1 week (after the other commits ahead of this gets MFC'd)
* | Add locking for sscdisk(4) and mark it MPSAFE. Since this driver justjhb2012-08-161-13/+19
| | | | | | | | | | | | | | | | makes calls out to the emulator, the locking is fairly simple. A global mutex protects the list of ssc disks, and each ssc disk has a mutex to protect it's bioq. Approved by: marcel
* | On lun disable, complete all INOTs and ATIOs with CAM_REQ_ABORTED.mjacob2012-08-161-1/+18
| | | | | | | | | | Reviewed by: ken (silently), chuck MFC after: 3 weeks
* | As a safety measure, disable lowering pid_max too much.kib2012-08-162-2/+9
| | | | | | | | | | Requested by: Peter Jeremy <peter@rulingia.com> MFC after: 1 week
* | Fix grammar.kib2012-08-163-3/+3
| | | | | | | | | | Submitted by: jh MFC after: 1 week
* | - When running out of swzone, instead of spewing an error message everydes2012-08-161-1/+33
| | | | | | | | | | | | | | | | tick until the situation is resolved (if ever), just print a single message when running out and another when space becomes available. - When adding more swap, warn if the total amount exceeds half the theoretical maximum we can handle.
* | Fix "speaker" volume control, broken at r230451.mav2012-08-161-5/+8
| | | | | | | | | | Reported and tested by: Slawa Olhovchenkov <slw@zxy.spb.ru> MFC after: 1 month
* | Add comment why the code has been disabled.ae2012-08-161-2/+2
| | | | | | | | Requested by: rpaulo
* | Preliminary Embest ATEB9200 support.imp2012-08-165-0/+194
| |
* | Hmmm, somehow this file was completely deleted, rather than justimp2012-08-161-0/+48
| | | | | | | | having the bogus lines being removed.
* | Remove unused hints.imp2012-08-161-68/+0
| |
* | Eliminate an unused parameter from init_pte_prot().alc2012-08-161-7/+7
| | | | | | | | | | | | Eliminate stray whitespace within init_pte_prot(). Eliminate a gratuitous variable initialization from pmap_enter().
* | Limit popcorn limit to something sane (either 2ns or 2 ticks if that'simp2012-08-161-2/+9
| | | | | | | | | | | | | | longer). PR: 156481 Submitted by: Ian Lepore
* | Fix an incorrect comparison.adrian2012-08-161-3/+2
| | | | | | | | PR: kern/170098
* | Merge somewhat modified r230399 from projects/armv6:gonzo2012-08-161-0/+16
| | | | | | | | | | | | | | | | | | | | Add timeout to wait for network controllers to appear when netbooting. USB ethernet adapter initialization usually is delayed and they're not available immidiately after autoconfiguration. So we need to wait a bit before giving up Reviewed by: stas@
* | Replace all uses of the vm page queues lock by a r/w lock that is privatealc2012-08-151-72/+70
| | | | | | | | | | | | | | | | | | | | | | to this pmap. Tidy up the #include's. Remove the (now) unused #define PMAP_SHPGPERPROC. (This should have been removed in r239236.) Tested by: jchandra
* | Eliminate some unused declarations.alc2012-08-151-3/+0
| |
* | Correct a KASSERT message.alc2012-08-151-1/+1
| | | | | | | | Submitted by: bde
* | Don't call the node iteration function inside the node table / nodeadrian2012-08-152-14/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | iterate lock. This causes LORs and deadlocks as some code paths will have the com lock held when calling ieee80211_iterate_nodes(). Here, the comlock isn't held during the node table and node iteration locks; and the callback isn't called with any (extra) lock held. PR: kern/170098 Submitted by: moonlightakkiy@yahoo.ca MFC after: 4 weeks
* | Fix argument type for bus_space_mapgonzo2012-08-151-1/+1
| |
* | Unbreak build for the rest of AT91 platformsgonzo2012-08-152-0/+2
| |
* | Switch lpc initarm() to use struct arm_boot_params and therefore fixjceel2012-08-151-33/+7
| | | | | | | | | | | | EA3250 kernel build. Approved by: gonzo
* | Small tweaks:kib2012-08-151-4/+4
| | | | | | | | | | | | | | | | - fix macro argument - wrap long line - be more explicit about old pid_t type. MFC after: 1 week
* | Minor mdoc fixes and language tweaks.joel2012-08-151-23/+24
| |
* | Customer report of a panic on boot due to the oldjfv2012-08-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | "m_getjcl:invalid cluster type" that occurred some time back with the igb driver. This happens often when booting over the net. I believe the NIC hardware is left in a warm state when handed over to the driver, and a stray RX interrupt happens earlier than the code is prepared for it to happen. This change was verified to fix the problem, its kind of a bandaid... but it is similar to what was done in the igb code.
* | Streamline use of cdevpriv and correct some corner cases.hselasky2012-08-157-22/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) It is not useful to call "devfs_clear_cdevpriv()" from "d_close" callbacks, hence for example read, write, ioctl and so on might be sleeping at the time of "d_close" being called and then then freed private data can still be accessed. Examples: dtrace, linux_compat, ksyms (all fixed by this patch) 2) In sys/dev/drm* there are some cases in which memory will be freed twice, if open fails, first by code in the open routine, secondly by the cdevpriv destructor. Move registration of the cdevpriv to the end of the drm open routines. 3) devfs_clear_cdevpriv() is not called if the "d_open" callback registered cdevpriv data and the "d_open" callback function returned an error. Fix this. Discussed with: phk MFC after: 2 weeks
* | Add a short man page describing how to run a.out binaries on thekib2012-08-152-0/+147
| | | | | | | | | | | | current kernels. MFC after: 1 week
* | Add a sysctl kern.pid_max, which limits the maximum pid the system iskib2012-08-157-9/+49
| | | | | | | | | | | | | | allowed to allocate, and corresponding tunable with the same name. Note that existing processes with higher pids are left intact. MFC after: 1 week
* | Fix buildkib2012-08-151-2/+2
| |
* | Revert r239178 and implement two new functions, namelyhselasky2012-08-1525-227/+256
| | | | | | | | | | | | | | | | | | | | | | "device_free_softc()" and "device_claim_softc()", to allow USB serial drivers refcounting the softc. These functions are used to grab the softc from auto-free and to free the softc back to the correct malloc type, respectivly. Discussed with: jhb MFC after: 2 weeks
* | Add new USB device quirk.hselasky2012-08-152-0/+6
| | | | | | | | | | Submitted by: Kra OTN MFC after: 2 weeks
* | Regenerate.kib2012-08-154-10/+10
| |
* | Provide 32bit compat for truncate(2) and ftruncate(2).kib2012-08-151-2/+3
| | | | | | | | MFC after: 1 week
* | Don't include opt_ddb.h & <ddb/ddb.h> twice.obrien2012-08-151-2/+0
| |
* | Some BIOSes return incorrect number of sectors, make checks lessae2012-08-151-0/+4
| | | | | | | | | | | | strictly, to do not lost some partitions. Reported by: swills@
* | Rework r239232 to unbreak ZFS detection on MBR slices.ae2012-08-151-10/+18
| |
* | Explicitly terminate the string after strncpy(3).ae2012-08-151-0/+1
| |
* | Unbreak ATMEL kernel buildgonzo2012-08-151-0/+1
| |
OpenPOWER on IntegriCloud