12 years agoRegenerate the pciconf(8) database from the following files:
Sascha Wildner [Sat, 8 Mar 2008 20:24:22 +0000 (20:24 +0000)]
Regenerate the pciconf(8) database from the following files:

Hart:    Jan 22, 2008 (version 671)
Boemler: Mar  8, 2008
Mares:   Mar  8, 2008

12 years agoAdd code to merge the pci.ids list from http://pciids.sourceforge.net/
Sascha Wildner [Sat, 8 Mar 2008 20:17:38 +0000 (20:17 +0000)]
Add code to merge the pci.ids list from pciids.sourceforge.net/
which is maintained by Martin Mares. Entries from this list are used
if they are not in the Hart and Boemler lists.

The new -x option can be used to specify the pathname to the Mares list.

12 years agoMove README to share/zoneinfo.
Sascha Wildner [Sat, 8 Mar 2008 11:55:59 +0000 (11:55 +0000)]
Move README to share/zoneinfo.

12 years agoShut up gcc warning (if ifac is not NULL, ifa must be initialized in this case)
Sepherosa Ziehau [Sat, 8 Mar 2008 11:16:31 +0000 (11:16 +0000)]
Shut up gcc warning (if ifac is not NULL, ifa must be initialized in this case)

Noticed-by: swildner@
12 years agoSync zoneinfo database with tzdata2008a from elsie.
Sascha Wildner [Sat, 8 Mar 2008 11:16:10 +0000 (11:16 +0000)]
Sync zoneinfo database with tzdata2008a from elsie.

leapseconds:    8.4  -> 8.5
southamerica:   8.15 -> 8.18

From Arthur David Olson's comments:

* Document no leap second at the end of December 2007

* Drought-induced DST extension in Chile.

12 years agoDon't duplicate code of ether_ioctl()
Sepherosa Ziehau [Sat, 8 Mar 2008 07:59:19 +0000 (07:59 +0000)]
Don't duplicate code of ether_ioctl()

12 years agoCleanp leftover of the ifnet.if_addrhead parallelizing.
Sepherosa Ziehau [Sat, 8 Mar 2008 07:50:49 +0000 (07:50 +0000)]
Cleanp leftover of the ifnet.if_addrhead parallelizing.

Reported-by: daily ISO building
12 years ago- In command RX intr, if the command number returned is 0, then hardware
Sepherosa Ziehau [Sat, 8 Mar 2008 06:43:52 +0000 (06:43 +0000)]
- In command RX intr, if the command number returned is 0, then hardware
  will not work properly afterwards.  This usually happens after the whole
  box is power off and on.  Reinitializing the hardware in a tight loop
  several times does not work in this case.  If this happens, set a callout
  to reinitialize the hardware 1 seconds later.
- Stop various callouts in iwl2100_{init,stop}() before dispatching the
  real work out to device thread.
- Always stop all callouts, if IFF_UP is turned off in ifnet.if_flags.
- Add a flag to mark that the device is detaching, mainly to avoid possible
  stop/(re)init/restart ordering problem in device thread during detaching.

12 years agoInstead of copying packages into the ISO root, use mount_null.
Sascha Wildner [Fri, 7 Mar 2008 20:29:24 +0000 (20:29 +0000)]
Instead of copying packages into the ISO root, use mount_null.

12 years agoParallelize ifnet.if_addrhead accessing by duplicating the list itself
Sepherosa Ziehau [Fri, 7 Mar 2008 11:34:21 +0000 (11:34 +0000)]
Parallelize ifnet.if_addrhead accessing by duplicating the list itself
on each CPU, each list element points to ifaddr:
- Add SI_SUB_PRE_DRIVERS before SI_SUB_DRIVERS, so action could be taken
  before drivers' initialization (mainly before NIC driver's if_attach())
- Move netisr_init() to the FIRST of SI_SUB_PRE_DRIVERS, so that
  netmsg_service_port_init() could be called in earlier stage of system
- Create one thread on each CPU to propagate changes to ifnet.if_addrhead.
  Their thread ports are registered with netmsg_service_port_init() for
  port syncing operation.
- Change to ifnet.if_addrhead begins in netisr0, i.e. serial of changes
  to ifnet.if_addrhead are serialized by netisr0
- ifaddr's refcnt is moved to its list elements, i.e. per-CPU refcnt.
  They are initialized to 1 instead of 0.
- A magic field is added to ifaddr list element to make sure that IFAREF
  and IFAFREE are called on valid ifaddr list element.  This field is
  initialized to a magic value and is wiped out once the list element's
  refcnt drops to 0
- To close the gap between testing and freeing, once the ifaddr list
  element's refcnt drops to 0, ifa_portfn(0) (a thread's port on CPU0) is
  poked to check whether ifaddr is referenced on other CPUs, if not, then
  ifaddr is freed on ifa_portfn(0)

Reviewed-by: dillon@ (earlier version)
12 years agoAdd SCSI READ CAPACITY support to camcontrol.
Peter Avalos [Fri, 7 Mar 2008 08:44:24 +0000 (08:44 +0000)]
Add SCSI READ CAPACITY support to camcontrol.

Obtained-from: FreeBSD

12 years agoTesting a commit per man page
Dave Hayes [Fri, 7 Mar 2008 07:49:47 +0000 (07:49 +0000)]
Testing a commit per man page

12 years agoAdvertise to CAM the ability of 790X controllers to negotiate information
Peter Avalos [Thu, 6 Mar 2008 20:07:51 +0000 (20:07 +0000)]
Advertise to CAM the ability of 790X controllers to negotiate information
unit transfers (packetized/U320 protocol) and QAS.

Obtained-from: FreeBSD

12 years agoRemove superfluous setting of the transport_version field of our
Peter Avalos [Thu, 6 Mar 2008 20:04:46 +0000 (20:04 +0000)]
Remove superfluous setting of the transport_version field of our
path inquiry response.

Obtained-from: FreeBSD

12 years agoOnly print sense data diagnostics if debugging is enabled with the
Peter Avalos [Thu, 6 Mar 2008 20:01:29 +0000 (20:01 +0000)]
Only print sense data diagnostics if debugging is enabled with the

Obtained-from: FreeBSD

12 years agoMake sure stack variable is cleared.
Sepherosa Ziehau [Thu, 6 Mar 2008 11:51:23 +0000 (11:51 +0000)]
Make sure stack variable is cleared.

Noticed-by: swildner@
12 years ago* Add MLINK for serialize_sleep()
Sascha Wildner [Wed, 5 Mar 2008 17:20:23 +0000 (17:20 +0000)]
* Add MLINK for serialize_sleep()

* Add reference to serialize_sleep(9) to serializer(9)

* Add <sys/serialize.h> to serialize_sleep(9) for lwkt_serialize

12 years agoRewrite driver for Intel 2100BG:
Sepherosa Ziehau [Wed, 5 Mar 2008 14:10:39 +0000 (14:10 +0000)]
Rewrite driver for Intel 2100BG:
- Add WPA/WPA2 support (host encryption/descryption)
- More stable in STA mode, e.g. 24hours netperf TCP_STREAM with CCMP pairwise
  cipher suite and TKIP group cipher suite, rekey every 10 minutes.
- Starting IBSS now works
- Better 802.11 generic layer integration
- More comment about various caveats during firmware operation

Various registers' position and values are written according to Intel's Linux
driver ipw2100-1.2.2

12 years agoAdd an entry for serialize_sleep
Sepherosa Ziehau [Wed, 5 Mar 2008 13:19:23 +0000 (13:19 +0000)]
Add an entry for serialize_sleep

Reminded-by: swildner@
12 years agoAdd serializer port backend. Implementation is mainly based on spin
Sepherosa Ziehau [Wed, 5 Mar 2008 13:03:29 +0000 (13:03 +0000)]
Add serializer port backend.  Implementation is mainly based on spin
port backend, but unlike spin port backend: users of this port backend
are assumed to have the port's serializer held.

Proper function name is suggested by corecode@, aggelos@, tgen@ and

Reviewed-by: tgen@, dillon@
12 years agoAdd serialize_sleep(), which will atomically release the serializer
Sepherosa Ziehau [Wed, 5 Mar 2008 12:44:43 +0000 (12:44 +0000)]
Add serialize_sleep(), which will atomically release the serializer
currently being held and tsleep on the ident, then reacquire the
serializer upon function returning.

Proper function name is suggeested by corecode@, aggelos@, tgen@ and

Reviewed-by: tgen@, dillon@
12 years agoResurrect code mistakenly #ifdef'd out before.
Simon Schubert [Wed, 5 Mar 2008 10:37:24 +0000 (10:37 +0000)]
Resurrect code mistakenly #ifdef'd out before.

Reminded-by: FreeBSD's cvs-src
12 years agoPatch additional use-after-free cases.
Matthew Dillon [Tue, 4 Mar 2008 19:23:05 +0000 (19:23 +0000)]
Patch additional use-after-free cases.

Submitted-by: Claus Assmann
12 years agoUse uintmax_t for ino_t.
Sascha Wildner [Tue, 4 Mar 2008 18:10:44 +0000 (18:10 +0000)]
Use uintmax_t for ino_t.

12 years agoAdd capability flag to inform 802.11 generic layer that device will do auto
Sepherosa Ziehau [Tue, 4 Mar 2008 13:48:40 +0000 (13:48 +0000)]
Add capability flag to inform 802.11 generic layer that device will do auto
channel switching during scanning, so if beacon/prrob-resp's DS parameter
indicates different channel than ic_curchan, 802.11 could adjust ic_curchan
according, instead of letting driver do the tedious and error prone beacon/
probe-resp parsing.

12 years agoRework some bits of the networking code.
Matthias Schmidt [Tue, 4 Mar 2008 11:36:09 +0000 (11:36 +0000)]
Rework some bits of the networking code.

 o Rename TLSINIT to NOSSL
 o Rename read_remote_command to read_remote.  Replace the remote read method
   with code from femail.c written by Henning Brauer of OpenBSD and licensed
   under a BSD license.  Return the first figure of the return code and check
   the appropriate values.
 o Read the server greeting at first and send EHLO afterwards.
 o Remove check_for_smtp_error().  It is included in read_remote().

This commit fixes some of the issues in issue953.  More code to come.

Dragonfly-bug: http://bugs.dragonflybsd.org/issue953

12 years agoRemove some lines warning about 'make upgrade' before 'make installworld'.
Sascha Wildner [Mon, 3 Mar 2008 20:24:51 +0000 (20:24 +0000)]
Remove some lines warning about 'make upgrade' before 'make installworld'.

The upgrade mechanism now ensures that installworld has run.

12 years agoRemove old files in /usr/share/groff_font/devlj4.
Sascha Wildner [Mon, 3 Mar 2008 19:55:29 +0000 (19:55 +0000)]
Remove old files in /usr/share/groff_font/devlj4.

12 years agoBring in some changes from FreeBSD:
Sascha Wildner [Sun, 2 Mar 2008 23:02:01 +0000 (23:02 +0000)]
Bring in some changes from FreeBSD:

* Add missing @PDFDOCDIR@ substitution.

* Make 'groff -Thtml ...' work by adding an image_generator keyword to
  the HTML DESC file.

* Update lj4 resolution and add some font files.

* Install lj4_font(5) manual page.

And while I'm doing this, install the grohtml(1) manual page as well.

12 years agoFix some errors and reduce differences with FreeBSD.
Sascha Wildner [Sun, 2 Mar 2008 19:56:53 +0000 (19:56 +0000)]
Fix some errors and reduce differences with FreeBSD.

12 years agoRetire our /usr/share/misc/iso3166 file in favor of the version provided
Sascha Wildner [Sun, 2 Mar 2008 14:28:37 +0000 (14:28 +0000)]
Retire our /usr/share/misc/iso3166 file in favor of the version provided
in the tzdata distribution and adjust tzsetup(8) accordingly.

The old format had to be updated by tracking ISO3166 Maintenance Agency
Newsletters which was rather painful, and the extra fields (three letter
and three digit country codes) were skipped by tzsetup(8) anyway.

12 years agoAdd MLINKS for SDP_{GET,PUT}_UUID128.3
Sascha Wildner [Sat, 1 Mar 2008 23:58:00 +0000 (23:58 +0000)]

12 years agoAnsify some remaining function definitions in the kernel.
Sascha Wildner [Sat, 1 Mar 2008 22:03:13 +0000 (22:03 +0000)]
Ansify some remaining function definitions in the kernel.

Found-by: -Wold-style-definition
12 years agoMake the -O option (show *only* kernel threads) imply the -T option (show
Nuno Antunes [Sat, 1 Mar 2008 18:49:00 +0000 (18:49 +0000)]
Make the -O option (show *only* kernel threads) imply the -T option (show
kernel threads), as it does not make much sense otherwise.

Reviewed-by: aggelos@
12 years agoUse .Va for sysctls.
Sascha Wildner [Sat, 1 Mar 2008 17:54:16 +0000 (17:54 +0000)]
Use .Va for sysctls.

12 years agoClean up the token code and implement lwkt_token_is_stale(). Users of
Matthew Dillon [Sat, 1 Mar 2008 06:21:28 +0000 (06:21 +0000)]
Clean up the token code and implement lwkt_token_is_stale().  Users of
the token code are now able to detect if the token was acquired and released
by someone else while they were blocked.

Submitted-by: Michael Neumann <mneumann@ntecs.de>
12 years agoAdd an experimental driver for NICs using Silan Microelectronics' SC92301
Sascha Wildner [Thu, 28 Feb 2008 18:39:20 +0000 (18:39 +0000)]
Add an experimental driver for NICs using Silan Microelectronics' SC92301
chip, some of which seem to be known as Rsltek [sic] 8139D. This is a port
of Silan's own FreeBSD 4.7 driver which was written by one 'gaoyonghong'.

It's up to the point where it works with the "Noganet KN-8139D" product,
but it still gives occasional errors/warnings on the console. Also, some
areas need to be brought more up to date.

Therefore, the if_sln.ko module is built, but the driver is not yet in

Tested-by: Damian Vicino <dvicino@dc.uba.ar>
12 years agoRegenerate
Sascha Wildner [Thu, 28 Feb 2008 18:15:31 +0000 (18:15 +0000)]

12 years agoAdd some PCI IDs for the upcoming sln(4) driver.
Sascha Wildner [Thu, 28 Feb 2008 18:12:51 +0000 (18:12 +0000)]
Add some PCI IDs for the upcoming sln(4) driver.

12 years agoRemove unmatched crit_exit() from dsp_ioctl(). A critical section was never
Thomas E. Spanjaard [Thu, 28 Feb 2008 17:19:11 +0000 (17:19 +0000)]
Remove unmatched crit_exit() from dsp_ioctl(). A critical section was never
entered before, and it doesn't seem necessary to have one either. This
prevents a panic from happening when you operate mixer ioctls on /dev/dsp.

12 years agoSync with FreeBSD.
Sascha Wildner [Thu, 28 Feb 2008 10:51:38 +0000 (10:51 +0000)]
Sync with FreeBSD.

12 years agoFix the fact that I thought about adding a comment too when adding the v_intr
Thomas E. Spanjaard [Wed, 27 Feb 2008 15:20:17 +0000 (15:20 +0000)]
Fix the fact that I thought about adding a comment too when adding the v_intr
increment. I actually wrote one half of the TD_NEST_COUNT stuff instead of
putting that in the comment. D'oh!

12 years agoMake sure we tally an interrupt when calling sched_ithd() from
Thomas E. Spanjaard [Mon, 25 Feb 2008 12:56:32 +0000 (12:56 +0000)]
Make sure we tally an interrupt when calling sched_ithd() from

12 years agoHAMMER 31C/many: Fix livelock in deadlock handling code
Matthew Dillon [Sun, 24 Feb 2008 23:40:24 +0000 (23:40 +0000)]
HAMMER 31C/many: Fix livelock in deadlock handling code

* The wrong B-Tree node was being recorded in cursor->deadlk_node in
  one of the B-Tree subroutines.  Deadlocks are handled by acquiring
  and releasing the recorded conflicting node after releasing all other
  locks, and then retrying.  Recording the wrong node caused the
  handling routine to not block waiting for the deadlock to resolve
  and resulted in a livelock.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
12 years agoHAMMER 31B/many: Fix busy block dev on HAMMER umount
Matthew Dillon [Sun, 24 Feb 2008 20:08:50 +0000 (20:08 +0000)]
HAMMER 31B/many: Fix busy block dev on HAMMER umount

* Properly clear si_mountpoint in the block device when unmounting a
  HAMMER filesystem.  This fixes a busy block device problem.

12 years agoHAMMER 31A/many: File data size optimization
Matthew Dillon [Sun, 24 Feb 2008 19:48:45 +0000 (19:48 +0000)]
HAMMER 31A/many: File data size optimization

I've been meaning to do this for a while.  When writing a data record for
the last block in a file, for example for small files, there is no need
to write out the entire 16K buffer.  Just write out the actual number of
bytes of data to file EOF.

This results in *EXTREME* data compaction and very high performance when
manipulating small files.  The smallest possible file requires two 96 byte
records (inode record and data record), two 64 byte B-Tree elements,
a 64 byte data element (the file data), and a 128 byte data element
(the inode structure), for a grand total of 512 bytes.

12 years agoImprove wording.
Sascha Wildner [Sun, 24 Feb 2008 19:46:47 +0000 (19:46 +0000)]
Improve wording.

12 years agoconstify channel parameter
Sepherosa Ziehau [Sun, 24 Feb 2008 03:36:19 +0000 (03:36 +0000)]
constify channel parameter

12 years agoHAMMER 30C/many: Fix more TID synchronization issues
Matthew Dillon [Sat, 23 Feb 2008 21:55:50 +0000 (21:55 +0000)]
HAMMER 30C/many: Fix more TID synchronization issues

* Properly zero-out b_tid in getnewbuf so a buffer does not get an old
  stale (and possibly duplicate) b_tid.

* A b_tid assignment was missing in the truncation case, causing an assertion.

* Panic instead of warn when we find a duplicate record in the B-Tree.

12 years agoHAMMER 30B/many: Minor bug fix.
Matthew Dillon [Sat, 23 Feb 2008 21:27:07 +0000 (21:27 +0000)]
HAMMER 30B/many: Minor bug fix.

* Undo some inode/data synchronization magic that could result in HAMMER
  trying to write out the same data record with the same TID more then once.

  This will cause historical access to not be quite in sync, and the real
  solution is going to require some more involved coding in VOP_WRITE
  instead of VOP_STRATEGY (which is too late).

12 years agoHAMMER 30A/many: blockmap cleanup
Matthew Dillon [Sat, 23 Feb 2008 20:55:23 +0000 (20:55 +0000)]
HAMMER 30A/many: blockmap cleanup

* Implement a blockmap command in the hammer utility to dump the blockmaps.

* Fix blockmap accounting issues and a few leaks here and there.

12 years agoHAMMER 30/many: blockmap work.
Matthew Dillon [Sat, 23 Feb 2008 03:01:08 +0000 (03:01 +0000)]
HAMMER 30/many: blockmap work.

* Give the hammer utility the ability to decode blockmaps.  'hammer show'
  can dump the B-Tree again.

* Fix a couple of bugs in newfs_hammer's initialization of the freemap.

* Implement reallocation within the freemap (poor-man's version).

* Implement reallocation within a zone (poor-man's version).  Add a
  sysctl vfs.hammer.zone_limit to artificially reduce the size of the
  zone to force it to cycle.

12 years agoFinally, re-add an #endif I removed. :)
Sascha Wildner [Sat, 23 Feb 2008 00:59:23 +0000 (00:59 +0000)]
Finally, re-add an #endif I removed. :)

12 years agoAdd <unistd.h>.
Sascha Wildner [Sat, 23 Feb 2008 00:43:50 +0000 (00:43 +0000)]
Add <unistd.h>.

12 years agoRevert my previous two commits. Varsym prototypes are in unistd.h.
Sascha Wildner [Sat, 23 Feb 2008 00:42:44 +0000 (00:42 +0000)]
Revert my previous two commits. Varsym prototypes are in unistd.h.

12 years agoRequire the the core file be owned by the user. Please also see the
Matthew Dillon [Fri, 22 Feb 2008 18:42:21 +0000 (18:42 +0000)]
Require the the core file be owned by the user.  Please also see the
following URLs:


Submitted-by: "Eduardo Tongson" <propolice@gmail.com>
Obtained-From: Volker <volker@vwsoft.com>

12 years agoFix typo.
Hasso Tepper [Fri, 22 Feb 2008 12:55:12 +0000 (12:55 +0000)]
Fix typo.

Noticed-by: matthias@
12 years agoFix typo from previous commit.
Sascha Wildner [Fri, 22 Feb 2008 05:24:00 +0000 (05:24 +0000)]
Fix typo from previous commit.

12 years agoAdd a varsym(2) manual page (documenting varsym_{get,set,list}()).
Sascha Wildner [Fri, 22 Feb 2008 05:19:25 +0000 (05:19 +0000)]
Add a varsym(2) manual page (documenting varsym_{get,set,list}()).

12 years agoAdd prototypes for the varsym system calls.
Sascha Wildner [Fri, 22 Feb 2008 05:10:55 +0000 (05:10 +0000)]
Add prototypes for the varsym system calls.

12 years agoPut -e in SYNOPSIS and mention that -d needs -DDEBUG.
Sascha Wildner [Fri, 22 Feb 2008 04:30:34 +0000 (04:30 +0000)]
Put -e in SYNOPSIS and mention that -d needs -DDEBUG.

While here, sort options in SYNOPSIS and usage().

Reported-by: hasso
12 years agoFix pf and ipfilter module loading checks.
Hasso Tepper [Thu, 21 Feb 2008 22:42:10 +0000 (22:42 +0000)]
Fix pf and ipfilter module loading checks.

12 years agoAdd _SC_NPROCESSORS_CONF and _SC_NPROCESSORS_ONLN variables to the
Hasso Tepper [Thu, 21 Feb 2008 12:47:54 +0000 (12:47 +0000)]
sysconf(3). These are nonstandard, but implemented in many systems.

12 years agoAdd more device id's to the ugensa(4) taken mostly from option USB serial
Hasso Tepper [Thu, 21 Feb 2008 09:00:19 +0000 (09:00 +0000)]
Add more device id's to the ugensa(4) taken mostly from option USB serial
driver in the Linux kernel.

12 years agoSync with http://www.loc.gov/standards/iso639-2/ISO-639-2_8859-1.txt.
Sascha Wildner [Wed, 20 Feb 2008 21:44:24 +0000 (21:44 +0000)]
Sync with loc.gov/standards/iso639-2/ISO-639-2_8859-1.txt.

12 years agoFix list width.
Sascha Wildner [Wed, 20 Feb 2008 12:29:07 +0000 (12:29 +0000)]
Fix list width.

12 years agoFix reference.
Sascha Wildner [Wed, 20 Feb 2008 12:26:50 +0000 (12:26 +0000)]
Fix reference.

12 years agoAdd some Sierra Wireless devices found in Linux sierra driver to ugensa(4).
Hasso Tepper [Wed, 20 Feb 2008 09:00:55 +0000 (09:00 +0000)]
Add some Sierra Wireless devices found in Linux sierra driver to ugensa(4).

12 years agoHAMMER 29/many: Work on the blockmap, implement the freemap.
Matthew Dillon [Wed, 20 Feb 2008 00:55:51 +0000 (00:55 +0000)]
HAMMER 29/many: Work on the blockmap, implement the freemap.

* Split the blockmap structure into a blockmap header (in the volume header),
  layer1, and layer2 structure.  The layer1 structure is 32 bytes, the
  layer2 structure is 16 bytes.

  Layer1:  262144 32-byte entries (18 bits)
  Layer2:  524288 16-byte entries (19 bits)
  Bigblock: 23 bits
  Total: 60 bits (1 MTB == 1024 Petabytes)

* Start working on the allocation cycler, but it isn't finished yet.

* Implement the freemap.  The freemap is basically a special-cased blockmap.
  The top 8 bits of Layer1 are used as a volume identifier.  A physical
  offset can be looked up via freemap and the layer2 entry will indicate
  which virtual offset it has been mapped to.  This will allow us to
  reallocate blocks when contracting the size of a volume (or if we desire
  to reallocate the block generally).

12 years agoUpdate diskless help:
Thomas Nikolajsen [Tue, 19 Feb 2008 22:02:47 +0000 (22:02 +0000)]
Update diskless help:
Add FILES section and use names for configuration directories uniformly.
Use names for ip-adrs in comments like the ones in the code.

12 years agoAdd cross references.
Thomas Nikolajsen [Tue, 19 Feb 2008 21:47:33 +0000 (21:47 +0000)]
Add cross references.

12 years agoAdd Cross reference.
Thomas Nikolajsen [Tue, 19 Feb 2008 21:46:33 +0000 (21:46 +0000)]
Add Cross reference.

12 years agoloader help update:
Thomas Nikolajsen [Tue, 19 Feb 2008 21:41:07 +0000 (21:41 +0000)]
loader help update:
adapt to DragonFly and fix minor errors.

obtained-from: FreeBSD: loader.common: currdev: reference to lsdev

12 years agoFix typo.
Thomas Nikolajsen [Tue, 19 Feb 2008 21:24:36 +0000 (21:24 +0000)]
Fix typo.

12 years agoSlip tag used for RELEASE checkout.
Thomas Nikolajsen [Tue, 19 Feb 2008 21:20:54 +0000 (21:20 +0000)]
Slip tag used for RELEASE checkout.

12 years agoAdd FILES.
Thomas Nikolajsen [Tue, 19 Feb 2008 21:15:37 +0000 (21:15 +0000)]

12 years agoClusters are gone.
Thomas Nikolajsen [Tue, 19 Feb 2008 21:02:08 +0000 (21:02 +0000)]
Clusters are gone.

12 years agoFix spelling.
Thomas Nikolajsen [Tue, 19 Feb 2008 20:54:23 +0000 (20:54 +0000)]
Fix spelling.

12 years agoDo a better job formatting vmstat -i output:
Thomas Nikolajsen [Tue, 19 Feb 2008 18:19:15 +0000 (18:19 +0000)]
Do a better job formatting vmstat -i output:
indent header to follow other output;
make enough space for interrupt name; also when -v used.

12 years agoBump date.
Nuno Antunes [Tue, 19 Feb 2008 12:34:55 +0000 (12:34 +0000)]
Bump date.

12 years agoElaborate a bit more on critical sections.
Nuno Antunes [Mon, 18 Feb 2008 23:30:26 +0000 (23:30 +0000)]
Elaborate a bit more on critical sections.

12 years agoFix a use-after-free bug in the envelope code just after a port 25 fork.
Matthew Dillon [Mon, 18 Feb 2008 19:47:32 +0000 (19:47 +0000)]
Fix a use-after-free bug in the envelope code just after a port 25 fork.

12 years agoFix typo in comment.
Nuno Antunes [Sun, 17 Feb 2008 21:54:42 +0000 (21:54 +0000)]
Fix typo in comment.

12 years agoElaborate a bit more on how spinlocks deal with FAST interrupts and
Nuno Antunes [Sun, 17 Feb 2008 21:47:39 +0000 (21:47 +0000)]
Elaborate a bit more on how spinlocks deal with FAST interrupts and
normal threaded interrupts.

12 years agoRemove more (x)ntpd remains.
Sascha Wildner [Sun, 17 Feb 2008 19:51:54 +0000 (19:51 +0000)]
Remove more (x)ntpd remains.

12 years agoAdd a new option -s. With this option pkg_search(1) will display the description
Matthias Schmidt [Sun, 17 Feb 2008 19:35:24 +0000 (19:35 +0000)]
Add a new option -s.  With this option pkg_search(1) will display the description
of a package.  This is very helpful it you want to know more about a package.

% pkg_search -s host-20040812
Host is a very powerful DNS query and testing command-line tool. Major
differences with the ancient version of the program with the same name

Note:  You need the complete pkgsrc tree to use -s.

While here:
 o Whitespace fixes
 o Remove unused split commands
 o Bump copyright to 2008.

12 years agoDump entries can have the same timestamp, so accept those as well.
Simon Schubert [Sun, 17 Feb 2008 10:23:57 +0000 (10:23 +0000)]
Dump entries can have the same timestamp, so accept those as well.

12 years agoFix mount_nfs to allow hostnames which begin with a digit.
Matthew Dillon [Sat, 16 Feb 2008 20:48:29 +0000 (20:48 +0000)]
Fix mount_nfs to allow hostnames which begin with a digit.

Submitted-by: "Frank W. Josellis" <frank@dynamical-systems.org>
12 years agoFix an issue where the random number generator's random event injector
Matthew Dillon [Sat, 16 Feb 2008 20:40:47 +0000 (20:40 +0000)]
Fix an issue where the random number generator's random event injector
can stall.  An interrupt could occur after rand_thread_signal is set to
0 but before the injector thread deschedules itself, resulting in the
interrupt waking up the thread before it has gone to sleep and stalling
it forever.  Also swap around the variable ordering so the SMP race
that occurs is non-harmful.  Continue to allow the race.

Reported-by: Robin Carey <robin_carey5@yahoo.co.uk>
12 years agoFix two typos
Matthias Schmidt [Sat, 16 Feb 2008 15:53:39 +0000 (15:53 +0000)]
Fix two typos

12 years agoTypo
Sepherosa Ziehau [Fri, 15 Feb 2008 11:48:15 +0000 (11:48 +0000)]

12 years ago- Try adjusting TX power as much as possible when doing the initial TX power
Sepherosa Ziehau [Fri, 15 Feb 2008 11:15:38 +0000 (11:15 +0000)]
- Try adjusting TX power as much as possible when doing the initial TX power
  calibration.  Also the second TX power calibration happens 1 second after
  the initial TX power calibration.  if streams are pushed immediately after
  NIC is brought up, this makes thing work much better for most of the 4306
  BBP, whose default TX power seems to be far away from the max TX power.
- Add some experimental (commented out) code to force TX power downgrade.
- For parts whose MAC rev >= 5, if PHY error happens, try resetting NIC but
  keep 802.11 state machine untouched.  PHY error usually happens when you
  roam into a signal dark corner, originally even if you walk the NIC out of
  the signal dark corner, TX performance still sucks; after this change, TX
  performance will stay on the right rank.  Heavy beacon missing that is
  enough to trigger reassoc/rescan does not seem to happen even if in this
  signal dark corner.

12 years agoRelease serializer around firmware_load_image() to avoid possible dead
Sepherosa Ziehau [Thu, 14 Feb 2008 12:53:52 +0000 (12:53 +0000)]
Release serializer around firmware_load_image() to avoid possible dead
lock.  Add comment about it.

12 years agoInitialize firmware image tailq
Sepherosa Ziehau [Thu, 14 Feb 2008 12:30:31 +0000 (12:30 +0000)]
Initialize firmware image tailq

12 years agoAdd missing S option to usage()
Matthias Schmidt [Thu, 14 Feb 2008 09:33:24 +0000 (09:33 +0000)]
Add missing S option to usage()

12 years agoFix incomplete stack traces by gdb.
Simon Schubert [Thu, 14 Feb 2008 00:24:24 +0000 (00:24 +0000)]
Fix incomplete stack traces by gdb.

Gdb tries unwinding a stack frame by analyzing the function prologue.
If it can not find the beginning of the function, which happens for
stripped binaries, etc., it will resort to guessing.  It then assumes
that the function is a frame-less function without any local stack
variables.  This of course is wrong for almost all functions.

We work around this problem by assuming a valid stack frame.

Previous versions of gdb were broken the same way, but libbfd would
actually compensate with another bug which would simply report a wrong
function start address -- the address of a preceding, known function.
Because most functions indeed use a proper stack frame, this would
trick gdb into doing the unwinding properly.

12 years agoSet unique mode for the history, so that repeating a command doesn't
Matthias Schmidt [Wed, 13 Feb 2008 15:13:37 +0000 (15:13 +0000)]
Set unique mode for the history, so that repeating a command doesn't
spam the history.

Obtained-from: NetBSD

12 years agoRemove some more leftovers from _ntp and add _sdpd where necessary.
Matthias Schmidt [Wed, 13 Feb 2008 14:45:28 +0000 (14:45 +0000)]
Remove some more leftovers from _ntp and add _sdpd where necessary.

Reviewed-by: swildner@
12 years agoRemove _ntp and add _sdpd.
Matthias Schmidt [Wed, 13 Feb 2008 12:25:12 +0000 (12:25 +0000)]
Remove _ntp and add _sdpd.

12 years agoDon't forget to set internal error message in kvm_nlist().
Simon Schubert [Wed, 13 Feb 2008 00:12:46 +0000 (00:12 +0000)]
Don't forget to set internal error message in kvm_nlist().

Obtained-from:  FreeBSD