summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clarify hw.ti.%d.dac tunable.yongari2011-11-141-1/+1
|
* Document newly introduced a loader tunable and sysctl variables.yongari2011-11-141-1/+88
|
* Overhaul bus_dma(9) usage in driver:yongari2011-11-142-403/+604
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Don't use a single big DMA block for all rings. Create separate DMA area for each ring instead. Currently the following DMA areas are created: Event ring, standard RX ring, jumbo RX ring, RX return ring, hardware MAC statistics and producer/consumer status area. For Tigon II, mini RX ring and TX ring are additionally created. - Added missing bus_dmamap_sync(9) in various TX/RX paths. - TX ring is no longer created for Tigon 1 such that it saves more resources on Tigon 1. - Data sheet is not clear about alignment requirement of each ring so use 32 bytes alignment for normal DMA area but use 64 bytes alignment for jumbo RX ring where the extended RX descriptor size is 64 bytes. - For each TX/RX buffers use separate DMA tag(e.g. the size of a DMA segment, total size of DMA segments etc). - Tigon allows separate DMA area for event producer, RX return producer and TX consumer which is really cool feature. This means TX and RX path could be independently run in parallel. However ti(4) uses a single driver lock so it's meaningless to have separate DMA area for these producer/consumer such that this change creates a single status DMA area. - It seems Tigon has no limits on DMA address space and I also don't see any problem with that but old comments in driver indicates there could be issues on descriptors being located in 64bit region. Introduce a tunable, dev.ti.%d.dac, to disable using 64bit DMA in driver. The default is 0 which means it would use full 64bit DMA. If there are DMA issues, users can disable it by setting the tunable to 0. - Do not increase watchdog timer in ti_txeof(). Previously driver increased the watchdog timer whenever there are queued TX frames. - When stat ticks is set to 0, skip processing ti_stats_update(), avoiding bus_dmamap_sync(9) and updating if_collisions counter. - MTU does not include FCS bytes, replace it with ETHER_VLAN_ENCAP_LEN. With these changes, ti(4) should work on PAE environments. Many thanks to Jay Borkenhagen for remote hardware access.
* - add my co-mentorsrm2011-11-141-0/+2
| | | | Approved by: novel (mentor)
* Temporary revert r227009 to fix freeze on UP systems without PREEMPTION.mav2011-11-141-27/+12
| | | | | | | | | | | Before r215687, if some withered geom or provider could not be destroyed, g_event thread went to sleep for 0.1s before retrying. After that change it is just restarting immediately. r227009 made orphaned (withered) provider to not detach immediately, but only after context switch. That made loop inside g_event thread infinite on UP systems without PREEMPTION. To address original problem with possible dead lock addressed by r227009 we have to fix r215687 change first, that needs some time to think and test.
* Export sysctl node for various interrupt moderation parameters andyongari2011-11-141-14/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | have administrators control them. ti(4) provides a character device to control various other features of driver via ioctls but users had to write their own code to manipulate these parameters. It seems some default values for these parameters are not optimal on today's system but leave it as it was and let administrators change them. The following parameters could be changed: dev.ti.%d.rx_coal_ticks dev.ti.%d.rx_max_coal_bds dev.ti.%d.tx_coal_ticks dev.ti.%d.tx_max_coal_bds dev.ti.%d.tx_buf_ratio dev.ti.%d.stat_ticks The interface has to be brought down and up again before a change takes effect. ti(4) controller supports hardware MAC counters with additional DMA statistics. So it's doable to export these counters via sysctl interface. Unfortunately, these counters are cumulative such that driver have to either send an explicit clear command to controller after extracting them or have to maintain internal counters to get actual changes. Neither look good to me so counters were not exported via sysctl.
* Add DTS for the Freescale P1020RDB.marcel2011-11-141-0/+627
|
* Finish making 'wcommitsize' an NFS client mount option.jhb2011-11-144-2/+31
| | | | | Reviewed by: rmacklem MFC after: 1 week
* Add DTS for the Freescale P3041DS.marcel2011-11-141-0/+753
|
* It's bad idea to allocate large memory, 4KB, from stack.yongari2011-11-142-29/+35
| | | | | | | Pre-allocate the memory in device attach time. While I'm here remove unnecessary reassignment of error variable as it was already initialized. Also added a missing driver lock in TIIOCSETTRACE handler.
* Sync with the old NFS client: Remove an obsolete comment.jhb2011-11-141-2/+0
|
* Remove a few bits of FreeBSD 2.x compatibility code.rmh2011-11-143-10/+3
| | | | Approved by: kib (mentor)
* - Split out a kern_posix_fadvise() from the posix_fadvise() system call sojhb2011-11-143-37/+39
| | | | | | | it can be used by in-kernel consumers. - Make kern_posix_fallocate() public. - Use kern_posix_fadvise() and kern_posix_fallocate() to implement the freebsd32 wrappers for the two system calls.
* mdoc fix for r227499.andre2011-11-141-1/+2
| | | | Reported by: brueffer
* Remove mention of ss_fltsz and ss_fltsz_local which were retired in r226447.andre2011-11-141-18/+1
|
* Note the ip_len bug fixed in r226105 in the BUGS section.andre2011-11-141-1/+7
|
* Import upstream changesets for the output of the "zpool" command:mm2011-11-141-4/+41
| | | | | | | | | | | | 952 separate intent logs should be obvious in 'zpool iostat' output 1337 `zpool status -D' should tell if there are no DDT entries References: https://www.illumos.org/issues/952 https://www.illumos.org/issues/1337 Obtained from: Illumos (issues 952, 1337; changesets 13384, 13432) MFC after: 1 week
* Constify args to copyiniov and copyinuio.alfred2011-11-142-4/+4
|
* Since NFSv4 byte range locking only works for regular files,rmacklem2011-11-141-0/+2
| | | | | | add a sanity check for the vnode type to the NFSv4 client. MFC after: 2 weeks
* Move the assignment of default values for some mount optionsrmacklem2011-11-131-3/+9
| | | | | | | to before the nfs_decode_args() call in the new NFS client, so they don't overwrite the value specified on the command line. MFC after: 2 weeks
* - new sentence should start on new line.eadler2011-11-131-2/+2
| | | | | | PR: bin/146541 Submitted by: bjk Approved by: bjk
* Hide some more macros that will break C++ when compiling in C++ mode.theraven2011-11-131-1/+3
| | | | Approved by: dim (mentor)
* - fix duplicate "a a" in some commentseadler2011-11-138-8/+8
| | | | | | Submitted by: eadler Approved by: simon MFC after: 3 days
* - add "check" option to MD5 and friends to compare files against known hash.eadler2011-11-132-8/+40
| | | | | | | | | PR: bin/146541 Submitted by: eadler Reviewed by: jhell@dataix.net Approved by: secteam (cperciva) Approved by: cperciva MFC after: 3 weeks
* The spec says that FILE must be defined in wchar.h, but it wasn't. Ittheraven2011-11-132-20/+28
| | | | | | | is now. Also hide some macros in C++ mode that will break C++ namespaced calls. Approved by: dim (mentor)
* Don't copy uninitialized memory. Also simplify the comparisontuexen2011-11-131-15/+5
| | | | | | of interface names. MFC after: 3 days.
* To limit amount of the kernel memory allocated, and to optimize thekib2011-11-131-3/+63
| | | | | | | | | | | | | | | | | | | iteration over the fdsets, kern_select() limits the length of the fdsets copied in by the last valid file descriptor index. If any bit is set in a mask above the limit, current implementation ignores the filedescriptor, instead of returning EBADF. Fix the issue by scanning the tails of fdset before entering the select loop and returning EBADF if any bit above last valid filedescriptor index is set. The performance impact of the additional check is only imposed on the (somewhat) buggy applications that pass bad file descriptors to select(2) or pselect(2). PR: kern/155606, kern/162379 Discussed with: cognet, glebius Tested by: andreast (powerpc, all 64/32bit ABI combinations, big-endian), marius (sparc64, big-endian) MFC after: 2 weeks
* Fix spelling of extract.alfred2011-11-131-2/+2
| | | | Pointed out by: gcooper
* Utilize shell's IFS instead of forking ~6 processes toalfred2011-11-131-48/+70
| | | | | | | | handle splitting input files on a '|'. This greatly reduces the time taken to process several databases during the update process. Additionally add some more debug logging.
* The default setting, daily_accounting_compress="NO", was causingdougb2011-11-131-6/+12
| | | | | | | | | | | | | | | only 1 old file to be saved, so fix this. Problem raised in the PR, but actually required a different solution. While I'm here, fix a very old off-by-one error causing 1 more file than specified in daily_accounting_save to be saved because acct.0 was not taken into account (pun intended). Change that, and use a more thorough method of finding old files to delete. Partly just because this is the right thing to do, but also to silently fix the extra log that would have been left behind forever with the previous method. PR: conf/160848 Submitted by: Andrey Zonov <andrey@zonov.org>
* Return the correct value for the IPV6_MULTICAST_HOPS getsockopt() call.bz2011-11-131-1/+1
| | | | | Submitted by: rpaulo MFC after: 3 days
* Revert 227466:gjb2011-11-131-4/+0
| | | | | | | - mvs.4 uses nested '.Bl' tags which appears to confuse man2hwnotes.pl for hardware note generation - mps.4 also breaks the build, but I haven't yet identified why
* Bump date.adrian2011-11-121-1/+1
|
* Fix kernel build breakage after r227475. I had forgotten kernels aredim2011-11-121-8/+8
| | | | | | | | | built with -Wundef, as opposed to world. Additionally, cdefs.h tends to not use indentation for preprocessor directives, so remove that too. Pointy hat to: me
* Add documentation for the new quiet time IE options.adrian2011-11-121-0/+32
| | | | | Submitted by: Himali Patel <himali.patel@sibridgetech.com> Sponsored by: Sibridge Technologies
* Don't expose the wctype.h macros in C++ mode. They cause problems whentheraven2011-11-121-1/+3
| | | | | | | people try to invoke the namespaced versions of the functions of the same names. Approved by: dim (mentor)
* Expose all of the C99 limits.h stuff when we're in C++11 mode (or some ↵theraven2011-11-121-0/+11
| | | | | | approximation thereof). C++11 finally adds long long to C++. Now even C++ programmers are allowed to use 64-bit integers! Approved by: dim (mentor)
* Fix SIGATOMIC_M{IN,AX} on x86-64. These are meant to be the minimum values ↵theraven2011-11-121-2/+2
| | | | | | that are allowed in a sig_atomic_t, but it looks like they were just copied from the x86 versions, so these definitions violate the C and C++ specs. Mismatch was spotted by the libc++ test suite. Approved by: dim (mentor)
* Fix build on some archs after r227464.mav2011-11-121-3/+4
|
* Expose the unimplemented libm functions in the math.h header. This allows ↵theraven2011-11-121-13/+13
| | | | | | | C++'s <cmath> to work without the compiler complaining that the C++ versions are calling implicitly-declared functions. You will still get a linker error when they are called. OpenBSD 5.0 claims to fully implement the C99 <math.h> stuff, so might be worth investigating... Reviewed by: das Approved by: dim (mentor)
* Fix buildworld breakage due after r227464.dim2011-11-121-1/+1
| | | | Pointy hat to: mav
* Report the amount of memory from smbios data if provided.emaste2011-11-121-1/+5
| | | | | | | | This should get the correct memory size even if a 32-bit image is running on a machine with > 4GB of memory. This can be useful is using a 32-bit installer on a machine which will eventually run a 64-bit image. Reviewed by: kmoore
* Disable writing to the extension CYCPWR1 register.adrian2011-11-122-11/+0
| | | | | | This seems to make ANI behave better on the AR5416/AR5418. Sponsored by: Hobnob, Inc.
* Fix the number of decimal digits used for Swiss Francs (0 -> 2). Found by ↵theraven2011-11-121-2/+2
| | | | | | the libc++ test suite. If there is some locale test suite somewhere, it might be worth running it... Approved by: dim (mentor)
* Added mps(4) and mvs(4).brueffer2011-11-121-0/+4
| | | | MFC after: 3 days
* Grammar and mdoc cleanup.brueffer2011-11-121-5/+7
| | | | MFC after: 3 days
* Major GEOM MULTIPATH class rewrite:mav2011-11-124-218/+810
| | | | | | | | | | | | | | | | | | | | | | | | | - Improved locking and destruction process to fix crashes. - Improved "automatic" configuration method to make it consistent and safe by reading metadata back from all specified paths after writing to one. - Added provider size check to reduce chance of ordering conflict with other GEOM classes. - Added "manual" configuration method without using on-disk metadata. - Added "add" and "remove" commands to allow manage paths manually. - Failed paths are no longer dropped from geom, but only marked as FAIL and excluded from I/O operations. - Automatically restore failed paths when all others paths are marked as failed, for example, because of device-caused (not transport) errors. - Added "fail" and "restore" commands to manually control FAIL flag. - geom is now destroyed on last path disconnection. - Added optional Active/Active mode support. Unlike Active/Passive mode, load evenly distributed between all working paths. If supported by the device, it allows to significantly improve performance, utilizing bandwidth of all paths. It is controlled by -A option during creation. Disabled by default now. - Improved `status` and `list` commands output. Sponsored by: iXsystems, inc. MFC after: 1 month
* - This patch adds custom IOCTLs to read and write the 4 GPIO pins on thehselasky2011-11-122-11/+86
| | | | | | | | | cp2103 usb-to-serial chip. - This patch also makes the line status polling asynchronous, to reduce the time needed to change the GPIO pins. Submitted by: JD Louw MFC after: 1 week
* Enable power save mode for the USB storage device driver.hselasky2011-11-121-0/+3
| | | | MFC after: 1 week
* Style change.hselasky2011-11-1227-99/+106
| | | | | | | | | | | | - Make it easier to port the USB code to other platforms by only using one set of memory functions for clearing and copying memory. None of the memory copies are overlapping. This means using bcopy() is not required. - Fix a compile warning when USB_HAVE_BUSDMA=0 - Add missing semicolon in avr32dci. - Update some comments. MFC after: 1 week
OpenPOWER on IntegriCloud