dragonfly.git
23 months agosys/kern/usched_bsd4.c: set default usched_bsd4_upri_affinity to 16 smt_usched_bsd4
Mihai Carabas [Fri, 10 Aug 2012 12:11:48 +0000 (15:11 +0300)]
sys/kern/usched_bsd4.c: set default usched_bsd4_upri_affinity to 16

23 months agosys/kern/usched_bsd4.c: improve batchy_looser_pri_test searching through the mask
Mihai Carabas [Thu, 9 Aug 2012 14:44:02 +0000 (17:44 +0300)]
sys/kern/usched_bsd4.c: improve batchy_looser_pri_test searching through the mask

23 months agosys/sys/cpu_topology.h: fix code style
Mihai Carabas [Thu, 9 Aug 2012 10:01:34 +0000 (13:01 +0300)]
sys/sys/cpu_topology.h: fix code style

23 months agoktr: add KTR_GLOBAL_BUFFER. Use only the buffer from cpu 0 for a consistent order...
Mihai Carabas [Thu, 9 Aug 2012 09:54:18 +0000 (12:54 +0300)]
ktr: add KTR_GLOBAL_BUFFER. Use only the buffer from cpu 0 for a consistent order of the evens. The entries are allocated atomicly

23 months agosys/kern/kern_ktr.c: added global timestamp option
Mihai Carabas [Tue, 7 Aug 2012 23:25:30 +0000 (02:25 +0300)]
sys/kern/kern_ktr.c: added global timestamp option

23 months agosys/kern/usched_bsd4.c: fix batchy looser pri search mask
Mihai Carabas [Tue, 7 Aug 2012 11:49:28 +0000 (14:49 +0300)]
sys/kern/usched_bsd4.c: fix batchy looser pri search mask

23 months agoktr: add new entry KTR_COND_LOG; usched: fix batchy looser mask bug
Mihai Carabas [Mon, 6 Aug 2012 19:45:26 +0000 (22:45 +0300)]
ktr: add new entry KTR_COND_LOG; usched: fix batchy looser mask bug

23 months agousched_bsd4: added posibility to configure the level you want cache-coherent heuristi...
Mihai Carabas [Sun, 5 Aug 2012 19:52:55 +0000 (22:52 +0300)]
usched_bsd4: added posibility to configure the level you want cache-coherent heuristic to stick to

23 months agosys/kern/usched_bsd4.c: fix some KTR printings
Mihai Carabas [Fri, 3 Aug 2012 18:53:49 +0000 (21:53 +0300)]
sys/kern/usched_bsd4.c: fix some KTR printings

23 months agosys/kern/usched_bsd4.c: clean-up code; add KTR debug prints
Mihai Carabas [Fri, 3 Aug 2012 18:19:46 +0000 (21:19 +0300)]
sys/kern/usched_bsd4.c: clean-up code; add KTR debug prints

23 months agosys/kern/usched_bsd4.c: limit the HT searchings to the current socket
Mihai Carabas [Thu, 2 Aug 2012 22:43:29 +0000 (01:43 +0300)]
sys/kern/usched_bsd4.c: limit the HT searchings to the current socket

23 months agosys/kern/usched_bsd4.c: uncomment HT code
Mihai Carabas [Thu, 2 Aug 2012 22:31:30 +0000 (01:31 +0300)]
sys/kern/usched_bsd4.c: uncomment HT code

23 months agosys/kern/usched_bsd4.c: enable kprintf debug for a pid
Mihai Carabas [Thu, 2 Aug 2012 17:18:49 +0000 (20:18 +0300)]
sys/kern/usched_bsd4.c: enable kprintf debug for a pid

23 months agosys/kern/usched_bsd4.c: clean usched_bsd4_smt_enable - has no benefical effect on...
Mihai Carabas [Tue, 31 Jul 2012 09:58:08 +0000 (12:58 +0300)]
sys/kern/usched_bsd4.c: clean usched_bsd4_smt_enable - has no benefical effect on scheduling

23 months agosys/platform/../mp_machdep.c: fix core_bits calculation for FUNC_B
Mihai Carabas [Sun, 29 Jul 2012 18:55:27 +0000 (21:55 +0300)]
sys/platform/../mp_machdep.c: fix core_bits calculation for FUNC_B

23 months agosys/kern/usched_bsd4.c: fix lwkt_create (remove TDF_NOSTART - due to changed mechanis...
Mihai Carabas [Thu, 26 Jul 2012 23:05:38 +0000 (02:05 +0300)]
sys/kern/usched_bsd4.c: fix lwkt_create (remove TDF_NOSTART - due to changed mechanism to tsleep/wakeup)

23 months agosys/kern/usched_bsd4.c: added smt pulling heuristic and a lot of debug kprintf and KTR
Mihai Carabas [Thu, 26 Jul 2012 18:06:48 +0000 (21:06 +0300)]
sys/kern/usched_bsd4.c: added smt pulling heuristic and a lot of debug kprintf and KTR

23 months agosys/kern/kern_clock.c: added support for sched_ticks in a LWP
Mihai Carabas [Thu, 26 Jul 2012 18:00:21 +0000 (21:00 +0300)]
sys/kern/kern_clock.c: added support for sched_ticks in a LWP

23 months agosys/kern/usched_bsd4.c: fix cpu election when no free cpu is found
Mihai Carabas [Tue, 10 Jul 2012 10:13:25 +0000 (13:13 +0300)]
sys/kern/usched_bsd4.c: fix cpu election when no free cpu is found

23 months agosys/kern/usched_bsd4.c: add cache hotness heuristic
Mihai Carabas [Sun, 8 Jul 2012 18:37:42 +0000 (21:37 +0300)]
sys/kern/usched_bsd4.c: add cache hotness heuristic

23 months agoCPU Topology: fix bug - apicid (get next valid apicid)
Mihai Carabas [Sat, 30 Jun 2012 16:11:54 +0000 (19:11 +0300)]
CPU Topology: fix bug - apicid (get next valid apicid)

23 months agocpu_topology: fix bug - apicids aren't consecutive
Mihai Carabas [Sat, 30 Jun 2012 15:11:06 +0000 (18:11 +0300)]
cpu_topology: fix bug - apicids aren't consecutive

23 months agocpu_topology: fix get_XXX_id - get the id from the APICID, not CPUID
Mihai Carabas [Sat, 30 Jun 2012 00:11:06 +0000 (03:11 +0300)]
cpu_topology: fix get_XXX_id - get the id from the APICID, not CPUID

23 months agocpu_topology: add some debug printfs
Mihai Carabas [Fri, 29 Jun 2012 23:35:38 +0000 (02:35 +0300)]
cpu_topology: add some debug printfs

23 months agousched_bsd4: schedule the threads of a process on the same core
Mihai Carabas [Thu, 28 Jun 2012 16:41:58 +0000 (19:41 +0300)]
usched_bsd4: schedule the threads of a process on the same core

23 months agovkernel: fix some issues in formating the man 7 page for vkernel
Mihai Carabas [Thu, 21 Jun 2012 15:41:35 +0000 (18:41 +0300)]
vkernel: fix some issues in formating the man 7 page for vkernel

23 months agovkernel: move the -b/-B paramters to -n as options (-n ncpus[:lbits[:cbits]])
Mihai Carabas [Thu, 21 Jun 2012 14:23:17 +0000 (17:23 +0300)]
vkernel: move the -b/-B paramters to -n as options (-n ncpus[:lbits[:cbits]])

23 months agovkernel: update vkernel.7 man for lbits and cbits options from -n parameter
Mihai Carabas [Thu, 21 Jun 2012 14:21:55 +0000 (17:21 +0300)]
vkernel: update vkernel.7 man for lbits and cbits options from -n parameter

23 months agovkernel: add argument -b|-B description in help output
Mihai Carabas [Mon, 18 Jun 2012 17:52:05 +0000 (20:52 +0300)]
vkernel: add argument -b|-B description in help output

23 months agomp_machdep.c: fix get_CHIP_id functions
Mihai Carabas [Mon, 18 Jun 2012 17:51:19 +0000 (20:51 +0300)]
mp_machdep.c: fix get_CHIP_id functions

23 months agosys/platform/vkernel/platform/init.c: forgot to add b:B: to getopt
Mihai Carabas [Mon, 18 Jun 2012 16:09:55 +0000 (19:09 +0300)]
sys/platform/vkernel/platform/init.c: forgot to add b:B: to getopt

23 months agosys/platform/pc64/x86_64/mp_machdep.c: remove kprintf debugging for AMD cpu
Mihai Carabas [Mon, 18 Jun 2012 14:56:36 +0000 (17:56 +0300)]
sys/platform/pc64/x86_64/mp_machdep.c: remove kprintf debugging for AMD cpu

23 months agosys/platform/xxx/include/smp.h: some clean-up for non-SMP compilation
Mihai Carabas [Mon, 18 Jun 2012 14:55:58 +0000 (17:55 +0300)]
sys/platform/xxx/include/smp.h: some clean-up for non-SMP compilation

23 months agoCPU Topology: guarding all the code with ifdef SMP. On UP there is nothing to do...
Mihai Carabas [Mon, 18 Jun 2012 08:52:15 +0000 (11:52 +0300)]
CPU Topology: guarding all the code with ifdef SMP. On UP there is nothing to do here

23 months agousched_bsd4: added init sysctl tree function for non-SMP
Mihai Carabas [Mon, 18 Jun 2012 08:51:30 +0000 (11:51 +0300)]
usched_bsd4: added init sysctl tree function for non-SMP

23 months agosys/platform/pc32/i386/mp_machdep.c: fix some issues to get working the vkernels
Mihai Carabas [Mon, 18 Jun 2012 08:49:07 +0000 (11:49 +0300)]
sys/platform/pc32/i386/mp_machdep.c: fix some issues to get working the vkernels

23 months agopc64/x86_64/mp_machdep.c: fix some issues to get working the vkernels
Mihai Carabas [Mon, 18 Jun 2012 08:48:36 +0000 (11:48 +0300)]
pc64/x86_64/mp_machdep.c: fix some issues to get working the vkernels

23 months agoCPU topology: added support to build a custom CPU topology within a vkernel. New...
Mihai Carabas [Mon, 18 Jun 2012 08:47:15 +0000 (11:47 +0300)]
CPU topology: added support to build a custom CPU topology within a vkernel. New params: -b and -B

23 months agoCPU topology: added support to build a custom CPU topology within a vkernel64. New...
Mihai Carabas [Mon, 18 Jun 2012 08:46:54 +0000 (11:46 +0300)]
CPU topology: added support to build a custom CPU topology within a vkernel64. New params: -b and -B

23 months agosys/platform/pc32/i386/identcpu.c: fix compile error - unused variables cmp and htt
Mihai Carabas [Sat, 16 Jun 2012 23:39:28 +0000 (02:39 +0300)]
sys/platform/pc32/i386/identcpu.c: fix compile error - unused variables cmp and htt

23 months agoplatform/pcXX/XXXX/identcpu.c: comment out the code for printing the number of cores...
Mihai Carabas [Sat, 16 Jun 2012 18:42:21 +0000 (21:42 +0300)]
platform/pcXX/XXXX/identcpu.c: comment out the code for printing the number of cores. It is not complete, invalidates a bit for AMD cpus and this interfere with cpu topology detection. CPU core/package info will be obtain from sysctl "hw.cpu_topology.tree"

23 months agox86_64/identcpu.c: remove topology info from printcpuinfo() - the checks weren't...
Mihai Carabas [Fri, 15 Jun 2012 19:25:33 +0000 (22:25 +0300)]
x86_64/identcpu.c: remove topology info from printcpuinfo() - the checks weren't coherent

23 months agox86_64/mp_machdep.c: more kprintf debug
Mihai Carabas [Fri, 15 Jun 2012 18:48:23 +0000 (21:48 +0300)]
x86_64/mp_machdep.c: more kprintf debug

23 months agox86_64/mp_machdep.c: add temporary debugging kprintf messages
Mihai Carabas [Fri, 15 Jun 2012 12:52:44 +0000 (15:52 +0300)]
x86_64/mp_machdep.c: add temporary debugging kprintf messages

23 months agousched_bsd4: add ht_enable sysctl option; make a sysctl leaf with usched_bsd4 configu...
Mihai Carabas [Fri, 15 Jun 2012 10:56:23 +0000 (13:56 +0300)]
usched_bsd4: add ht_enable sysctl option; make a sysctl leaf with usched_bsd4 configurable parameters; schedule decisions when ht_enable based on lwp_batch of the siblings

23 months agoCPU Topology: fix coding style acording to man 9 style
Mihai Carabas [Fri, 15 Jun 2012 10:54:11 +0000 (13:54 +0300)]
CPU Topology: fix coding style acording to man 9 style

23 months agosubr_cpu_topology.c: fix comment and coding style
Mihai Carabas [Wed, 13 Jun 2012 11:54:42 +0000 (14:54 +0300)]
subr_cpu_topology.c: fix comment and coding style

23 months agomp_machdep: fix comment and coding style
Mihai Carabas [Wed, 13 Jun 2012 11:54:22 +0000 (14:54 +0300)]
mp_machdep: fix comment and coding style

23 months agoCPU Topology: fix spelling for sysctl physical_siblings entry
Mihai Carabas [Sat, 9 Jun 2012 20:11:47 +0000 (23:11 +0300)]
CPU Topology: fix spelling for sysctl physical_siblings entry

23 months agoCPU Topology: fix compile errors for i386 - some missing constant defines
Mihai Carabas [Mon, 4 Jun 2012 20:29:28 +0000 (23:29 +0300)]
CPU Topology: fix compile errors for i386 - some missing constant defines

23 months agoCPU Topology: rename by convention from cpu_topology.c to subr_cpu_topology.c
Mihai Carabas [Sun, 3 Jun 2012 19:15:12 +0000 (22:15 +0300)]
CPU Topology: rename by convention from cpu_topology.c to subr_cpu_topology.c

23 months agoCPU Topology: check if there are any physical siblings before add the sysctl node
Mihai Carabas [Sun, 3 Jun 2012 15:08:46 +0000 (18:08 +0300)]
CPU Topology: check if there are any physical siblings before add the sysctl node

23 months agoCPU Topology: add machdep detection for 32bit. NOT TESTED YET
Mihai Carabas [Sun, 3 Jun 2012 15:08:06 +0000 (18:08 +0300)]
CPU Topology: add machdep detection for 32bit. NOT TESTED YET

23 months agoCPU Topology: fix bug - don't create core_id leaf if there are only physical cpus
Mihai Carabas [Sun, 3 Jun 2012 13:58:00 +0000 (16:58 +0300)]
CPU Topology: fix bug - don't create core_id leaf if there are only physical cpus

23 months agoCPU Topology: sysctl information about cpus
Mihai Carabas [Sun, 3 Jun 2012 12:49:18 +0000 (15:49 +0300)]
CPU Topology: sysctl information about cpus

23 months agousched_bsd4: added per CPU information about the cpunode they belong
Mihai Carabas [Sun, 3 Jun 2012 10:17:13 +0000 (13:17 +0300)]
usched_bsd4: added per CPU information about the cpunode they belong

23 months agoCPU Topology - fix bug: use APICID in building the topology tree
Mihai Carabas [Sun, 3 Jun 2012 10:16:45 +0000 (13:16 +0300)]
CPU Topology - fix bug: use APICID in building the topology tree

23 months agoCPU Topology: add init entry in sys/kernel.h
Mihai Carabas [Sat, 2 Jun 2012 18:23:18 +0000 (21:23 +0300)]
CPU Topology: add init entry in sys/kernel.h

23 months agoCPU Topology: fix tree print
Mihai Carabas [Sat, 2 Jun 2012 17:53:08 +0000 (20:53 +0300)]
CPU Topology: fix tree print

23 months agoCPU Topology: fix some compile errors
Mihai Carabas [Sat, 2 Jun 2012 16:56:35 +0000 (19:56 +0300)]
CPU Topology: fix some compile errors

23 months agoCPU Topology: Refactoring (split machdep and general code). Fix Intel detection bug.
Mihai Carabas [Sat, 2 Jun 2012 15:47:06 +0000 (18:47 +0300)]
CPU Topology: Refactoring (split machdep and general code). Fix Intel detection bug.

23 months agox86_64: build CPU topology support
Mihai Carabas [Fri, 1 Jun 2012 21:31:48 +0000 (00:31 +0300)]
x86_64: build CPU topology support

23 months agofix UP - PCI memory
Mihai Carabas [Thu, 28 Jun 2012 10:46:33 +0000 (13:46 +0300)]
fix UP - PCI memory

23 months agobce: Add TSO support
Sepherosa Ziehau [Fri, 10 Aug 2012 08:22:44 +0000 (16:22 +0800)]
bce: Add TSO support

Obatined-from: FreeBSD

With following modification:
These chips can handle ip.ip_len and tcphdr.th_sum, if they are setup
according to Microsoft LSO specification, so ip.ip_len should not be
cleared and tcphdr.th_sum should be left as it is.

According-to: bnx2

23 months agobce: Remove debug stuffs from polling code
Sepherosa Ziehau [Fri, 10 Aug 2012 06:20:49 +0000 (14:20 +0800)]
bce: Remove debug stuffs from polling code

23 months agobce: Remove debug stuffs from output path
Sepherosa Ziehau [Fri, 10 Aug 2012 06:19:15 +0000 (14:19 +0800)]
bce: Remove debug stuffs from output path

23 months agotuxload - Minor modifications.
Antonio Huete Jimenez [Fri, 10 Aug 2012 08:42:07 +0000 (10:42 +0200)]
tuxload - Minor modifications.

- Add some output.
- First create the files, then mmap() them

23 months agobce: Set RX interrupt rate ~6000Hz
Sepherosa Ziehau [Fri, 10 Aug 2012 04:51:59 +0000 (12:51 +0800)]
bce: Set RX interrupt rate ~6000Hz

23 months agobce: Don't loop in the interrupt handler to drain TX/RX
Sepherosa Ziehau [Fri, 10 Aug 2012 04:36:17 +0000 (12:36 +0800)]
bce: Don't loop in the interrupt handler to drain TX/RX

23 months agobce: Remove debug stuffs on RX/TX interrupt path
Sepherosa Ziehau [Fri, 10 Aug 2012 02:27:13 +0000 (10:27 +0800)]
bce: Remove debug stuffs on RX/TX interrupt path

23 months agobce: Remove debugging stuffs in interrupt handler
Sepherosa Ziehau [Fri, 10 Aug 2012 02:19:01 +0000 (10:19 +0800)]
bce: Remove debugging stuffs in interrupt handler

23 months agoposix_memalign.3: Document aligned_alloc().
Sascha Wildner [Thu, 9 Aug 2012 19:15:53 +0000 (21:15 +0200)]
posix_memalign.3: Document aligned_alloc().

23 months agolibc: Add a copyright to aligned_alloc.c
Sascha Wildner [Thu, 9 Aug 2012 17:42:46 +0000 (19:42 +0200)]
libc: Add a copyright to aligned_alloc.c

23 months agomalloc.3: Remove a ,
Sascha Wildner [Thu, 9 Aug 2012 17:39:11 +0000 (19:39 +0200)]
malloc.3: Remove a ,

23 months agoixgbe(4): Sync with FreeBSD
François Tigeot [Thu, 9 Aug 2012 10:52:34 +0000 (12:52 +0200)]
ixgbe(4): Sync with FreeBSD

Update to the ixgbe driver:
  - Add a couple of new devices
  - Flow control changes in shared and core code
  - Bug fix to Flow Director for 82598
  - Shared code sync to internal with required core change

23 months agoixgbe: compilation fix for debug routines
François Tigeot [Thu, 9 Aug 2012 08:47:55 +0000 (10:47 +0200)]
ixgbe: compilation fix for debug routines

The driver didn't build when DBG was set to 1.

23 months agoat_quick_exit.3: Add an ERRORS section.
Sascha Wildner [Thu, 9 Aug 2012 07:58:46 +0000 (09:58 +0200)]
at_quick_exit.3: Add an ERRORS section.

Submitted-by: vsrinivas
23 months agolibc: Add a copyright to quick_exit.c
Sascha Wildner [Thu, 9 Aug 2012 07:58:31 +0000 (09:58 +0200)]
libc: Add a copyright to quick_exit.c

Reported-by: vsrinivas
23 months ago<stdlib.h>: Adjust the visibility of our C11 functions.
Sascha Wildner [Thu, 9 Aug 2012 07:53:03 +0000 (09:53 +0200)]
<stdlib.h>: Adjust the visibility of our C11 functions.

23 months agoAdd at_quick_exit(3) and quick_exit(3) manual pages.
Sascha Wildner [Thu, 9 Aug 2012 07:50:14 +0000 (09:50 +0200)]
Add at_quick_exit(3) and quick_exit(3) manual pages.

Taken-from: FreeBSD

23 months agomdoc: Let us refer to C11 in manual pages with ".St -isoC-2011".
Sascha Wildner [Thu, 9 Aug 2012 07:40:10 +0000 (09:40 +0200)]
mdoc: Let us refer to C11 in manual pages with ".St -isoC-2011".

23 months agoxterm: Remove ability to restore console after man, less, etc.
John Marino [Wed, 8 Aug 2012 23:00:33 +0000 (01:00 +0200)]
xterm: Remove ability to restore console after man, less, etc.

Having a man page disappear before the read the end (if it indeed appears
at all) is pretty annoying.  Equally annoying is using the "more" command
on a file with few lines only to see nothing.  The default behavior of
xterm console had few fans.

This removes the smcup and rmcup codes from xterm-basic, the basis for
the xterm console definitions.  Now man pages are left on the screen
after viewing, and the pagers work as expected.

23 months agoemx: Status change is protected by main serializer
Sepherosa Ziehau [Thu, 9 Aug 2012 06:56:45 +0000 (14:56 +0800)]
emx: Status change is protected by main serializer

No need to hold all of the serializers during a status poll

23 months agocut(1): Add back -w (split on whitespace functionality).
Sascha Wildner [Thu, 9 Aug 2012 00:56:25 +0000 (02:56 +0200)]
cut(1): Add back -w (split on whitespace functionality).

Reported-by: Tim Darby <t+dfbsd@timdarby.net>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2385>

23 months agocut: Sync with FreeBSD
John Marino [Wed, 8 Aug 2012 21:22:08 +0000 (23:22 +0200)]
cut: Sync with FreeBSD

Addresses:
http://bugs.dragonflybsd.org/issues/2385
reported-by: Tim Darby

23 months agohpt27xx(4): Use NULL for pointers.
Sascha Wildner [Wed, 8 Aug 2012 13:42:58 +0000 (15:42 +0200)]
hpt27xx(4): Use NULL for pointers.

23 months agoAdd the hpt27xx(4) driver for HighPoint RocketRAID 27xx SAS controllers.
Sascha Wildner [Wed, 8 Aug 2012 12:18:22 +0000 (14:18 +0200)]
Add the hpt27xx(4) driver for HighPoint RocketRAID 27xx SAS controllers.

The manual page mentions the following adapters to be supported:

* RocketRAID 271x
* RocketRAID 272x
* RocketRAID 274x
* RocketRAID 276x
* RocketRAID 278x

I have tested it with a RocketRAID 2720.

Taken-from: FreeBSD

23 months agobnx: Disable RX max BDs based interrupt moderation
Sepherosa Ziehau [Wed, 8 Aug 2012 13:11:11 +0000 (21:11 +0800)]
bnx: Disable RX max BDs based interrupt moderation

The RX max coalesce BDs is limited to 255, which means that the chip will
generate ~5800 interrupts/s when it sinks 1.48Mpps tiny packets.  However,
interrupt rate at 4000Hz is already enough for the chip to sink 1.48Mpps
tiny packets, so ticks based RX interrupt moderation should be prefered.

23 months agobnx: Allow TX/RX max coalesce BDs to be 0; mainly for debugging
Sepherosa Ziehau [Wed, 8 Aug 2012 11:11:03 +0000 (19:11 +0800)]
bnx: Allow TX/RX max coalesce BDs to be 0; mainly for debugging

23 months agobnx: Correct debug messages
Sepherosa Ziehau [Wed, 8 Aug 2012 08:35:53 +0000 (16:35 +0800)]
bnx: Correct debug messages

23 months agobnx: Rearrange the code to check the spare TX descripors first
Sepherosa Ziehau [Wed, 8 Aug 2012 08:11:11 +0000 (16:11 +0800)]
bnx: Rearrange the code to check the spare TX descripors first

While im here, remove the useless fragmentation checksum code, which
is never supported by this driver

23 months agobnx: Increase spare TX descriptors to 33 to incorporate TSO segment
Sepherosa Ziehau [Wed, 8 Aug 2012 07:53:30 +0000 (15:53 +0800)]
bnx: Increase spare TX descriptors to 33 to incorporate TSO segment

23 months agoemx: emx_timer() only requires main serializer
Sepherosa Ziehau [Wed, 8 Aug 2012 05:31:56 +0000 (13:31 +0800)]
emx: emx_timer() only requires main serializer

23 months agoem/emx: Fix up detach path
Sepherosa Ziehau [Wed, 8 Aug 2012 05:21:20 +0000 (13:21 +0800)]
em/emx: Fix up detach path

- We could release management control only if PCI BAR is mapped
- Release multicase array memory

23 months agoemx: Increase spare TX descriprors to 33 incorporate TSO segment
Sepherosa Ziehau [Wed, 8 Aug 2012 04:18:26 +0000 (12:18 +0800)]
emx: Increase spare TX descriprors to 33 incorporate TSO segment

23 months agoemx: Make sure that mbuf is changed before busdma sync
Sepherosa Ziehau [Wed, 8 Aug 2012 04:09:51 +0000 (12:09 +0800)]
emx: Make sure that mbuf is changed before busdma sync

This should not be problem for emx, since it does not have any
busdma constraint thus no effective busdma sync will happen.

23 months agoigb: Make sure that mbuf is changed before busdma sync
Sepherosa Ziehau [Wed, 8 Aug 2012 03:49:41 +0000 (11:49 +0800)]
igb: Make sure that mbuf is changed before busdma sync

This should not be problem for igb, since it does not have any
busdma constraint thus no effective busdma sync will happen.

23 months agoalc: Stablize this driver and fix various porting overlooks
Sepherosa Ziehau [Mon, 6 Aug 2012 12:15:15 +0000 (20:15 +0800)]
alc: Stablize this driver and fix various porting overlooks

- Use ifnet serializer to protect driver data.  This should fix the
  various panics that were observed on the network output path.
- Fix busdma setup.
- Always allocate the descriptor rings and status blocks at the lower
  4GB.  The original way will require the RX/TX bufs to be located at
  the lower 4GB, which is a great waste of bounce buffers, cpu cycles
  and memory bandwidth.
- Don't mess up M_PKTHDR on RX path.
- Allocate mbuf w/ MB_WAIT on initialization path.
- Enable MSI by default.

23 months agoncurses: Fix pkgsrc check and use of ncurses
John Marino [Tue, 7 Aug 2012 11:35:26 +0000 (13:35 +0200)]
ncurses: Fix pkgsrc check and use of ncurses

Without the macro SET_NEED_WCHAR_H defined, the ncurses header will not
include wchar.h which is where the wint_t type is defined.  This breaks
any program loading ncurses.h without defining this macro because several
functions use the wint_t type.

Define wint_t as int if wchar.h isn't included.  This fixes the ncurses
check on several pkgsrc configuration checks and allows the package to
build with the system ncurses.

23 months agoarcmsr(4): Use cam_calc_geometry().
Sascha Wildner [Tue, 7 Aug 2012 07:19:35 +0000 (09:19 +0200)]
arcmsr(4): Use cam_calc_geometry().