15371 Commits

Author SHA1 Message Date
kib
a1ca36e775 MFC r269160:
Remove man page for non-existent VOPs.

MFC r269240 (by pluknet):
Add VOP_GETVOBJECT.9 to obsolete files, un-xref.
2014-07-30 04:03:59 +00:00
kib
68a7483c94 MFC r269159:
Correct the locking statement.

MFC r269161:
Explicitely mention that inactivated or reclaimed vnode is locked
exclusively.
2014-07-30 04:00:23 +00:00
markj
1f52ac9340 MFC r264363:
Update the SDT(9) example to reflect the removal of the sname parameter
in r258622.
2014-07-29 20:37:22 +00:00
ian
0adc7b49f4 MFC r263373, r268402
Add a way to apply CFLAGS only when building the given architecture.  This
  is useful primarily on a system used for cross-building, when you have a
  set of flags to apply to the TARGET_ARCH being cross-built but don't want
  those settings applied to building the cross-tools or other components that
  run on the build host machine.

  Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS.  This allows different
  C++ options for toolchain versus target when cross-building.
2014-07-25 23:21:36 +00:00
bdrewery
87624b1433 MFC r268715,r268722:
Document the 'show bio' command added in 2009.
    Also link 'show bio' to g_bio(9.)
2014-07-22 00:33:41 +00:00
emaste
9cdf3487e3 MFC syscons(4) man page updates:
r268050: Add a vt(4) cross reference to syscons(4)

r268169: Clarify the setting of syscons driver flags

  Submitted by:	wblock

r268215: Describe kern.vty sc/vt tunable in syscons(4)

  Reviewed by:	wblock
2014-07-21 16:21:17 +00:00
emaste
6e5d5c120c MFC r267603 by trasz: Add polish vt(4) keymap.
Sponsored by:	The FreeBSD Foundation
2014-07-21 13:51:29 +00:00
jhb
cf1a222326 MFC 260847,264055,264867:
- Add a very simple virtio_random(4) driver for FreeBSD guests to harvest
  entropy from hypervisors.
- Add support to bhyve for the virtio RNG entropy-source device to provide
  entry to bhyve guests.
2014-07-21 00:21:56 +00:00
gavin
1932275fef Merge r267866 from head:
Drop references to updating over csup from build(7).
2014-07-16 12:51:29 +00:00
gavin
712abcae84 Merge r267865 from head:
Drop example variables for updating over csup.  These have not functioned
  since r251084
2014-07-16 12:49:56 +00:00
wblock
48cb0b5107 MFC r268187:
Improve markup, change references to nonexistent vt_vga(4), remove some
language redundancy, and move the examples so sections are in the
standard order.
2014-07-16 00:36:55 +00:00
jhb
1a3e3125d0 MFC 267963:
The latest versoin of file/libmagic identifes a filesystem image
is identified as "DOS/MBR boot sector" as opposed to "x86 boot sector".

This trips up vmrun.sh when using the new file(1) and makes it want to boot
into the installer instead.

Fix this by just looking for "boot sector" instead.
2014-07-13 17:49:27 +00:00
emaste
0a0b590be9 Regen src.conf(5) after r268399 2014-07-08 14:11:28 +00:00
emaste
a2e24081b1 MFC r268022: Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VT
The _SUPPORT knobs have a consistent meaning which differs from the
  behaviour controlled by this knob.  As the knob is opt-out and has not
  appeared in a release the impact should be low.
2014-07-08 14:04:36 +00:00
ray
74b8e10dc8 267622 Log:
Rename vt(4) vga module to dismiss interference with syscons(4) vga module.
267623 Log:
  Remove stale link to deleted vt(4) xboxfb driver.
267624 Log:
  syscons(4) and vt(4) can be built together now.
267625 Log:
  Allow to disable syscons(4) if "hw.syscons.disable" kenv is set.
267626 Log:
  Suspend vt(4) initialization if "kern.vt.disable" kenv is set.
267965 by emaste@ Log:
  Use a common tunable to choose between vt(4)/sc(4)
  With this change and previous work from ray@ it will be possible to put
  both in GENERIC, and have one enabled by default, but allow the other to
  be selected via the loader.
  (The previous implementation had separate kern.vt.disable and
  hw.syscons.disable tunables, and would panic if both drivers were
  compiled in and neither was explicitly disabled.)
268175 by emaste@ Log:
  Fix vt(4) detection in kbdcontrol and vidcontrol
  As sc(4) and vt(4) coexist and are both enabled in GENERIC, the existence
  of a vt(4) sysctl is not sufficient to determine that vt(4) is in use.
  Reported by:  Trond Endrestøl
268045 by emaste@ Log:
  Add vt(4) to GENERIC and retire the separate VT config
  vt(4) and sc(4) can now coexist in the same kernel.  To choose the vt
  driver, set the loader tunable kern.vty=vt .

Sponsored by:	The FreeBSD Foundation
2014-07-07 14:16:05 +00:00
kib
62024097ea MFC r267651 (by attilio):
Add the possibility to specify ecx when performing cpuid calls.

MFC r267673:
Restore the ABI of the cpuctl(4) ioctl request CPUCTL_CPUID.

MFC r267814:
Make cpuctl_do_cpuid() and cpuctl_do_cpuid_count() return void.
2014-07-02 13:09:26 +00:00
marius
618ac05759 MFC: r267978
In order to get vt(4) a bit closer to the feature set provided by sc(4),
implement options TERMINAL_{KERN,NORM}_ATTR. These are aliased to
SC_{KERNEL_CONS,NORM}_ATTR and like these latter, allow to change the
default colors of normal and kernel text respectively.
Note on the naming: Although affecting the output of vt(4), technically
kern/subr_terminal.c is primarily concerned with changing default colors
so it would be inconsistent to term these options VT_{KERN,NORM}_ATTR.
Actually, if the architecture and abstraction of terminal+teken+vt would
be perfect, dev/vt/* wouldn't be touched by this commit at all.

Reviewed by:	emaste
Sponsored by:	Bally Wulff Games & Entertainment GmbH
2014-06-30 09:59:23 +00:00
kib
fa72c237e4 MFC r267854:
Add fpu_kern.9 man page to the install.
2014-06-30 09:55:29 +00:00
kib
82a0e5601a MFC r267768:
Add documentation for the fpu_kern(9) interfaces.

MFC r267785 (by brueffer):
Several small fixes.
2014-06-30 09:54:08 +00:00
marius
ff62446f90 MFC: r267967, r267968
- SC_NO_SYSMOUSE isn't currently supported by vt(4), so nuke it from vt.4.
- vt_vga(4) is a driver rather than a function so reference it accordingly.
- Uncomment HISTORY section given that vt(4) will first appear in 9.3.

Reviewed by:	emaste (modulo last part)
Sponsored by:	Bally Wulff Games & Entertainment GmbH
2014-06-30 09:38:14 +00:00
bdrewery
f6034d31b7 MFC r267599:
- Add a LOCAL_ITOOLS to allow adding additional tools required for the
    installworld and distributeworld targets

PR:		179562
2014-06-24 15:57:48 +00:00
emaste
6632b872a3 MFC r267124, r267582:
Install VT support files

  They can be disabled by setting WITHOUT_VT_SUPPORT=yes in src.conf.
2014-06-23 13:50:02 +00:00
gavin
e44b7f112f Merge r267482,r267483,r267486,r267577,r267671,r267672 from head:
Remove send-pr and fix up all references to it.  Replace it with a
  stub send-pr directing people towards the web site.
2014-06-22 16:48:21 +00:00
ray
e3bd23da81 MFC: 266838 266841 267194
Add gallant vt(4) font as an example of font loading for vt(4).
  Add Ukranian vt(4) keymaps as an example.

Sponsored by:	The FreeBSD Foundation
2014-06-16 12:37:10 +00:00
brueffer
05d5b8b9d8 MFC: r267185
Minor improvements.
2014-06-13 12:01:55 +00:00
wblock
3a37604e59 MFC r267090:
Correct the document date for last change.
2014-06-12 15:46:24 +00:00
bjk
bc20a2fb62 MFC r266416:
------------------------------------------------------------------------
    r266416 | bjk | 2014-05-18 17:05:54 -0400 (Sun, 18 May 2014) | 14 lines

    Document some user-settable make variables in ports.7

    This is not a comprehensive list, as the variables themselves are spread
    out over multiple files, but it is a start.

    Add a section to make.conf noting that variables may be set there that
    affect ports builds, but refer to ports.7 and elsewhere for the actual
    listing; any listing in make.conf.5 would likely become out of date
    fairly quickly.

    PR:             docs/189199
    Reviewed by:    bdrewery (previous version)
    Approved by:    hrs (mentor)

    ------------------------------------------------------------------------

PR:		189199
Approved by:	hrs (mentor)
2014-06-09 23:11:50 +00:00
gjb
9e92aee6cf MFC r267160:
Dereference portaudit(1), as it is now deprecated and its
  functionality exists in pkg-audit(8).

Sponsored by:	The FreeBSD Foundation
2014-06-09 01:24:53 +00:00
marck
36860d519d MFC r266859:
Change examples to have master skew above 0 to have ability to overwrite this
  from the slave (for example, when master is failing on disk IO and could not be
  logged into or execute cronjob).

  Commented out examples changed too to simplify future merging.

  Idea by:        kaa@zvuki.ru
  Discussed with: glebius
2014-06-05 11:48:36 +00:00
wblock
b1be605bc6 MFC r266828:
Correct the description of characters allowed.  Based on pw_checkname in
usr.sbin/pw/pw_user.c.  Modified version of patch submitted by
venture37.
2014-06-05 01:20:25 +00:00
brueffer
51dec3635e MFC: r266709
Language cleanup.

Reviewed by:	mav, bcr, wblock
2014-06-03 19:25:39 +00:00
brueffer
3382a08e56 Catch up supported hardware obmitted in r265269, now that this branch has support
for it.
2014-05-26 11:16:28 +00:00
wblock
5f2cd9316d MFC r265798, r265815, r266091
Add a man page for the new vt.4 device.
2014-05-25 17:52:34 +00:00
hselasky
2975fdd0c2 MFC r257543, r264912, r264972, r264982 and r266472:
- Add preliminary support for the Realtek RTL8188EUS and RTL8188ETV chipsets.
- Add device ID for 'Sanoxy 802.11N' USB
- Initialize rssi variable.
- Fix gcc build, initialize off variable.
- The DELAY() should not be used in USB drivers.
- The usb_pause_mtx() function takes ticks and not milliseconds as last argument.
2014-05-23 06:47:47 +00:00
gavin
e38b7d8add Merge r266261 from head:
USB endpoints are almost always single-digits, fix the path in the man
  page to be clearer.

PR:		docs/175560
Submitted by:	Andreas Gustafsson <gson gson.org>
2014-05-22 21:08:32 +00:00
ian
9f4d42e0d5 MFC 264019, 264041, 264048, 264049, 264050, 264051
Add support for event timers whose clock frequency can change while running.

  Apparently all ARM configs build kern_et.c, but only a few of them also
  build kern_clocksource.c, un-break the build by not referencing functions in
  kern_clocksource if NO_EVENTTIMERS is defined.

  Add variable-frequency support to the arm mpcore eventtimer driver.

  mpcore_timer: Disable the timer and clear any pending bit, then setup the
  new counter register values, then restart the timer.  Also re-nest the parens
  properly for casting the result of converting time and frequency to a count.
2014-05-17 20:10:12 +00:00
loos
7e79287631 Adds the ADC driver for TI AM3xxx SoC family.
The ADC has a 12bit resolution and its raw output can be read via sysctl(8)
interface.

The driver allows the setup of ADC clock, samples average and open delay
(the number of clock cycles to wait before start the conversion).

The TSC_ADC module is set in the general purpose mode (no touchscreen
support).

Tested on Beaglebone-black.

Written based on AM335x TRM.
2014-05-17 19:06:46 +00:00
brueffer
fa02a5fab4 MFC: r265583, r265716
First cleanup pass: new sentence -> new line, mdoc, typos and style.

Fix two more typos. (1)

Submitted by:	Trond Endrestol (1)
2014-05-16 16:03:26 +00:00
ian
6c4033c89f MFC 262614, 262625, 262626, 262627, 262682, 262714, 262725, 262736
Integrate device-tree upstream files into the build process:
  (1) Invoke cpp to bring in files via #include (although the old
      /include/ stuff is supported still).
  (2) bring in files from either vendor tree or freebsd-custom files
      when building.
  (3) move all dts* files from sys/boot/fdt/dts to
      sys/boot/fdt/dts/${MACHINE} as appropriate.
  (4) encode all the magic to do the build in sys/tools/fdt/make_dtb.sh
      so that the different places in the tree use the exact same logic.
  (5) switch back to gpl dtc by default. the bsdl one in the tree has
      significant issues not easily addressed by those unfamiliar with
      the code.

  Only try to build the static dtb when we're building a static dtb.

  Use proper include path for dtc as well as cpp.

  Fix syntax errors (missing ; other minor glitches) in existing dts files.
2014-05-16 15:56:34 +00:00
loos
058ac53f3f MFC r260522, r260523, r261439, r261440, r261586, r264504, r264769, r265193,
r265194, r265197

r260522:
Add the manual page for geom_uncompress(4).

r260523:
Build the geom_uncompress(4) module by default.

Fix geom_uncompress(4) module loading.  Don't link zlib.c (which is a module
itself) directly.

r261439:
Remove some unnecessary code.  The offsets read from the first block are
overwritten a few lines bellow.

r261440:
Fix a logic error.  Because of this inflateReset() wasn't being called and
the output buffer wasn't being cleared between the inflate() calls,
producing zeroed output after the first inflate() call.

This fixes the read of mkuzip(8) images with geom_uncompress(4).

r261586:
Fix the build with DEBUG enabled.  Where possible, fix style(9) issues.

r264504:
Make sure not to do I/O for more than MAXPHYS bytes. Doing so can cause
problems in our providers, such as a KASSERT in md(4). We can initiate
I/O for more than MAXPHYS bytes if we've been given a BIO for MAXPHYS
bytes, the blocks from which we're reading couldn't be compressed and
we had compression in preceeding blocks resulting in misalignment of
the blocks we're trying to read relative to the sector. We're forced to
round up the I/O length to make it an multiple of the sector size.

When we detect the condition, we'll reduce the block count and perform
a "short" read. In g_uzip_done() we need to consider the original I/O
length and stop early if we're about to deflate a block that we didn't
read. By using bio_completed in the cloned BIO and not bio_length to
check for this, we automatically and gracefully handle short reads that
our providers may be doing on top of the short reads we may initiate
ourselves.

r264769:
Keep geom_uncompress(4) in line with geom_uzip(4), bring in the r264504 fix.

Make sure not to start I/O bigger than MAXPHYS bytes.

r265193:
Some style and whitespace fixes.  Reduce the difference between geom_uzip(4)
and geom_uncompress(4).  Now, they produce an almost clean diff(1) output.

Remove a duplicated variable from g_uncompress.c and an unnecessary header
from g_uzip.c.

r265194:
Actually the FEATURE() macro is defined on sys/sysctl.h.

r265197:
Fix a leak in g_uzip_taste().  After retrieve all the block offsets from
the uzip image, free the last data read.
2014-05-16 14:28:55 +00:00
loos
fa1497d7f7 MFC r266092
gpioiic.4 and gpioled.4 will first appear in 10.1-RELEASE.
2014-05-15 01:37:17 +00:00
loos
5a10856167 MFC r258046, r258047, r258050, r259035, r259036, r259037, r261842, r261843,
r261844, r261845, r261846, r262194, r262522, r262559

r258046:
Fix a typo on a comment in ofw_bus_if.m, the default method will return -1
when a node doesn't exist.

r258047:
Move the KASSERT() check to the point before the increase of number of pins.

r258050:
Fix gpiobus to return BUS_PROBE_GENERIC insted of BUS_PROBE_SPECIFIC (0) so
it can be overriden by its OFW/FDT version.

Give a chance for GPIO devices that implement the device_identify method to
attach.

r259035:
Remove unnecessary includes and an unused softc variable.  While here apply
two minor style(9) fixes.

r259036:
Move the GPIOBUS_SET_PINFLAGS(..., ..., pin, GPIO_PIN_OUTPUT) to led(4)
control callback function.  This makes gpioled(4) works even if the pin
is accidentally set to an input.

r259037:
Fix the pin value reading on AM335x.  Because of the inverted logic it was
always returning '0' for all the reads, even for the outputs.  It is now
known to work with gpioiic(4) and gpioled(4).

r261842:
Add an OFW GPIO compatible bus.  This allows the use of the DTS files to
describe GPIO bindings in the system.

Move the GPIOBUS lock macros to gpiobusvar.h as they are now shared between
the OFW and the non OFW versions of GPIO bus.

Export gpiobus_print_pins() so it can also be used on the OFW GPIO bus.

r261843:
Add OFW support to the in tree gpio compatible devices: gpioiic(4) and
gpioled(4).

Tested on RPi and BBB (using the hardware I2C controller and gpioiic(4) for
the I2C tests).  It was also verified for regressions on RSPRO (MIPS/ar71xx)
used as reference for a non OFW-based system.

Update the gpioled(4) and gpioiic(4) man pages with some details and
examples about the FDT/OFW support.

Some compatibility details pointed out by imp@ will follow in subsequent
commits.

r261844:
Allow the use of OFW I2C bus together with iicbb(4) on OFW-based systems.

This change makes ofw_iicbus attach to iicbb(4) controllers in addition to
the already supported i2c host bridges (iichb).

On iicbb(4) allow the direct access of the OFW parent node by its children,
so they can be directly attached to iicbb(4) node on the DTS without the
need of describing the i2c bus.

r261845:
Allow the use of the OFW GPIO bus for ti_gpio and bcm2835_gpio.  With this
change the gpio children can be described as directly connected to the GPIO
controller without the need of describing the OFW GPIO bus itself on the
DTS file.

With this commit the OFW GPIO bus is fully functional on BBB and RPi.

GPIO controllers which want to use the OFW GPIO bus will need similar
changes.

r261846:
Make the gpioled(4) work out of the box on BBB.

Add gpioled(4) to BEAGLEBONE kernel and add the description of the four
on-board leds of beaglebone-black to its DTS file.

r262194:
Remove an unnecessary header.

r262522:
Fix make depend for iicbus.

r262559:
Inspired by r262522, fix make depend.  This fixes the build of gpio modules.
2014-05-15 01:27:53 +00:00
loos
faac8f5770 MFC r258044, r258679, r263990
Adds gpioiic.4 and gpioled.4 man pages.  Moves some of the information that
was previously available on gpio.4 to their respectives pages.  Add the
cross references on gpioctl.8.

Add gpiobus(4) as a link to gpio(4).
2014-05-14 23:33:38 +00:00
bdrewery
cfa08852ae MFC r264465:
Prefer /etc/login.conf for some of these environment values.
2014-05-14 15:23:06 +00:00
kevlo
9a6f8ee2e6 MFC r264216, r265817, r265822:
Add man page for udplite(4).
2014-05-13 06:09:01 +00:00
ian
cd8ffe68c7 MFC r264822: Allow .WAIT to appear in SUBDIR= lists 2014-05-12 21:22:53 +00:00
pluknet
62542709cb MFC r265285,265320:
Documented the pget(9) system kernel interface.
2014-05-12 19:42:16 +00:00
ambrisko
5b37001473 MFC 265555
dd mrsas(4) driver from LSI official support of newer MegaRAID SAS
cards.  LSI has been maintaining this driver outside of the FreeBSD
tree.  It overlaps support of ThunderBolt and Invader cards that mfi(4)
supports.  By default mfi(4) will attach to cards.  If the tunable:
	hw.mfi.mrsas_enable=1
is set then mfi(4) will not probe and attach to these newer cards and
allow mrsas(4) to attach.  So by default this driver will not effect
a FreeBSD system unless mfi(4) is removed from the kernel or the
tunable is enabled.

mrsas(4) attaches disks to the CAM layer so it depends on CAM and devices
show up as /dev/daX.  mfiutil(8) does not work with mrsas.  The FreeBSD
version of MegaCli and StorCli from LSI do work with mrsas.  It appears
that StorCli only works with mrsas.  MegaCli appears to work with mfi(4)
and mrsas(4).

It would be good to add mfiutil(4) support to mrsas, emulations modes,
kernel logging, device aliases to ease the transition between mfi(4)
and mrsas(4).

Style issues should be resolved by LSI when they get committers approved.
The plan is get this driver in FreeBSD 9.3 to improve HW support.

Thanks to LSI for developing, testing and working with FreeBSD to
make this driver co-exist in FreeBSD.  This improves the overall
support of MegaRAID SAS.

Submitted by:	Kashyap Desai <Kashyap.Desai@lsi.com>
Sponsored by:	LSI
2014-05-12 17:55:24 +00:00
davidcs
7a535d1845 MFC r265703
Modify Copyright information and other strings to reflect
Qlogic Corporation's purchase of Broadcom's NetXtreme business.
Added clean option to Makefile

Submitted by:David C Somayajulu (davidcs@freebsd.org) QLogic Corporation
2014-05-12 15:52:49 +00:00
brueffer
971a9ff5f3 MFC: r265269
Make the HARDWARE section ready for release notes generation; sort SEE ALSO.

Compared to the original revision, the list of supported chipsets was changed to
reflect those supported in this branch.
2014-05-11 09:54:38 +00:00