]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoAdd some debugging to try and catch an invalid TX rate (0x0) that is
adrian [Tue, 13 Nov 2012 06:28:57 +0000 (06:28 +0000)]
Add some debugging to try and catch an invalid TX rate (0x0) that is
being reported.

11 years agoBe more consistent.
obrien [Tue, 13 Nov 2012 06:07:13 +0000 (06:07 +0000)]
Be more consistent.

11 years agoUse uiomove return value instead of returning 0.
kevlo [Tue, 13 Nov 2012 06:03:43 +0000 (06:03 +0000)]
Use uiomove return value instead of returning 0.

11 years agoCheck the return value of uiomove(9).
kevlo [Tue, 13 Nov 2012 05:58:52 +0000 (05:58 +0000)]
Check the return value of uiomove(9).

11 years agoImport new version of libc++ into base.
theraven [Tue, 13 Nov 2012 03:27:43 +0000 (03:27 +0000)]
Import new version of libc++ into base.

11 years agoGarbage collect the explicit "compile-with", they are no longer needed.
obrien [Tue, 13 Nov 2012 03:09:26 +0000 (03:09 +0000)]
Garbage collect the explicit "compile-with", they are no longer needed.

11 years agoDo not unwind past a zero PC frame.
emaste [Tue, 13 Nov 2012 03:05:28 +0000 (03:05 +0000)]
Do not unwind past a zero PC frame.

This improves GDB usability when debugging code compiled with
optimization.

Upstream GDB revision f0031b6d3ae9b164b3747986ab898190bd4dcf8c (prior
to GDB's switch to GPLv3), with frame_debug_got_null_frame expanded
inline.

| 2004-12-12  Andrew Cagney  <cagney@gnu.org>
|
| * frame.c (get_prev_frame): When unwinding normal frames, check
| that the PC isn't zero.

Sponsored by: ADARA Networks
MFC After: 1 month

11 years agoReplace the single, global page queues lock with per-queue locks on the
alc [Tue, 13 Nov 2012 02:50:39 +0000 (02:50 +0000)]
Replace the single, global page queues lock with per-queue locks on the
active and inactive paging queues.

Reviewed by: kib

11 years agoUse consistent style.
obrien [Tue, 13 Nov 2012 01:48:00 +0000 (01:48 +0000)]
Use consistent style.

11 years agoSet optimized_out instead of reporting an error.
emaste [Tue, 13 Nov 2012 01:21:17 +0000 (01:21 +0000)]
Set optimized_out instead of reporting an error.

This provides a better display when debugging code compiled with
optimization on.

GDB git revision e8395b4efd184f745070afb953f451f99e922be7 (prior to GDB's
switch to GPLv3), modified for the interfaces provided by GDB 6.1.1.

2005-02-28  Daniel Jacobowitz  <dan@codesourcery.com>

 * dwarf2loc.c (loclist_read_variable): Set optimized_out
 instead of reporting an error.
 * valprint.c (value_check_printable): New function.
 (common_val_print): New function.  Use value_check_printable.
 (value_print): Use value_check_printable.
 * value.h (common_val_print): Add prototype.
 * c-valprint.c (c_val_print): Use common_val_print.
 * cp-valprint.c (cp_print_value_fields): Likewise.
 (cp_print_hpacc_virtual_table_entries): Likewise.
 * f-valprint.c (f_val_print): Likewise.
 * jv-valprint.c (java_value_print, java_print_value_fields):
 Likewise.
 * scm-valprint.c (scm_value_print): Likewise.
 * stack.c (print_frame_args): Likewise.
 * varobj.c (c_value_of_variable): Likewise.
 * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
 (pascal_object_print_value_fields): Likewise.  Update call to
 pascal_object_print_static_field.
 (pascal_object_print_static_field): Remove TYPE argument.  Use
 common_val_print.

Sponsored by: ADARA Networks
MFC after: 1 month

11 years agoAdd a callback function to userboot.so to fetch a list of environment
neel [Mon, 12 Nov 2012 22:38:54 +0000 (22:38 +0000)]
Add a callback function to userboot.so to fetch a list of environment
variables and pass them to the kernel.

Reviewed by: dfr

11 years agoRedo r242889, now using the method from projects/amd64_xen_pv r240747.
dim [Mon, 12 Nov 2012 22:28:32 +0000 (22:28 +0000)]
Redo r242889, now using the method from projects/amd64_xen_pv r240747.

Reminded by: kib
MFC after: 3 days

11 years agoRedo r242842, now actually fixing the warnings, as follows:
dim [Mon, 12 Nov 2012 22:01:29 +0000 (22:01 +0000)]
Redo r242842, now actually fixing the warnings, as follows:
- In sys/ofed/drivers/infiniband/core/cma.c, an enum struct member is
  interpreted as an int, so cast it to an int.
- In sys/ofed/drivers/infiniband/core/ud_header.c, initialize the
  packet_length variable in ib_ud_header_init(), to prevent undefined
  behaviour.
- In sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c, call rdma_notify()
  with the correct enum type and value.
- In sys/ofed/include/linux/pci.h, change the PCI_DEVICE and PCI_VDEVICE
  macros to use C99 struct initializers, so additional members can be
  overridden.

Reviewed by: delphij, Garrett Cooper <yanegomi@gmail.com>
MFC after: 1 week

11 years agoFix a minor warning in sys/i386/xen/clock.c.
dim [Mon, 12 Nov 2012 20:50:11 +0000 (20:50 +0000)]
Fix a minor warning in sys/i386/xen/clock.c.

MFC after: 3 days

11 years agoMerge of vendor import of 242925, tzdata2012i
edwin [Mon, 12 Nov 2012 20:44:59 +0000 (20:44 +0000)]
Merge of vendor import of 242925, tzdata2012i

Update to tzdata2012i:
- Cuba is changing back to Standard Time on 4 November 2012.

11 years ago - Fix a bug that has existed since the original softdep implementation.
jeff [Mon, 12 Nov 2012 19:53:55 +0000 (19:53 +0000)]
 - Fix a bug that has existed since the original softdep implementation.
   When a background copy of a cg is written we complete any work associated
   with that bmsafemap.  If new work has been added to the non-background
   copy of the buffer it will be completed before the next write happens.
   The solution is to do the rollbacks when we make the copy so only those
   dependencies that were present at the time of writing will be completed
   when the background write completes.  This would've resulted in various
   bitmap related corruptions and panics.  It also would've expired journal
   entries early causing journal replay to miss some records.

MFC after: 2 weeks

11 years agoFix a stack leak in [unused] cycle_menuitem function while we're here
dteske [Mon, 12 Nov 2012 18:38:54 +0000 (18:38 +0000)]
Fix a stack leak in [unused] cycle_menuitem function while we're here
(required misconfiguration and/or missing environment vars to occur).

Reviewed by: peterj, adrian (co-mentor)
Approved by: adrian (co-mentor)

11 years agoUpdate MAX_TASKS to scale a bit based on MAXCPU
sbruno [Mon, 12 Nov 2012 18:09:25 +0000 (18:09 +0000)]
Update MAX_TASKS to scale a bit based on MAXCPU

This alleviates issues on newer Sandy/Ivy Bridge gear that seems to require
boatloads more ACPI resources than before.

Reviewed by: avg@
Obtained from: Yahoo! Inc.
MFC after: 2 weeks

11 years agoClarify where the authorized_key file lives.
eadler [Mon, 12 Nov 2012 14:16:39 +0000 (14:16 +0000)]
Clarify where the authorized_key file lives.

Approved by: bcr (mentor)
MFC after: 3 days

11 years agoAdd new USB IDs.
hselasky [Mon, 12 Nov 2012 07:25:51 +0000 (07:25 +0000)]
Add new USB IDs.

MFC after: 1 week
PR: usb/173503

11 years agoAllow this file to be used in LOCORE sections of the kernel.
rpaulo [Mon, 12 Nov 2012 06:15:54 +0000 (06:15 +0000)]
Allow this file to be used in LOCORE sections of the kernel.

11 years agoFix DDB command "show map XXX":
attilio [Mon, 12 Nov 2012 00:30:40 +0000 (00:30 +0000)]
Fix DDB command "show map XXX":
- Check that an argument is always available, otherwise current map
  printing before to recurse is garbage.
- Spit out a message if an argument is not provided.
- Remove unread nlines variable.
- Use an explicit recursive function, disassociated from the
  DB_SHOW_COMMAND() body, in order to make clear prototype and recursion
  of the above mentioned function.  The code results now much less
  obscure.

Submitted by: gianni

11 years agoTweak comments.
attilio [Sun, 11 Nov 2012 23:25:47 +0000 (23:25 +0000)]
Tweak comments.

In collabouration with: alc

11 years agoCorrect date of Stanley's encounter with Livingstone.
grog [Sun, 11 Nov 2012 22:43:36 +0000 (22:43 +0000)]
Correct date of Stanley's encounter with Livingstone.

Obtained from: Henry Morton Stanley, "How I met Livingstone", http://www.gutenberg.org/dirs/5/1/5/5157/5157-h/5157-h.htm
MFC after: 14 days

11 years agoCorrectly fix the 'scan during STA mode' crash.
adrian [Sun, 11 Nov 2012 21:58:18 +0000 (21:58 +0000)]
Correctly fix the 'scan during STA mode' crash.

11 years agoRemove this; i incorrectly committed the wrong (debug) changes in my
adrian [Sun, 11 Nov 2012 21:57:18 +0000 (21:57 +0000)]
Remove this; i incorrectly committed the wrong (debug) changes in my
previous commit.

11 years agoPrevent including .zfs snapshot directories in the src.txz
gjb [Sun, 11 Nov 2012 21:52:18 +0000 (21:52 +0000)]
Prevent including .zfs snapshot directories in the src.txz
distribution.  This can happen if the src/ tree checkout is
within its own ZFS dataset, and the 'snapdir' ZFS property
is set to 'visible.'

Approved by: hrs
MFC after: 3 days
X-MFC-To: stable/9 only

11 years agoAdd the standard exit status to the ssh-copy-id man page.
eadler [Sun, 11 Nov 2012 15:34:58 +0000 (15:34 +0000)]
Add the standard exit status to the ssh-copy-id man page.

Approved by: bcr (mentor)
MFC after: 3 days

11 years agosh: Forward-declare struct alias instead of giving up type safety via void *
jilles [Sun, 11 Nov 2012 15:13:24 +0000 (15:13 +0000)]
sh: Forward-declare struct alias instead of giving up type safety via void *

11 years agoAdd an explanatory comment to lib/libc/gen/isnan.c about the fix to make
dim [Sun, 11 Nov 2012 13:28:04 +0000 (13:28 +0000)]
Add an explanatory comment to lib/libc/gen/isnan.c about the fix to make
static linking with libc and libm work.

Requested by: jilles
MFC after: 1 week
X-MFC-With: 242879

11 years agoFix a typo.
rdivacky [Sun, 11 Nov 2012 10:45:21 +0000 (10:45 +0000)]
Fix a typo.

11 years agoChange the XNB_ASSERT from a statement expression to do-while(0) as its
rdivacky [Sun, 11 Nov 2012 10:42:34 +0000 (10:42 +0000)]
Change the XNB_ASSERT from a statement expression to do-while(0) as its
result is never used.

11 years agoAdd "pid" to the help menu (sort keys section).
rpaulo [Sun, 11 Nov 2012 08:22:58 +0000 (08:22 +0000)]
Add "pid" to the help menu (sort keys section).

11 years agoAdd the PID column to the list of sort keys.
rpaulo [Sun, 11 Nov 2012 08:16:33 +0000 (08:16 +0000)]
Add the PID column to the list of sort keys.

11 years agoDon't call av_set_tim() if it's NULL.
adrian [Sun, 11 Nov 2012 00:34:10 +0000 (00:34 +0000)]
Don't call av_set_tim() if it's NULL.

This happens during a scan in STA mode; any queued data frames will
be power save queued but as there's no TIM in STA mode, it panics.

This was introduced by me when I disabled my driver-aware power save
handling support.

11 years agoCorrect some rather weird and broken behaviour observed when doing
adrian [Sat, 10 Nov 2012 22:37:06 +0000 (22:37 +0000)]
Correct some rather weird and broken behaviour observed when doing
actual traffic with an AR9380/AR9382/AR9485.

The sample rate control stats would show impossibly large numbers for
"successful packets transmitted."  The number was a tad under 2^^64-1.
So after a bit of digging, I found that the sample rate control code
was making 'tries' turn into a negative number.. and this was because
ts_longretry was too small.

The hardware returns "ts_longretry" at the current rate selection,
not overall for that TX descriptor.  So if you setup four TX rate
scenarios and the second one works, ts_longretry is only set for
the number of attempts at that second rate scenario.  The FreeBSD HAL
code does the correction in ath_hal_proctxdesc() - however, this isn't
possible with EDMA.

EDMA TX completion is done separate from the original TX descriptor.
So the real solution is to split out "find ts_rate and ts_longretry"
from "complete TX descriptor".  Until that's done, put a hack in
the EDMA TX path that uses the rate scenario information in the ath_buf.

Tested: AR9380, AR9382, AR9485 STA mode

11 years agoOnly define isnan, isnanf, __isnan and __isnanf in libc.so, not in
dim [Sat, 10 Nov 2012 21:22:10 +0000 (21:22 +0000)]
Only define isnan, isnanf, __isnan and __isnanf in libc.so, not in
libc.a and libc_p.a.  In addition, define isnan in libm.a and libm_p.a,
but not in libm.so.

This makes it possible to statically link executables using both isnan
and isnanf with libc and libm.

Tested by: kargl
MFC after: 1 week

11 years ago- Protect mnt_data and mnt_flags under the mount interlock
attilio [Sat, 10 Nov 2012 19:32:16 +0000 (19:32 +0000)]
- Protect mnt_data and mnt_flags under the mount interlock
- Move mp->mnt_stat manipulation where all of them happens

Reported by: davide
Discussed with: kib
Tested by: flo
MFC after: 2 months
X-MFC: 241519, 242536,242616, 242727

11 years agoWork around pc98 tinderbox failures in sys/boot/pc98, by making sure a
dim [Sat, 10 Nov 2012 16:08:21 +0000 (16:08 +0000)]
Work around pc98 tinderbox failures in sys/boot/pc98, by making sure a
cross gcc gets built during the cross-tools stage.

MFC after: 1 week
X-MFC-With: 242706

11 years agoFix all the inconsistent nve_os* function declarations and definitions
dim [Sat, 10 Nov 2012 16:02:12 +0000 (16:02 +0000)]
Fix all the inconsistent nve_os* function declarations and definitions
in nve(4).  The OS_API structure defined in os.h expects NV_API_CALL
attributes, effectively regparm(0), on its function pointers, but all
the functions were declared and defined without this attribute.

MFC after: 1 week

11 years agos/ATH_DEBUG/ATH_DEBUG_ALQ
kevlo [Sat, 10 Nov 2012 15:21:39 +0000 (15:21 +0000)]
s/ATH_DEBUG/ATH_DEBUG_ALQ

11 years agoUse ANSI prototype to fix build with clang.
nyan [Sat, 10 Nov 2012 14:58:06 +0000 (14:58 +0000)]
Use ANSI prototype to fix build with clang.

MFC after: 1 week

11 years agoMFi386: r232263
nyan [Sat, 10 Nov 2012 14:56:35 +0000 (14:56 +0000)]
MFi386: r232263

  Fix build mpboot.s with clang.

11 years agoReduce diffs against i386.
nyan [Sat, 10 Nov 2012 13:48:41 +0000 (13:48 +0000)]
Reduce diffs against i386.

11 years agoFix some KASSERTs.
nyan [Sat, 10 Nov 2012 13:41:25 +0000 (13:41 +0000)]
Fix some KASSERTs.
They are missing changes from r208833, r227394 and r227442.

11 years agoMFi386: r211924
nyan [Sat, 10 Nov 2012 13:25:46 +0000 (13:25 +0000)]
MFi386: r211924

  Register an interrupt vector for DTrace return probes.

11 years agoUse ANSI prototype to fix build with clang.
nyan [Sat, 10 Nov 2012 13:24:33 +0000 (13:24 +0000)]
Use ANSI prototype to fix build with clang.

MFC after: 1 week

11 years agocosmetic changes to reduce diffs against i386.
nyan [Sat, 10 Nov 2012 12:42:28 +0000 (12:42 +0000)]
cosmetic changes to reduce diffs against i386.

11 years agoMFi386: r241300
nyan [Sat, 10 Nov 2012 12:38:06 +0000 (12:38 +0000)]
MFi386: r241300

  i386 comconsole: don't loop forever if hardware doesn't respond

    - clear capability flags when hw timeouts
    - retire comc_started status variable and directly use c_flags to see
      if comconsole is selected for use

11 years agoMFi386: r241301
nyan [Sat, 10 Nov 2012 12:25:27 +0000 (12:25 +0000)]
MFi386: r241301

  add detection of serial console presence to btx and boot2-like blocks

11 years agozfs_ioc_destroy_snaps_nvl: remove disk device entries for zvol snapshots
avg [Sat, 10 Nov 2012 12:22:26 +0000 (12:22 +0000)]
zfs_ioc_destroy_snaps_nvl: remove disk device entries for zvol snapshots

... before trying to destroy the zvol snapshots themselves.

PR: kern/173442
Reported by: Petri Helenius <petri@helenius.fi>,
mm
Obtained from: Brian Behlendorf <behlendorf1@llnl.gov>,
Illumos Bug #3170
Tested by: Petri Helenius <petri@helenius.fi>
MFC after: 10 days

11 years agoMFi386: r241785
nyan [Sat, 10 Nov 2012 11:55:52 +0000 (11:55 +0000)]
MFi386: r241785

  boot: use -march=i386 for both i386 and amd64 builds

11 years agoInitialize hdrlen to 0 to avoid clang warning in NOINET case.
rdivacky [Sat, 10 Nov 2012 10:41:00 +0000 (10:41 +0000)]
Initialize hdrlen to 0 to avoid clang warning in NOINET case.

11 years agoFix the build.
kevlo [Sat, 10 Nov 2012 08:34:40 +0000 (08:34 +0000)]
Fix the build.

11 years agoSeveral optimizations to sched_idletd():
mav [Sat, 10 Nov 2012 07:02:57 +0000 (07:02 +0000)]
Several optimizations to sched_idletd():
 - Do not try to steal load from other CPUs if there was no contest switches
on this CPU (i.e. it was idle all the time and woke up just for bus mastering
or TLB shutdown). If current CPU was idle, then it is quite unlikely that some
other CPU has load to steal.  Under high I/O rate, when TLB shutdowns cause
numerous CPU wakeups, on 24-CPU system load stealing code may consume up to
25% of all CPU time without giving any benefits.
 - Change code that implements spinning for load to restart spin in case of
context switch.  Previous code periodically called cpu_idle() even under
high interrupt/context switch rate.
 - Rise spinning threshold to 10KHz, where it gives at least some effect
that may worth consumed power.

Reviewed by: jeff@

11 years agoMore style(9) tabs vs. spaces:
grog [Sat, 10 Nov 2012 06:10:07 +0000 (06:10 +0000)]
More style(9) tabs vs. spaces:
- tabs after #define
- Not in comments.

MFC after: 2 weeks

11 years agoCorrect date and spelling of encounter between Stanley and
grog [Sat, 10 Nov 2012 04:49:09 +0000 (04:49 +0000)]
Correct date and spelling of encounter between Stanley and
Livingstone.

MFC after: 2 weeks

11 years agoBe a bit more paranoid.
eadler [Sat, 10 Nov 2012 03:44:08 +0000 (03:44 +0000)]
Be a bit more paranoid.
Use more portable constructs in order to allow upstream adoption
Add per-file error messages

Reviewed by: jilles
Approved by: cperciva
MFC after: 1 week

11 years agoAllow maxusers to scale on machines with large address space.
alfred [Sat, 10 Nov 2012 02:08:40 +0000 (02:08 +0000)]
Allow maxusers to scale on machines with large address space.

Some hooks are added to clamp down maxusers and nmbclusters for
small address space systems.

VM_MAX_AUTOTUNE_MAXUSERS - the max maxusers that will be autotuned based on
physical memory.
VM_MAX_AUTOTUNE_NMBCLUSTERS - max nmbclusters based on physical memory.

These are set to the old values on i386 to preserve the clamping that was
being done to all arches.

Another macro VM_AUTOTUNE_NMBCLUSTERS is provided to allow an override
for the calculation on a MD basis.  Currently no arch defines this.

Reviewed by: peter
MFC after: 2 weeks

11 years agoMFV r242729 (mm):
delphij [Sat, 10 Nov 2012 01:52:52 +0000 (01:52 +0000)]
MFV r242729 (mm):

Illumos r13840:97fd5cdf328a:

3145 single-copy arc
3212 ztest: race condition between vdev_online() and spa_vdev_remove()

Illumos r13849:3468a95b27cd:

3258 ztest's use of file descriptors is unstable

11 years agoImport jemalloc 3.2.0.
jasone [Sat, 10 Nov 2012 01:46:13 +0000 (01:46 +0000)]
Import jemalloc 3.2.0.

11 years agoAttempt toward a buildable universe by silenting a few warnings for OFED.
delphij [Sat, 10 Nov 2012 00:32:47 +0000 (00:32 +0000)]
Attempt toward a buildable universe by silenting a few warnings for OFED.

11 years agoUse %s when calling make_dev with a string pointer. This makes
delphij [Fri, 9 Nov 2012 21:41:07 +0000 (21:41 +0000)]
Use %s when calling make_dev with a string pointer.  This makes
clang happy.

MFC after: 2 weeks

11 years agoUndo over-aggressive conversion of spaces to tabs. ie: those within
peter [Fri, 9 Nov 2012 20:19:56 +0000 (20:19 +0000)]
Undo over-aggressive conversion of spaces to tabs. ie: those within
format strings, "period, space, space" in comment text, etc.

11 years agoReduce LLVM's default stack alignment for i386 from 16 to 4 bytes, as
dim [Fri, 9 Nov 2012 18:56:27 +0000 (18:56 +0000)]
Reduce LLVM's default stack alignment for i386 from 16 to 4 bytes, as
the FreeBSD ABI requires.  This is essentially a revert of upstream llvm
commit r126226, and it will be reverted by upstream too.

MFC after: 1 week

11 years agoSimplify sending keepalives.
melifaro [Fri, 9 Nov 2012 18:23:38 +0000 (18:23 +0000)]
Simplify sending keepalives.
Prepare ipfw_tick() to be used by other consumers.

Reviewed by: ae(basically)
MFC after: 2 weeks

11 years agoComplete MPSAFE VFS interface and remove MNTK_MPSAFE flag.
attilio [Fri, 9 Nov 2012 18:02:25 +0000 (18:02 +0000)]
Complete MPSAFE VFS interface and remove MNTK_MPSAFE flag.
Porters should refer to __FreeBSD_version 1000021 for this change as
it may have happened at the same timeframe.

11 years agoDont compile some files in drm with -finline-limit=1350. GCC 4.2.1 doesnt
rdivacky [Fri, 9 Nov 2012 17:46:07 +0000 (17:46 +0000)]
Dont compile some files in drm with -finline-limit=1350. GCC 4.2.1 doesnt
need that and clang does not support that. This effectively reverts r126542.

11 years agoFix LOW and FULL speed USB INTERRUPT endpoint support for the
hselasky [Fri, 9 Nov 2012 16:28:58 +0000 (16:28 +0000)]
Fix LOW and FULL speed USB INTERRUPT endpoint support for the
DWC OTG driver. Fix a hang issue when using LOW and FULL speed
BULK traffic. Make sure we don't ask for data in the last
microframe. This allows using devices like USB mice and USB
keyboards connected to the RPI-B.

Suggested by: gonzo @

11 years agoDo not try to enable new features in the %cr4 if running under
kib [Fri, 9 Nov 2012 16:00:30 +0000 (16:00 +0000)]
Do not try to enable new features in the %cr4 if running under
hypervisor.  Apparently, hypervisors failed to filter out 'Standard
Extended Features' report from CPUID, but deliver #gp when
corresponding bit in %cr4 is toggled.

This shall be reconsidered later, after hypervisors correct the bug.

Reported and tested by: joel
Reviewed by: avg
MFC after: 2 weeks

11 years agoGive tw_osl_dbg_printf format string to pacify clang warning.
rdivacky [Fri, 9 Nov 2012 15:29:52 +0000 (15:29 +0000)]
Give tw_osl_dbg_printf format string to pacify clang warning.

11 years agoGive device_printf format string to pacify clang warning.
rdivacky [Fri, 9 Nov 2012 14:58:26 +0000 (14:58 +0000)]
Give device_printf format string to pacify clang warning.

11 years agoCast VIA_READ to (void) where the result is unused.
rdivacky [Fri, 9 Nov 2012 14:46:23 +0000 (14:46 +0000)]
Cast VIA_READ to (void) where the result is unused.

11 years agoRemove unused static mn_timeout.
rdivacky [Fri, 9 Nov 2012 14:14:51 +0000 (14:14 +0000)]
Remove unused static mn_timeout.

11 years agoGive panic format string to pacify clang warning.
rdivacky [Fri, 9 Nov 2012 13:58:52 +0000 (13:58 +0000)]
Give panic format string to pacify clang warning.

11 years agoBelatedly (by many years!) bump the version numbers in the src/-side
gjb [Fri, 9 Nov 2012 04:52:15 +0000 (04:52 +0000)]
Belatedly (by many years!) bump the version numbers in the src/-side
documentation pages.

Saddened by: this file

11 years ago - Correct rev 242734, segments can sometimes get stuck. Be a bit more
jeff [Fri, 9 Nov 2012 04:04:25 +0000 (04:04 +0000)]
 - Correct rev 242734, segments can sometimes get stuck.  Be a bit more
   defensive with segment state.

Reported by:  b. f. <bf1783@googlemail.com>

11 years agoAdd support for Advantech PCI-1602 RS-485/RS-422 serial card
eadler [Fri, 9 Nov 2012 01:51:06 +0000 (01:51 +0000)]
Add support for Advantech PCI-1602 RS-485/RS-422 serial card

PR: kern/169726
Submitted by: Jan Mikkelsen <janm@transactionware.com>
Approved by: cperciva (implicit)
MFC after: 5 days

11 years agoFix a very incorrect description.
adrian [Fri, 9 Nov 2012 01:28:11 +0000 (01:28 +0000)]
Fix a very incorrect description.

11 years agoReplace spaces by tabs where appropriate.
grog [Thu, 8 Nov 2012 23:46:15 +0000 (23:46 +0000)]
Replace spaces by tabs where appropriate.

Reminded by: jh@

11 years agoReplace spaces with tabs where appropriate.
grog [Thu, 8 Nov 2012 23:45:19 +0000 (23:45 +0000)]
Replace spaces with tabs where appropriate.

Reminded by: jh@

11 years agoShrink boot2 by 8 bytes, by eliminating some unneeded instructions in
dim [Thu, 8 Nov 2012 23:21:02 +0000 (23:21 +0000)]
Shrink boot2 by 8 bytes, by eliminating some unneeded instructions in
sio.S.  This is not particularly needed for head right now, but it is
intended to merge to stable/9, to fix boot2 build with clang there.

Reviewed by: avg
MFC after: 3 days

11 years agoFix the build - fix up the ath_alq code to not compile by default.
adrian [Thu, 8 Nov 2012 23:11:59 +0000 (23:11 +0000)]
Fix the build - fix up the ath_alq code to not compile by default.

11 years agoNot only load pccard_ether settings, also load network settings. This
n_hibma [Thu, 8 Nov 2012 20:34:12 +0000 (20:34 +0000)]
Not only load pccard_ether settings, also load network settings. This
is only a problem when a /etc/rc.conf.d/network file is being used.

PR: conf/160373
Submitted by: n_hibma
MFC after: 1 week

11 years agoAdd some hooks into the driver to attach, detach and record EDMA descriptor
adrian [Thu, 8 Nov 2012 18:11:31 +0000 (18:11 +0000)]
Add some hooks into the driver to attach, detach and record EDMA descriptor
events.

This is primarily for the TX EDMA and TX EDMA completion. I haven't yet
tied it into the EDMA RX path or the legacy TX/RX path.

Things that I don't quite like:

* Make the pointer type 'void' in ath_softc and have if_ath_alq*()
  return a malloc'ed buffer.  That would remove the need to include
  if_ath_alq.h in if_athvar.h.
* The sysctl setup needs to be cleaned up.

11 years agoAdd my initial cut at driver-layer ALQ support.
adrian [Thu, 8 Nov 2012 18:07:29 +0000 (18:07 +0000)]
Add my initial cut at driver-layer ALQ support.

I'm using this to debug EDMA TX and RX descriptors and it's really helpful
to have a non-printf() way to decode frames.

I won't link this into the build until I've tidied it up a little more.

This will eventually be behind ATH_DEBUG_ALQ.

11 years agoOops, fix bogus spacing.
adrian [Thu, 8 Nov 2012 17:46:27 +0000 (17:46 +0000)]
Oops, fix bogus spacing.

11 years agoImplement the ATH_RESET_NOLOSS path for TX stop and start; this is needed
adrian [Thu, 8 Nov 2012 17:43:58 +0000 (17:43 +0000)]
Implement the ATH_RESET_NOLOSS path for TX stop and start; this is needed
for 802.11n TX device restarting.

Remove the debug printf()s; they're no longer needed here.

11 years agoConvert this to a debug printf; it's working fine now.
adrian [Thu, 8 Nov 2012 17:32:55 +0000 (17:32 +0000)]
Convert this to a debug printf; it's working fine now.

11 years agoMake the USB ethernet methods constant again in if_udav.c,
hselasky [Thu, 8 Nov 2012 16:31:13 +0000 (16:31 +0000)]
Make the USB ethernet methods constant again in if_udav.c,
so that both adapter variants can be attached at the same
time.

MFC after: 0 days

11 years agosh: Add tests for modifying an alias (r242766).
jilles [Thu, 8 Nov 2012 13:36:19 +0000 (13:36 +0000)]
sh: Add tests for modifying an alias (r242766).

Note: parser/alias10.0 will eat a lot of memory/cpu time when it fails (with
the old sh).

11 years agosh: Fix two issues when an alias is redefined:
jilles [Thu, 8 Nov 2012 13:33:48 +0000 (13:33 +0000)]
sh: Fix two issues when an alias is redefined:

 * The last character is not displayed.
 * If the alias ends with itself (as a word), an infinite memory-eating loop
   occurs.

If an alias is defined initially, a space is appended to avoid recursion but
this did not happen when an alias was later modified.

PR: bin/173418
Submitted by: Daniel F.
MFC after: 1 week

11 years agoAdd new USB device ID.
kevlo [Thu, 8 Nov 2012 09:29:05 +0000 (09:29 +0000)]
Add new USB device ID.

11 years agoMake r242655 build on sparc64. While at it, make vm_{max,min}_kernel_address
marius [Thu, 8 Nov 2012 08:10:32 +0000 (08:10 +0000)]
Make r242655 build on sparc64. While at it, make vm_{max,min}_kernel_address
vm_offset_t as they should be.

11 years agoReduce differences between these two initarms a bit more.
imp [Thu, 8 Nov 2012 04:02:36 +0000 (04:02 +0000)]
Reduce differences between these two initarms a bit more.

11 years agoCleanup some whitspace in this file to get it out of an upcoming patch.
bz [Thu, 8 Nov 2012 03:29:55 +0000 (03:29 +0000)]
Cleanup some whitspace in this file to get it out of an upcoming patch.

MFC after: 10 days

11 years agoZero the newly allocated md(4) swap-backed page to prevent random
kib [Thu, 8 Nov 2012 03:17:41 +0000 (03:17 +0000)]
Zero the newly allocated md(4) swap-backed page to prevent random
kernel memory leakage to userspace. For the typical use, when a
filesystem put on the md disk, the change only results in CPU and
memory bandwidth spent to zero the page, since filsystems make sure
that user never see unwritten content.  But if md disk is used as raw
device by userspace, the garbage is exposed.

Reported by: Paul Schenkeveld <freebsd@psconsult.nl>
MFC after: 2 weeks

11 years agoMake parameters to -c and -k options optional. If no parameters are
grog [Thu, 8 Nov 2012 02:55:30 +0000 (02:55 +0000)]
Make parameters to -c and -k options optional.  If no parameters are
supplied, print information for all keywords.

Improve output of -c option, in particular in conjunction with -k
option.

MFC after: 14 days

11 years agoClarify that the ' flag is an apostrophe.
grog [Thu, 8 Nov 2012 02:01:04 +0000 (02:01 +0000)]
Clarify that the ' flag is an apostrophe.

MFC after: 2 weeks

11 years agoAdd DTrace to 32-bit PowerPC GENERIC now.
jhibbits [Thu, 8 Nov 2012 01:51:23 +0000 (01:51 +0000)]
Add DTrace to 32-bit PowerPC GENERIC now.

MFC after: 1 month