dragonfly.git
12 years agoe1000phy: Add support for more Marvell PHYs
Sepherosa Ziehau [Fri, 5 Aug 2011 02:04:58 +0000 (10:04 +0800)]
e1000phy: Add support for more Marvell PHYs

Obtained-from: FreeBSD @211046 +223688

12 years agomiidevs.h: regen
Sepherosa Ziehau [Fri, 5 Aug 2011 02:04:41 +0000 (10:04 +0800)]
miidevs.h: regen

12 years agomii: Add more PHY ids for Marvell PHY chips
Sepherosa Ziehau [Fri, 5 Aug 2011 02:04:09 +0000 (10:04 +0800)]
mii: Add more PHY ids for Marvell PHY chips

12 years agoRemove forth and other unused bits from the loader.
François Tigeot [Thu, 4 Aug 2011 14:53:47 +0000 (16:53 +0200)]
Remove forth and other unused bits from the loader.

More precisely openfirmware, ia64, powerpc, and sparc64 specific code.

12 years agohammer - Add memory use limit option for dedup runs
Matthew Dillon [Thu, 4 Aug 2011 04:57:48 +0000 (21:57 -0700)]
hammer - Add memory use limit option for dedup runs

* Add '-m memlimit' (default 1G) to limit memory use during a dedup run.
  If the limit is reached hammer will reduce the range of CRCs in the scan
  and will perform multiple passes as needed to dedup the entire filesystem.

* VerboseOpt (-v) will be verbose about crc-range truncation and multiple
  passes.

12 years agohammer - Add simple I/O optimization, collect stats on new deduplications
Matthew Dillon [Thu, 4 Aug 2011 02:41:22 +0000 (19:41 -0700)]
hammer - Add simple I/O optimization, collect stats on new deduplications

* Add a simple I/O optimization.  When dealing with CRC collisions scan
  the SHA sub-tree looking for the data_offset/data_len match, allowing
  us to avoid unnecessary I/O reads.

  This effects data which has already been de-duplicated, so it will improve
  dedup rescan times on the portion that has already been dedupped.

* Collect statistics on NEW deduplications during the pass and print them
  out in the final stats as well as in the ^T stats.

12 years agohammer - Collect record statistics, implement ^T and ^C
Matthew Dillon [Thu, 4 Aug 2011 01:42:38 +0000 (18:42 -0700)]
hammer - Collect record statistics, implement ^T and ^C

* Add a check for ^C

* Add a check for ^T and print statistics.

* When doing the dedup for real run a pre-pass on the b-tree to count the
  number of data records present so the ^T feature can print out progress.

  This also has the side effect of doing locality-of-reference disk
  accesses to allow the b-tree data blocks to be cached by the kernel
  (or swapcache) before doing the real pass which will insert random data
  block reads when verifying duplicates.  Due to the efficiencies both passes
  should run faster than the original combined pass, or at least not take
  too much longer.

12 years agoaesni(4): Remove unused variable.
Sascha Wildner [Tue, 2 Aug 2011 15:15:29 +0000 (17:15 +0200)]
aesni(4): Remove unused variable.

12 years agomsk(4): Recognize 88E8402
Sepherosa Ziehau [Tue, 2 Aug 2011 14:09:23 +0000 (22:09 +0800)]
msk(4): Recognize 88E8402

Obtained-from; FreeBSD 198475

12 years agomsk(4): Remove "FIFO overrun" debug logging, which is not critical
Sepherosa Ziehau [Tue, 2 Aug 2011 14:06:38 +0000 (22:06 +0800)]
msk(4): Remove "FIFO overrun" debug logging, which is not critical

Obtained-from: FreeBSD 198997

12 years agomsk(4): Yukon XL can't flush FIFO
Sepherosa Ziehau [Tue, 2 Aug 2011 14:04:22 +0000 (22:04 +0800)]
msk(4): Yukon XL can't flush FIFO

Obtained-from: FreeBSD 197591

12 years agoaesni(4): Properly align the context memory using out kmalloc(9) feature
Sepherosa Ziehau [Tue, 2 Aug 2011 04:11:12 +0000 (12:11 +0800)]
aesni(4): Properly align the context memory using out kmalloc(9) feature

DragonFly's kmalloc(9) will return 2^n aligned memory if the allocation
size is 2^n; use this feature instead of using a local hack.

While I'm here, release the spinlock and call kmalloc(9) w/ M_WAITOK;
the check/free race is absolutely acceptable here, but the failure
of kmalloc(9) w/ M_NOWAIT is probably not accetable on the init path.

12 years agomsk(4): Add Yukon Extreme support
Sepherosa Ziehau [Mon, 1 Aug 2011 11:45:56 +0000 (19:45 +0800)]
msk(4): Add Yukon Extreme support

Obtained-from: FreeBSD 193293 193294 193298 193299

12 years agoadd MLINK for _updwtmpx
Alex Hornung [Sun, 31 Jul 2011 15:03:28 +0000 (16:03 +0100)]
add MLINK for _updwtmpx

12 years agoupdwtmpx - update prototype to be void, but ...
Alex Hornung [Sun, 31 Jul 2011 06:00:42 +0000 (07:00 +0100)]
updwtmpx - update prototype to be void, but ...

 * also expose the int-returning prototype as _updwtmpx, only for internal
   DragonFly use. It seems as if most programs out there assume that
   updwtmpx returns void.

 * This should fix heirloom in pkgsrc

12 years agopthread - adjust visibility to 'default'
Alex Hornung [Sun, 31 Jul 2011 05:52:45 +0000 (06:52 +0100)]
pthread - adjust visibility to 'default'

 * This fixes pkgsrc build issues that think the symbols are hidden.

 * It's not the most elegant solution, and it would be nicer if this
   could somehow be merged into BEGIN_DECLS/END_DECLS, but I couldn't
   find a way to do that.

 * See http://gcc.gnu.org/wiki/Visibility for more details

12 years agomsk(4): 88E80{35,36,37,38} are 100baseT only
Sepherosa Ziehau [Sun, 31 Jul 2011 09:40:44 +0000 (17:40 +0800)]
msk(4): 88E80{35,36,37,38} are 100baseT only

Obtained-from: FreeBSD 192742

12 years agomsk(4): Add Yukon FE+ support
Sepherosa Ziehau [Sun, 31 Jul 2011 09:31:36 +0000 (17:31 +0800)]
msk(4): Add Yukon FE+ support

Obtained-from: FreeBSD 192734 192735 192736

12 years agomsk(4): Explicitly reset GMAC Controls and clear GM_GP_CTRL
Sepherosa Ziehau [Sun, 31 Jul 2011 07:22:32 +0000 (15:22 +0800)]
msk(4): Explicitly reset GMAC Controls and clear GM_GP_CTRL

Obtained-from: FreeBSD 192731

12 years agomsk(4): Disable HW WOL for Yukon EC Ultra
Sepherosa Ziehau [Sun, 31 Jul 2011 07:17:47 +0000 (15:17 +0800)]
msk(4): Disable HW WOL for Yukon EC Ultra

Obtained-from: FreeBSD 192728

12 years agomsk(4): If link is down, don't disable RX/TX MACs if they are not enabled
Sepherosa Ziehau [Sun, 31 Jul 2011 06:53:23 +0000 (14:53 +0800)]
msk(4): If link is down, don't disable RX/TX MACs if they are not enabled

Obtained-from: FreeBSD 192727

12 years agomsk(4): Fix link status detection
Sepherosa Ziehau [Sun, 31 Jul 2011 06:50:06 +0000 (14:50 +0800)]
msk(4): Fix link status detection

Obtained-from: FreeBSD 192727

12 years agomsk(4): Add flag to mark the controller is 100baseTX only
Sepherosa Ziehau [Sun, 31 Jul 2011 06:33:17 +0000 (14:33 +0800)]
msk(4): Add flag to mark the controller is 100baseTX only

Obtained-from: FreeBSD 192723

12 years agomsk(4): Unify PROMISC and ALLMULTI settings
Sepherosa Ziehau [Sun, 31 Jul 2011 06:22:06 +0000 (14:22 +0800)]
msk(4): Unify PROMISC and ALLMULTI settings

Obtained-from: FreeBSD 190314

12 years agocsu x86_64 - properly align stack
Alex Hornung [Sat, 30 Jul 2011 08:04:14 +0000 (09:04 +0100)]
csu x86_64 - properly align stack

 * Properly align the stack for the _init and _fini function calls
   as expected by the x86_64 ABI and gcc.

 * This solves a bus error (unaligned MOVDQA) with pixman and some
   other stuff using SSE.

12 years agodefaults/rc.conf - Add jail_devfs_enable as a known option.
Antonio Huete Jimenez [Fri, 29 Jul 2011 20:09:38 +0000 (22:09 +0200)]
defaults/rc.conf - Add jail_devfs_enable as a known option.

12 years agomanpages: Fix some typos.
Sascha Wildner [Fri, 29 Jul 2011 14:08:04 +0000 (16:08 +0200)]
manpages: Fix some typos.

12 years agovkernel - cpu_disable_intr adjustments
Matthew Dillon [Fri, 29 Jul 2011 08:32:22 +0000 (01:32 -0700)]
vkernel - cpu_disable_intr adjustments

* cpu_disable_intr() also disables IPI interrupts now.

12 years agokernel - Fix rare IPIQ freezes
Matthew Dillon [Fri, 29 Jul 2011 08:25:46 +0000 (01:25 -0700)]
kernel - Fix rare IPIQ freezes

* Ensure that an IPI interrupt is sent went waiting for an IPIQ
  to drain.  The IPIQ can be pushed up by passive IPIs and not
  necessarily have a signal pending on the target cpu, so we
  have to put the check in our drain loop rather than outside
  the loop.

* Add a cpu_pause() to reduce power use for the IPIQ drain case.

* Normalize the use of gd_intr_nesting_level and clean up the
  code syntax for the ipiq_optimized case.

* Remove the previous temporary IPI interrupt signaling fix, it
  was incomplete.

* Fix a missing crit_exit() in the ENOENT case for
  lwkt_send_ipiq3_nowait().

* Track cpu's which are in the middle of ipiq processing and
  assert that a cpu is not in an IPIQ processing loop when
  switching between threads.

* Normalize the use of ip->ip_npoll in the IPIQ code.  This
  field is used to avoid unnecessary IPI interrupts.

12 years agovkernel - do not set SA_NODEFER for SIGIO and SIGUSR1
Matthew Dillon [Fri, 29 Jul 2011 08:21:59 +0000 (01:21 -0700)]
vkernel - do not set SA_NODEFER for SIGIO and SIGUSR1

* Do not set SA_NODEFER for SIGIO and SIGUSR1 in vkernels.  This fixes a
  stack overflow which can occur under heavy I/O or IPI loads.

12 years agokernel - Fix signal delivery races
Matthew Dillon [Fri, 29 Jul 2011 08:19:29 +0000 (01:19 -0700)]
kernel - Fix signal delivery races

* The send side was using p->p_token but the processing code from trap
  was still using the mp_lock.  Fix the trap processing code to use
  p->p_token.

* This fixes several nasty races that can cause signals to be lost and
  vkernels to freeze, and possibly other programs which depend on signals
  between threads.

12 years agokernel - Minor enhancement to ddb's 'ps'
Matthew Dillon [Fri, 29 Jul 2011 08:14:41 +0000 (01:14 -0700)]
kernel - Minor enhancement to ddb's 'ps'

* Add a pointer value in hex for wchan field to DDB's ps output.

12 years agokernel - Fix a small race in the umtx code
Matthew Dillon [Fri, 29 Jul 2011 08:12:08 +0000 (01:12 -0700)]
kernel - Fix a small race in the umtx code

* Add an additional check after registering the vm_page action before
  actually going to sleep, closing a potential vm_token race.

12 years agokernel - remove debugging print_backtrace() when a vkernel is killed
Matthew Dillon [Thu, 28 Jul 2011 23:20:33 +0000 (16:20 -0700)]
kernel - remove debugging print_backtrace() when a vkernel is killed

* In certain cases a debugging print_backtrace() occurs when a vkernel is
  killed while one or more of its cpu threads is active.  This can crash
  64-bit systems.

* Remove the call for now.

12 years agovkernel - Add SIGINFO support (experimental)
Matthew Dillon [Thu, 28 Jul 2011 23:19:29 +0000 (16:19 -0700)]
vkernel - Add SIGINFO support (experimental)

* Display the lwp id and the pc and sp of the thread.

12 years agovkernel - Fix lockup with [v]kernel due to missing ipiq signal
Matthew Dillon [Thu, 28 Jul 2011 23:16:29 +0000 (16:16 -0700)]
vkernel - Fix lockup with [v]kernel due to missing ipiq signal

* If the target ipiq has nothing but passively queued entries the target
  cpu will normally just process the ipi's on the next clock interrupt.

  However, if the originating cpu is forced to live-loop waiting for the
  target to the drain the target may not be aware that it needs to drain
  ASAP.

* The fix is for the originating cpu to ensure that an ipi interrupt is
  sent to the target cpu before live looping.

* This appears to primarily effect vkernels.

Reported-by: ftigeot, tuxillo
12 years agotcplay(8): Fix SYNOPSIS & sync to usage()
Thomas Nikolajsen [Thu, 28 Jul 2011 21:19:50 +0000 (23:19 +0200)]
tcplay(8): Fix SYNOPSIS & sync to usage()
Also fix typo in getopt string.

12 years agomanpages: Add some missing includes.
Sascha Wildner [Thu, 28 Jul 2011 18:30:04 +0000 (20:30 +0200)]
manpages: Add some missing includes.

12 years agoprop_dictionary.3: Reapply 4bba5a94fad7a40a25b58fff23a76b3c0bee80ee.
Sascha Wildner [Thu, 28 Jul 2011 17:10:17 +0000 (19:10 +0200)]
prop_dictionary.3: Reapply 4bba5a94fad7a40a25b58fff23a76b3c0bee80ee.

12 years agomanpages: Some little cleanup.
Sascha Wildner [Thu, 28 Jul 2011 17:00:51 +0000 (19:00 +0200)]
manpages: Some little cleanup.

12 years agolibprop manpages: Add missing LIBRARY sections (some added again).
Sascha Wildner [Wed, 27 Jul 2011 10:58:27 +0000 (12:58 +0200)]
libprop manpages: Add missing LIBRARY sections (some added again).

12 years agokernel: Remove no longer used kernel option LOUTB.
Sascha Wildner [Wed, 27 Jul 2011 10:54:33 +0000 (12:54 +0200)]
kernel: Remove no longer used kernel option LOUTB.

12 years agokernel - Fix panic when the ccd device is used with swapcache
Matthew Dillon [Wed, 27 Jul 2011 03:37:54 +0000 (20:37 -0700)]
kernel - Fix panic when the ccd device is used with swapcache

* The CCD device does not populate bp->b_xio.xio_npages or xio_pages[].
  A quirk in the xio test in vn_cache_strategy() could result in a null
  pointer dereference panic.

* Fix the test to avoid the panic.  Note that swapcache does not currently
  work well with the CCD device for stripe-crossing I/Os due to the way
  CCD breaks the I/O up.  It should no longer panic, though.

12 years agokernel - Fix ENOBUFS related panic in tcp_output()
Matthew Dillon [Wed, 27 Jul 2011 03:36:50 +0000 (20:36 -0700)]
kernel - Fix ENOBUFS related panic in tcp_output()

* ENOBUFS in tcp_output() during connection initiation was trying to
  use the persist timer to retransmit the packet lost due to lack
  of mbufs, which will panic.  Use the retransmission timer instead.

Reported-by: Peter Avalos <peter@theshell.com>
12 years agokernel - Adjust mbuf cached free object retention
Matthew Dillon [Wed, 27 Jul 2011 03:34:36 +0000 (20:34 -0700)]
kernel - Adjust mbuf cached free object retention

* Adjust the cache retention in the objcache_create() calls the mbuf
  subsystem makes to reduce burst ENOBUF failures.  Previously the
  main mbufphdr cache only retained ~150 or so free mbufs.  Now it
  retains up to 1/4 the limit.

Reported-by: Peter Avalos <peter@theshell.com>
12 years agotcplay - update to version 0.9
Alex Hornung [Tue, 26 Jul 2011 14:13:18 +0000 (15:13 +0100)]
tcplay - update to version 0.9

new stuff of relevance to DragonFly:
 * Backup header is now written on volume creation.

 * custom humanize function that is more flexible in what it understands
   and produces nicer results for tcplay, as well as being portable.

 * support for non-512 byte sector size

 * better memory freeing. Instead of just doing lazy freeing at end of
   API operations or execution, free up as much as possible after each
   individual operation.

 * Bug fix: adjust volume size so backup header is never overwritten.

12 years agoAdd the lgue(4) driver for USB CDC ethernet.
Sascha Wildner [Mon, 25 Jul 2011 20:55:15 +0000 (22:55 +0200)]
Add the lgue(4) driver for USB CDC ethernet.

Submitted-by: Yellow Rabbit <yrabbit@sdf.lonestar.org>
12 years agousr.sbin/802_11: Raise WARNS to 1.
Sascha Wildner [Mon, 25 Jul 2011 20:15:51 +0000 (22:15 +0200)]
usr.sbin/802_11: Raise WARNS to 1.

12 years agoMakefile_upgrade.inc: More typo fixes.
Sascha Wildner [Mon, 25 Jul 2011 14:06:24 +0000 (16:06 +0200)]
Makefile_upgrade.inc: More typo fixes.

12 years agoMakefile_upgrade.inc: Fix typos and add two more gprof related files.
Sascha Wildner [Mon, 25 Jul 2011 13:35:46 +0000 (15:35 +0200)]
Makefile_upgrade.inc: Fix typos and add two more gprof related files.

12 years agortld-elf - restore old tls/tcb code
Alex Hornung [Sun, 24 Jul 2011 13:45:50 +0000 (14:45 +0100)]
rtld-elf - restore old tls/tcb code

 * This was ported incorrectly from FreBSD; the dtv in the TCB needs to
   be updated properly.

 * This fixes a fairly tricky issue that appears in threaded programs
   using dlopen() and family, such as php and Java. It presented itself
   as a strcmp segfault in object_match_name() due to a messed up STAILQ
   ->next pointer. The pointer was being messed up by the TLS code.

Reported-by: Peter Avalos, Antonio Huete, Francois Tigeot
12 years agoethernet: Allow netisr handler to run directly
Sepherosa Ziehau [Sun, 24 Jul 2011 11:50:08 +0000 (19:50 +0800)]
ethernet: Allow netisr handler to run directly

If the packet has already reach the correct netisr, we could simply call
the netisr handler instead of requeue the packet.

12 years agoethernet: Add ether_demux(), which will send the packet to the correct netisr
Sepherosa Ziehau [Sun, 24 Jul 2011 07:24:34 +0000 (15:24 +0800)]
ethernet: Add ether_demux(), which will send the packet to the correct netisr

It is intended to be used by the function which does not know whether
the current thread is the correct netisr for the ethernet packet or not.

Currently only ng_ether uses this function, which incorrectly called
ether_demux_oncpu().  The other two callers of ether_demux_oncpu() are
already on the correct netisr.

This paves the way to avoid requeuing the packet to the current netisr
in the ether_demux_oncpu().

12 years agoethernet: Factor out ether_characterize()
Sepherosa Ziehau [Sun, 24 Jul 2011 06:48:25 +0000 (14:48 +0800)]
ethernet: Factor out ether_characterize()

12 years agoethernet: Change some stats type to u_long
Sepherosa Ziehau [Sun, 24 Jul 2011 05:44:14 +0000 (13:44 +0800)]
ethernet: Change some stats type to u_long

12 years agokernel -- bpf: Clear bpf_filter mem[] to prevent kernel stack leak.
Venkatesh Srinivas [Sat, 23 Jul 2011 02:20:56 +0000 (19:20 -0700)]
kernel -- bpf: Clear bpf_filter mem[] to prevent kernel stack leak.

Submitted by: Guy Harris <guy@alum.mit.edu>

12 years agogdb(1): Fix the dreaded "xml-builtin.c already exists" quickworld error.
Sascha Wildner [Fri, 22 Jul 2011 16:19:25 +0000 (18:19 +0200)]
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).

12 years agoHAMMER VFS - Add code to reduce frontend vs flusher locking conflicts
Matthew Dillon [Fri, 22 Jul 2011 15:55:06 +0000 (08:55 -0700)]
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.

12 years agonetisr: Add hashcheck method to check and adjust hw provided hash
Sepherosa Ziehau [Fri, 22 Jul 2011 10:29:11 +0000 (18:29 +0800)]
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

12 years agoioapic: Disable unused GSI instead of leaving it in unknown state
Sepherosa Ziehau [Fri, 22 Jul 2011 02:37:00 +0000 (10:37 +0800)]
ioapic: Disable unused GSI instead of leaving it in unknown state

12 years 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 (09:54 +0800)]
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>
12 years agoBSD gprof/4: Remove old gprof versions from code base
John Marino [Thu, 21 Jul 2011 19:07:03 +0000 (21:07 +0200)]
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.

12 years agogprof: Replace BSD gprof and gprof4 with gnu gprof
John Marino [Thu, 21 Jul 2011 18:01:15 +0000 (20:01 +0200)]
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.

12 years agokernel: Remove some old ISA only drivers.
Sascha Wildner [Thu, 21 Jul 2011 08:19:04 +0000 (10:19 +0200)]
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)

12 years agogold: Fix hardcoded library search path
John Marino [Wed, 20 Jul 2011 22:26:13 +0000 (00:26 +0200)]
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.

12 years agolibdm - add dummy dm_udev_set_sync_support()
Alex Hornung [Wed, 20 Jul 2011 20:11:11 +0000 (21:11 +0100)]
libdm - add dummy dm_udev_set_sync_support()

12 years agoif_bge: Support more chipsets
Michael Neumann [Mon, 18 Jul 2011 23:00:14 +0000 (01:00 +0200)]
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.

12 years agokernel - Fix several IPV6 issues
Matthew Dillon [Mon, 18 Jul 2011 22:02:26 +0000 (15:02 -0700)]
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>
12 years agokernel - Additional fixes for vm_prefault issue
Matthew Dillon [Mon, 18 Jul 2011 06:45:11 +0000 (23:45 -0700)]
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>
12 years agocryptsetup/dmsetup/lvm: Fix LDADD/DPADD.
Sascha Wildner [Mon, 18 Jul 2011 03:55:09 +0000 (05:55 +0200)]
cryptsetup/dmsetup/lvm: Fix LDADD/DPADD.

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

12 years agoAdd missing DPADD's for library dependencies.
Sascha Wildner [Sun, 17 Jul 2011 11:57:22 +0000 (13:57 +0200)]
Add missing DPADD's for library dependencies.

12 years agobsd.libnames.mk: Add libkiconv, too.
Sascha Wildner [Sun, 17 Jul 2011 11:46:38 +0000 (13:46 +0200)]
bsd.libnames.mk: Add libkiconv, too.

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

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

12 years agobsd.libnames.mk: Fix thread lib path.
Sascha Wildner [Sun, 17 Jul 2011 11:18:35 +0000 (13:18 +0200)]
bsd.libnames.mk: Fix thread lib path.

12 years agoudevd(8): Fix library dependencies.
Sascha Wildner [Sun, 17 Jul 2011 11:14:17 +0000 (13:14 +0200)]
udevd(8): Fix library dependencies.

12 years agoktr.4: Document KTR_DMCRYPT.
Sascha Wildner [Sun, 17 Jul 2011 10:45:41 +0000 (12:45 +0200)]
ktr.4: Document KTR_DMCRYPT.

12 years agooptions/LINT: Sort the KTR options.
Sascha Wildner [Sun, 17 Jul 2011 10:45:26 +0000 (12:45 +0200)]
options/LINT: Sort the KTR options.

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

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

Previously, -pg compiled programs would segfault.

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

12 years agoupdate proplib
Alex Hornung [Sat, 16 Jul 2011 08:34:41 +0000 (09:34 +0100)]
update proplib

 * There are several bugfixes and many cosmetic fixes.

Obtained-from: NetBSD

12 years agocryptsetup - switch to libdm
Alex Hornung [Sat, 16 Jul 2011 13:59:42 +0000 (14:59 +0100)]
cryptsetup - switch to libdm

12 years agocryptdisks - switch over to libdm
Alex Hornung [Sat, 16 Jul 2011 13:46:32 +0000 (14:46 +0100)]
cryptdisks - switch over to libdm

12 years agotcplay - switch to using libdm
Alex Hornung [Sat, 16 Jul 2011 11:02:52 +0000 (12:02 +0100)]
tcplay - switch to using libdm

12 years agobsd.libnames.mk - add libdm
Alex Hornung [Sat, 16 Jul 2011 07:30:34 +0000 (08:30 +0100)]
bsd.libnames.mk - add libdm

12 years agomdoc.local - add libdm
Alex Hornung [Sat, 16 Jul 2011 07:29:33 +0000 (08:29 +0100)]
mdoc.local - add libdm

12 years agolibdm - bind into build
Alex Hornung [Fri, 15 Jul 2011 22:09:11 +0000 (23:09 +0100)]
libdm - bind into build

12 years agolibdm - a simple BSD-licensed libdevmapper
Alex Hornung [Fri, 15 Jul 2011 09:05:45 +0000 (10:05 +0100)]
libdm - a simple BSD-licensed libdevmapper

12 years agodm - sync_devs() on creation, add new dict entries
Alex Hornung [Fri, 15 Jul 2011 21:59:17 +0000 (22:59 +0100)]
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 :)

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

12 years agodm - get rid of excessive locking and redundancy
Alex Hornung [Thu, 14 Jul 2011 18:43:15 +0000 (19:43 +0100)]
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.

12 years agoinitrd - add tcplay root mount support
Alex Hornung [Tue, 12 Jul 2011 17:13:05 +0000 (18:13 +0100)]
initrd - add tcplay root mount support

12 years agobsd.libnames.mk - add libtcplay
Alex Hornung [Tue, 12 Jul 2011 15:48:52 +0000 (16:48 +0100)]
bsd.libnames.mk - add libtcplay

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

12 years agomdoc.local - add libtcplay
Alex Hornung [Tue, 12 Jul 2011 13:44:23 +0000 (14:44 +0100)]
mdoc.local - add libtcplay

12 years agotcplay - bring in
Alex Hornung [Tue, 12 Jul 2011 14:09:32 +0000 (15:09 +0100)]
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.

12 years agodm_target_crypt - use per-instance mpipes, KTR
Alex Hornung [Wed, 13 Jul 2011 20:41:43 +0000 (21:41 +0100)]
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.

12 years agoktr.4: Document the debug.ktr.resynchronize sysctl.
Sascha Wildner [Sat, 16 Jul 2011 13:32:18 +0000 (15:32 +0200)]
ktr.4: Document the debug.ktr.resynchronize sysctl.