summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change the notes about the pidfile to include Doug's preferenceghelmer2012-02-011-2/+3
| | | | | | for pre-creating the pidfile with appropriate owner and permissions. Requested by dougb
* Add kqueue support to /dev/klog.kib2012-02-011-0/+48
| | | | | | Submitted by: Mateusz Guzik <mjguzik gmail com> PR: kern/156423 MFC after: 1 weeks
* Adjust mvs(4) to handle interrupt cause reg depending on the actual number ofraj2012-02-012-10/+16
| | | | | | | | | | | | | | | | channels available - current code treats bits 4:7 in 'SATAHC interrupt mask' and 'SATAHC interrupt cause' as flags for SATA channels 2 and 3 - for embedded SATA controllers (SoC) these bits have been marked as reserved in datasheets so far, but for some new and upcoming chips they are used for purposes other than SATA Submitted by: Lukasz Plachno Reviewed by: mav Obtained from: Semihalf MFC after: 2 weeks
* Make the sys/ucontext.h self-contained by changing the return typekib2012-02-019-9/+9
| | | | | | | of __getcontextx_size(3) from size_t to int. PR: ports/164654 MFC after: 1 month
* o Provide functions carp_ifa_addroute()/carp_ifa_delroute()glebius2012-02-011-24/+41
| | | | | | | | | | to cleanup routes from a single ifa. o Implement carp_addroute()/carp_delroute() via above functions. o Call carp_ifa_delroute() in the carp_detach() to avoid junk routes left in routing table, in case if user removes an address in a MASTER state. [1] Reported by: az [1]
* - remove non-existent input directories from the configsnetchild2012-02-01238-239/+6
| | | | | | | - add the target-arch to the project name where applicable (arch dependend code) - fix comment for __FreeBSD__ [1] Noticed by: bz [1]
* The scheme code may not know about some inconsistency in the metadata.ae2012-02-011-0/+3
| | | | | | So, add an integrity check after recovery attempt. MFC after: 1 week
* Enable the pccard/cardbus modules for powerpc.jhibbits2012-02-011-0/+3
| | | | Approved by: nwhitehorn (mentor)
* If multiple threads call kevent() to get AIO events on same kqueue fd,davidxu2012-02-012-1/+9
| | | | | | | | | | | | | | | it is possible that a single AIO event will be reported to multiple threads, it is not threading friendly, and the existing API can not control this behavior. Allocate a kevent flags field sigev_notify_kevent_flags for AIO event notification in sigevent, and allow user to pass EV_CLEAR, EV_DISPATCH or EV_ONESHOT to AIO kernel code, user can control whether the event should be cleared once it is retrieved by a thread. This change should be comptaible with existing application, because the field should have already been zero-filled, and no additional action will be taken by kernel. PR: kern/156567
* Support AR9281/AR5B91 - a 1x2 stream device based on the AR9280.adrian2012-01-312-4/+9
| | | | | | | | | | | | | | | | * Override the TX/RX stream count if the EEPROM reports a single RX or TX stream, rather than assuming the device will always be a 2x2 strea device. * For AR9280 devices, don't hard-code 2x2 stream. Instead, allow the ar5416FillCapabilityInfo() routine to correctly determine things. The latter should be done for all 11n chips now that ar5416FillCapabilityInfo() will set the TX/RX stream count based on the active TX/RX chainmask in the EEPROM. Thanks to Maciej Milewski for donating some AR9281 NICs to me for testing.
* Correctly fetch the TX/RX stream count from the HAL.adrian2012-01-311-2/+2
| | | | Pointy hat to: me
* Make sound(4) more flexible in setting soft buffer and block sizes whenmav2012-01-313-25/+53
| | | | | | | | | | | | | | | | | | | hardware imposes strict limitations on hard buffer and block sizes. Previous code set soft buffer to be no smaller then hard buffer. On some cards with fixed 64K physical buffer that caused up to 800ms play latency. New code allows to set soft buffer size down to just two blocks of the hard buffer and to not write more then that size ahead to the hardware buffer. As result of that change I was able to reduce full practically measured record-playback loop delay in those conditions down to only about 115ms with theoretical playback latency of only about 50ms. New code works fine for both vchans and direct cases. In both cases sound(4) tries to follow hw.snd.latency_profile and hw.snd.latency values and application-requested buffer and block sizes as much as limitation of two hardware blocks allows. Reviewed by: silence on multimedia@
* Add isci(4) driver for amd64 and i386 targets.jimharris2012-01-31269-0/+112367
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The isci driver is for the integrated SAS controller in the Intel C600 (Patsburg) chipset. Source files in sys/dev/isci directory are FreeBSD-specific, and sys/dev/isci/scil subdirectory contains an OS-agnostic library (SCIL) published by Intel to control the SAS controller. This library is used primarily as-is in this driver, with some post-processing to better integrate into the kernel build environment. isci.4 and a README in the sys/dev/isci directory contain a few additional details. This driver is only built for amd64 and i386 targets. Sponsored by: Intel Reviewed by: scottl Approved by: scottl
| * Rebase user/jimharris/isci branch from head.jimharris2012-01-31190-7074/+23451
| |\
| * | Fix ATAPI code path to ensure bus_dma_segment structures are only usedjimharris2012-01-302-2/+4
| | | | | | | | | | | | | | | | | | | | | within bus_dmamap_load context. Sponsored by: Intel Reported by: Sohaib Ahsan <sohaib dot ahsan intel com>
| * | Rebase user/jimharris/isci branch from head.jimharris2012-01-263409-90327/+215142
| |\ \
| * | | Add all isci driver source code to sys/dev/isci for the Intel C600jimharris2012-01-25255-0/+111908
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Patsburg) integrated SAS controller. sys/dev/isci contains all files specific to FreeBSD. sys/dev/isci/scil contains OS-agnostic library maintained by Intel and modified to best integrate into FreeBSD kernel build environment. Sponsored by: Intel Reviewed by: scottl
| * | | Move isci and ISCI_LOGGING to amd64/i386 specific NOTES.jimharris2012-01-253-9/+10
| | | | | | | | | | | | | | | | Sponsored by: Intel
| * | | Add man page and update a few other files in preparation for committing full ↵jimharris2012-01-234-1/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | isci driver. Sponsored by: Intel Reviewed by: scottl
| * | | Modify GENERIC, files and options for isci (Intel C600 SAS controller) driver.jimharris2012-01-0610-3/+254
| | | | | | | | | | | | | | | | | | | | | | | | Also add brief README and cleanup Makefile. Reviewed by: scottl sbruno
| * | | Add initial version of Makefile for isci driver.jimharris2011-12-091-0/+93
| | | | | | | | | | | | | | | | | | | | Approved by: scottl Obtained from: Intel
* | | | - Restore XCR0 before restoring extended FPU states.jkim2012-01-313-15/+22
| | | | | | | | | | | | | | | | | | | | | | | | - Update my copyright dates. Reviewed by: kib
* | | | Fix a spelling mistake in the surprise link down error constant.jhb2012-01-311-1/+1
| | | | | | | | | | | | | | | | Submitted by: glebius
* | | | Add -e to set arbitrary kernel environment variables.emaste2012-01-312-10/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nextboot(8) can now set any combination of kernel name (-k), kernel options (-o), and environment strings (-e). As a result of this change -k also becomes optional. Reviewed by: freebsd-current (Ian Lepore, pluknet@, jhb@)
* | | | Isolate v_caddr_t in the ie driver.pluknet2012-01-312-1/+3
| | | | | | | | | | | | | | | | Submitted by: Bruce Evans on net@
* | | | Just in case, clear stream interrupts before enabling them.mav2012-01-311-0/+2
| | | |
* | | | Fix a whitespace nitkevlo2012-01-311-1/+1
| | | | | | | | | | | | | | | | Reviewed by: bz
* | | | When a "mount -u" switches an NFS mount point from TCP to UDP,rmacklem2012-01-312-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | any thread doing an I/O RPC with a transfer size greater than NFS_UDPMAXDATA will be hung indefinitely, retrying the RPC. After a discussion on freebsd-fs@, I decided to add a warning message for this case, as suggested by Jeremy Chadwick. Suggested by: freebsd at jdc.parodius.com (Jeremy Chadwick) MFC after: 2 weeks
* | | | jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011rmacklem2012-01-311-28/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | under the subject "F_RDLCK lock to FreeBSD NFS fails to R/O target file". This occurred because the server side NLM always checked for VWRITE access, irrespective of the type of lock request. This patch replaces VOP_ACCESS(..VWRITE..) with one appropriate to the lock operation. It allows unlock and lock cancellation to be done without a check of VOP_ACCESS(), so that files can't be left locked indefinitely after the file permissions have been changed. Discussed with: zack Submitted by: jwd (earlier version) Reviewed by: dfr MFC after: 2 weeks
* | | | Allow contents of multiple directories to be merged to the current image.jkim2012-01-318-63/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note this patch was submitted to NetBSD and they already adopted it. http://mail-index.netbsd.org/source-changes/2012/01/28/msg031078.html MFC after: 1 week
* | | | Add a DFS debugging mode which is useful when doing automated DFSadrian2012-01-313-16/+73
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compliance testing. In order to allow for radar pattern matching to occur, the DFS CAC/NOL handling needs to be made configurable. This commit introduces a new sysctl, "net.wlan.dfs_debug", which controls which DFS debug mode net80211 is in. * 0 = default, CSA/NOL handling as per normal. * 1 = announce a CSA, but don't add the channel to the non-occupy list (NOL.) * 2 = disable both CSA and NOL - only print that a radar event occured. This code is not compiled/enabled by default as it breaks regulatory handling. A user must enable IEEE80211_DFS_DEBUG in their kernel configuration file for this option to become available. Obtained from: Atheros
* | | Radar API related fixes.adrian2012-01-305-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * For legacy NICs, the combined RSSI should be used. For earlier AR5416 NICs, use control chain 0 RSSI rather than combined RSSI. For AR5416 > version 2.1, use the combined RSSI again. * Add in a missing AR5212 HAL method (get11nextbusy) which may be called by radar code. This serves no functional change for what's currently in FreeBSD.
* | | Wrap the bool typedefjfv2012-01-301-0/+2
| | |
* | | Improve media status reporting, when the driver knows...imp2012-01-301-2/+3
| | |
* | | Manpages for the buf_ring and drbr interfaces.brueffer2012-01-303-0/+311
| | | | | | | | | | | | | | | Submitted by: kmacy (aeons ago) MFC after: 1 week
* | | Allow specification of build shell for the buildenv target.imp2012-01-301-1/+4
| | | | | | | | | | | | Submitted by: ian lepore
* | | A debugger which requested PT_FOLLOW_FORK should get the notificationkib2012-01-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | about new child not only when doing PT_TO_SCX, but also for PT_CONTINUE. If TDB_FORK flag is set, always issue a stop, the same as is done for TDB_EXEC. Reported by: Dmitry Mikulin <dmitrym juniper net> MFC after: 1 week
* | | Add support for GNU RELRO.kib2012-01-303-0/+28
| | | | | | | | | | | | | | | Submitted by: John Marino <draco marino st> MFC after: 2 weeks
* | | Add definition for PT_GNU_RELRO.kib2012-01-301-0/+1
| | | | | | | | | | | | MFC after: 3 days
* | | Refine the implementation of POSIX_FADV_NOREUSE for the read(2) case suchjhb2012-01-301-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | that instead of using direct I/O it allows read-ahead similar to POSIX_FADV_NORMAL, but invokes VOP_ADVISE(POSIX_FADV_DONTNEED) after the read(2) has completed to purge just-read data. The write(2) path continues to use direct I/O for POSIX_FADV_NOREUSE for now. Note that NOREUSE works optimally if an application reads and writes full fs blocks.
* | | Fix build for the case of powerpc64 kernel without COMPAT_FREEBSD32.kib2012-01-301-0/+3
| | | | | | | | | | | | MFC after: 2 months
* | | When detaching an AIO or LIO requests grab the lock and tell knlist_removeambrisko2012-01-301-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | that we have the lock now. This cleans up a locking panic ASSERT when knlist_empty is called without a lock when INVARIANTS etc. are turned. Reviewed by: kib jhb MFC after: 1 week
* | | Naturally align a newly added wakeup_fpusave.jkim2012-01-301-2/+2
| | |
* | | New hardware support: Intel X540 adapter support added.jfv2012-01-3024-3606/+6103
| | | | | | | | | | | | | | | | | | Some shared code reorganization along with the new adapter. Sync changes to OACTIVE in igb into this driver. Misc small fixes.
* | | Add a constant for the PCI-e surprise link down uncorrectable error.jhb2012-01-301-0/+1
| | |
* | | Fix typo in comments.mav2012-01-301-1/+1
| | |
* | | Finally, try to enable the nxstacks on amd64 and powerpc64 for both 64bitkib2012-01-304-1/+18
| | | | | | | | | | | | | | | | | | | | | and 32bit ABIs. Also try to enable nxstacks for PAE/i386 when supported, and some variants of powerpc32. MFC after: 2 months (if ever)
* | | Move xrstor/xsave/xsetbv into fpu.c and reorder them.kib2012-01-302-38/+38
| | | | | | | | | | | | | | | Requested by: bde MFC after: 1 month
* | | Synchronize the struct sigcontext definitions on x86 with mcontext_t.kib2012-01-302-3/+9
| | | | | | | | | | | | | | | Pointed out by: bde MFC after: 1 month
* | | Uupdate code to vendor rev. 4183 (release/2.8)mm2012-01-291-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes vendor issue 224: "Mishandling CD9660 images with RockRidge extensions from FreeBSD makefs" References: http://code.google.com/p/libarchive/issues/detail?id=224 MFC after: 1 week
OpenPOWER on IntegriCloud