]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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

11 years ago - Change ULE to use dynamic slice sizes for the timeshare queue in order
jeff [Thu, 8 Nov 2012 01:46:47 +0000 (01:46 +0000)]
 - Change ULE to use dynamic slice sizes for the timeshare queue in order
   to further reduce latency for threads in this queue.  This should help
   as threads transition from realtime to timeshare.  The latency is
   bound to a max of sched_slice until we have more than sched_slice / 6
   threads runnable.  Then the min slice is allotted to all threads and
   latency becomes (nthreads - 1) * min_slice.

Discussed with: mav

11 years ago - Implement BIO_FLUSH support around journal entries. This will not 100%
jeff [Thu, 8 Nov 2012 01:41:04 +0000 (01:41 +0000)]
 - Implement BIO_FLUSH support around journal entries.  This will not 100%
   solve power loss problems with dishonest write caches.  However, it
   should improve the situation and force a full fsck when it is unable
   to resolve with the journal.
 - Resolve a case where the journal could wrap in an unsafe way causing
   us to prematurely lose journal entries in very specific scenarios.

Discussed with: mckusick
MFC after: 1 month

11 years agoUse .PATH instead of VPATH.
kevlo [Thu, 8 Nov 2012 01:35:02 +0000 (01:35 +0000)]
Use .PATH instead of VPATH.

Reviewed by: gnn,rwatson

11 years agoICMPV6_FILTER should read ICMP6_FILTER.
delphij [Thu, 8 Nov 2012 00:54:43 +0000 (00:54 +0000)]
ICMPV6_FILTER should read ICMP6_FILTER.

Submitted by: Frédéric Perrin <frederic.perrin resel.fr>
MFC after: 2 weeks

11 years ago- Current caching mode is completely broken because it simply relies
attilio [Thu, 8 Nov 2012 00:32:49 +0000 (00:32 +0000)]
- Current caching mode is completely broken because it simply relies
  on timing of the operations and not real lookup, bringing too many
  false positives. Remove the whole mechanism. If it needs to be
  implemented, next time it should really be done in the proper way.
- Fix VOP_GETATTR() in order to cope with userland bugs that would
  change the type of file and not panic. Instead it gets the entry as
  if it is not existing.

Reported and tested by: flo
MFC after: 2 months
X-MFC: 241519, 242536,242616

11 years agoAdd support for SCSI pass through devices to be attached and
ambrisko [Thu, 8 Nov 2012 00:32:36 +0000 (00:32 +0000)]
Add support for SCSI pass through devices to be attached and
detached.

PR: 172864
Submitted by: rstone@

11 years agoAdd y flag and environment variable LS_SAMESORT to specify the same
grog [Thu, 8 Nov 2012 00:24:26 +0000 (00:24 +0000)]
Add y flag and environment variable LS_SAMESORT to specify the same
sorting order for time and name with the -t option.  IEEE Std 1003.2
(POSIX.2) mandates that the -t option sort in descending order, and
that if two files have the same timestamp, they should be sorted in
ascending order of their names.  The -r flag reverses both of these
sort orders, so they're never the same.  This creates significant
problems for sequentially named files stored on FAT file systems,
where it can be impossible to list them in the order in which they
were created.

Add , (comma) option to print file sizes grouped and separated by
thousands using the non-monetary separator returned by localeconv(3),
typically a comma or period.

MFC after:  14 days

11 years agoUpdate AP96 to directly attach an arswitch.
adrian [Wed, 7 Nov 2012 23:50:28 +0000 (23:50 +0000)]
Update AP96 to directly attach an arswitch.

11 years agoImplement DTrace for PowerPC. This includes both 32-bit and 64-bit.
jhibbits [Wed, 7 Nov 2012 23:45:09 +0000 (23:45 +0000)]
Implement DTrace for PowerPC.  This includes both 32-bit and 64-bit.

There is one known issue:  Some probes will display an error message along the
lines of:  "Invalid address (0)"

I tested this with both a simple dtrace probe and dtruss on a few different
binaries on 32-bit.  I only compiled 64-bit, did not run it, but I don't expect
problems without the modules loaded.  Volunteers are welcome.

MFC after: 1 month

11 years agoSort option parsing as far as practical.
grog [Wed, 7 Nov 2012 23:37:24 +0000 (23:37 +0000)]
Sort option parsing as far as practical.

11 years agosh: Test that a redefined alias works.
jilles [Wed, 7 Nov 2012 23:15:36 +0000 (23:15 +0000)]
sh: Test that a redefined alias works.

11 years agoUse information about suported diagnostic pages to avoid reading optional
mav [Wed, 7 Nov 2012 23:12:53 +0000 (23:12 +0000)]
Use information about suported diagnostic pages to avoid reading optional
Element Descriptor page if it is not supported.  This removes one error
message from verbose logs during boot on systems with some enclosures.

Sponsored by: iXsystems, Inc.

11 years agoAnnounce diagnostic page 7 (Element Descriptor) support.
mav [Wed, 7 Nov 2012 22:53:46 +0000 (22:53 +0000)]
Announce diagnostic page 7 (Element Descriptor) support.

11 years agoHint miibus to attach arswitch on AP91, AP93 and RSPRO boards.
ray [Wed, 7 Nov 2012 22:46:30 +0000 (22:46 +0000)]
Hint miibus to attach arswitch on AP91, AP93 and RSPRO boards.

Submitted by: Luiz Otavio O Souza
Approved by: adrian (menthor)

11 years agoFor kernel builds with PROFLEVEL >= 2, such as LINT, don't attempt to
dim [Wed, 7 Nov 2012 22:45:34 +0000 (22:45 +0000)]
For kernel builds with PROFLEVEL >= 2, such as LINT, don't attempt to
use the -mprofiler-epilogue option if the compiler is clang, as the flag
is not supported.  While here, fix up the value indentations.

MFC after: 1 week

11 years agoDisable automatic attachment of arswitch. It can't be auto-detected (like PHYs
ray [Wed, 7 Nov 2012 22:43:09 +0000 (22:43 +0000)]
Disable automatic attachment of arswitch. It can't be auto-detected (like PHYs
do) and cause a problems trying to attach another instance to child mdio.

Submitted by: Luiz Otavio O Souza
Approved by: adrian (menthor)

11 years agoFor kernel builds with PROFLEVEL >= 1, such as LINT, don't attempt to
dim [Wed, 7 Nov 2012 22:15:28 +0000 (22:15 +0000)]
For kernel builds with PROFLEVEL >= 1, such as LINT, don't attempt to
use the -falign-functions option if the compiler is clang, as the flag
is not supported.

MFC after: 1 week

11 years agoAdd per outgoing stream accounting for chunks in the send
tuexen [Wed, 7 Nov 2012 22:11:38 +0000 (22:11 +0000)]
Add per outgoing stream accounting for chunks in the send
and sent queue. This provides no functional change, but is
a preparation for an upcoming stream reset improvement.
Done with rrs@.

MFC after: 1 week

11 years agoSimple unit-tests for libcrypt, to show how easy it is.
sjg [Wed, 7 Nov 2012 22:03:59 +0000 (22:03 +0000)]
Simple unit-tests for libcrypt, to show how easy it is.

Approved by: marcel (mentor)

11 years agoAdd ATF and reformat to ease reviews
sjg [Wed, 7 Nov 2012 22:02:53 +0000 (22:02 +0000)]
Add ATF and reformat to ease reviews

Approved by: marcel (mentor)

11 years agoEnable ATF testing.
sjg [Wed, 7 Nov 2012 22:02:02 +0000 (22:02 +0000)]
Enable ATF testing.

Submitted by: Garrett Cooper
Approved by: marcel (mentor)

11 years agoLatest progs.mk from crufty.net for ATF
sjg [Wed, 7 Nov 2012 21:44:04 +0000 (21:44 +0000)]
Latest progs.mk from crufty.net for ATF

Approved by: marcel (mentor)

11 years agoAdd some missing changes missed in the last commit.
tuexen [Wed, 7 Nov 2012 21:25:32 +0000 (21:25 +0000)]
Add some missing changes missed in the last commit.

MFC after: 1 week
X-MFC with: 242708

11 years agoImprove PR-SCTP if used in combination with NR-SACK.
tuexen [Wed, 7 Nov 2012 20:59:00 +0000 (20:59 +0000)]
Improve PR-SCTP if used in combination with NR-SACK.
Based on work done by Mohammad Rajiullah.

MFC after: 1 week

11 years agoBelatedly add links from /usr/bin/clang to /usr/bin/CC, like it has been
dim [Wed, 7 Nov 2012 20:03:45 +0000 (20:03 +0000)]
Belatedly add links from /usr/bin/clang to /usr/bin/CC, like it has been
done for g++.

MFC after: 3 days

11 years agoPut in a band-aid to get the pc98 bootstraps building, now clang is the
dim [Wed, 7 Nov 2012 19:51:53 +0000 (19:51 +0000)]
Put in a band-aid to get the pc98 bootstraps building, now clang is the
default compiler.  This has two parts:
- Make sys/boot/pc98/boot2 always build with gcc for now, until we can
  figure out a way to shrink it enough when building with clang.
- Since sys/boot/p98/cdboot uses .code16 directives, which are not yet
  supported by clang's integrated assembler, use -no-integrated-as,
  similar to sys/boot/i386/cdboot.

Reviewed by: nyan
MFC after: 1 week

11 years agoActually change "silent" to "silence" this time (reviewed by adri@).
wblock [Wed, 7 Nov 2012 19:32:21 +0000 (19:32 +0000)]
Actually change "silent" to "silence" this time (reviewed by adri@).

MFC after: 1 week

11 years agoRemove fifteen-year-old notes on media selection (suggested by simon@).
wblock [Wed, 7 Nov 2012 19:26:32 +0000 (19:26 +0000)]
Remove fifteen-year-old notes on media selection (suggested by simon@).
Add commas after "e.g." and "i.e.".  Change "silent" to "silence" in
wireless create section (reviewed by adri@).

MFC after: 1 week

11 years agoAdd lock asserts instead of "auto-locking".
hselasky [Wed, 7 Nov 2012 18:59:42 +0000 (18:59 +0000)]
Add lock asserts instead of "auto-locking".

MFC after: 1 weeks
Suggested by: ed @

11 years agoThe tty_inwakeup callback appears to be called both locked and unlocked.
hselasky [Wed, 7 Nov 2012 18:44:05 +0000 (18:44 +0000)]
The tty_inwakeup callback appears to be called both locked and unlocked.
Handle the required locking automatically for now.

MFC after: 1 weeks

11 years agoMinor cosmetic changes to bring atmel's initarm and the default
imp [Wed, 7 Nov 2012 16:59:12 +0000 (16:59 +0000)]
Minor cosmetic changes to bring atmel's initarm and the default
initarm for FDT closer together.  More to follow.

11 years agoDon't compile in my (not yet committed) ath_alq code unless ATH_DEBUG_ALQ
adrian [Wed, 7 Nov 2012 16:34:09 +0000 (16:34 +0000)]
Don't compile in my (not yet committed) ath_alq code unless ATH_DEBUG_ALQ
is defined.

This will unbreak ATH_DEBUG builds.

11 years agoAdd devd.conf(5) and devd(8) to SEE ALSO xrefs. Give users a pointer to
wblock [Wed, 7 Nov 2012 15:59:24 +0000 (15:59 +0000)]
Add devd.conf(5) and devd(8) to SEE ALSO xrefs.  Give users a pointer to
seemingly mysterious actions that are not done by ifconfig itself, but
by devd triggering on events caused by ifconfig.

PR: docs/173405
Submitted by: Mateusz Kwiatkowski <mateusz.kwiatkowski@atlashost.eu>
MFC after: 1 week

11 years agoDocument all of the options that wpa_supplicant accepts.
issyl0 [Wed, 7 Nov 2012 15:47:36 +0000 (15:47 +0000)]
Document all of the options that wpa_supplicant accepts.

PR: docs/171755
Reviewed by: gavin
Approved by: gabor (mentor)
MFC after: 5 days

11 years agoPatch to improve USB serial console.
hselasky [Wed, 7 Nov 2012 08:13:56 +0000 (08:13 +0000)]
Patch to improve USB serial console.

MFC after: 1 weeks
Submitted by: Bruce Evans

11 years agoMerge rev. 1.125 from OpenBSD:
glebius [Wed, 7 Nov 2012 07:35:05 +0000 (07:35 +0000)]
Merge rev. 1.125 from OpenBSD:
  date: 2009/06/12 02:03:51;  author: dlg;  state: Exp;  lines: +59 -69
  rewrite the way states from pfsync are merged into the local state tree
  and the conditions on which pfsync will notify its peers on a stale update.

  each side (ie, the sending and receiving side) of the state update is
  compared separately. any side that is further along than the local state
  tree is merged. if any side is further along in the local state table, an
  update is sent out telling the peers about it.

11 years agoIt may happen that pfsync holds the last reference on a state. In this
glebius [Wed, 7 Nov 2012 07:30:40 +0000 (07:30 +0000)]
It may happen that pfsync holds the last reference on a state. In this
case keys had already been freed. If encountering such state, then
just release last reference.

Not sure this can happen as a runtime race, but can be reproduced by
the following scenario:

- enable pfsync
- disable pfsync
- wait some time
- enable pfsync

11 years agoFix typo; s/ouput/output
kevlo [Wed, 7 Nov 2012 07:00:59 +0000 (07:00 +0000)]
Fix typo; s/ouput/output

11 years agoNm ipsec
kevlo [Wed, 7 Nov 2012 06:53:44 +0000 (06:53 +0000)]
Nm ipsec

11 years agoDisable my software queue TIM and PS handling for now.
adrian [Wed, 7 Nov 2012 06:29:45 +0000 (06:29 +0000)]
Disable my software queue TIM and PS handling for now.

ps-poll is totally broken in its current form.

This should unbreak things enough to let people use PS-POLL devices,
but leave it in place for me to finish PS-POLL handling.

11 years agoAdd new HAL configuration features for the updated AR9300 HAL.
adrian [Wed, 7 Nov 2012 06:23:23 +0000 (06:23 +0000)]
Add new HAL configuration features for the updated AR9300 HAL.

11 years agoHook in new files menusets.4th and manual.
dteske [Wed, 7 Nov 2012 02:14:03 +0000 (02:14 +0000)]
Hook in new files menusets.4th and manual.

Approved by: adrian (co-mentor) (implicit)

11 years agoRemove -L<path> from LDADD, it doesn't belong there.
marcel [Wed, 7 Nov 2012 00:23:51 +0000 (00:23 +0000)]
Remove -L<path> from LDADD, it doesn't belong there.
Add it to LDFLAGS instead.

Submitted by:   Garrett Cooper <yanegomi@gmail.com>

11 years agoThe first line must contain "Content-Type:". Move the $FreeBSD$
marcel [Wed, 7 Nov 2012 00:19:30 +0000 (00:19 +0000)]
The first line must contain "Content-Type:". Move the $FreeBSD$
keyword line to the comment block underneath.

Submitted by: Garrett Cooper <yanegomi@gmail.com>

11 years ago- Extend the prior commit to use the generic SCSI command building
ambrisko [Tue, 6 Nov 2012 23:25:06 +0000 (23:25 +0000)]
- Extend the prior commit to use the generic SCSI command building
  function use that for JBOD and Thunderbolt disk write command.  Now
  we only have one implementation in mfi.
- Fix dumping on Thunderbolt cards.  Polled IO commands do not seem to
  be normally acknowledged by changing cmd_status to MFI_STAT_OK.
  In order to get acknowledgement of the IO is complete, the Thunderbolt
  command queue needs to be run through.  I added a flag MFI_CMD_SCSI
  to indicate this command is being polled and to complete the
  Thunderbolt wrapper and indicate the result.  This flag needs to be
  set in the JBOD case in case if that us using Thunderbolt card.
  When in the polling loop check for completed commands.
- Remove mfi_tbolt_is_ldio and just do the check when needed.
- Fix an issue when attaching of disk device happens when a device is
  already scheduled to be attached but hasn't attached.
- add a tunable to allow raw disk attachment to CAM via:
        hw.mfi.allow_cam_disk_passthrough=1
- fixup aborting of commands (AEN and LD state change).  Use a generic
  abort function and only wait the command being aborted not both.
  Thunderbolt cards don't seem to abort commands so the abort times
  out.

11 years agoFix possible spurious sbunlock in sctp_sorecvmsg.
mjg [Tue, 6 Nov 2012 23:04:23 +0000 (23:04 +0000)]
Fix possible spurious sbunlock in sctp_sorecvmsg.

Reviewed by: tuexen
Approved by: trasz (mentor)
MFC after: 3 days

11 years agoWork around a race in bpfread() by validating the hold buffer pointer
ghelmer [Tue, 6 Nov 2012 21:07:04 +0000 (21:07 +0000)]
Work around a race in bpfread() by validating the hold buffer pointer
before freeing it. Otherwise, we can lose a buffer and cause a panic
in catchpacket().