Commit Graph

13381 Commits

Author SHA1 Message Date
Lawrence Stewart
1c6cae9711 Change uma_zone_set_max to return the effective value of "nitems" after
rounding. The same value can also be obtained with uma_zone_get_max, but this
change avoids a caller having to make two back-to-back calls.

Sponsored by:	FreeBSD Foundation
Reviewed by:	gnn, jhb
2010-10-16 04:41:45 +00:00
Lawrence Stewart
c4ae7908a7 - Simplify implementation of uma_zone_get_max.
- Add uma_zone_get_cur which returns the current approximate occupancy of
  a zone. This is useful for providing stats via sysctl amongst other things.

Sponsored by:	FreeBSD Foundation
Reviewed by:	gnn, jhb
MFC after:	2 weeks
2010-10-16 04:14:45 +00:00
Matthew D Fleming
bf73d4d28e Use a safer mechanism for determining if a task is currently running,
that does not rely on the lifetime of pointers being the same. This also
restores the task KBI.

Suggested by:	jhb
MFC after:	1 month
2010-10-13 22:59:04 +00:00
Jung-uk Kim
ac731af567 Use AcpiReset() from ACPICA instead of rolling our own, which is actually
incomplete.  If FADT says the register is available, enable the capability
by default.  Remove the previous default value from acpi(4).
2010-10-13 00:21:53 +00:00
Joel Dahl
3fb1541d40 Document the fact that bwn works really well on the laptop I'm using
right now (HP 6715b).
2010-10-12 19:00:18 +00:00
Matthew D Fleming
a92f0ee866 Re-expose and briefly document taskqueue_run(9). The function is used
in at least one 3rd party driver.

Requested by:	jhb
2010-10-12 18:36:03 +00:00
Ulrich Spörlein
9c398cc7e0 mdoc: drop redundant .Pp calls, kill EOL whitespace 2010-10-09 11:43:00 +00:00
Gordon Tetlow
ba0d27e3c2 Remove the manpath.config entry now that it's no longer installed.
Submitted by:	b. f.
Approved by:	wes (mentor implicit)
2010-10-09 05:57:23 +00:00
Xin LI
7adc700072 Document net.link.lagg.failover_rx_all.
MFC after:	1 week
2010-10-08 21:29:48 +00:00
Mark Murray
b602c58edf Extend the "example" section a bit, for other mailers. 2010-10-08 20:13:12 +00:00
Ulrich Spörlein
0d9deed52c mdoc: drop redundant .Pp and .LP calls
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
Kenneth D. Merry
1476ba4087 Turn on serialization of task management commands going down to the
controller, but make it optional.

After a problem report from Andrew Boyer, it looks like the LSI
chip may have issues (the watchdog timer fired) if too many aborts
are sent down to the chip at the same time.  We know that task
management commands are serialized, and although the manual doesn't
say it, it may be a good idea to just send one at a time.

But, since I'm not certain that this is necessary, add a tunable
and sysctl variable (hw.mps.%d.allow_multiple_tm_cmds) to control
the driver's behavior.

mps.c:		Add support for the sysctl and tunable, and add a
		comment about the possible return values to
		mps_map_command().

mps_sas.c:	Run all task management commands through two new
		routines, mpssas_issue_tm_request() and
		mpssas_complete_tm_request().

		This allows us to optionally serialize task
		management commands.  Also, change things so that
		the response to a task management command always
		comes back through the callback.  (Before it could
		come via the callback or the return value.)

mpsvar.h:	Add softc variables for the list of active task
		management commands, the number of active commands,
		and whether we should allow multiple active task
		management commands.  Add an active command flag.

mps.4:		Describe the new sysctl/loader tunable variable.

Sponsored by:	Spectra Logic Corporation
2010-10-07 21:56:10 +00:00
Jonathan Anderson
5856bc5788 Add myself (jonathan@) to committers-src.dot
Reviewed by:	rwatson
2010-10-07 18:20:51 +00:00
Jaakko Heinonen
68f7a01392 Check the device name validity on device registration.
A new function prep_devname() sanitizes a device name by removing
leading and redundant sequential slashes. The function returns an error
for names which already exist or are considered invalid.

A new flag MAKEDEV_CHECKNAME for make_dev_p(9) and make_dev_credf(9)
indicates that the caller is prepared to handle an error related to the
device name. An invalid name triggers a panic if the flag is not
specified.

Document the MAKEDEV_CHECKNAME flag in the make_dev(9) manual page.

Idea from:	kib
Reviewed by:	kib
2010-10-07 18:00:55 +00:00
Sergey Kandaurov
be8c7f2a51 Cosmetic change:
Wrap lines for SiS and Promise entries to 80 columns.
This doesn't change appearance in page rendered with troff or man.cgi.

PR:		docs/146195
Approved by:	kib (mentor)
MFC after:	1 week
2010-10-07 12:58:09 +00:00
Sergey Kandaurov
4893384c12 Fix wrong slashes in a previous commit.
Approved by:	avg (mentor)
2010-10-06 15:01:37 +00:00
Sergey Kandaurov
b44f9e2fc0 Add myself to calendar.freebsd and committers-src.dot.
Approved by:	avg (mentor)
2010-10-06 14:43:37 +00:00
Oleksandr Tymoshenko
eef93d2fae - Introduce WITH_GPIO knob and disable building gpioctl
by default. Most systems do not need it.
2010-10-05 21:19:20 +00:00
Lawrence Stewart
d4d3e21865 Log the number of segments currently in the reassembly queue.
Sponsored by:	FreeBSD Foundation
2010-09-25 09:16:46 +00:00
MIHIRA Sanpei Yoshiro
081915ddf7 Add Planex UE-200TX-G2 to list of supported devices.
MFC after:	1 day
2010-09-25 08:19:34 +00:00
Gavin Atkinson
6c4ea40813 Various changes from various sources:
- Add "children" [1]
- Add "acknowledgement", "acknowledgment", "Austria" and "haunted" [2]
- Add "near", "antidisestablishmentarianism" and "Persephone" [2]
- "Transvaal" should be capitalized [2]
- Correct spelling of "structurelessness" and "Athena" [2]
- Add missing atomic elements [3]
- Add various words from "word of the day" lists [3]

PR:		conf/149756 [1]
Submitted by:	Nick Johnson <freebsd spatula.net> [1]
Obtained from:	NetBSD [2], OpenBSD [3]
MFC after:	1 week
2010-09-23 11:19:03 +00:00
Sunpoet Po-Chuan Hsieh
e5d8eb431b Add myself as a ports committer
Approved by:	pgollucci (mentor)
2010-09-22 16:54:22 +00:00
MIHIRA Sanpei Yoshiro
87b6f1855b Add new device ids.
Buffalo (Melco Inc.) LUA3-U2-AGT
 Logitec LAN-GTJ/U2A(usb/119981)

PR:		usb/119981 and me
Submitted by:	"Y.Okabe" <be_works_us at yahoo.com>, hiroo at oikumene.gcd.org
Reviewed by:	thompsa
MFC after:	3 days
2010-09-21 22:42:14 +00:00
Ana Kukec
ddf21c6ae1 Manual page for the kernel side Secure Neighbor Discovery support.
Reviewed by:	brueffer
Approved by:	bz (mentor)
2010-09-19 12:54:18 +00:00
Glen Barber
f2f433e60a Note that devfs(5) and fdescfs(5) both create /dev/fd file descriptors.
PR:		144534
Submitted by:	Matthew Seaman <m.seaman at infracaninophile co uk>
Patch by:	Matthew Seaman, keramida
Approved by:	keramida (mentor)
MFC after:	1 week
2010-09-18 19:23:14 +00:00
Alexander Motin
76a6875b08 Document hw.i8254.freq tunable and machdep.i8254_freq sysctl. 2010-09-18 07:45:54 +00:00
Alexander Motin
c45456fb44 Add atrtc(4) manual page. 2010-09-17 08:44:54 +00:00
Alexander Motin
479c85c65b Fix typo ${attimer.4} -> ${_attimer.4}. 2010-09-17 07:44:01 +00:00
Alexander Motin
74f3a46a7d Add attimer(4) manual page. 2010-09-17 04:55:01 +00:00
Andre Oppermann
d8b03e05a9 The inflight bandwidth limiter was removed in r212765. 2010-09-16 22:11:55 +00:00
Warner Losh
0e2b59be50 Add note abotu bwn and newer chipsets 2010-09-15 19:40:42 +00:00
Warner Losh
de84241c23 Don't suggest using bwn for the bcm4306 cards in the list. The
bcm4306 cards are ambiguous.  BCM4306 rev 2 requires bwi.  BCM4306 rev
3 will work with either.  Since we can't easily determine which is
which, just remove them.
2010-09-15 19:40:08 +00:00
Kenneth D. Merry
67d60b1481 MFp4 (//depot/projects/mps/...)
Fix a typo.

Submitted by:	pluknet at gmail dot com
2010-09-15 16:05:51 +00:00
Alexander Motin
522a3b5fbc Change licenses of my manual pages to the recommended 2-clause form.
Suggested by:	joel
2010-09-15 07:10:39 +00:00
Alexander Motin
1adad4c374 Add eventtimers(7) man page, briefly describing event timers subsystem
functionality and configuration options.
2010-09-15 07:04:14 +00:00
Alexander Motin
d11087789e Add hpet(4) man page. 2010-09-15 04:51:07 +00:00
Weongyo Jeong
efe8958927 Fixes spellings and uses the better sentence. While I'm here bumps
date.

Pointed by:	imp, Ruslan Mahmatkhanov <cvs-src at yandex dot ru>
2010-09-14 23:27:06 +00:00
Kenneth D. Merry
2fff0b4f02 MFp4 (//depot/projects/mps/...)
Add a man page for the mps(4) driver, and reference it in the
mpt(4) driver man page.

Sponsored by:	Spectra Logic Corporation
2010-09-14 21:40:29 +00:00
Hiroki Sato
d3a8a8b9fa Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces.
The $ip6addrctl_policy is a variable to choose a pre-defined address
selection policy set by ip6addrctl(8).
The keyword "ipv4_prefer" sets IPv4-preferred one described in Section 10.3,
the keyword "ipv6_prefer" sets IPv6-preferred one in Section 2.1 in RFC 3484,
respectively.  When "AUTO" is specified, it attempts to read
/etc/ip6addrctl.conf first.  If it is found, it reads and installs it as
a policy table.  If not, either of the two pre-defined policy tables is
chosen automatically according to $ipv6_activate_all_interfaces.

When $ipv6_activate_all_interfaces=NO, interfaces which have no corresponding
$ifconfig_IF_ipv6 is marked as IFDISABLED for security reason.

The default values are ip6addrctl_policy=AUTO and
ipv6_activate_all_interfaces=NO.

Discussed with:	ume and bz
2010-09-13 19:55:40 +00:00
Hiroki Sato
abe3ac576a Add $ipv6_privacy to support net.inet6.ip6.use_tempaddr. Note that this
will be replaced with a per-IF version later.

Based on:	changes in r206408 by dougb
2010-09-13 19:52:46 +00:00
Hiroki Sato
c5ad71aff5 Revert changes in r206408.
Discussed with:	dougb, core.5, and core.6
2010-09-13 19:51:15 +00:00
Warner Losh
3c7f49dcf2 Prefer MACHINE_CPUARCH to MACHINE_ARCH unless there's a good reason... 2010-09-13 07:22:14 +00:00
Glen Barber
8d89b8f2a2 I believe the majority of Gregorian calendars would agree the current
year is 2010, not 2005.

Approved by:	keramida (mentor)
Pointy hat to:	gjb
MFC after:	1 week
2010-09-12 17:53:36 +00:00
Glen Barber
f3f9858578 Bump date from r212440.
Approved by:	keramida (mentor)
MFC after:	1 week
2010-09-12 14:04:54 +00:00
Weongyo Jeong
37e81ca522 Mentions cases when bwi(4) driver should be used that it only wrote
about chipset type instead of card names because it's not easy to sort
names what cards use these chipsets.

Pointed by:	imp
2010-09-11 21:49:28 +00:00
Rebecca Cran
5512804bb8 Revert changes of 'assure' to 'ensure' made in r211936.
Approved by: rrs (mentor)
2010-09-11 10:49:56 +00:00
Rui Paulo
004699f14f Add a comment describing where to include bsd.dtrace.mk.
Sponsored by:	The FreeBSD Foundation
2010-09-11 10:11:59 +00:00
David Xu
b9b58ffa26 Make a link for pthread_timedjoin_np. 2010-09-11 09:26:36 +00:00
David Xu
a60c2f1c0e kill() does queue signal now. 2010-09-11 08:15:18 +00:00
Glen Barber
9d839c44c1 Add RETURN VALUES section to devclass_get_maxunit(9).
PR:		149979
Submitted by:	gcooper
Patch by:	gcooper
Approved by:	keramida (mentor)
MFC after:	1 week
2010-09-10 23:22:01 +00:00