Commit Graph

13926 Commits

Author SHA1 Message Date
dim
c33f43657f Disable another clang warning (-Wempty-body) when WARNS <= 2.
MFC after:	1 week
2011-12-18 00:34:42 +00:00
dim
6990aaaaad Disable yet another clang warning (-Wconversion) when WARNS <= 3.
MFC after:	1 week
2011-12-18 00:24:11 +00:00
ru
a6ba1663e4 Fixed some of markup.
Reviewed by:	jhb
2011-12-17 06:57:35 +00:00
dim
f68951a3dd Disable yet another clang warning when WARNS <= 3.
MFC after:	1 week
2011-12-17 01:51:12 +00:00
dim
d9e9968084 Add a NO_WARRAY_BOUNDS setting to bsd.sys.mk, only applicable to clang,
to selectively work around warnings in programs that don't use flexible
array members, but instead define arrays of length 1 at the end of the
struct, and then access those beyond their declared bounds.

MFC after:	1 week
2011-12-16 23:42:25 +00:00
mav
bdf9f67646 Some formatting fixes.
Submitted by:	ru
2011-12-16 14:19:46 +00:00
glebius
27a36f6ac8 A major overhaul of the CARP implementation. The ip_carp.c was started
from scratch, copying needed functionality from the old implemenation
on demand, with a thorough review of all code. The main change is that
interface layer has been removed from the CARP. Now redundant addresses
are configured exactly on the interfaces, they run on.

The CARP configuration itself is, as before, configured and read via
SIOCSVH/SIOCGVH ioctls. A new prefix created with SIOCAIFADDR or
SIOCAIFADDR_IN6 may now be configured to a particular virtual host id,
which makes the prefix redundant.

ifconfig(8) semantics has been changed too: now one doesn't need
to clone carpXX interface, he/she should directly configure a vhid
on a Ethernet interface.

To supply vhid data from the kernel to an application the getifaddrs(8)
function had been changed to pass ifam_data with each address. [1]

The new implementation definitely closes all PRs related to carp(4)
being an interface, and may close several others. It also allows
to run a single redundant IP per interface.

Big thanks to Bjoern Zeeb for his help with inet6 part of patch, for
idea on using ifam_data and for several rounds of reviewing!

PR:		kern/117000, kern/126945, kern/126714, kern/120130, kern/117448
Reviewed by:	bz
Submitted by:	bz [1]
2011-12-16 12:16:56 +00:00
kib
b646d3f699 Document 'findstack'.
MFC after:	1 week
2011-12-16 11:52:33 +00:00
np
65b6b4fa8f Many updates to cxgbe(4)
- Device configuration via plain text config file.  Also able to operate
  when not attached to the chip as the master driver.

- Generic "work request" queue that serves as the base for both ctrl and
  ofld tx queues.

- Generic interrupt handler routine that can process any event on any
  kind of ingress queue (via a dispatch table).

- A couple of new driver ioctls.  cxgbetool can now install a firmware
  to the card ("loadfw" command) and can read the card's memory
  ("memdump" and "tcb" commands).

- Lots of assorted information within dev.t4nex.X.misc.*  This is
  primarily for debugging and won't show up in sysctl -a.

- Code to manage the L2 tables on the chip.

- Updates to cxgbe(4) man page to go with the tunables that have changed.

- Updates to the shared code in common/

- Updates to the driver-firmware interface (now at fw 1.4.16.0)

MFC after:	1 month
2011-12-16 02:09:51 +00:00
dim
b2a5a1cc3f Disable one more clang warning when WARNS <= 3.
MFC after:	1 week
2011-12-15 23:13:57 +00:00
dim
634fe42a76 Clang has more warnings enabled by default, and when using -Wall, so if WARNS
is set to low values, some of them have to be disabled explicitly.

MFC after:	1 week
2011-12-15 22:08:08 +00:00
jhb
6d1299a388 Add a helper API to allow in-kernel code to map portions of shared memory
objects created by shm_open(2) into the kernel's address space.  This
provides a convenient way for creating shared memory buffers between
userland and the kernel without requiring custom character devices.
2011-12-14 22:22:19 +00:00
joel
c6a888391d Add SEE ALSO. 2011-12-14 19:48:21 +00:00
mav
93b09a6b44 After several suggestions from people, move eventtimers page from 7 to 4. 2011-12-14 15:19:40 +00:00
glebius
a4234fdf18 More MLINKS for rtalloc.9 2011-12-14 14:55:19 +00:00
glebius
3c35ef76bc Update this page to describe modern interfaces. 2011-12-14 14:52:50 +00:00
ed
145914e3e7 Change targ(4) to use cdevpriv, instead of multiple character devices.
Also update the manpage and the scsi_target example program accordingly.

Discussed on:	scsi@
Tested by:	Chuck Tuffli <chuck tuffli net>
2011-12-13 21:26:33 +00:00
mav
bb0222f95e - Fix different variable types use in different files after r121184,
causing problems on amd64.
 - s/%lud/%lu/.

MFC after:	1 month
2011-12-13 11:13:28 +00:00
ru
6487a966c8 The "inet" keyword in the "ifconfig_IF_aliasN" is mandatory for
IPv4 aliases to work since network.subr@197139.

MFC after:	3 days
2011-12-13 08:23:03 +00:00
eadler
805302f099 - Add support for ASCII art splash screens in TheDraw format
PR:		kern/143370
Submitted by:	Antony Mawer <antony@mawer.org>
Reviewed by:	gjb (doc)
Reviewed by:	des (style)
Approved by:	ed
MFC after:	1 month
2011-12-12 21:12:07 +00:00
fabient
e31b2d85e2 Add watchdog support for VIA south bridge chipset.
Tested on VT8251, VX900 but CX700, VX800, VX855 should works.

MFC after:	1 month
Sponsored by: NETASQ
2011-12-12 09:50:33 +00:00
gjb
405220fbc9 Minor whitespace cleanup to make.conf(5).
MFC after:	1 week
X-MFC-With:	228418
2011-12-11 20:01:37 +00:00
gjb
3e732791dc Document the SVN variable needs to be set in make.conf(5) when SVN_UPDATE
is set.

PR:		163162
Submitted by:	Oliver Hartmann <ohartman!zedat.fu-berlin.de>
Patch by:	Benjamin Kaduk <kaduk!mit.edu> (original)
MFC after:	1 week
2011-12-11 19:53:11 +00:00
jimharris
d15b8ff272 Added jimharris. 2011-12-09 20:23:58 +00:00
yongari
78a31892a1 After r228293, et(4) supports altq(4). 2011-12-09 19:17:51 +00:00
jh
a274e72947 sbuf_data() hasn't returned NULL for overflowed buffers since r71721. 2011-12-09 13:28:41 +00:00
jh
e24a247476 - Fix markup.
- Remove trailing whitespace.
2011-12-09 13:15:19 +00:00
gjb
9bcc23b795 As of r226865, daily_scrub_zfs_default_threshold is 35 days; document
accordingly.

PR:		162890
Submitted by:	Oliver Hartmann (ohartman ! mail.zedat.fu-berlin.de)
Patch by:	Niclas Zeising (niclas.zeising ! gmail.com)
MFC after:	1 week
X-Need-MFC:	r226865
2011-12-08 23:58:26 +00:00
pfg
18e9c445ab Add myself as new committer: add PGP key and announce..
Approved by:	jhb (mentor)
2011-12-08 22:33:37 +00:00
kib
a56c72dcf2 Force linker error when created shared library contains a relocation
against text. Provide the override switch to turn off the strict
behaviour. Apparently, openssl libcrypto needs it due to assembler
code not being PIC.

Discussed with:	bf
MFC after:	2 weeks
2011-12-06 11:28:17 +00:00
mav
f8f306b32a Mention that Cold Presence Detection feature used for hot-plug detection
when interface power management is enabled.
2011-12-06 09:12:11 +00:00
jhibbits
43579bf1af Add myself to the relevant doc files.
Approved by:	nwhitehorn (mentor)
2011-12-03 14:03:53 +00:00
yongari
15257e476a Add more controllers that support jumbo frame. 2011-12-02 19:01:26 +00:00
mav
9be1bfa322 Add hw.ahci.force tunable to control whether AHCI drivers should attach
to known AHCI-capable chips (AMD/NVIDIA), configured for legacy emulation.

Enabled by default to get additional performance and functionality of AHCI
when it can't be enabled by BIOS. Can be disabled to honor BIOS settings if
needed for some reason.

MFC after:	1 month
2011-12-02 12:52:33 +00:00
fjoe
25bbb2595f Regen. 2011-12-02 09:28:19 +00:00
fjoe
f8cf305681 Revert to conservative defaults. WITH_PROFILE is a default now.
NO_PROFILE overrides in Makefile.inc1 and bsd.own.m are left intact
so that the reversal to the WITHOUT_PROFILE will be easier in future.
2011-12-02 09:09:54 +00:00
lstewart
313c864179 Add a man page describing the feed-forward clock kernel support, including how
to enable and configure the functionality.

Committed on behalf of Julien Ridoux and Darryl Veitch from the University of
Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward
Clock Synchronization Algorithms" project.

For more information, see http://www.synclab.org/radclock/

Discussed with:	Julien Ridoux (jridoux at unimelb edu au)
Submitted by:	Julien Ridoux (jridoux at unimelb edu au)
2011-12-01 07:41:30 +00:00
fjoe
457df496e1 Regen. 2011-11-30 18:24:43 +00:00
fjoe
f4904d54c6 - CTF knob is now implemented using common scheme: MK_CTF=yes/no is
defined based on WITH/WITHOUT_CTF settings, default is WITHOUT_CTF,
NO_CTF overrides WITH_CTF (used by Makefile.inc1)
- CTFCONVERT_CMD/NORMAL_CTFCONVERT are now defined to empty string
if make(1) can handle empty commands
2011-11-30 18:11:49 +00:00
fjoe
7570c54af7 CTFCONVERT_CMD=... hack does not work sufficiently well in parallel builds.
Put a bandaid until make(1) is taught to ignore empty commands.
2011-11-29 20:06:27 +00:00
fjoe
d235e86b9e Turn off profiled libs build by default.
Can be enabled back using WITH_PROFILE=yes in /etc/src.conf
2011-11-29 19:46:17 +00:00
fjoe
5f9c1025ce - fix WITH_CTF when specified in /etc/src.conf [1]
- CTFCONVERT_CMD=... is a hack (should be defined to empty string instead):
make(1) should be taught to ignore empty commands silently in compat mode
(as it does in !compat mode, GNU make also silently ignores empty commands)
and to skip printing empty commands in !compat mode
- config(8) should generate ${NORMAL_CTFCONVERT} invocation without '@':
this will allow to simplify kern.pre.mk even more and lessen the number
of shell invocations during kernel build when CTF is turned off
- WITH_CTF can now be converted to usual MK_CTF=yes/no infrastructure

Pointy hat to:	fjoe [1]
2011-11-29 16:34:44 +00:00
fjoe
009670e1b3 Conditionalize ctfconvert/ctfmerge runs on make level (.if/.endif) instead
of executing a shell on every object or executable/library file.

This shaves off more than 30,000 shell invocations during buildworld.
2011-11-29 08:38:47 +00:00
fjoe
c986ef0cb9 Allow NO_FOO to override WITH_FOO that could be specified in /etc/src.conf.
This is required to override knobs (e.g. WITH_PROFILE) during buildworld
stages in Makefile.inc1 (otherwise the build is stopped due to both WITH_FOO
and WITHOUT_FOO defined).
2011-11-29 08:20:23 +00:00
dim
45cfbee432 Regenerate src.conf.5. 2011-11-28 17:58:57 +00:00
philip
f3d31009fe Only install the sfxge(4) manpage on amd64, while the driver is amd64-only.
Pointed out by:	bz
2011-11-28 16:25:27 +00:00
rwatson
b433b3878b Add an introductory Capsicum man page providing a high-level description of
its mechanisms, pointing at other pertinent man pages, and cautioning about
the experimental status of Capsicum in FreeBSD.

MFC after:	3 days
Sponsored by:	Google, Inc.
2011-11-27 19:44:15 +00:00
gjb
b62a6b0ed1 Remove a seemingly unnecessary [1] ellipsis from netmap.4.
Spotted by:	manlint [1]
2011-11-27 06:55:57 +00:00
dim
85d58c8854 Fix breakage after r227983; lib/libcxxrt still got built, because it was
not disabled in the usual way (by adding it to __DEFAULT_NO_OPTIONS in
share/mk/bsd.own.mk), and because the test for MK_LIBCPLUSPLUS in
Makefile.inc1 was incorrect.

Pointy hat to:	dim
2011-11-26 03:26:06 +00:00
theraven
ad5598305f Import libc++ / libcxxrt into base. Not build by default yet (use
MK_LIBCPLUSPLUS=yes to enable).  This is a work-in-progress.  It works for
me, but is not guaranteed to work for anyone else and may eat your dog.

To build C++ using libc++, add -stdlib=libc++ to your CXX and LD flags.

Bug reports welcome, bug fixes even more welcome...

Approved by:	dim (mentor)
2011-11-25 20:59:04 +00:00