dragonfly.git
3 years agokernel - Do a better job with the filesystem background sync
Matthew Dillon [Mon, 10 Jan 2011 23:31:29 +0000 (15:31 -0800)]
kernel - Do a better job with the filesystem background sync

* Adjust code for MNT_LAZY, MNT_NOWAIT, and MNT_WAITOK to reflect
  the fact that they are three different flags and not enumeration
  constants.

* HAMMER now sets VMSC_ONEPASS for MNT_LAZY syncs (background filesystem
  sync).  This generally reduces instances where the background sync
  winds up running continuously when heavy filesystem ops saturate
  the disk.  Fewer vnodes dirtied after the sync is initiated will get
  caught up in the sync.

3 years agokernel - Refactor VMSC_ONEPASS
Matthew Dillon [Mon, 10 Jan 2011 23:26:31 +0000 (15:26 -0800)]
kernel - Refactor VMSC_ONEPASS

* Refactor the VMSC_ONEPASS flag to only iterate the current number
  of vnodes associated with a mount point, instead of 2x the vnodes.
  This makes 'sync' a bit more consistent in the face of heavy filesystem
  activity.

3 years agokernel - Ensure rover in vfs_cache is not optimized.
Matthew Dillon [Mon, 10 Jan 2011 23:25:47 +0000 (15:25 -0800)]
kernel - Ensure rover in vfs_cache is not optimized.

* Add a cpu_ccfence() to ensure that the static rover variable is
  not optimized by the compiler.

3 years agokernel - refactor cpusync and pmap_inval code, fix lockup
Matthew Dillon [Mon, 10 Jan 2011 23:17:25 +0000 (15:17 -0800)]
kernel - refactor cpusync and pmap_inval code, fix lockup

* Simplify the cpusync API.  The API now has only one initialization call,
  one simplified rollup call, and two primary calls handling a single
  function callback (instead of three callbacks).

  cpusync_interlock() interlocks the specified set of cpus and ensures they
  are running in a safe place, cpusync_deinterlock() executes the initialized
  function on the cpu set and does not return until all cpus have completed
  the operation.

* Simplify the pmap_inval per-platform API.  pmap_inval_interlock() and
  pmap_inval_deinterlock() now reflect similar functionality to the cpusync
  API.  pmap/pte operations are now synchronized when pmap_inval_deinterlock()
  is called and not when pmap_inval_done() is called, reducing the range of
  code which can execute while the cpu set is held quiescent.

  pmap_inval_flush() has been removed.  Critical section handling has also
  been rearranged slightly in the pmap_inval* and cpusync* APIs.

* Fixes a cpusync lockup which occurs when the x86-64 pmap and pmap_inval
  code is used to hold a cpu mask quiescent across complex subsystem calls.
  Primarily accomplished by moving the synchronization out of
  pmap_inval_flush() and into pmap_inval_deinterlock().

3 years agox86_64: Put the x86_64 specific "seg-fault..." message under bootverbose.
Sascha Wildner [Sun, 9 Jan 2011 16:15:28 +0000 (17:15 +0100)]
x86_64: Put the x86_64 specific "seg-fault..." message under bootverbose.

Reported-by: John Marino
3 years agointr: Support upto 192 IDT entries in ipl and intr vector asm code
Sepherosa Ziehau [Thu, 6 Jan 2011 15:53:19 +0000 (23:53 +0800)]
intr: Support upto 192 IDT entries in ipl and intr vector asm code

Remove 32bits gd_fpending mask and add 32bits gd_ipending mask array
which has 6 elements.  This allows 192 intrs to be pending.

192 is chosen, because the first 32 entries in IDT is reserved, while
the last 32 entries in IDT are used for IPIs.

This paves the way toward correcting interrupt routing using MPTable
or ACPI and supporting MSI and MSI-X

3 years agoapic: Remove no longer applicable comment
Sepherosa Ziehau [Thu, 6 Jan 2011 04:59:22 +0000 (12:59 +0800)]
apic: Remove no longer applicable comment

3 years agointr: Don't pass the vector name to INTR_HANDLER
Sepherosa Ziehau [Thu, 6 Jan 2011 04:51:09 +0000 (12:51 +0800)]
intr: Don't pass the vector name to INTR_HANDLER

3 years agointr: We no longer have the fast version of intrs
Sepherosa Ziehau [Thu, 6 Jan 2011 04:34:33 +0000 (12:34 +0800)]
intr: We no longer have the fast version of intrs

3 years agoicu: Strip extra blank lines
Sepherosa Ziehau [Thu, 6 Jan 2011 04:30:56 +0000 (12:30 +0800)]
icu: Strip extra blank lines

3 years agoicu: Remove no onger applicable comment
Sepherosa Ziehau [Thu, 6 Jan 2011 04:29:44 +0000 (12:29 +0800)]
icu: Remove no onger applicable comment

3 years agointr_abi: Reindent
Sepherosa Ziehau [Thu, 6 Jan 2011 04:28:14 +0000 (12:28 +0800)]
intr_abi: Reindent

3 years agoRevert "Revert "IO APIC: Assign pins dedicated to PCI in the early stage.""
Sepherosa Ziehau [Wed, 5 Jan 2011 12:23:02 +0000 (20:23 +0800)]
Revert "Revert "IO APIC: Assign pins dedicated to PCI in the early stage.""

This reverts commit 4612bd39e96dec8f15117c89cbaa12c6bdfb75d2.

3 years agopf: It's opt_carp.h not use_carp.h
Sepherosa Ziehau [Sun, 9 Jan 2011 07:01:32 +0000 (15:01 +0800)]
pf: It's opt_carp.h not use_carp.h

3 years agoBring in sephe's recent intr/apic work to x86_64.
Sascha Wildner [Sun, 9 Jan 2011 06:36:45 +0000 (07:36 +0100)]
Bring in sephe's recent intr/apic work to x86_64.

The following commits:

6ab7c3a intr: Clean up comment of Local APIC TPR
84bf7d5 intr: Remove unused TRP macros
e4a4c49 intr: Remove unused typedef
507bf37 intr: Make sure that changing IPI offset will also update related TPR
072d9b3 intr: Move IO/APIC IDT vector offset into isa/intr_machdep.h
7b32a0a apic: Remove unused macros and duplicated comment
2ce3ae8 apic: Remove unused macros
26408d7 intr: Remove call_fast_unpend() declaration
87e3ca2 intr: Start hardware interrupt at IDT_OFFSET
90a567f apic: Clear all entries in int table

3 years agopci: MPTable pcib/hostb should not be used, if !apic_io_enable
Sascha Wildner [Sun, 9 Jan 2011 06:35:08 +0000 (07:35 +0100)]
pci: MPTable pcib/hostb should not be used, if !apic_io_enable

MP Table is not parsed at all if !apic_io_enable

[Recent work by sephe brought in from i386.]

3 years agokernel: Uncomment aacp in the configs.
Sascha Wildner [Sat, 8 Jan 2011 23:21:09 +0000 (00:21 +0100)]
kernel: Uncomment aacp in the configs.

3 years agotws.4: Bump some dates.
Sascha Wildner [Sat, 8 Jan 2011 23:03:42 +0000 (00:03 +0100)]
tws.4: Bump some dates.

3 years agoAdd tws(4), a driver for the LSI 3ware 9750 series SATA/SAS RAID controllers.
Sascha Wildner [Sat, 8 Jan 2011 20:47:12 +0000 (21:47 +0100)]
Add tws(4), a driver for the LSI 3ware 9750 series SATA/SAS RAID controllers.

It should support the following controllers:

* LSI 3ware SAS 9750-4i
* LSI 3ware SAS 9750-4i4e
* LSI 3ware SAS 9750-8i
* LSI 3ware SAS 9750-8e
* LSI 3ware SAS 9750-16i4e
* LSI 3ware SAS 9750-24i4e

It was tested with the 9750-4i.

Many thanks to LSI Corporation. The driver is a port of their FreeBSD driver
that comes on the Installation CD (manual page added by me).

Thanks to vsrinivas and sephe for helping with finding and fixing a busdma
locking issue.

3 years agobusdma: Free map, if bus_dmamap_create() fails
Sepherosa Ziehau [Fri, 31 Dec 2010 09:43:11 +0000 (17:43 +0800)]
busdma: Free map, if bus_dmamap_create() fails

3 years agobusdma: Make sure bounce zone's sysctl tree is created before destroying it
Sepherosa Ziehau [Fri, 31 Dec 2010 09:28:12 +0000 (17:28 +0800)]
busdma: Make sure bounce zone's sysctl tree is created before destroying it

3 years agobusdma: Free bounce zone if any error happens during bus_dma_tag_create()
Sepherosa Ziehau [Fri, 31 Dec 2010 09:25:05 +0000 (17:25 +0800)]
busdma: Free bounce zone if any error happens during bus_dma_tag_create()

3 years agobusdma: Add PROTECTED bus_dma_tag_create() flag.
Sepherosa Ziehau [Mon, 27 Dec 2010 08:24:03 +0000 (16:24 +0800)]
busdma: Add PROTECTED bus_dma_tag_create() flag.

PROTECTED
  All of the functions called with the dma_tag are already protected by
  the caller, so busdma code need not to protect the internal data
  structures.  Panic, if the "defered dmamap load callback" is going to
  happen.

When used along with PRIVBZONE, ALLOCALL and ALLOCNOW, it could greatly
reduce the work load of fixing all of the drivers that mal-use busdma
functions.

3 years agobusdma: Add PRIVBZONE and ALLOCALL bus_dma_tag_create() flags.
Sepherosa Ziehau [Mon, 27 Dec 2010 07:44:23 +0000 (15:44 +0800)]
busdma: Add PRIVBZONE and ALLOCALL bus_dma_tag_create() flags.

PRIVBZONE
  Use a private bounce zone instead of a shared one.  A private bounce
  zone will vanish if the dma_tag is destroyed.

ALLOCALL
  Allocate all required resources (mainly bounce buffer), if any
  allocation failes, bus_dmamap_create() will fail.

Using PRIVBZONE alone could possiblely reduce the contention between
driver instances.

Using PRIVBZONE and ALLOCALL could promise that the "defered dmamap
load callback" will not happen.  This could be used to ease some driver
work and reduce the work load to fix the existing drivers which may
(incorrectly) rely on or may not expect the "defered dmamap load
callback" semantic of bus_dmamap_load().

3 years agoRevert "Remove the broken burncd(8)."
Sascha Wildner [Sat, 8 Jan 2011 12:47:55 +0000 (13:47 +0100)]
Revert "Remove the broken burncd(8)."

This reverts commit fd6f482a63584f75b8a119c8815ad384815c990a.

A number of people disagreed with this commit, so I'm reverting
it.

The reason I removed burncd(8) was that it didn't work here at
all and that others (on IRC) had reported the same. So bring it
back for now so we can re-evaluate.

3 years agopthread.h: Fix prototypes.
Peter Avalos [Sat, 8 Jan 2011 01:36:38 +0000 (15:36 -1000)]
pthread.h: Fix prototypes.

We need to remove the condition of _POSIX_THREAD_PROCESS_SHARED for the
pshared prototypes.  Otherwise, programs have to include unistd.h (to
get the definition of _POSIX_THREAD_PROCESS_SHARED) before pthread.h.
This is not the way to do things.

This fixes at least kde4, and I'm sure there's others.

3 years agoaac(4): Use bio (not bp) for the bio pointer.
Sascha Wildner [Fri, 7 Jan 2011 05:48:10 +0000 (06:48 +0100)]
aac(4): Use bio (not bp) for the bio pointer.

3 years agoaac(4): Update to version 2.1.9-1 (current FreeBSD).
Sascha Wildner [Fri, 7 Jan 2011 05:14:19 +0000 (06:14 +0100)]
aac(4): Update to version 2.1.9-1 (current FreeBSD).

This brings in support for ~40 additional controllers of the family. See
the manual page for the full list.

It also fixes dumping to aac(4).

Tested with a Dell PERC 320/DC.

Reported-by: Archimedes Gaviola <archimedes.gaviola@gmail.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1391>

3 years agoxargs(1): Add -P option for parallel mode.
Sascha Wildner [Thu, 6 Jan 2011 12:48:03 +0000 (13:48 +0100)]
xargs(1): Add -P option for parallel mode.

Submitted-by: Axel Scheepers <axel@axel.truedestiny.net>
Taken-from:    FreeBSD
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1953>

3 years agoRemove the broken burncd(8).
Sascha Wildner [Wed, 5 Jan 2011 23:11:07 +0000 (00:11 +0100)]
Remove the broken burncd(8).

There's cdrecord from pkgsrc/sysutils/cdrtools (which also comes on our
LiveCD).

3 years agofinger - Fix seg-fault
Matthew Dillon [Wed, 5 Jan 2011 20:48:07 +0000 (12:48 -0800)]
finger - Fix seg-fault

* Fix a seg-fault where finger was improperly assuming that w->tty and w->host
  where char arrays when in fact they were simply char pointers.

Reported-by: Robin Carey <robin.carey1@googlemail.com>
3 years agohptmv(4): Save some unneeded variables in the locking functions.
Sascha Wildner [Wed, 5 Jan 2011 14:49:44 +0000 (15:49 +0100)]
hptmv(4): Save some unneeded variables in the locking functions.

3 years agohptmv(4): Fix shutting down.
Sascha Wildner [Wed, 5 Jan 2011 04:20:56 +0000 (05:20 +0100)]
hptmv(4): Fix shutting down.

This didn't work at all. pAdapter->eh was never assigned to and the event
handler for deregistering was wrong, too.

So the driver ended up deregistering all callbacks of the shutdown_final
handler during shutdown_post_sync.

3 years agovkernel - Fix corrupt tailq (vkernel64 only)
Matthew Dillon [Tue, 4 Jan 2011 23:06:59 +0000 (15:06 -0800)]
vkernel - Fix corrupt tailq (vkernel64 only)

* Properly remove an exiting thread from any tsleep queue it might be
  enqueued on (due to tsleep_interlock() use cases) prior to exiting.

* Fixes tailq corruption which can occur with threaded programs.

* Fix is only applicable to vkernel64.  All other platforms already
  properly remove the thread.

* Assert that an exiting thread has been removed from any sleep queue
  before freeing it in kern_exit.c to catch any future cases.

3 years agohammer - Describe live_dedup_cache_size sysctl
Samuel J. Greear [Tue, 4 Jan 2011 21:39:46 +0000 (21:39 +0000)]
hammer - Describe live_dedup_cache_size sysctl

3 years agoHAMMER - Add live_dedup_cache_size sysctl
Ilya Dryomov [Tue, 4 Jan 2011 16:15:48 +0000 (18:15 +0200)]
HAMMER - Add live_dedup_cache_size sysctl

* There is now a hammer_live_dedup_cache_size variable which can be
  set via sysctl vfs.hammer.live_dedup_cache_size.  The default is 4096.

* A better solution is to make it scale automatically according to
  nbufs or a number of vnodes.

3 years agohammer - Furnish descriptions for the live dedup sysctl's
Samuel J. Greear [Tue, 4 Jan 2011 15:55:50 +0000 (15:55 +0000)]
hammer - Furnish descriptions for the live dedup sysctl's

3 years agoplatform - Allow building without COMPAT_DF12
Samuel J. Greear [Tue, 4 Jan 2011 15:53:39 +0000 (15:53 +0000)]
platform - Allow building without COMPAT_DF12

3 years agoAdd hptmv(4), a driver for HighPoint RocketRAID 182x controllers.
Sascha Wildner [Tue, 4 Jan 2011 15:19:23 +0000 (16:19 +0100)]
Add hptmv(4), a driver for HighPoint RocketRAID 182x controllers.

It was tested with an 1820A card.

Thanks to HighPoint and FreeBSD (from which it was ported).

3 years agoMake some space in sys/dev/raid/Makefile.
Sascha Wildner [Sun, 26 Dec 2010 13:00:46 +0000 (14:00 +0100)]
Make some space in sys/dev/raid/Makefile.

3 years agonetwork - Fix pf build when no INET6
Ilya Dryomov [Tue, 4 Jan 2011 12:13:27 +0000 (14:13 +0200)]
network - Fix pf build when no INET6

  * Definition of struct ip6_hdr is not included when no INET6, #ifdef
    out the code that uses it.

3 years agokernel - Fix vkernel lwp stuck thread bug
Matthew Dillon [Tue, 4 Jan 2011 04:22:47 +0000 (20:22 -0800)]
kernel - Fix vkernel lwp stuck thread bug

* Fix a tsleep hz / 100 which calculates to 0 due to the vkernel's 20hz
  tick rate.  This could cause threads running under the vkernel to get
  stuck.

3 years agoHAMMER VFS - Increase directory object cache
Matthew Dillon [Tue, 4 Jan 2011 04:19:59 +0000 (20:19 -0800)]
HAMMER VFS - Increase directory object cache

* Increase from 1024 to 2048 allocation blocks.

3 years agoHAMMER VFS - Fix TAILQ bug
Matthew Dillon [Tue, 4 Jan 2011 04:14:22 +0000 (20:14 -0800)]
HAMMER VFS - Fix TAILQ bug

* Fix two cases where an ocp (object id allocation cache block for
  directories) is kfree()'d without removing it from hmp->objid_cache_list.
  These could cause a panic or lockup.

* Increase the inode allocation / directory hash matching bitmap fill
  level from 50% to 75%.

* Properly account hmp->objid_cache_count in hammer_destroy_objid_cache().

3 years agoHAMMER - Add live dedup sysctl and support
Ilya Dryomov [Tue, 4 Jan 2011 01:07:02 +0000 (03:07 +0200)]
HAMMER - Add live dedup sysctl and support

* Adds *experimental* live dedup (aka efficient cp) support

* sysctl vfs.hammer.live_dedup
    0 - disabled (default)
    1 - enabled, populate dedup cache on reads
    2 - enabled, populate dedup cache on reads and writes

3 years ago<dev/netif/wi/if_wavelan_ieee.h>: Uncomment wi_req.
Sascha Wildner [Mon, 3 Jan 2011 06:39:17 +0000 (07:39 +0100)]
<dev/netif/wi/if_wavelan_ieee.h>: Uncomment wi_req.

This, in conjunction with a few patches I submitted to pkgsrc, will
eventually fix building the following packages:

net/gtk_wicontrol
net/wimon
net/wistumbler
net/wistumbler2
net/xfce4-wavelan-plugin (and thereby meta/xfce4-extras)

3 years agohammer(8) rebalance: change default saturation_percentage a few more places
Thomas Nikolajsen [Mon, 3 Jan 2011 06:26:09 +0000 (07:26 +0100)]
hammer(8) rebalance: change default saturation_percentage a few more places

3 years agohammer(8) - Take in account the saturation level passed to rebalance.
Antonio Huete Jimenez [Sun, 2 Jan 2011 21:16:48 +0000 (22:16 +0100)]
hammer(8) - Take in account the saturation level passed to rebalance.

Also change the default saturation level from 75% to 85%.

3 years agokernel: Remove support for the Xerox Network Systems (NS) protocol.
Sascha Wildner [Sun, 2 Jan 2011 19:16:05 +0000 (20:16 +0100)]
kernel: Remove support for the Xerox Network Systems (NS) protocol.

It was previously removed from LINT with commit 67bf99c4 and its removal
was also announced here:

http://leaf.dragonflybsd.org/mailarchive/kernel/2010-09/msg00025.html

To be on the safe side, bump _DragonFly_version due to /usr/include/netns
going away. In the unlikely event of something breaking in pkgsrc we'll
have a version to patch against, if needed.

3 years agobluetooth(4): Fix loading bluetooth without pf.
Sascha Wildner [Sun, 2 Jan 2011 17:43:19 +0000 (18:43 +0100)]
bluetooth(4): Fix loading bluetooth without pf.

bluetooth(4) was previously using pf(4)'s pool_* macros. Now that pool_get()
has been turned into a function in pf(4), this is no longer possible, since
the bluetooth(4) module would have to depend on the pf(4) module for that.

To unbreak module loading, convert all calls to these macros to the zone(9)
calls which they really are.

3 years agoaibs(4): Add missing module dependency.
Sascha Wildner [Sun, 2 Jan 2011 17:38:47 +0000 (18:38 +0100)]
aibs(4): Add missing module dependency.

3 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Samuel J. Greear [Sun, 2 Jan 2011 15:14:55 +0000 (15:14 +0000)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

3 years agokernel - s/so_pru_control/so_pru_control_direct/
Samuel J. Greear [Sun, 2 Jan 2011 15:12:14 +0000 (15:12 +0000)]
kernel - s/so_pru_control/so_pru_control_direct/

* This enables building without COMPAT_43

3 years agoRearrange the previous commit a bit and fix a pathname.
Sascha Wildner [Sun, 2 Jan 2011 11:28:37 +0000 (12:28 +0100)]
Rearrange the previous commit a bit and fix a pathname.

3 years agopf: Do not install pfsync man pages, as we lack support for it.
Jan Lentfer [Sun, 2 Jan 2011 11:09:20 +0000 (12:09 +0100)]
pf: Do not install pfsync man pages, as we lack support for it.

3 years agopf: Update man pages, too
Jan Lentfer [Sat, 1 Jan 2011 23:22:05 +0000 (00:22 +0100)]
pf: Update man pages, too

3 years agoFix 64 bit build.
Sascha Wildner [Sat, 1 Jan 2011 11:42:33 +0000 (12:42 +0100)]
Fix 64 bit build.

3 years agoBump the copyright years.
Sascha Wildner [Fri, 31 Dec 2010 20:39:11 +0000 (21:39 +0100)]
Bump the copyright years.

\o/  H A P P Y  N E W  Y E A R !  \o/

3 years agotwe(4): Update to version 1.50.01.002.
Sascha Wildner [Fri, 31 Dec 2010 18:05:20 +0000 (19:05 +0100)]
twe(4): Update to version 1.50.01.002.

This adds support for the 7000/8000 series adapters (some of which
are SATA controllers).

See the manual page for the full list of supported devices.

The update was tested with a 6200 card.

Taken-from: FreeBSD
Thanks-to:  lentferj for providing a controller for testing

3 years agoremove pfsync option from LINT
Jan Lentfer [Fri, 31 Dec 2010 14:07:41 +0000 (15:07 +0100)]
remove pfsync option from LINT

        * pfsync is now build as part of pf directly

3 years agopf: Update packetfilter to OpenBSD 4.4
Jan Lentfer [Mon, 11 Oct 2010 16:01:08 +0000 (18:01 +0200)]
pf: Update packetfilter to OpenBSD 4.4

        * As correct pf function depends directly on pfsync now
          compile if_pfsyn.c into pf.ko. pflog is already part
          of pf.ko.

        * Activate pfsync function by default. It's not a kernel
          option anymore, but pfsync is very unlikley to work.
          Anyway our ifconfig is missing all pfsync related options.
          I will try to make pfsync working again after upgrading to
          pf from OpenBSD 4.5 as pfsync changes completley then
          and is not compatible anymore with prior versions.

        * Also make the module unloading sane in if_pflog.c

        Thanks to Alex Hornung and Aggelos Economopoulos for debugging.

3 years agoapic: Clear all entries in int table
Sepherosa Ziehau [Fri, 31 Dec 2010 11:05:11 +0000 (19:05 +0800)]
apic: Clear all entries in int table

This fixes the case where missing 8259 entry and missing IRQ15
happen simultaneously

3 years agointr: Start hardware interrupt at IDT_OFFSET
Sepherosa Ziehau [Fri, 31 Dec 2010 08:04:29 +0000 (16:04 +0800)]
intr: Start hardware interrupt at IDT_OFFSET

3 years agointr: Remove call_fast_unpend() declaration
Sepherosa Ziehau [Fri, 31 Dec 2010 06:15:52 +0000 (14:15 +0800)]
intr: Remove call_fast_unpend() declaration

This function is not implemented at all.

3 years agoapic: Remove unused macros
Sepherosa Ziehau [Fri, 31 Dec 2010 06:05:46 +0000 (14:05 +0800)]
apic: Remove unused macros

3 years agoapic: Remove unused macros and duplicated comment
Sepherosa Ziehau [Fri, 31 Dec 2010 05:54:17 +0000 (13:54 +0800)]
apic: Remove unused macros and duplicated comment

3 years agointr: Move IO/APIC IDT vector offset into isa/intr_machdep.h
Sepherosa Ziehau [Fri, 31 Dec 2010 05:32:34 +0000 (13:32 +0800)]
intr: Move IO/APIC IDT vector offset into isa/intr_machdep.h

3 years agointr: Make sure that changing IPI offset will also update related TPR
Sepherosa Ziehau [Fri, 31 Dec 2010 03:44:15 +0000 (11:44 +0800)]
intr: Make sure that changing IPI offset will also update related TPR

While I'm here, reorganize various IPI offsets

3 years agointr: Remove unused typedef
Sepherosa Ziehau [Fri, 31 Dec 2010 03:08:50 +0000 (11:08 +0800)]
intr: Remove unused typedef

3 years agointr: Remove unused TRP macros
Sepherosa Ziehau [Fri, 31 Dec 2010 03:05:40 +0000 (11:05 +0800)]
intr: Remove unused TRP macros

3 years agointr: Clean up comment of Local APIC TPR
Sepherosa Ziehau [Fri, 31 Dec 2010 02:41:47 +0000 (10:41 +0800)]
intr: Clean up comment of Local APIC TPR

3 years agopci: MPTable pcib/hostb should not be used, if !apic_io_enable
Sepherosa Ziehau [Fri, 31 Dec 2010 02:11:03 +0000 (10:11 +0800)]
pci: MPTable pcib/hostb should not be used, if !apic_io_enable

MP Table is not parsed at all if !apic_io_enable

3 years agoldns: Re-Add lost README files
Jan Lentfer [Thu, 30 Dec 2010 23:36:51 +0000 (00:36 +0100)]
ldns: Re-Add lost README files

3 years agoldns/drill: Update local files to 1.6.7
Jan Lentfer [Thu, 30 Dec 2010 22:04:30 +0000 (23:04 +0100)]
ldns/drill: Update local files to 1.6.7

3 years agoUpdate to ldns-1.6.7
Jan Lentfer [Thu, 30 Dec 2010 00:30:02 +0000 (01:30 +0100)]
Update to ldns-1.6.7

3 years agoHAMMER - Remove unused variable
Ilya Dryomov [Thu, 30 Dec 2010 11:41:08 +0000 (13:41 +0200)]
HAMMER - Remove unused variable

Although assigned (so GCC was silent), the 'blockmap' variable is
unused in hammer_blockmap_free(), hammer_blockmap_dedup() and
hammer_blockmap_finalize() functions.

3 years agoNuke forward_fastint_remote(), which has never been used.
Sepherosa Ziehau [Thu, 30 Dec 2010 08:46:43 +0000 (16:46 +0800)]
Nuke forward_fastint_remote(), which has never been used.

3 years agokernel - Fix lockmgr non-zero exclusive count panic (2)
Matthew Dillon [Wed, 29 Dec 2010 08:49:59 +0000 (00:49 -0800)]
kernel - Fix lockmgr non-zero exclusive count panic (2)

* Handle another possible case when upgrading a shared lock to an
  exclusive lock where the exclusive flag can wiggle its way in.

Reported-by: Peter Avalos <peter@theshell.com>,
     YONETANI Tomokazu <qhwt.dfly@les.ath.cx>

3 years agokernel - Fix lockmgr non-zero exclusive count panic
Matthew Dillon [Wed, 29 Dec 2010 08:32:27 +0000 (00:32 -0800)]
kernel - Fix lockmgr non-zero exclusive count panic

* The vm_map lock uses shared & exclusive locks and tries to upgrade
  shared to exclusive.  There is a race where a shared upgrade can
  steal an exclusive lock from an exclusive request which has already
  acquired the LK_WANT_EXCL flag.

* Deal with the case by having the exclusive lock also acquire
  LK_HAVE_EXCL to catch any shared upgrades which beat out the
  request.

Reported-by: YONETANI Tomokazu <qhwt.dfly@les.ath.cx>
Researched-by: YONETANI Tomokazu <qhwt.dfly@les.ath.cx>
3 years agoip_demux: Update comment for tcp_ctlport()
Sepherosa Ziehau [Wed, 29 Dec 2010 08:13:21 +0000 (16:13 +0800)]
ip_demux: Update comment for tcp_ctlport()

3 years agoip_demux: Update comment for ip_lengthcheck()
Sepherosa Ziehau [Wed, 29 Dec 2010 07:51:45 +0000 (15:51 +0800)]
ip_demux: Update comment for ip_lengthcheck()

3 years agomtodoff: Add comment
Sepherosa Ziehau [Wed, 29 Dec 2010 07:48:08 +0000 (15:48 +0800)]
mtodoff: Add comment

While i'm here, nuke staled comment

3 years agokernel: Remove support for the EISA bus and EISA/VLB devices.
Sascha Wildner [Tue, 28 Dec 2010 17:42:20 +0000 (18:42 +0100)]
kernel: Remove support for the EISA bus and EISA/VLB devices.

Discussed-with-and-approved-by: dillon, aggelos, and others.
3 years agoRemove redundant settings. These are the same in /etc/defaults/rc.conf.
Sascha Wildner [Tue, 28 Dec 2010 15:45:35 +0000 (16:45 +0100)]
Remove redundant settings. These are the same in /etc/defaults/rc.conf.

3 years agoinstaller: Add swap to /etc/crypttab only if it is actually encrypted.
Sascha Wildner [Tue, 28 Dec 2010 14:17:26 +0000 (15:17 +0100)]
installer: Add swap to /etc/crypttab only if it is actually encrypted.

This caused some nasty warnings and error msgs upon booting.

3 years agoipflow: cpumask_t should be used instead of uint32_t
Sepherosa Ziehau [Tue, 28 Dec 2010 02:49:50 +0000 (10:49 +0800)]
ipflow: cpumask_t should be used instead of uint32_t

3 years agore(4): Add support for 8168E
Sepherosa Ziehau [Tue, 28 Dec 2010 01:54:55 +0000 (09:54 +0800)]
re(4): Add support for 8168E

Submitted-by: Tim Bisson <bissont@mac.com>
3 years agoCreate MLINKS for the mbuf(9) manual page.
Sascha Wildner [Sun, 26 Dec 2010 15:57:33 +0000 (16:57 +0100)]
Create MLINKS for the mbuf(9) manual page.

Someone with more knowledge than me should review mbuf(9) and update it
to our current state of affairs.

Reported-by: pavalos
3 years agoMerge branch 'master' of /repository/git/dragonfly
Venkatesh Srinivas [Sun, 26 Dec 2010 01:02:11 +0000 (17:02 -0800)]
Merge branch 'master' of /repository/git/dragonfly

3 years agokernel -- Spinlock debugging.
Venkatesh Srinivas [Sun, 26 Dec 2010 00:57:07 +0000 (16:57 -0800)]
kernel -- Spinlock debugging.

* Track spinlocks held by a thread in a per-thread array; records the lock
  address and the EIP of the lock-taker.

* Panic in lockmgr() if we hold any spinlocks when trying to take a sleeping
  lockmgr lock.

3 years agompipe.9: Remove trailing whitespace.
Sascha Wildner [Sat, 25 Dec 2010 19:40:08 +0000 (20:40 +0100)]
mpipe.9: Remove trailing whitespace.

3 years agovkernel - Catch manpage up with loader/installkernel changes
Samuel J. Greear [Fri, 24 Dec 2010 03:33:54 +0000 (03:33 +0000)]
vkernel - Catch manpage up with loader/installkernel changes

Reported-by: Tony
3 years agoips.4: Sort SEE ALSO references.
Sascha Wildner [Thu, 23 Dec 2010 17:32:36 +0000 (18:32 +0100)]
ips.4: Sort SEE ALSO references.

3 years agoMiscellaneous manual page cleanup.
Sascha Wildner [Thu, 23 Dec 2010 15:02:03 +0000 (16:02 +0100)]
Miscellaneous manual page cleanup.

3 years agoFix typos in messages and manual pages.
Sascha Wildner [Thu, 23 Dec 2010 14:58:40 +0000 (15:58 +0100)]
Fix typos in messages and manual pages.

3 years agokernel -- MPIPE: Don't call a NULL constructor.
Venkatesh Srinivas [Thu, 23 Dec 2010 06:57:49 +0000 (22:57 -0800)]
kernel -- MPIPE: Don't call a NULL constructor.

3 years agokernel -- MPIPE: Add a constructor argument and priv ptr.
Venkatesh Srinivas [Thu, 23 Dec 2010 04:57:59 +0000 (20:57 -0800)]
kernel -- MPIPE: Add a constructor argument and priv ptr.

3 years agokernel - Fix boot-time lockup with if_igb
Matthew Dillon [Thu, 23 Dec 2010 03:35:25 +0000 (19:35 -0800)]
kernel - Fix boot-time lockup with if_igb

* In DragonFly on return from a call to if_start if
  (IFF_RUNNING|IFF_OACTIVE) == IFF_RUNNING the if_start code for the
  device is expected to have drained the queue and will be re-called
  if it has not.

  Add a required ifq_purge() in igb_start_locked() in case where the
  adapter's link is not yet active.

* NOTE: In FreeBSD this is not the case, but correctly coding the
  driver would probably still be beneficial.

3 years agoudevd - Exit from the SIGTERM handler
Alex Hornung [Wed, 22 Dec 2010 08:58:13 +0000 (08:58 +0000)]
udevd - Exit from the SIGTERM handler

Reported-by: Tim Darby
3 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Samuel J. Greear [Wed, 22 Dec 2010 05:31:24 +0000 (05:31 +0000)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly