]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMove atf-sh from /usr/bin/ to /usr/libexec/
Julio Merino [Fri, 6 Jun 2014 18:58:06 +0000 (18:58 +0000)]
Move atf-sh from /usr/bin/ to /usr/libexec/

In r266650, we made libatf-c and libatf-c++ private libraries so that no
components outside of the source tree could unintendedly depend on them.

This change does the same for the "atf-sh library" by moving the atf-sh
interpreter from its public location in /usr/bin/ to the private location
in /usr/libexec/.  Our build system will ensure that our own test programs
use the right binary, but users won't be able to depend on atf-sh by
"mistake".

Committing this now to ride the UPDATING notice added with r267172 today.

10 years agobetter handling of netmap emulation over standard device drivers:
Luigi Rizzo [Fri, 6 Jun 2014 18:36:02 +0000 (18:36 +0000)]
better handling of netmap emulation over standard device drivers:
plug a potential mbuf leak, and detect bogus drivers that
return ENOBUFS even when the packet has been queued.

MFC after: 3 days

10 years agoClarify statement on font origin
Ed Maste [Fri, 6 Jun 2014 18:32:05 +0000 (18:32 +0000)]
Clarify statement on font origin

Submitted by: Dimitar Zhekov

10 years agoSupport guest accesses to %cr8.
Tycho Nightingale [Fri, 6 Jun 2014 18:23:49 +0000 (18:23 +0000)]
Support guest accesses to %cr8.

Reviewed by: neel

10 years agointroduce mbq_lock() and mbq_unlock() for the mbq,
Luigi Rizzo [Fri, 6 Jun 2014 18:02:32 +0000 (18:02 +0000)]
introduce mbq_lock() and mbq_unlock() for the mbq,
so it is easier to buil the same code on linux
(this generalizes the change in svn 267142)

MFC after: 3 days

10 years agoAdd the *_TESTS_SH_SED_* functionality to atf.test.mk.
Julio Merino [Fri, 6 Jun 2014 17:53:05 +0000 (17:53 +0000)]
Add the *_TESTS_SH_SED_* functionality to atf.test.mk.

This exists already in plain.test.mk and tap.test.mk and should have been
added to atf.test.mk too when the feature was first introduced.

(It is probably time to address the related TODOs but I will do that
separately.)

10 years agoFix some rpcgen sample file issues.
Bryan Drewery [Fri, 6 Jun 2014 17:38:37 +0000 (17:38 +0000)]
Fix some rpcgen sample file issues.

* -Sc was generating code without a return type on main.
* -Sm was generating an unusable clean target due to undefined RM.
* -Sm was generating clean target with extra preceding space.

PR: 185582
Submitted by: Pawel Biernacki <pawel.biernacki@gmail.com>
MFC after: 1 week

10 years agoUpdate after r267011: use -h height and -w width args
Ed Maste [Fri, 6 Jun 2014 17:38:30 +0000 (17:38 +0000)]
Update after r267011: use -h height and -w width args

10 years agoHomogenize libatf-* version numbers with upstream.
Julio Merino [Fri, 6 Jun 2014 17:05:43 +0000 (17:05 +0000)]
Homogenize libatf-* version numbers with upstream.

The libatf-* major version numbers in FreeBSD were one version ahead of
upstream because, when atf was first imported into FreeBSD, the upstream
numbers were not respected.  This is just confusing and bound to cause
problems down the road.

Fix this by taking advantage of the fact that libatf-* are now private
and that atf is not yet built by default.  However, and unfortunately, a
clean build is needed for tests to continue working once "make
delete-old-libs" has been run; hence the note in UPDATING.

10 years agoRemove extra semicolons.
Kevin Lo [Fri, 6 Jun 2014 16:37:42 +0000 (16:37 +0000)]
Remove extra semicolons.

10 years agomove netmap_getna() to a freebsd-specific file
Luigi Rizzo [Fri, 6 Jun 2014 16:23:08 +0000 (16:23 +0000)]
move netmap_getna() to a freebsd-specific file

10 years agoSome devices (e.g. Intel AHCI and NICs) support quad-word access to
Tycho Nightingale [Fri, 6 Jun 2014 16:18:37 +0000 (16:18 +0000)]
Some devices (e.g. Intel AHCI and NICs) support quad-word access to
register pairs where two 32-bit registers make up a larger logical
size.  Support those access by splitting the quad-word into two
double-words.

Reviewed by: grehan

10 years agomisc bugfixes:
Luigi Rizzo [Fri, 6 Jun 2014 15:17:19 +0000 (15:17 +0000)]
misc bugfixes:
- stdio.h is needed for fprint()
- make memsize uint32_t to avoid errors due to overflow
- honor the *XPOLL flagg in NIOCREGIF requests
- mmap fails wit MAP_FAILED, not NULL.

MFC after: 3 days

10 years agowhitespace change: fix one comment, remove a stale one.
Luigi Rizzo [Fri, 6 Jun 2014 15:15:27 +0000 (15:15 +0000)]
whitespace change: fix one comment, remove a stale one.

10 years agoalign comments with the ones in our development trunk
Luigi Rizzo [Fri, 6 Jun 2014 14:58:25 +0000 (14:58 +0000)]
align comments with the ones in our development trunk

10 years agorate limit some error messages
Luigi Rizzo [Fri, 6 Jun 2014 14:57:40 +0000 (14:57 +0000)]
rate limit some error messages

10 years agoremove two debugging messages, align comments with the code
Luigi Rizzo [Fri, 6 Jun 2014 14:57:16 +0000 (14:57 +0000)]
remove two debugging messages, align comments with the code
in our development trunk

10 years agoktrace: Use designated initializers for the data_lengths array.
Jilles Tjoelker [Fri, 6 Jun 2014 14:49:00 +0000 (14:49 +0000)]
ktrace: Use designated initializers for the data_lengths array.

In the .o file, this only changes some line numbers (head amd64) because
element 0 is no longer explicitly initialized.

This should make bugs like FreeBSD-SA-14:12.ktrace less likely.

Discussed with: des
MFC after: 1 week

10 years agoDereference portaudit(1), as it is now deprecated and its
Glen Barber [Fri, 6 Jun 2014 13:36:52 +0000 (13:36 +0000)]
Dereference portaudit(1), as it is now deprecated and its
functionality exists in pkg-audit(8).

Submitted by: Ronald Klop <ronald-lists@klop.ws>
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoThe 'create' subcommand doesn't have '-h' option.
Pawel Jakub Dawidek [Fri, 6 Jun 2014 13:00:53 +0000 (13:00 +0000)]
The 'create' subcommand doesn't have '-h' option.

10 years agoMdoc cleanup, typo and grammar fixes.
Christian Brueffer [Fri, 6 Jun 2014 12:06:40 +0000 (12:06 +0000)]
Mdoc cleanup, typo and grammar fixes.

10 years agoAdd missing MLINKs.
Christian Brueffer [Fri, 6 Jun 2014 11:52:30 +0000 (11:52 +0000)]
Add missing MLINKs.

10 years agoAdd Lb string for libcuse.
Christian Brueffer [Fri, 6 Jun 2014 11:36:05 +0000 (11:36 +0000)]
Add Lb string for libcuse.

10 years agoReplace deprecated M_DONTWAIT with M_NOWAIT.
Kevin Lo [Fri, 6 Jun 2014 11:12:19 +0000 (11:12 +0000)]
Replace deprecated M_DONTWAIT with M_NOWAIT.

Reviewed by: jfv

10 years agoadd checks for invalid buffer pointers and lengths
Luigi Rizzo [Fri, 6 Jun 2014 10:50:14 +0000 (10:50 +0000)]
add checks for invalid buffer pointers and lengths

10 years agoprevent a panic when the netdev/ifp is not set in attach
Luigi Rizzo [Fri, 6 Jun 2014 10:40:20 +0000 (10:40 +0000)]
prevent a panic when the netdev/ifp is not set in attach
(internal  c63a7b85)

MFC after: 3 days

10 years agoMinor mdoc nit.
Joel Dahl [Fri, 6 Jun 2014 08:42:03 +0000 (08:42 +0000)]
Minor mdoc nit.

10 years agoPrevent arc commands from overwriting history
Baptiste Daroussin [Fri, 6 Jun 2014 08:05:34 +0000 (08:05 +0000)]
Prevent arc commands from overwriting history

10 years agoWhen building picobsd, define WITHOUT_OPENSSL and WITHOUT_KERBEROS and
Warner Losh [Fri, 6 Jun 2014 04:09:07 +0000 (04:09 +0000)]
When building picobsd, define WITHOUT_OPENSSL and WITHOUT_KERBEROS and
remove the now-redundant checks for RELEASE_CRUNCH. This originally
was defined for building smaller sysinstall images, but was later also
used by picobsd builds for a similar purpose. Now that we've moved
away from sysinstall, picobsd is the only remaining consumer of this
interface. Adding these two options reduces the RELEASE_CRUNCH
special cases in the tree by half.

10 years agoRestore comments accidentally removed.
Warner Losh [Fri, 6 Jun 2014 04:08:55 +0000 (04:08 +0000)]
Restore comments accidentally removed.

MFC after: 3 days

10 years ago- Fix the keyfile being cleared prematurely after r259428
Brad Davis [Fri, 6 Jun 2014 03:17:37 +0000 (03:17 +0000)]
- Fix the keyfile being cleared prematurely after r259428

PR: 185084
Submitted by: fk@fabiankeil.de
Reviewed by: pjd@

10 years agoUse mtx_lock_spin/mtx_unlock_spin primitives on spin lock
Andrey Zonov [Fri, 6 Jun 2014 00:24:04 +0000 (00:24 +0000)]
Use mtx_lock_spin/mtx_unlock_spin primitives on spin lock

Reviewed by: luigi
MFC after: 1 week

10 years agoStyle cleanups on ifconfig.8
Allan Jude [Fri, 6 Jun 2014 00:22:19 +0000 (00:22 +0000)]
Style cleanups on ifconfig.8
fix igor warnings
uppercase all instances of Ethernet
replace bad e.g.

CR: D91
Approved by: wblock (mentor)

10 years agoDocument r266463, newsyslog.conf(5) includes in conf.d.
Glen Barber [Thu, 5 Jun 2014 23:53:47 +0000 (23:53 +0000)]
Document r266463, newsyslog.conf(5) includes in conf.d.

Sponsored by: The FreeBSD Foundation

10 years agoAdd support for arbitrary http requests
Baptiste Daroussin [Thu, 5 Jun 2014 22:16:26 +0000 (22:16 +0000)]
Add support for arbitrary http requests

Submitted by: Alex Hornung <alex@alexhornung.com>
Reviewed by: des
Obtained from: Dragonfly
MFC after: 3 week

10 years agoRemove unnecessary semicolons
Baptiste Daroussin [Thu, 5 Jun 2014 22:13:30 +0000 (22:13 +0000)]
Remove unnecessary semicolons

Patch by Sascha Wildner <saw@online.de> for Dragonfly

Reviewed by: des
Obtained from: Dragonfly
MFC after: 1 week

10 years agoUse NULL instead of 0
Baptiste Daroussin [Thu, 5 Jun 2014 22:10:25 +0000 (22:10 +0000)]
Use NULL instead of 0

Patch by Sascha Wildner <saw@online.de> for Dragonfly

Reviewed by: des
Obtained from: Dragonfly
MFC after: 1 week

10 years agoAvoid using hard-coded SoC's register address in mptramp code for Armada XP
Zbigniew Bodek [Thu, 5 Jun 2014 21:37:04 +0000 (21:37 +0000)]
Avoid using hard-coded SoC's register address in mptramp code for Armada XP

SoC's registers base address may differ between boards
(0xf1000000 or 0xd0000000). Therefore, in order to use
the proper CPU Boot Address Redirect register during SMP
initialization in mptramp the real, physical address has
to be passed to mptramp based on the value from DT.

Reviewed by: gber

10 years agoFix broken SMP startup on Armada XP after r265694
Zbigniew Bodek [Thu, 5 Jun 2014 21:35:10 +0000 (21:35 +0000)]
Fix broken SMP startup on Armada XP after r265694

During Armada's platform_mp_start_ap(), mptramp code
is being copied to the specific physical location (0xffff0000).
Before r265694 the address to which the code should be copied
was equal to the address of mpentry routine that followed the
mptramp in locore.S. Now the mptramp end address should be
exported and used as a copy limit.

Reviewed by: gber

10 years agowhitespace change: remove trailing whitespace
Luigi Rizzo [Thu, 5 Jun 2014 21:12:41 +0000 (21:12 +0000)]
whitespace change: remove trailing whitespace

10 years agoIf HTTP_USER_AGENT is defined but empty, don't send User-Agent at all.
Dag-Erling Smørgrav [Thu, 5 Jun 2014 20:27:16 +0000 (20:27 +0000)]
If HTTP_USER_AGENT is defined but empty, don't send User-Agent at all.

PR: 184507
Submitted by: jbeich@tormail.org (with modifications)
MFC after: 1 week

10 years agovt fontcvt: Accept space after BITMAP in .bdf parser
Ed Maste [Thu, 5 Jun 2014 19:38:44 +0000 (19:38 +0000)]
vt fontcvt: Accept space after BITMAP in .bdf parser

The Unifont BDF generator incorrectly adds a space after BITMAP, and
and that error has been widely propagated.

10 years agoRegen after r267124 for WITHOUT_VT_SUPPORT
Ed Maste [Thu, 5 Jun 2014 18:59:21 +0000 (18:59 +0000)]
Regen after r267124 for WITHOUT_VT_SUPPORT

10 years agoInstall VT support files
Ed Maste [Thu, 5 Jun 2014 18:53:56 +0000 (18:53 +0000)]
Install VT support files

They can be disabled by setting WITHOUT_VT_SUPPORT=yes in src.conf.

Sponsored by: The FreeBSD Foundation

10 years agoSupport "GNU Unifont" format font data
Ed Maste [Thu, 5 Jun 2014 18:38:27 +0000 (18:38 +0000)]
Support "GNU Unifont" format font data

The GNU Unifont .hex format is a text file.  Each line represents one
glyph and consists of a four-digit hex code point, a colon, and pairs of
hex digits representing the bitmap.  By default an 8x16 font is assumed,
with 16x16 double-width glyphs, resulting in either 32 or 64 hex digits
for the bitmap.

Our version of the file format supports comments at the top of the file
to set the height and width:

# Height: <decimal height>
# Width: <decimal width>

Each row of bitmap data is rounded up to byte width - for example, a
10-pixel wide font uses 4 characters per row.

See http://czyborra.com/unifont/ for more background on the original
format.

Sponsored by: The FreeBSD Foundation

10 years ago- Verify that we don't load more data into a FIFO than it is
Hans Petter Selasky [Thu, 5 Jun 2014 18:23:51 +0000 (18:23 +0000)]
- Verify that we don't load more data into a FIFO than it is
configured to handle.
- Add code to handle suspend and resume.

MFC after: 3 days

10 years agoNeed to check the transfer cache field in the device done function
Hans Petter Selasky [Thu, 5 Jun 2014 18:19:48 +0000 (18:19 +0000)]
Need to check the transfer cache field in the device done function
to be sure all allocated channels are freed and not the transfer first
one.

10 years agoTry to fix DWC OTG regression issues with full and low speed devices:
Hans Petter Selasky [Thu, 5 Jun 2014 18:17:40 +0000 (18:17 +0000)]
Try to fix DWC OTG regression issues with full and low speed devices:
- Remove double buffering interrupt and isochronous traffic via the
transaction translator. It can be avoided because the DWC OTG will
always delay the start split transactions for interrupt and
isochronous traffic, but will not delay the complete split
transactions, if we set the odd frame bit correctly.
- Need to check the transfer cache field in the device done function
to be sure all allocated channels are freed and not the transfer first
one. This seems to resolve the control endpoint transfer type quirk
which is now removed.
- Make sure any received data upon TX is dumped else RX path will
stop.
- Transmit isochronous data before receiving isochronous data as a
means to optimise the TT schedule.
- Implement a simple TT bandwidth scheduler.
- Cleanup use of old "td->error" variable.
- On interrupt IN traffic via the transaction translator we simply
ignore missed transfer opportunities and silently retry the
transaction upon next available time slot.

MFC after: 3 days

10 years agovt fontcvt: -w sets the width, not height
Ed Maste [Thu, 5 Jun 2014 18:01:59 +0000 (18:01 +0000)]
vt fontcvt: -w sets the width, not height

10 years agoThe code that combines adjacent ranges for BIO_DELETEs to optimize
Warner Losh [Thu, 5 Jun 2014 17:13:42 +0000 (17:13 +0000)]
The code that combines adjacent ranges for BIO_DELETEs to optimize
trims to the device assumes the list is sorted. Don't apply the
optimization of not sorting the queue when we have SSDs to the
delete_queue, since it causes more discard traffic to the drive. While
one could argue that the higher levels should coalesce the trims,
that's not done today, so some optimization at this level is needed.

CR: https://phabric.freebsd.org/D142

10 years agoUpdate reported libusb version to 1.0.13
Ed Maste [Thu, 5 Jun 2014 14:19:32 +0000 (14:19 +0000)]
Update reported libusb version to 1.0.13

QEMU libusb host support needs at least libusbx-1.0.13, and our in-tree
libusb supports the required functionality.  Exp-run in PR.

PR: 181035

10 years agoUpdate vt(4) "Terminus BSD Console" font
Ed Maste [Thu, 5 Jun 2014 13:49:37 +0000 (13:49 +0000)]
Update vt(4) "Terminus BSD Console" font

"Terminus BSD Console" is a derivative of Terminus that is provided
by Mr. Dimitar Zhekov under the 2-clause BSD license for use by the             FreeBSD vt(4) console.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

10 years agoUse ENOBUFS instead of ENOMEM in error situations related to m_uiotombuf().
Michael Tuexen [Thu, 5 Jun 2014 12:51:12 +0000 (12:51 +0000)]
Use ENOBUFS instead of ENOMEM in error situations related to m_uiotombuf().
This was suggested by kevlo@.

MFC after: 3 days

10 years agoFix OpenSSL multiple vulnerabilities.
Xin LI [Thu, 5 Jun 2014 12:32:16 +0000 (12:32 +0000)]
Fix OpenSSL multiple vulnerabilities.

Security: CVE-2014-0195, CVE-2014-0221, CVE-2014-0224,
CVE-2014-3470
Security: SA-14:14.openssl
Approved by: so

10 years agoMac OS X 10.10 is not released yet, removed.
Maxim Konovalov [Thu, 5 Jun 2014 09:27:42 +0000 (09:27 +0000)]
Mac OS X 10.10 is not released yet, removed.

Pointed out by: pluknet

10 years agomdoc: drop the trailing dot from the xref list.
Sergey Kandaurov [Thu, 5 Jun 2014 08:20:14 +0000 (08:20 +0000)]
mdoc: drop the trailing dot from the xref list.

10 years agoOpenBSD 5.5, Mac OS X 10.10, Dragonfly BSD 3.8.0 added.
Maxim Konovalov [Thu, 5 Jun 2014 07:28:27 +0000 (07:28 +0000)]
OpenBSD 5.5, Mac OS X 10.10, Dragonfly BSD 3.8.0 added.

10 years agoConvert functions to the new-style format.
Davide Italiano [Thu, 5 Jun 2014 03:46:46 +0000 (03:46 +0000)]
Convert functions to the new-style format.

Submitted by: Vijay Singh <vijju.singh@gmail.com> via -hackers

10 years agoCatch up with recent changes...
Kevin Lo [Thu, 5 Jun 2014 03:16:23 +0000 (03:16 +0000)]
Catch up with recent changes...

10 years agoCorrect the document date for last change.
Warren Block [Thu, 5 Jun 2014 01:58:21 +0000 (01:58 +0000)]
Correct the document date for last change.

MFC after: 1 week

10 years agoRemove D-Link DWA140 rev D1 by accident.
Kevin Lo [Thu, 5 Jun 2014 01:55:23 +0000 (01:55 +0000)]
Remove D-Link DWA140 rev D1 by accident.

Pointed out by Anders Larsson in private email.

10 years agocxgbe(4): Properly account for the freelist buffers used when returning
Navdeep Parhar [Thu, 5 Jun 2014 00:38:32 +0000 (00:38 +0000)]
cxgbe(4):  Properly account for the freelist buffers used when returning
early from service_iq due to a budget restriction.  This fixes a potential
rx hang when using INTx.

MFC after: 3 days

10 years agoRemove extra copy of old email address.
Ed Maste [Wed, 4 Jun 2014 20:05:52 +0000 (20:05 +0000)]
Remove extra copy of old email address.

MFC after: 3 days

10 years agoUpdate vt(4) console font author's email address
Ed Maste [Wed, 4 Jun 2014 19:42:47 +0000 (19:42 +0000)]
Update vt(4) console font author's email address

MFC after: 3 days

10 years agoCross-reference jot(1) and seq(1).
Konstantin Belousov [Wed, 4 Jun 2014 17:17:30 +0000 (17:17 +0000)]
Cross-reference jot(1) and seq(1).

MFC after: 3 days

10 years agoMore RSU fixes:
Hans Petter Selasky [Wed, 4 Jun 2014 16:58:35 +0000 (16:58 +0000)]
More RSU fixes:
- Properly align temporary buffer to 32-bit.
- Add an extra parenthesis to make expression clear.
- Range check the association ID received from hardware.

MFC after: 1 week

10 years agomake sure ifp->if_transmit returns 0 if a buffer is enqueued.
Luigi Rizzo [Wed, 4 Jun 2014 16:57:05 +0000 (16:57 +0000)]
make sure ifp->if_transmit returns 0 if a buffer is enqueued.
A similar fix should be applied to vmxnet, ixgbe, igb, i40e.
(some of them previously reported by Michael Tuexen)

Drivers using if_transmit are correct, and so are most of the
other drivers that reassing if_transmit.

Among other things, this bug causes panics when using netmap emulation
on top of generic drivers.

Approved by: bryanv
MFC after: 3 days

10 years agoSadly, we do not actually live in the future.
Allan Jude [Wed, 4 Jun 2014 16:55:38 +0000 (16:55 +0000)]
Sadly, we do not actually live in the future.

Approved by: wblock (mentor)

10 years agoBulk document the kern.geom.label.*.enable sysctls and tunables.
Ivan Voras [Wed, 4 Jun 2014 16:29:18 +0000 (16:29 +0000)]
Bulk document the kern.geom.label.*.enable sysctls and tunables.

10 years agoFor Xeon 7500 and 48XX (Nehalem EX and Westmere EX) variants of the
Konstantin Belousov [Wed, 4 Jun 2014 16:06:38 +0000 (16:06 +0000)]
For Xeon 7500 and 48XX (Nehalem EX and Westmere EX) variants of the
Core i7 and Westmere processors, the uncore PMC subsystem is
completely different from the uncore PMC on smaller versions of CPUs.
Disable existing uncore hwpmc code for EX, otherwise non-existing MSRs
are accessed.

The cores PMCs seems to be identical for non-EX and EX, according to
the SDM.

Reviewed by: davide, fabient
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoAllow shared locking for the tmpfs vnodes.
Konstantin Belousov [Wed, 4 Jun 2014 15:30:49 +0000 (15:30 +0000)]
Allow shared locking for the tmpfs vnodes.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years ago- Add support for SG_GET_SG_TABLESIZE IOCTL to report that we don't support
Alexander Motin [Wed, 4 Jun 2014 12:05:47 +0000 (12:05 +0000)]
- Add support for SG_GET_SG_TABLESIZE IOCTL to report that we don't support
scatter/gather lists.
- Return error for still unsupported SG 3.x API read/write calls.

MFC after: 1 month

10 years agoThe external USB HUB in the RPI-B rejects control endpoint traffic
Hans Petter Selasky [Wed, 4 Jun 2014 10:29:01 +0000 (10:29 +0000)]
The external USB HUB in the RPI-B rejects control endpoint traffic
using the BULK endpoint type, while other USB HUBs do not. Disable
endpoint type workaround for TT traffic.

MFC after: 3 days

10 years agoFixes for the RSU driver:
Hans Petter Selasky [Wed, 4 Jun 2014 09:18:13 +0000 (09:18 +0000)]
Fixes for the RSU driver:
- The R92S_TCR register is an 8-bit register. Don't access it like a
16-bit register.
- Disable parsing the delete station event, due to many false events.
- Ensure that there is only one transfer queue for each endpoint, so
that packets transmitted don't get out of order.

MFC after: 1 week

10 years ago- Naively fix build by partially reverting r267029 to still use
Bryan Drewery [Wed, 4 Jun 2014 05:04:15 +0000 (05:04 +0000)]
- Naively fix build by partially reverting r267029 to still use
  gethrtime() when building libzpool.

X-MFC-With: 267029

10 years agoFurther updates to the netstat(1) man page and usage message
Allan Jude [Wed, 4 Jun 2014 04:18:33 +0000 (04:18 +0000)]
Further updates to the netstat(1) man page and usage message

- Reformat the entire man page
- Create a proper synopsis section
- Use itemized-lists to describe each flag, rather than paragraphs
- Cross-reference common flags to a 'general flags' sub-section with short
inline description of the flag
- Label 'general flags' sub-section
- Apply additional fixes suggested by wblock, brueffer, and bdrewery
- Update .Dd that got undone previously
- Change the order of the .Op Fl to be alphabetical
- Add the -i | -I interface flags to the description of 'interface
display mode'
- Fix missing parameters in man page
- Fix missing parameters in usage()
- Sync man page and usage()

MFC Note: stable/9 and stable/10 do not have -R, will need to be removed
when merged

CR: D58
Reviewed by: brueffer, bcr
Approved by: wblock (mentor)
MFC after: 7 days
Sponsored by: ScaleEngine Inc.

10 years agovt fontcvt: Use a hash to speed up glyph deduplication
Ed Maste [Wed, 4 Jun 2014 03:02:49 +0000 (03:02 +0000)]
vt fontcvt: Use a hash to speed up glyph deduplication

Walking a linked list of all glyphs to look for a duplicate is very slow
for large fonts (e.g., for CJK character sets).  In my test the runtime
for a sample 40000 character font went from just over 80 seconds on
average to just over 2 seconds.

Sponsored by: The FreeBSD Foundation

10 years agoMerge (unused) documentation of WITHOUT_TESTS into WITH_TESTS.
Julio Merino [Tue, 3 Jun 2014 22:34:27 +0000 (22:34 +0000)]
Merge (unused) documentation of WITHOUT_TESTS into WITH_TESTS.

The description of WITH/WITHOUT tweaks should only document the non-default
option.  TESTS still defaults to no, so the option to be documented is
WITH_TESTS.

10 years agodon't check fs_flags for _FLAGS_UPDATED as it is stored in fs_old_flags..
John-Mark Gurney [Tue, 3 Jun 2014 21:46:13 +0000 (21:46 +0000)]
don't check fs_flags for _FLAGS_UPDATED as it is stored in fs_old_flags..
If you had a UFS2 FS that didn't have it's super block at SBLOCK_UFS2,
you'll end up corrupting your FS as the superblock is updated and written
to a different location...

makefs used to put the superblock at SBLOCK_UFS1 for UFS 2 FS's causing
this issue...

Reviewed by: silience from mckusick
MFC after: 1 week

10 years agoDon't leak Giant.
Xin LI [Tue, 3 Jun 2014 21:31:28 +0000 (21:31 +0000)]
Don't leak Giant.

Noticed by: Sascha Wildner (DragonFlyBSD) via IRC
Reviewed by: mav
MFC after: 3 days

10 years agoReplace gethrtime() with cpu_ticks(), as source of random for the taskqueue
Alexander Motin [Tue, 3 Jun 2014 21:06:03 +0000 (21:06 +0000)]
Replace gethrtime() with cpu_ticks(), as source of random for the taskqueue
selection.  gethrtime() in our port updated with HZ rate, so unusable for
this specific purpose, completely draining benefit of multiple taskqueues.

MFC after: 2 weeks

10 years ago- Avoid calling a wrapper function around strcmp
Pietro Cerutti [Tue, 3 Jun 2014 20:59:26 +0000 (20:59 +0000)]
- Avoid calling a wrapper function around strcmp
- Use sizeof(*array) instead of sizeof(element) everywhere

CR: D161
Approved by: cognet, bapt

10 years ago- style, remove (void) in front of printf and the like
Pietro Cerutti [Tue, 3 Jun 2014 20:58:11 +0000 (20:58 +0000)]
- style, remove (void) in front of printf and the like

CR: D161
Approved by: cognet, bapt

10 years agoFreeBSD, historically, has always used 8-bit addresses for i2c devices
Luiz Otavio O Souza [Tue, 3 Jun 2014 19:24:53 +0000 (19:24 +0000)]
FreeBSD, historically, has always used 8-bit addresses for i2c devices
(7-bit device address << 1), always leaving the room for the read/write bit.

This commit convert ti_i2c and revert r259127 on bcm2835_bsc to make them
compatible with 8-bit addresses.  Previous to this commit an i2c device
would have different addresses depending on the controller it was attached
to (by example, when compared to any iicbb(4) based i2c controller), which
was a pretty annoying behavior.

Also, update the PMIC i2c address on beaglebone* DTS files to match the new
address scheme.

Now the userland utilities need to do the correct slave address shifting
(but it is going to work with any i2c controller on the system).

Discussed with: ian
MFC after: 2 weeks

10 years agoFix incorrect error handling in PAM policy parser. [SA-14:13]
Xin LI [Tue, 3 Jun 2014 19:01:38 +0000 (19:01 +0000)]
Fix incorrect error handling in PAM policy parser. [SA-14:13]

10 years agovt fontcvt: Make the bold font optional
Ed Maste [Tue, 3 Jun 2014 17:54:18 +0000 (17:54 +0000)]
vt fontcvt: Make the bold font optional

Sponsored by: The FreeBSD Foundation

10 years agovt fontcvt: Make height and width optional arguments
Ed Maste [Tue, 3 Jun 2014 17:53:11 +0000 (17:53 +0000)]
vt fontcvt: Make height and width optional arguments

Now defaults to a 16x8 font size.  The height and width can be specified
using -h and -w respectively.

Sponsored by: The FreeBSD Foundation

10 years agoRemove the unnecessary i2c slave address assignment.
Luiz Otavio O Souza [Tue, 3 Jun 2014 14:46:50 +0000 (14:46 +0000)]
Remove the unnecessary i2c slave address assignment.

The ti_i2c controller only works in the master mode and the i2c address
passed on iicbus_reset() is used to set the controller slave address when
operating as an i2c slave (which isn't currently supported).

When talking to a slave, the slave address is correctly provided to
ti_i2c_tranfer().

10 years agoFix case when vt(4) started w/o driver assigned.
Aleksandr Rybalko [Tue, 3 Jun 2014 13:33:43 +0000 (13:33 +0000)]
Fix case when vt(4) started w/o driver assigned.
o Always init locks and cv ASAP.
o Initialize driver-independent parts even if driver probing fail.
o Allow to call vt_upgrade anytime, for later loaded drivers.
o New window flag VWF_READY, to track if window already initialized.
Other updates:
o Pass vd as a cookie for kbd_allocate.
o Do not blank window on driver replacement.

Tested by: hselasky (RPi), emaste(VGA, EFIFB, KMS), me

MFC after: 7 days
Sponsored by: The FreeBSD Foundation

10 years ago- Use strlen instead of hardcoding a number
Pietro Cerutti [Tue, 3 Jun 2014 07:11:22 +0000 (07:11 +0000)]
- Use strlen instead of hardcoding a number
- Terminate a sentence with a period

Approved by: cognet

10 years agoFix few outdated names of defines:
Maxim Sobolev [Tue, 3 Jun 2014 05:19:10 +0000 (05:19 +0000)]
Fix few outdated names of defines:

o NR_REG_SW_NIC -> NR_REG_SW
o NR_RING_NIC_SW -> NR_REG_NIC_SW
o NETMAP_NO_TX_SYNC -> NETMAP_NO_TX_POLL
o NETMAP_DO_RX_SYNC -> NETMAP_DO_RX_POLL

I hope dear luigi has not left those as an excercise to careful
reader, in which case I apologize in advance for ruining his play.

MFC after:     1 week

10 years agoFix build UDP-Lite with VIMAGE enabled when building with gcc.
Kevin Lo [Tue, 3 Jun 2014 01:30:32 +0000 (01:30 +0000)]
Fix build UDP-Lite with VIMAGE enabled when building with gcc.

Reported and tested by: Jason Hellenthal

10 years agohandle longer commands so that lines don't overflow... people who added
John-Mark Gurney [Mon, 2 Jun 2014 23:50:19 +0000 (23:50 +0000)]
handle longer commands so that lines don't overflow...  people who added
commands forgot to check this...

10 years agoadd Xref to sound(4)...
John-Mark Gurney [Mon, 2 Jun 2014 22:58:00 +0000 (22:58 +0000)]
add Xref to sound(4)...

MFC after: 1 week

10 years agoAdd missing Ivy Bridge and Haswell events.
George V. Neville-Neil [Mon, 2 Jun 2014 20:50:08 +0000 (20:50 +0000)]
Add missing Ivy Bridge and Haswell events.

Submitted by: Anton Rang <rang@mac.com>
MFC: 2 weeks

10 years agoOverhaul CAM SG driver IOCTL interfaces.
Alexander Motin [Mon, 2 Jun 2014 19:53:53 +0000 (19:53 +0000)]
Overhaul CAM SG driver IOCTL interfaces.

Make it really work for native FreeBSD programs.  Before this it was broken
for years due to different number of pointer dereferences in Linux and
FreeBSD IOCTL paths, permanently returning errors to FreeBSD programs.
This change breaks the driver FreeBSD IOCTL ABI, making it more strict,
but since it was not working any way -- who bother.

Add shims for 32-bit programs on 64-bit host, translating the argument
of the SG_IO IOCTL for both FreeBSD and Linux ABIs.

With this change I was able to run 32-bit Linux sg3_utils tools and simple
32 and 64-bit FreeBSD test tools on both 32 and 64-bit FreeBSD systems.

MFC after: 1 month

10 years agoConvert bxe(4) to use the driver API.
Marcel Moolenaar [Mon, 2 Jun 2014 18:54:45 +0000 (18:54 +0000)]
Convert bxe(4) to use the driver API.

Submitted by:   Sreekanth Rupavatharam <rupavath@juniper.net>
Obtained from:  Juniper Networks, Inc.

10 years agoConvert em(4) to use the driver API.
Marcel Moolenaar [Mon, 2 Jun 2014 18:52:03 +0000 (18:52 +0000)]
Convert em(4) to use the driver API.

Submitted by:   Anuranjan Shukla <anshukla@juniper.net>
Obtained from:  Juniper Networks, Inc.

10 years agoConvert fxp(4) to use the driver API.
Marcel Moolenaar [Mon, 2 Jun 2014 18:45:36 +0000 (18:45 +0000)]
Convert fxp(4) to use the driver API.

Submitted by: Anuranjan Shukla <anshukla@juniper.net>
Obtained from: Juniper Networks, Inc.

10 years agoRemove extraneous "mkdir -p"
Ed Maste [Mon, 2 Jun 2014 18:30:57 +0000 (18:30 +0000)]
Remove extraneous "mkdir -p"

The directory hierarchy is created by an mtree file (BSD.usr.dist,
in the case of calendar(1)).  An explicit "mkdir -p" in a program's
Makefile is redundant, and can mask a missing mtree entry.