22 months agogdb(1): Fix the dreaded "xml-builtin.c already exists" quickworld error.
Sascha Wildner [Fri, 22 Jul 2011 16:19:25 +0000]
gdb(1): Fix the dreaded "xml-builtin.c already exists" quickworld error.

The feature-to-c.sh script has a check that outputs this error if the
file exists but would have to be regenerated (as can be the case when
quickworlding).

Because fixing it in the script would take more lines than fixing it
in the Makefile, I do the latter (the effect is the same).

22 months agoHAMMER VFS - Add code to reduce frontend vs flusher locking conflicts
Matthew Dillon [Fri, 22 Jul 2011 15:55:06 +0000]
HAMMER VFS - Add code to reduce frontend vs flusher locking conflicts

* Implement a Pulse-width modulated time-domain multiplexer on B-Tree
  cursor operations which splits fronttend operations from backend flusher
  operations.

  The larger the number of inodes undergoing reclamation, the greater the
  pulse width given over to locking operations initiated by the flusher.
  Frontend operations (typically reads) are given smaller and smaller
  slot widths as the flusher gets more overloaded.

  The advantage of this mechanism is that we are not simply imposing a
  delay in the reader, we are imposing a variable-length time slot during
  which the reader is able to grab a B-Tree cursor.  This allows linear
  and partially cached operations to 'burst' many operations within the
  slot, allowing them run at nearly full speed and not imposing an artificial
  performance limitation for linear I/O.

* This solves a major deadlock stalling issue that prevented the flusher
  from being able to actually flush sufficient I/O to keep up with the
  inode backlog that e.g. blogbench creates, causing excessive locking
  stalls throughout the HAMMER filesystem, particularly when many file
  inodes are being cycled through.

* When running blogbench --iterations=150 prior to this change write
  performance would drop to unacceptable levels and read operations
  (particularly things which cycle through inodes like 'find' and 'ls')
  would stall for unacceptably long periods of time, often resulting
  in diagnostic cache_lock messages on the console showing namecache
  blockages in excess of 100 seconds.

  With the change namecache blockages are significantly reduced in both
  frequency and duration, find and ls operations are able to run
  concurrently with a heavy multi-file write load, and blogbench shows
  improved write performance while still giving a reasonable priority to
  read operations (which is what we want).

* Rename a few of the sysctls to normalize internal vs external variable
  names.

22 months agonetisr: Add hashcheck method to check and adjust hw provided hash
Sepherosa Ziehau [Fri, 22 Jul 2011 10:29:11 +0000]
netisr: Add hashcheck method to check and adjust hw provided hash

Currently only IPv4 provides the non-default hashcheck method

For IPv4's hashcheck:
- Fragements are always delivered to CPU0
- non-TCP and non-UDP packets are passed to software for hash calculation

22 months agoioapic: Disable unused GSI instead of leaving it in unknown state
Sepherosa Ziehau [Fri, 22 Jul 2011 02:37:00 +0000]
ioapic: Disable unused GSI instead of leaving it in unknown state

22 months agoioapic: Don't do the default IRQ configure, if it is mapped to different GSI
Sepherosa Ziehau [Fri, 22 Jul 2011 01:54:03 +0000]
ioapic: Don't do the default IRQ configure, if it is mapped to different GSI

The problem went on unnoticed for such a long time, mainly because most of
the mobos only map IRQ0 to GSI2, and GSI0 is taken as being hooked to the
external interrupt source like i8259.

However, the bug reporter's mobo has an extra IRQ source override entry in
ACPI MADT, which maps IRQ9 to GSI21.  The problem reported is actually
caused by:
GSI is configured in the ascending order, so GSI9 is configured before GSI21.
Since there is no explicit IRQ to GSI mapping for GSI9, by using the default
1:1 mapping IRQ9 will be configured.  When GSI21 is configured, due to the
explicit IRQ to GSI mapping, IRQ9 will be configured again, booo

Reported-by: Siju George <sgeorge.ml@gmail.com>

22 months agoBSD gprof/4: Remove old gprof versions from code base
John Marino [Thu, 21 Jul 2011 19:07:03 +0000]
BSD gprof/4: Remove old gprof versions from code base

Gprof4 was inherited from FreeBSD, but removed from there in March 2002.
It was supposed to handle 8-byte counters which the standard gprof didn't
do at the time, but was later upgraded.  Gprof4 probably should not have
made it to DragonFly 1.0.  :)

BSD gprof has been replaced by GNU gprof, so let's retire it formally.

22 months agogprof: Replace BSD gprof and gprof4 with gnu gprof
John Marino [Thu, 21 Jul 2011 18:01:15 +0000]
gprof: Replace BSD gprof and gprof4 with gnu gprof

This stops old gprof and gprof4 from getting built, and links gnu prof
to /usr/bin.

22 months agokernel: Remove some old ISA only drivers.
Sascha Wildner [Thu, 21 Jul 2011 08:19:04 +0000]
kernel: Remove some old ISA only drivers.

This commits removes the following old ISA specific drivers, most of which
have been removed in FreeBSD, too:

aha(4)    - Adaptec 154xA, 154xB, 154xC, 154xCF and 154xCP SCSI cards
asc(4)    - GI1904-based hand scanner
ctx       - ImageNation CORTEX-I Frame Grabber
dgb(4)    - DigiBoard serial cards (digi(4) driver remains)
el(4)     - 3Com Etherlink 3C501 NIC
gpib      - National Instruments AT-GPIB and AT-GPIB/TNT boards
gsc(4)    - Genius GS-4500 hand scanner
ie(4)     - Intel i82586 based 8 and 16 bit ISA ethernet cards
labpc(4)  - National Instruments LABPC and LABPC+ driver
le(4)     - DEC EtherWORKS II/III ethernet cards
mse(4)    - Bus and InPort mouse driver
rc(4)     - RISCom/8 multiport serial cards
rdp(4)    - RealTek RTL8002 based pocket ethernet adapters
spigot    - Creative Labs Spigot video acquisition board
tw(4)     - TW-523 X-10 interface
wl(4)     - T1 speed ISA/radio LAN card
wt(4)     - Archive/Wangtek cartridge tape driver

Along with those, a number of associated programs are removed, too:

sasc(1) sgsc(1) wlconfig(8) xten(1) xtend(8)

23 months agogold: Fix hardcoded library search path
John Marino [Wed, 20 Jul 2011 22:26:13 +0000]
gold: Fix hardcoded library search path

Gold was hard-coded to search "/lib" and "/usr/lib" directories at a
minimum.  The "/lib" directory was removed and a prefix was passed
via CFLAGS to use a different default library path for the cross-tool
version.

23 months agolibdm - add dummy dm_udev_set_sync_support()
Alex Hornung [Wed, 20 Jul 2011 20:11:11 +0000]
libdm - add dummy dm_udev_set_sync_support()

23 months agoif_bge: Support more chipsets
Michael Neumann [Mon, 18 Jul 2011 23:00:14 +0000]
if_bge: Support more chipsets

Add (limited) support for 5761, 5784, 57780 chipsets.

Tested with a Broadcom BCM5723. It works when media is set
before an IP is being assigned, otherwise it panics. Also panics
a lot on a SMP system.

Obtained from: FreeBSD rev 197832.

23 months agokernel - Fix several IPV6 issues
Matthew Dillon [Mon, 18 Jul 2011 22:02:26 +0000]
kernel - Fix several IPV6 issues

* Replace old critical sections with a lock around global structures,
  primarily the default route list for IPV6.  This fixes numerous MP
  races.

* Use rtrequest*_global() instead of rtrequest*() and remove user route
  socket notification (the rtrequest*_global() code should do the
  notification).  This fixes several issues with the per-cpu route table
  getting out of sync and triggering panics, and also appears to fix
  several connectivity issues.

Reported-by: Francois Tigeot <ftigeot@wolfpond.org>

23 months agokernel - Additional fixes for vm_prefault issue
Matthew Dillon [Mon, 18 Jul 2011 06:45:11 +0000]
kernel - Additional fixes for vm_prefault issue

* Fix a case where map->timestamp was being tested without holding the
  map lock, which can race.  We now relock the map prior to testing
  map->timestamp.

* Fix a case where map->timestamp was being adjusted with the map lock
  released.

Reported-by: Peter Avalos <peter@theshell.com>

23 months agocryptsetup/dmsetup/lvm: Fix LDADD/DPADD.
Sascha Wildner [Mon, 18 Jul 2011 03:55:09 +0000]
cryptsetup/dmsetup/lvm: Fix LDADD/DPADD.

23 months agocryptdisks(8): Fix LDADD/DPADD.
Sascha Wildner [Mon, 18 Jul 2011 03:10:26 +0000]
cryptdisks(8): Fix LDADD/DPADD.

23 months agoAdd missing DPADD's for library dependencies.
Sascha Wildner [Sun, 17 Jul 2011 11:57:22 +0000]
Add missing DPADD's for library dependencies.

23 months agobsd.libnames.mk: Add libkiconv, too.
Sascha Wildner [Sun, 17 Jul 2011 11:46:38 +0000]
bsd.libnames.mk: Add libkiconv, too.

23 months agoiasl(8): Fix library dependencies.
Sascha Wildner [Sun, 17 Jul 2011 11:23:52 +0000]
iasl(8): Fix library dependencies.

23 months agoacpidb(8): Fix library dependencies.
Sascha Wildner [Sun, 17 Jul 2011 11:19:46 +0000]
acpidb(8): Fix library dependencies.

23 months agobsd.libnames.mk: Fix thread lib path.
Sascha Wildner [Sun, 17 Jul 2011 11:18:35 +0000]
bsd.libnames.mk: Fix thread lib path.

23 months agoudevd(8): Fix library dependencies.
Sascha Wildner [Sun, 17 Jul 2011 11:14:17 +0000]
udevd(8): Fix library dependencies.

23 months agoktr.4: Document KTR_DMCRYPT.
Sascha Wildner [Sun, 17 Jul 2011 10:45:41 +0000]
ktr.4: Document KTR_DMCRYPT.

23 months agooptions/LINT: Sort the KTR options.
Sascha Wildner [Sun, 17 Jul 2011 10:45:26 +0000]
options/LINT: Sort the KTR options.

23 months agobsd.libnames.mk: Sync the library list with what we have.
Sascha Wildner [Sun, 17 Jul 2011 10:44:42 +0000]
bsd.libnames.mk: Sync the library list with what we have.

23 months agoFix userland profiling on x86_64 by taking FreeBSD's mcount().
Sascha Wildner [Sat, 16 Jul 2011 22:14:08 +0000]
Fix userland profiling on x86_64 by taking FreeBSD's mcount().

Previously, -pg compiled programs would segfault.

23 months agoktr(4): Add some sysctl descriptions for viewing with sysctl -d.
Sascha Wildner [Sat, 16 Jul 2011 19:34:50 +0000]
ktr(4): Add some sysctl descriptions for viewing with sysctl -d.

23 months agoupdate proplib
Alex Hornung [Sat, 16 Jul 2011 08:34:41 +0000]
update proplib

 * There are several bugfixes and many cosmetic fixes.

Obtained-from: NetBSD

23 months agocryptsetup - switch to libdm
Alex Hornung [Sat, 16 Jul 2011 13:59:42 +0000]
cryptsetup - switch to libdm

23 months agocryptdisks - switch over to libdm
Alex Hornung [Sat, 16 Jul 2011 13:46:32 +0000]
cryptdisks - switch over to libdm

23 months agotcplay - switch to using libdm
Alex Hornung [Sat, 16 Jul 2011 11:02:52 +0000]
tcplay - switch to using libdm

23 months agobsd.libnames.mk - add libdm
Alex Hornung [Sat, 16 Jul 2011 07:30:34 +0000]
bsd.libnames.mk - add libdm

23 months agomdoc.local - add libdm
Alex Hornung [Sat, 16 Jul 2011 07:29:33 +0000]
mdoc.local - add libdm

23 months agolibdm - bind into build
Alex Hornung [Fri, 15 Jul 2011 22:09:11 +0000]
libdm - bind into build

23 months agolibdm - a simple BSD-licensed libdevmapper
Alex Hornung [Fri, 15 Jul 2011 09:05:45 +0000]
libdm - a simple BSD-licensed libdevmapper

23 months agodm - sync_devs() on creation, add new dict entries
Alex Hornung [Fri, 15 Jul 2011 21:59:17 +0000]
dm - sync_devs() on creation, add new dict entries

 * call sync_devs() on device creation to ensure all devices are visible
   in userland immediately after return from kernel.

 * add some new, so far unusued, dict entries

 * sneak in my copyright as I've rewritten large parts of dm. That way
   at least everyone knows who to blame for broken stuff :)

23 months agodm - add message support (one-way)
Alex Hornung [Fri, 15 Jul 2011 06:45:55 +0000]
dm - add message support (one-way)

23 months agodm - get rid of excessive locking and redundancy
Alex Hornung [Thu, 14 Jul 2011 18:43:15 +0000]
dm - get rid of excessive locking and redundancy

 * Just use dev->si_drv1 for the strategy, disk ioctl and dump as the
   underlying device and 'dmv' is guaranteed not to go away. Keep the
   locked approach (dm_dev_lookup) for open, close, and mapper ioctls to
   ensure that we never rip out any node that's still in use.

 * This eliminates exclusive locking in the IO path, which should
   improve performance.

23 months agoinitrd - add tcplay root mount support
Alex Hornung [Tue, 12 Jul 2011 17:13:05 +0000]
initrd - add tcplay root mount support

23 months agobsd.libnames.mk - add libtcplay
Alex Hornung [Tue, 12 Jul 2011 15:48:52 +0000]
bsd.libnames.mk - add libtcplay

23 months agocryptdisks - add (preliminary) tcplay support
Alex Hornung [Tue, 12 Jul 2011 13:11:41 +0000]
cryptdisks - add (preliminary) tcplay support

23 months agomdoc.local - add libtcplay
Alex Hornung [Tue, 12 Jul 2011 13:44:23 +0000]
mdoc.local - add libtcplay

23 months agotcplay - bring in
Alex Hornung [Tue, 12 Jul 2011 14:09:32 +0000]
tcplay - bring in

 - tcplay is a fully-compatible TrueCrypt implementation, including
   cascaded ciphers, creating volumes, hidden volumes, protecting hidden
   volumes, mapping system volumes, etc... written from scratch.

23 months agodm_target_crypt - use per-instance mpipes, KTR
Alex Hornung [Wed, 13 Jul 2011 20:41:43 +0000]
dm_target_crypt - use per-instance mpipes, KTR

 * Add KTR support (KTR_DMCRYPT) to monitor the read and write strategy
   paths.

 * Make the mpipes for reads and writes per-instance instead of for all
   targets. This solves the issue where two instances are interdependent
   and one starves the other, which will cause a deadlock. This way each
   instance is guaranteed to have some buffers.

 * Change the maximum size of the mpipes from 0.5% of physical memory to
   0.2%, as this limit is now per-instance and an average of 2 or 3
   crypt targets sounds reasonable.

23 months agoktr.4: Document the debug.ktr.resynchronize sysctl.
Sascha Wildner [Sat, 16 Jul 2011 13:32:18 +0000]
ktr.4: Document the debug.ktr.resynchronize sysctl.

23 months agoktr.4: Do some cleanup.
Sascha Wildner [Sat, 16 Jul 2011 12:52:17 +0000]
ktr.4: Do some cleanup.

23 months agokernel: Suppress the generation of unused debug.ktr.*_enable sysctls.
Sascha Wildner [Sat, 16 Jul 2011 12:44:55 +0000]
kernel: Suppress the generation of unused debug.ktr.*_enable sysctls.

23 months agoktr.9: Add a few words about KTR_INFO_MASTER_EXTERN().
Sascha Wildner [Sat, 16 Jul 2011 11:43:45 +0000]
ktr.9: Add a few words about KTR_INFO_MASTER_EXTERN().

23 months agobinutils: Build gprof with binutils 2.21.1
John Marino [Sat, 16 Jul 2011 12:35:10 +0000]
binutils: Build gprof with binutils 2.21.1

23 months agobinutils: Update binutils 2.21 makefiles and READMEs
John Marino [Sat, 16 Jul 2011 12:30:15 +0000]
binutils: Update binutils 2.21 makefiles and READMEs

23 months agoMerge branch 'vendor/BINUTILS221'
John Marino [Sat, 16 Jul 2011 12:08:11 +0000]
Merge branch 'vendor/BINUTILS221'

Conflicts:
contrib/binutils-2.21/bfd/doc/bfdver.texi
contrib/binutils-2.21/binutils/doc/addr2line.1
contrib/binutils-2.21/binutils/doc/ar.1
contrib/binutils-2.21/binutils/doc/elfedit.1
contrib/binutils-2.21/binutils/doc/nm.1
contrib/binutils-2.21/binutils/doc/objcopy.1
contrib/binutils-2.21/binutils/doc/objdump.1
contrib/binutils-2.21/binutils/doc/ranlib.1
contrib/binutils-2.21/binutils/doc/readelf.1
contrib/binutils-2.21/binutils/doc/size.1
contrib/binutils-2.21/binutils/doc/strings.1
contrib/binutils-2.21/binutils/doc/strip.1
contrib/binutils-2.21/gas/doc/as.1
contrib/binutils-2.21/ld/ld.1

23 months agobinutils: Import binutils 2.21.1 files on vendor branch vendor/BINUTILS221
John Marino [Sat, 16 Jul 2011 11:41:57 +0000]
binutils: Import binutils 2.21.1 files on vendor branch

23 months agoktr.4: Forgot an .El
Sascha Wildner [Sat, 16 Jul 2011 11:08:23 +0000]
ktr.4: Forgot an .El

23 months agoktr.4/ktr.9: Update and fix various things in our ktr manual pages.
Sascha Wildner [Sat, 16 Jul 2011 11:03:56 +0000]
ktr.4/ktr.9: Update and fix various things in our ktr manual pages.

* Document the ktr sysctls.

* KTR_INFO()'s maskbit is not unused as the manpage claims. Add a few
  words about it.

* Remove an obsolete reference to 'ptr'.

23 months agoktr(4): Ensure that KTR_ENTRIES is 2^n and document that it has to be.
Sascha Wildner [Sat, 16 Jul 2011 09:52:08 +0000]
ktr(4): Ensure that KTR_ENTRIES is 2^n and document that it has to be.

Reported-by: alexh

23 months agogdbinit: Fix typo.
Sascha Wildner [Fri, 15 Jul 2011 16:27:56 +0000]
gdbinit: Fix typo.

23 months agokernel - Add debugging and attempt to fix vm_prefault issue
Matthew Dillon [Thu, 14 Jul 2011 01:21:10 +0000]
kernel - Add debugging and attempt to fix vm_prefault issue

* Add debugging assertions and attempt to fix a race in the vm_prefault
  code when running through backing_object chains.

* The fix may be incomplete, we really need a way to determine whether any
  chain element has changed state during the scan.  The generation count
  may be too excessive as it also covers vm_page insertions.

Reported-by: Peter Avalos <peter@theshell.com>

23 months agogdbinit: Some little simplification.
Sascha Wildner [Tue, 12 Jul 2011 19:02:07 +0000]
gdbinit: Some little simplification.

23 months agogdbinit: Add a function to show the unread portion of the kernel msgbuf.
Sascha Wildner [Tue, 12 Jul 2011 18:39:17 +0000]
gdbinit: Add a function to show the unread portion of the kernel msgbuf.

kgdb only shows this at the start via a hard coded function. This
function is handy if you want to see it again and are too lazy to
scroll up or when it's out of the scrollback.

23 months agokernel/printcpuinfo(): Sync feature bit descriptions with FreeBSD.
Sascha Wildner [Mon, 11 Jul 2011 20:18:18 +0000]
kernel/printcpuinfo(): Sync feature bit descriptions with FreeBSD.

23 months agovga(4): Remove a bogus check.
Sascha Wildner [Mon, 11 Jul 2011 17:44:46 +0000]
vga(4): Remove a bogus check.

These are the remains of a larger chunk of code that I removed in
4e193d20. It was used to determine whether a MGA, CGA, EGA or VGA
was present in the box. I left the check in at the time because I
thought, why not?

However, ASpeed's VGA BIOS (at least as found on some Tyan S8230*
series motherboards) seems to have some flaws and ends up returning
0xf instead of 0x9. This caused vga(4) initialization to fail early
in the boot and no kernel messages would go to the screen.

Since the only thing that interests us is whether a VGA is present
or not, remove this check. There are other tests later on that will
detect what we want (such as checking the CRTC's address).

Reported-by: Francois Tigeot <ftigeot@wolfpond.org>

23 months agomsk(4): Pass through mii_mediachg() return value
Sepherosa Ziehau [Mon, 11 Jul 2011 07:01:53 +0000]
msk(4): Pass through mii_mediachg() return value

Obtained-from: FreeBSD 192720

23 months agomsk(4): Align RX buffer on 8bytes for hardware w/ ram buffer
Sepherosa Ziehau [Mon, 11 Jul 2011 06:50:07 +0000]
msk(4): Align RX buffer on 8bytes for hardware w/ ram buffer

Add another hardware bug workaround for Yukon II controllers that
have hardware ram buffer. The silicon bug seem to be triggered by
pause frames if receive buffer is not aligned on FIFO word(8 bytes).
To workaround the issue, make sure to align Rx buffers on 8 bytes.
Unfortunately this workaround requires yet another Rx fixup for
strict alignment architecture machines to align IP header.

For newer hardwares that lacks ram buffer may not have this bug so
check number of available ram buffer size to see the existence of
ram buffer.

Obtained-frim: FreeBSD 183346

23 months agomsk(4): Workaround GMAC hardware hang of Yukon II on the receipt of pause frame
Sepherosa Ziehau [Mon, 11 Jul 2011 05:50:37 +0000]
msk(4): Workaround GMAC hardware hang of Yukon II on the receipt of pause frame

This bug seems to happen on certain hardware model/revision (e.g. 88E8053)
but it's not identified which hardwares are affected.  To workaround it,
inrease GMAC FIFO threshold by one FIFO word to flush received pause frames.

Obtained-from: FreeBSD 176652

23 months agoktrdump: handle %c in ktr format strings
Aggelos Economopoulos [Sun, 10 Jul 2011 21:44:04 +0000]
ktrdump: handle %c in ktr format strings

23 months agoMention the ktr format string limitations in ktr(9)
Aggelos Economopoulos [Sun, 10 Jul 2011 18:11:23 +0000]
Mention the ktr format string limitations in ktr(9)

23 months agoktrdump: fixup size modifiers for integers
Aggelos Economopoulos [Sun, 10 Jul 2011 17:49:49 +0000]
ktrdump: fixup size modifiers for integers

The 'j' modifier is actually {u,}intmax_t, not {s,}size_t. Correct that
and add support for 'z' while at it.

23 months agovfs_conf - remove dead struct
Alex Hornung [Sun, 10 Jul 2011 09:35:30 +0000]
vfs_conf - remove dead struct

23 months agovga(4): Fix the kernel build with VGA_NO_BIOS set.
Sascha Wildner [Sat, 9 Jul 2011 19:50:35 +0000]
vga(4): Fix the kernel build with VGA_NO_BIOS set.

Reported-by: Francois Tigeot <ftigeot@wolfpond.org>

23 months agokernel - Fix improper persist state in tcp
Matthew Dillon [Sat, 9 Jul 2011 18:37:05 +0000]
kernel - Fix improper persist state in tcp

* Fix another case where the persist timer could wind up getting set
  while in TCPS_SYN_RECEIVED.

23 months agoHAMMER VFS - Fix inconsistent atime updates on read()
Matthew Dillon [Sat, 9 Jul 2011 18:34:24 +0000]
HAMMER VFS - Fix inconsistent atime updates on read()

* HAMMER's optimization of the read() path to improve concurrency broke
  atime updates in the cache case.  There was a big XXX comment in the
  code about it.

* Fix the issue in a way that avoids acquiring the fs_token in the cache
  case.  If the ATIME flag is already set all we need to do is update
  ip->ino_data.atime.  If it is not set we have to get the fs_token and
  go through the normal transaction.

Reported-by: marino

23 months agokernel - Fix improper persist state in tcp
Matthew Dillon [Sat, 9 Jul 2011 06:45:22 +0000]
kernel - Fix improper persist state in tcp

* When TCP is doing a simultanious connect and sitting in the
  TCPS_SYN_RECEIVED state a degenerate 0 window (due to +SYN -ACK packets)
  case occurs where the code improperly tries to switch over from the
  retry timer to the persist timer, which panics.

  The invalid persist state was caught by code placed earlier in the
  year.

* Adjust the code to document the case and stay with the retry timer.

23 months agokernel: Fix compiling SMBFS and NETSMB into the x86_64 kernel.
Sascha Wildner [Sat, 9 Jul 2011 03:40:39 +0000]
kernel: Fix compiling SMBFS and NETSMB into the x86_64 kernel.

23 months agovkernel - enhance the pidfile option and fix memimg file scanning
Matthew Dillon [Fri, 8 Jul 2011 23:05:42 +0000]
vkernel - enhance the pidfile option and fix memimg file scanning

* Enhance the pidfile option to leave the file descriptor open and hold
  an active lock on the pidfile while the vkernel is running.

  This allows scripts to test whether the pidfile is real or stale.

* When scanning for memimg files only stop if we are unable to create
  a new file.  Skip files owned by other users instead of giving up.

* Adjust the vkernel manual page to document the pidfile feature.  Also
  document that -I can take a vknetd socket path.

23 months agoless(1): Raise WARNS to 2.
Sascha Wildner [Wed, 6 Jul 2011 20:00:11 +0000]
less(1): Raise WARNS to 2.

23 months agokernel: Move the est(4) source code to dev/powermng/est.
Sascha Wildner [Wed, 6 Jul 2011 19:58:18 +0000]
kernel: Move the est(4) source code to dev/powermng/est.

Just like the other related drivers (such as powernow(4)).

23 months agoInstall the est(4) manual page for both i386 and x86_64.
Sascha Wildner [Wed, 6 Jul 2011 19:11:36 +0000]
Install the est(4) manual page for both i386 and x86_64.

23 months agokernel: FWIW, allow the CPU_ENABLE_EST option for x86_64 kernels too.
Sascha Wildner [Wed, 6 Jul 2011 19:05:26 +0000]
kernel: FWIW, allow the CPU_ENABLE_EST option for x86_64 kernels too.

23 months agokernel: Remove obsolete comment.
Sascha Wildner [Wed, 6 Jul 2011 18:57:19 +0000]
kernel: Remove obsolete comment.

23 months agokernel: Fix buildkernel for kernel w/ 'options IPSEC', but w/o IPSEC_ESP
Thomas Nikolajsen [Wed, 6 Jul 2011 09:03:21 +0000]
kernel: Fix buildkernel for kernel w/ 'options IPSEC', but w/o IPSEC_ESP

23 months agoVKERNEL64: Sync to VKERNEL; i.e. add IPSEC, TMPFS & NULLFS
Thomas Nikolajsen [Wed, 6 Jul 2011 09:37:10 +0000]
VKERNEL64: Sync to VKERNEL; i.e. add IPSEC, TMPFS & NULLFS

23 months agovkernel64: Sync to vkernel modulo pc64
Thomas Nikolajsen [Wed, 6 Jul 2011 09:10:54 +0000]
vkernel64: Sync to vkernel modulo pc64

I.e. add conf/files files present in both platform/vkernel and platform/pc64.

This adds support for IPSEC

23 months agopadlock(4): Fix build
Thomas Nikolajsen [Wed, 6 Jul 2011 09:23:30 +0000]
padlock(4): Fix build

23 months agobce(4): Fix build
Thomas Nikolajsen [Wed, 6 Jul 2011 09:21:56 +0000]
bce(4): Fix build

23 months agocrypto(4,9) - update with new algorithms
Alex Hornung [Mon, 4 Jul 2011 18:18:08 +0000]
crypto(4,9) - update with new algorithms

23 months agounix(4): Mention SOCK_SEQPACKET
Sepherosa Ziehau [Mon, 4 Jul 2011 07:32:43 +0000]
unix(4): Mention SOCK_SEQPACKET

Reviewed-by: swildner@

23 months agodm - change remove_all traversal direction
Alex Hornung [Sun, 3 Jul 2011 15:33:25 +0000]
dm - change remove_all traversal direction

 * Make remove_all iterate backwards, so that devices that depend on
   other dm volumes created earlier are removed first; otherwise
   remove_all stops at the first dm volume on which another one depends.

23 months agokernel: Little style(9) issue.
Sascha Wildner [Sun, 3 Jul 2011 15:08:54 +0000]
kernel: Little style(9) issue.

23 months agobce(4): Add more definition for the RX frame header
Sepherosa Ziehau [Sun, 3 Jul 2011 08:10:07 +0000]
bce(4): Add more definition for the RX frame header

Obtained-from: FreeBSD 218423

23 months agobce(4): Update firmware to 6.0.x
Sepherosa Ziehau [Sun, 3 Jul 2011 08:08:53 +0000]
bce(4): Update firmware to 6.0.x

Obtained-from: FreeBSD 218529

23 months agodevfs - replace subname* with related* functions
Alex Hornung [Sun, 3 Jul 2011 00:16:43 +0000]
devfs - replace subname* with related* functions

 * Completely remove the subname* cruft that removed devices based on
   whether they started with a given string. This was used to remove,
   for example, all slices and partitions whenever a disk was removed.
   The issue with it was that it was solely based on name, so if one
   created for example two (unrelated) dm volumes, called "foo1" and
   "foo1234", then removing "foo1" would leave "foo1234" dangling.

 * Instead we introduce the concept of devices (cdevs) having parents:
   now the slices have the disk as their parent, and the partitions have
   the slice as their parents. The related* functions in devfs
   recursively deal with these relationships given a parent node.

 * This fix will be MFC'ed in a week or two if no issues pop up.

23 months agoSort the file list in /usr/share/examples/etc.
Sascha Wildner [Sun, 3 Jul 2011 02:38:59 +0000]
Sort the file list in /usr/share/examples/etc.

23 months agoUpdate the README in /usr/share/examples/etc.
Sascha Wildner [Sun, 3 Jul 2011 02:18:51 +0000]
Update the README in /usr/share/examples/etc.

23 months agoRemove obsolete file.
Sascha Wildner [Sun, 3 Jul 2011 01:57:52 +0000]
Remove obsolete file.

23 months agoMerge branch 'vendor/LESS'
Peter Avalos [Sat, 2 Jul 2011 22:50:40 +0000]
Merge branch 'vendor/LESS'

23 months agoImport less-444.
Peter Avalos [Sat, 2 Jul 2011 22:49:01 +0000]
Import less-444.

Fix ungetc bug; remove vestiges of obsolete -l option.

23 months agomake upgrade: Remove various old files that were forgotten over the years.
Sascha Wildner [Sat, 2 Jul 2011 20:49:10 +0000]
make upgrade: Remove various old files that were forgotten over the years.

23 months agodm_target_crypt - Add twofish & serpent support
Alex Hornung [Sat, 2 Jul 2011 14:54:55 +0000]
dm_target_crypt - Add twofish & serpent support

 * Adds both CBC and XTS mode support for both Twofish and Serpent

23 months agoopencrypto - Add serpent & twofish XTS modes
Alex Hornung [Sat, 2 Jul 2011 14:17:32 +0000]
opencrypto - Add serpent & twofish XTS modes

 * also minor cleanup

23 months agotests - minor cosmetic fix
Alex Hornung [Sat, 2 Jul 2011 12:26:42 +0000]
tests - minor cosmetic fix

23 months agotests - add serpent via cryptodev tests
Alex Hornung [Sat, 2 Jul 2011 12:18:37 +0000]
tests - add serpent via cryptodev tests