summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not try to execute FLUSHCACHE on close and print extra messages formav2011-07-231-2/+4
| | | | | | | | invalidated (considered lost) ada device. Exactly same already done for the da devices. Approved by: re (kib) MFC after: 1 week
* Revert the apparently-unecessary module_path twiddling from r223917dougb2011-07-221-15/+2
| | | | Approved by: re (kib)
* Default debugging error messages to off for journaled soft updates sysctls.mckusick2011-07-221-5/+3
| | | | | | Delete limiting on output of these sysctls. Approved by: re (kib)
* Fix the following bugs related to the SCTP support of netstat:tuexen2011-07-221-113/+204
| | | | | | | | | | | | * Correctly handle -a. * -A isn't supported. * Show all closed 1-to-1 and 1-to-many style sockets. * Show all listening 1-to-many style sockets. * Use consistent formatting for -W. PR: 150642 Approved by: re@ MFC after: 4 weeks.
* - Use mutex to serialize index/data register pair usage, whenmav2011-07-226-13/+94
| | | | | | | | | | | | accessing SATA registers. Unserialized access under heavy load caused wrong speed reporting and potentially could cause device loss. - To free memory and other resources (including above), allocated during chipinit() method call on attach, add new chipdeinit() method, called during driver detach. Submitted by: Andrew Boyer <aboyer@averesystems.com> (initial version) Approved by: re (kib) MFC after: 1 week
* Add missing XHCI early takeover code. The XHCI takeover codehselasky2011-07-221-1/+66
| | | | | | | | | is supposed to disable the BIOS from using the XHCI controller after bootup. Approved by: re (kib) Reported by: Mike Tancsa MFC after: 1 week
* Turn on AUDIT_ARG_RIGHTS() for cap_new(2).jonathan2011-07-221-2/+0
| | | | | | | | Now that the code is in place to audit capability method rights, start using it to audit the 'rights' argument to cap_new(2). Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* Implement a basic radar parameter API in the dfs_null module.adrian2011-07-221-3/+71
| | | | | | | | Since no actual radar data is ever handled, this won't do anything. It's mostly here as a reference for those who wish to experiment with radar detection. Approved by: re (kib)
* Add athradar, an implementation of the radar parameter diagnosticadrian2011-07-223-0/+304
| | | | | | | | API. This is a reimplementation from scratch. Approved by: re (kib)
* Declare more capability method rights.jonathan2011-07-211-1/+68
| | | | | | | | This is a complete set of rights that can be held in a capability's rights mask. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* Allow non-fixed endpoints for a producer address range if the length ofjhb2011-07-211-3/+5
| | | | | | | | | | the resource covers the entire range. Some BIOSes appear to mark endpoints as non-fixed incorrectly (non-fixed endpoints are supposed to be used in _PRS when OSPM is allowed to allocate a certain chunk of address space within a larger range, I don't believe it is supposed to be used for _CRS). Approved by: re (kib)
* Remove incorrect attribution.gnn2011-07-211-1/+1
| | | | | | Approved by: re (kib) Pointed out by: brueffer Pointy hat to: gnn
* Bring the code more in-line with OpenSolaris source todelphij2011-07-212-2/+21
| | | | | | | ease future port. Reviewed by: pjd, mm Approved by: re (kib)
* A different implementation of r224231 proposed by pjd@,delphij2011-07-213-5/+10
| | | | | | | | | | which does not require change in the znode structure. Specifically, it queries rdev from the znode in the same sa_bulk_lookup already done in zfs_getattr(). Submitted by: pjd (with some revisions) Reviewed by: pjd, mm Approved by: re (kib)
* Fix `diskinfo -t` operation for disks smaller then 8GB or bigger then 2TB.mav2011-07-211-21/+28
| | | | | | Tested to work with 1.44MB floppy, 4GB USB stick and 4TB disk array. Approved by: re (kib)
* Make both stpcpy and strcpy be assembly language implementationsgnn2011-07-213-20/+60
| | | | | | | | | on amd64. Submitted by: Guillaume Morin (guillaume at morinfr.org) Reviewed by: kib, jhb Approved by: re (bz) MFC after: 1 month
* This links in the ath dfs ioctl into the driver and defines theadrian2011-07-212-0/+34
| | | | | | | | | ioctl interface for DFS modules to use. Since there's no open source dfs code yet, this doesn't introduce any operational changes. Approved by: re (kib)
* Modify the radar API a little to be easier to "change" via run-timeadrian2011-07-212-9/+32
| | | | | | | | | | | | | | | | | | | | | | | | tools. * introduce pe_enabled, which (will) indicate whether the radar detection stuff is enabled or not. Right now it's incorrectly set, based on something previously written. I'll sort it out later. * Don't set HAL_PHYERR_PARAM_ENABLE in pe_relstep to say whether radar detection is on. * Return whether blockradar, fir128 and enmaxrssi is enabled. * Change some of the phyerr params to be integers rather than HAL_BOOL so they can be set to the NOPARAM value when the setup function is called. This is in line with other radar parameters. * Add new configuration parameters for fir128, blockradar and enmaxrssi, rather than defaulting to off, on and on respectively. Approved by: re (kib)
* Break out the PLL setup into (mostly) per-chip methods, rather thanadrian2011-07-216-54/+77
| | | | | | | | | polluting the AR5416 code with later chipset support. Note: ar9280InitPLL() supports Merlin (AR9280) and later (AR9285, AR9287.) Submitted by: ssgriffonuser@gmail.com Approved by: re (kib)
* This re-enables HT40 channels for use when DFS is enabled.adrian2011-07-211-0/+2
| | | | | | | | These should be disabled for the AR5416 in hostap/mesh/ibss mode, as the AR5416 doesn't have support for radar detection on the ext channel of a HT40 setup. Later chips do. Approved by: re (kib)
* Add new USB ID to u3g driver.hselasky2011-07-212-0/+2
| | | | | | Approved by: re (kib) Submitted by: Nick Hibma MFC after: 3 days
* Merge from r224217:marius2011-07-201-1/+1
| | | | | | Bump MAXCPU to 64. Approved by: re (kib)
* Add a new field to in-core znode, z_rdev, to represent device nodes.delphij2011-07-203-1/+12
| | | | | | | PR: kern/159010 Reviewed by: mm@ Approved by: re (kib) MFC after: 2 weeks
* Note that the "kernel" variable in loader.conf is the name of a directoryjhb2011-07-201-2/+5
| | | | | | | | | | containing a kernel under /boot and that it's default value is "kernel" not "/boot/kernel/kernel". PR: docs/158992 Reported by: Wayne Mitchell wayne.mitchell.iz at gmail Approved by: re (kib) MFC after: 1 week
* Add cap_new(2) and cap_getrights(2) symbols to libc.jonathan2011-07-203-1/+478
| | | | | | | | These system calls have already been implemented in the kernel; now we hook up libc symbols so userspace can drive them. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* These two are ath_hal regulatory domain updates from the Atherosadrian2011-07-202-28/+76
| | | | | | | | | | | reference driver. * Australia should use FCC3_WORLD * Add some new SKUs; these are just the EEPROM values and haven't been fully defined yet. As such they won't affect anything. Obtained from: Atheros Approved by: re (kib)
* Export capability information via sysctls.jonathan2011-07-202-1/+37
| | | | | | | | | When reporting on a capability, flag the fact that it is a capability, but also unwrap to report all of the usual information about the underlying file. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* This patch removes a check in ifconfig which disables HT/40 channelsadrian2011-07-201-12/+0
| | | | | | | | | | | | | on frequency bands with DFS. All Atheros chipsets >= AR9001 support radar event detection on HT40 extension channels. This should be a chipset specific item rather than enforced in the regulatory domain database. In addition, it's irrelevant for STA mode, as the radar detection is done by the access point, not the STA. Approved by: re (kib)
* Fix brokenness introduced by my last commit.adrian2011-07-201-0/+2
| | | | Approved by: re (implicit)
* Remove explicit MAXCPU usage from sys/pcpu.h avoiding a namespaceattilio2011-07-192-4/+2
| | | | | | | | | | pollution. That is a step further in the direction of building correct policies for userland and modules on how to deal with the number of maxcpus at runtime. Reported by: jhb Reviewed and tested by: pluknet Approved by: re (kib)
* This sets the BSS channel for each VAP for the given interface.adrian2011-07-191-0/+15
| | | | | | | | | It's only relevant in STA mode. The CSA forces a channel switch for the interface, but doesn't update the VAP channel. Approved by: re (bz)
* This patch enables listing DFS related flags when 'ifconfig -v wlanXadrian2011-07-191-3/+14
| | | | | | | | | | | | | | | list channel' is run. The following new options are introduced: * D: channel requires DFS * R: channel has a radar event * I: channel has detected inteference * C: the CAC period has completed on a channel that requires it (ie, DFS + PASSIVE.) It's relevant for developing, debugging and using the DFS and interference options. Approved by: re (bz)
* Remove pc_name member of struct pcpu.attilio2011-07-192-6/+0
| | | | | | | | | | | pc_name is only included when KTR option is and it does introduce a subdle KBI breakage that totally breaks vmstat when world and kernel are not in sync. Besides, it is not used somewhere. In collabouration with: pluknet Reviewed by: jhb Approved by: re (kib)
* Bump MAXCPU for amd64, ia64 and XLP mips appropriately.attilio2011-07-196-3/+6
| | | | | | | | | | | | | | | | | | | From now on, default values for FreeBSD will be 64 maxiumum supported CPUs on amd64 and ia64 and 128 for XLP. All the other architectures seem already capped appropriately (with the exception of sparc64 which needs further support on jalapeno flavour). Bump __FreeBSD_version in order to reflect KBI/KPI brekage introduced during the infrastructure cleanup for supporting MAXCPU > 32. This covers cpumask_t retiral too. The switch is considered completed at the present time, so for whatever bug you may experience that is reconducible to that area, please report immediately. Requested by: marcel, jchandra Tested by: pluknet, sbruno Approved by: re (kib)
* On 64 bit architectures size_t is 8 bytes, thus it should use an 8 bytesattilio2011-07-194-6/+14
| | | | | | | | | | storage. Fix the sintrcnt/sintrnames specification. No MFC is previewed for this patch. Reported, reviewed and tested by: marcel Approved by: re (kib)
* Add the possibility to specify from kernel configs MAXCPU value.attilio2011-07-199-0/+19
| | | | | | | | | | This patch is going to help in cases like mips flavours where you want a more granular support on MAXCPU. No MFC is previewed for this patch. Tested by: pluknet Approved by: re (kib)
* Rework the dynamic per-CPU stats code a bit. Always set 'statics->ncpus'jhb2011-07-183-8/+18
| | | | | | | | | | | | to the maximum number of CPUs to ensure that lcpustates[] array is always allocated to the maximum size. Previously, if top was started without per-CPU stats it would allocate a smaller lcpustates[] array. When per-CPU stats were then enabled, it would overflow the array and trash the cpustates_columns[] array causing the CPU stats to be printed in the wrong locations. Approved by: re (kib) MFC after: 1 week
* Tweak the interactive description of CPU vs WCPU.jhb2011-07-181-2/+2
| | | | | | PR: bin/158819 Submitted by: arundel Approved by: re (kib)
* Constantly print the command name and if set include the threadbz2011-07-181-8/+20
| | | | | | | | | | name in per-thread mode. Discussed with: jhb Obtained from: Ed Maste at Sandvine Incorporated Sponsored by: Sandvine Incorporated MFC after: 1 week Approved by: re (kib)
* Fix building of 32-bit compat libraries on amd64 with clang, and usingdim2011-07-181-4/+0
| | | | | | | | | | | | | | -g, by reverting r219139. The LLVM PR referenced in that revision was fixed in the mean time, and we imported a clang snapshot soon afterwards, so the temporary workaround of disabling clang's integrated assembler is no longer needed. In this particular case, using e.g. DEBUG_FLAGS=-g causes clang to output certain directives into assembly that our version of GNU as chokes on. Reported by: dougb Approved by: re (kib)
* Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN.bz2011-07-189-26/+31
| | | | | | | | | Provide backward compatibility defines under BURN_BRIDGES. Suggested by: jhb Reviewed by: emaste Sponsored by: Sandvine Incorporated Approved by: re (kib)
* sintrcnt/sintrnames is the address of the size, not the actual size.pluknet2011-07-181-2/+2
| | | | | | | | Use them appropriately to fetch the actual size. That fixes vmstat -i with kvm backend. Submitted by: peter Approved by: re (kib)
* Disable gvmat64.S, the assembler version of longest_match for now.delphij2011-07-181-10/+10
| | | | | | PR: kern/154073 MFC after: 3 days Approved by: re (kib)
* - Export each thread's individual resource usage in in struct kinfo_proc'sjhb2011-07-184-8/+55
| | | | | | | | | | | | ki_rusage member when KERN_PROC_INC_THREAD is passed to one of the process sysctls. - Correctly account for the current thread's cputime in the thread when doing the runtime fixup in calcru(). - Use TIDs as the key to lookup the previous thread to compute IO stat deltas in IO mode in top when thread display is enabled. Reviewed by: kib Approved by: re (kib)
* - Remove the eintrcnt/eintrnames usage and introduce the concept ofattilio2011-07-1819-72/+70
| | | | | | | | | | | | | | | | sintrcnt/sintrnames which are symbols containing the size of the 2 tables. - For amd64/i386 remove the storage of intr* stuff from assembly files. This area can be widely improved by applying the same to other architectures and likely finding an unified approach among them and move the whole code to be MI. More work in this area is expected to happen fairly soon. No MFC is previewed for this patch. Tested by: pluknet Reviewed by: jhb Approved by: re (kib)
* Enable NEW_PCIB by default on ia64.jhb2011-07-181-0/+2
| | | | Approved by: re (kib), marcel
* Implement bus_adjust_resource() for the ia64 nexus driver.jhb2011-07-181-17/+34
| | | | | Reviewed by: marcel Approved by: re (kib)
* Provide ability to audit cap_rights_t arguments.jonathan2011-07-184-0/+44
| | | | | | | | | | | We wish to be able to audit capability rights arguments; this code provides the necessary infrastructure. This commit does not, of itself, turn on such auditing for any system call; that should follow shortly. Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc
* Only the USB root HUB thread is allowed to attach and detach drivershselasky2011-07-185-5/+0
| | | | | | | | to and from USB devices. Remove related DEVMETHOD() lines from USB drivers. Reported by: YongHyeon PYUN MFC after: 3 days
* If compiling RESCUE always ignore feature_present(3) calls so thatbz2011-07-183-0/+7
| | | | | | | | | | a /rescue/ifconfig more modern than the kernel could still configure IPv4 or IPv6 addresses. Reported by: Andrzej Tobola (ato iem.pw.edu.pl) Reported by: gcooper MFC after: 1 day X-MFC: will not MFC any time soon, just reminder for r222527
OpenPOWER on IntegriCloud