]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMake -f set -a, as required by the standard.
grog [Thu, 3 Apr 2014 05:48:28 +0000 (05:48 +0000)]
Make -f set -a, as required by the standard.

From the original OpenBSD commit message:

  restore the traditional behavior of -f implying -a; apparently Keith
  Bostic forgot to restore it when the -f flag was put back on 2nd of
  September 1989, after being removed on 16th of August as a
  consequence of issues getting it working over NFS, so deviation from
  traditional UNIX behavior in all BSDs looks like an historical
  accident; as a side effect, this change accommodates behavior of
  this option to IEEE Std 1003.1-2008 (``POSIX.1'').

  joint work with jmc@ (who found the inaccuracy in our
  implementation), schwarze@ (who provided a detailed tracking of
  historical facts) and millert@

Submitted by: Igor Sobrado
Discussed with:  mckusick
Obtained from: OpenBSD project
MFC after:  2 weeks

10 years agoImprove readability of comments for DELAY_ACK() macro.
hiren [Thu, 3 Apr 2014 01:46:03 +0000 (01:46 +0000)]
Improve readability of comments for DELAY_ACK() macro.

10 years agoCorrect endianness handling in getting station address from EEPROM.
yongari [Thu, 3 Apr 2014 01:32:43 +0000 (01:32 +0000)]
Correct endianness handling in getting station address from EEPROM.
While I'm here, remove aue_eeprom_getword() as its only usage is to
read station address and make it more readable.  This change is
inspired by NetBSD.
With this change, aue(4) should work on big endian architectures.

PR: 188177

10 years agoImplement GNU's extension of 'status' operand. The GNU syntax is
delphij [Thu, 3 Apr 2014 00:55:16 +0000 (00:55 +0000)]
Implement GNU's extension of 'status' operand.  The GNU syntax is
borrowed where syntax status=noxfer means no transfer statistics
and status=none means no status information at all.

This feature is useful because the statistics information can
sometimes be annoying, and redirecting stderr to /dev/null would
mean error messages also gets silenced.

Obtained from: OpenBSD
MFC after: 2 weeks

10 years agoFix build, broken by r264025.
trasz [Wed, 2 Apr 2014 23:07:15 +0000 (23:07 +0000)]
Fix build, broken by r264025.

Sponsored by: The FreeBSD Foundation

10 years agoRework the cpu frequency management code for imx6.
ian [Wed, 2 Apr 2014 21:34:48 +0000 (21:34 +0000)]
Rework the cpu frequency management code for imx6.

This adds the concept of "operating points," combinations of frequency
and voltage at which the cpu is known to work correctly.  Some day these
should come from FDT data, but for now the table is hard-coded.

This also allows tuning the min and max operating frequencies.  The min
frequency is what the thermal management code will slow down to if the
core temperature gets too high.  The max frequency is what gets used if
the temperature is okay.

Normally the max cannot be set higher than the value burned into the
ocotp fuses as the chip's rated max, but there is now a new sysctl+tunable
cpu_overclock_enable; when set to non-zero it allows raising the frequency
above the ocotp value: USE WITH CARE!  (At least one of my imx6 boards
has a cpu whose ocotp values never got set correctly; they claim a max
of 792mhz, but the physical markings on the chip say it's good to 1ghz.)

Because all these values affect the entire SoC, there is a new sysctl
node, hw.imx6, where all these values live.  The values that are currently
under dev.imx6_anatop.0 should probably move to hw.imx6 too, because
"anatop" doesn't even mean anything to me, let alone to an end user.

10 years agoSwitch imx6 to using the mpcore per-cpu event timers, but continue to use
ian [Wed, 2 Apr 2014 21:06:43 +0000 (21:06 +0000)]
Switch imx6 to using the mpcore per-cpu event timers, but continue to use
the GPT timer, which is fixed-frequency, as a timecounter.

10 years agoAdd support for the virtio RNG entropy-source device.
grehan [Wed, 2 Apr 2014 20:18:17 +0000 (20:18 +0000)]
Add support for the virtio RNG entropy-source device.
Call through to /dev/random synchronously to fill
virtio buffers with RNG data.

Tested with FreeBSD-CURRENT and Ubuntu guests.

Submitted by: Leon Dang
Discussed with: markm
MFC after: 3 weeks
Sponsored by: Nahanni Systems

10 years agoChange NO_EVENTTIMERS from an arm-specific to an MI option, so that it can
ian [Wed, 2 Apr 2014 19:51:29 +0000 (19:51 +0000)]
Change NO_EVENTTIMERS from an arm-specific to an MI option, so that it can
be used in MI code.

This is intended as a temporary measure to unbreak the build.  The real fix
is to write event timer drivers for legacy arm hardware, then get rid of
this option completely.  That's going to take a few days.

10 years agoDon't call sdhci_init_slot() until after handling the FDT properties
ian [Wed, 2 Apr 2014 19:06:53 +0000 (19:06 +0000)]
Don't call sdhci_init_slot() until after handling the FDT properties
related to detecting card presence.  This actually makes no difference
now, but will when we get support for gpio-based card detection.

10 years agoTrivial changes/forced-commit to document previous change r264050 whose
ian [Wed, 2 Apr 2014 18:49:50 +0000 (18:49 +0000)]
Trivial changes/forced-commit to document previous change r264050 whose
description was eaten by the dog (or an editor crash or something).

Add variable-frequency support to the arm mpcore eventtimer driver.

This allows a platform's early init code to tell the mpcore driver that the
clock frequency can vary.  That causes the mpcore driver to register an
eventtimer, but not a timecounter.  The platform has to provide a time
counter using some other fixed-frequency clock, but can still use the
per-cpu goodness of the mpcore hardware for event timers.

When the platform support code does something to change the frequency of
the CPU clocks (power saving, thermal management) it must tell the mpcore
driver code about it using arm_tmr_change_frequency().

10 years ago(no commit message)
ian [Wed, 2 Apr 2014 18:43:56 +0000 (18:43 +0000)]

10 years agoDisable the timer and clear any pending bit, then setup the new counter
ian [Wed, 2 Apr 2014 18:32:27 +0000 (18:32 +0000)]
Disable the timer and clear any pending bit, then setup the new counter
register values, then restart the timer.  This prevents a situation where
an old event fires just as we're about to load a new value into the timer,
when the start routine is called to change the time of the current event.

Also re-nest the parens properly for casting the result of converting
time and frequency to a count.  This doesn't actually change the result of
the calcs, but will some day prevent a loss-of-precision warning on the
assignment, if that warning gets enabled.

10 years agoFix build breakage. Apparently all ARM configs build kern_et.c, but only a
ian [Wed, 2 Apr 2014 17:34:17 +0000 (17:34 +0000)]
Fix build breakage.  Apparently all ARM configs build kern_et.c, but only a
few of them also build kern_clocksource.c.  That strikes me as insane, but
maybe there's a good reason for it.  Until I figure that out, un-break
the build by not referencing functions in kern_clocksource if NO_EVENTTIMERS
is defined.

10 years agoUse xz(1) instead of gzip(1) to compress release images
gjb [Wed, 2 Apr 2014 16:53:07 +0000 (16:53 +0000)]
Use xz(1) instead of gzip(1) to compress release images
when WITH_COMPRESSED_IMAGES is used.

Requested by: delphij, brooks, Nikolai Lifanov
MFC After: 1 week
X-MFC-With: r264027,r264028,r264029,r264030
Sponsored by: The FreeBSD Foundation

10 years agoMove setting of the MK_xxx variables based on NO_xxx to avoid
imp [Wed, 2 Apr 2014 16:33:10 +0000 (16:33 +0000)]
Move setting of the MK_xxx variables based on NO_xxx to avoid
triggering the "you aren't allowed to set this" warning when building
stand alone in directories whose Makefile sets NO_MAN, for example.

10 years agoFreeBSD make (aka fmake) doesn't grok .MAKE.LEVEL. Failsafe and assume
imp [Wed, 2 Apr 2014 16:33:02 +0000 (16:33 +0000)]
FreeBSD make (aka fmake) doesn't grok .MAKE.LEVEL. Failsafe and assume
that it is OK to set MK_xxx flags.

10 years agoMove scandir_b to a later symbol version.
theraven [Wed, 2 Apr 2014 16:29:29 +0000 (16:29 +0000)]
Move scandir_b to a later symbol version.

10 years agoAdd support for some block functions that come from OS X. These are
theraven [Wed, 2 Apr 2014 16:07:48 +0000 (16:07 +0000)]
Add support for some block functions that come from OS X.  These are
intended to build with any C compiler.

Reviewed by: pfg
MFC after: 3 weeks

10 years agoAdd support for event timers whose clock frequency can change while running.
ian [Wed, 2 Apr 2014 15:56:11 +0000 (15:56 +0000)]
Add support for event timers whose clock frequency can change while running.

10 years agoMFV r258379;
pfg [Wed, 2 Apr 2014 15:32:44 +0000 (15:32 +0000)]
MFV r258379;

4248 dtrace(1M) should never create DOF with empty probes section
4249 Only probes from the first DTrace object file will be included

Illumos Revision: 4a20ab41aadcb81c53e72fc65886e964e9add59

Reference:
https://www.illumos.org/issues/4248
https://www.illumos.org/issues/4249

Obtained from: Illumos
MFC after: 1 month

10 years agoDocument more parition types.
ae [Wed, 2 Apr 2014 11:12:48 +0000 (11:12 +0000)]
Document more parition types.

Requested by: glebius
MFC after: 1 week

10 years agoFix an issue where the locale and rune locale could become out of sync,
theraven [Wed, 2 Apr 2014 11:10:46 +0000 (11:10 +0000)]
Fix an issue where the locale and rune locale could become out of sync,
causing mb* functions (and similar) to be called with the wrong data
(possibly a null pointer, causing a crash).

PR: standards/188036
MFC after: 1 week

10 years agoUse 2K buffers for IO to help achieve full device speed, rather than the
ian [Wed, 2 Apr 2014 01:58:54 +0000 (01:58 +0000)]
Use 2K buffers for IO to help achieve full device speed, rather than the
default wMaxPacketSize (64 or 512 bytes).  This actually helps older FTDI
devices (which were USB 1/full speed) more than the new H-series high
speed, but even for the new chips it helps cut the number of interrupts
when doing very high speed (3-12mbaud).

10 years agoIf WITH_COMPRESSED_IMAGES is set, add the compressed images to
gjb [Tue, 1 Apr 2014 22:54:54 +0000 (22:54 +0000)]
If WITH_COMPRESSED_IMAGES is set, add the compressed images to
the CLEANFILES list.

MFC after: 1 week
X-MFC-With: r264027,r264028,r264029
Sponsored by: The FreeBSD Foundation

10 years agoFix logic error: s/||/&&/
gjb [Tue, 1 Apr 2014 22:52:27 +0000 (22:52 +0000)]
Fix logic error: s/||/&&/

Pointyhat: gjb
MFC after: 1 week
X-MFC-With: r264027,r264028
Sponsored by: The FreeBSD Foundation

10 years agoClean up trailing whitespace in release/Makefile.
gjb [Tue, 1 Apr 2014 22:46:46 +0000 (22:46 +0000)]
Clean up trailing whitespace in release/Makefile.

MFC after: 1 week
X-MFC-With: r264027
Sponsored by: The FreeBSD Foundation

10 years agoAdd a new release build variable, WITH_COMPRESSED_IMAGES.
gjb [Tue, 1 Apr 2014 22:41:26 +0000 (22:41 +0000)]
Add a new release build variable, WITH_COMPRESSED_IMAGES.

When set to a non-empty value, the installation medium is
compressed with gzip(1) as part of the 'install' target in
the release/ directory.

With gzip(1) compression, downloadable image are reduced in
size quite significantly.  Build test against head@263927
shows the following:

 bootonly.iso: 64% smaller
 disc1.iso: 44% smaller
 memstick.img: 47% smaller
 mini-memstick.img: 65% smaller
 dvd1.iso: untested

This option is off by default, I would eventually like to
turn it on by default, and remove the '-k' flag to gzip(1)
so only compressed images are published on FTP.

Requested by: wkoszek
MFC After: 1 week
Sponsored by: The FreeBSD Foundation

10 years agoEnable a KASSERT.
trasz [Tue, 1 Apr 2014 22:21:56 +0000 (22:21 +0000)]
Enable a KASSERT.

Sponsored by: The FreeBSD Foundation

10 years agoGet rid of the "autoscaling", instead just set socket buffer sizes
trasz [Tue, 1 Apr 2014 22:03:03 +0000 (22:03 +0000)]
Get rid of the "autoscaling", instead just set socket buffer sizes
in the usual way.  The only thing the old code did was making things
less predictable.

Sponsored by: The FreeBSD Foundation

10 years agoUse atomic ops instead of mutexes where appropriate.
trasz [Tue, 1 Apr 2014 21:54:20 +0000 (21:54 +0000)]
Use atomic ops instead of mutexes where appropriate.

Submitted by: mav@
Sponsored by: The FreeBSD Foundation

10 years agoInstead of "icltx" and "iclrx", use thread names with prefix from upper
trasz [Tue, 1 Apr 2014 21:47:22 +0000 (21:47 +0000)]
Instead of "icltx" and "iclrx", use thread names with prefix from upper
layer, so that one can see which side of the stack the threads are for.

Sponsored by: The FreeBSD Foundation

10 years agoGet rid of ICL lock; use upper-layer (initiator or target) lock instead.
trasz [Tue, 1 Apr 2014 21:40:46 +0000 (21:40 +0000)]
Get rid of ICL lock; use upper-layer (initiator or target) lock instead.
This avoids extra locking in icl_pdu_queue(); the upper layer needs to call
it while holding its own lock anyway, to avoid sending PDUs out of order.

Sponsored by: The FreeBSD Foundation

10 years agolibnv: Don't lose big-endian flag when receiving a message.
jilles [Tue, 1 Apr 2014 21:30:54 +0000 (21:30 +0000)]
libnv: Don't lose big-endian flag when receiving a message.

A bug caused the "big endian" flag to be lost when receiving a message. As a
result, the bits are interpreted as little endian and an extremely large
allocation is attempted.

This change fixes ping(8)'s communication to casperd(8) on big-endian
architectures.

Reported by: Anton Shterenlikht
Tested by: danfe

10 years agoRemove the homegrown ctl_be_block_io allocator, replacing it with UMA.
trasz [Tue, 1 Apr 2014 21:13:05 +0000 (21:13 +0000)]
Remove the homegrown ctl_be_block_io allocator, replacing it with UMA.
There is no performance difference.

Reviewed by: mav@
Sponsored by: The FreeBSD Foundation

10 years agoFix some of the style(9) problems on ti_gpio. Note that this commit does
loos [Tue, 1 Apr 2014 18:46:56 +0000 (18:46 +0000)]
Fix some of the style(9) problems on ti_gpio.  Note that this commit does
not fix all the style(9) problems, but will open room for the next commits.

Remove redundant code and declarations.

No functional changes.

10 years agoUpdate the list of FTDI chips supported by uftdi(4).
ian [Tue, 1 Apr 2014 18:41:54 +0000 (18:41 +0000)]
Update the list of FTDI chips supported by uftdi(4).

10 years agoIncrement the SSN only after processing the last fragment of an
tuexen [Tue, 1 Apr 2014 18:38:04 +0000 (18:38 +0000)]
Increment the SSN only after processing the last fragment of an
ordered user message.

MFC after: 3 days

10 years agoSilence an unnecessary warning.
gnn [Tue, 1 Apr 2014 18:37:00 +0000 (18:37 +0000)]
Silence an unnecessary warning.

MFC after: 2 weeks

10 years agoAdd missing copyright date.
rstone [Tue, 1 Apr 2014 17:35:31 +0000 (17:35 +0000)]
Add missing copyright date.

MFC after: 2 months

10 years agoPrint status of ARI capability in pciconf -c
rstone [Tue, 1 Apr 2014 16:03:52 +0000 (16:03 +0000)]
Print status of ARI capability in pciconf -c

Teach pciconf how to print out the status (enabled/disabled) of the ARI
capability on PCI Root Complexes and Downstream Ports.

MFC after: 2 months
Sponsored by: Sandvine Inc.

10 years agoAdd support for PCIe ARI
rstone [Tue, 1 Apr 2014 16:02:02 +0000 (16:02 +0000)]
Add support for PCIe ARI

PCIe Alternate RID Interpretation (ARI) is an optional feature that
allows devices to have up to 256 different functions.  It is
implemented by always setting the PCI slot number to 0 and
re-purposing the 5 bits used to encode the slot number to instead
contain the function number.  Combined with the original 3 bits
allocated for the function number, this allows for 256 functions.

This is enabled by default, but it's expected to be a no-op on currently
supported hardware.  It's a prerequisite for supporting PCI SR-IOV, and
I want the ARI support to go in early to help shake out any bugs in it.
ARI can be disabled by setting the tunable hw.pci.enable_ari=0.

Reviewed by: kib
MFC after: 2 months
Sponsored by: Sandvine Inc.

10 years agoSupport serial speeds up to 12mbaud with newer FTDI chips.
ian [Tue, 1 Apr 2014 15:56:31 +0000 (15:56 +0000)]
Support serial speeds up to 12mbaud with newer FTDI chips.

Recent FDTI chips have the ability to operate at up to 12mbps.  The newer
chips with faster clocks have the same usb vendor/product IDs as the older
chips; the bcdDevice field must be used to detect the newer versions.  This
change includes a new function to do that instead of using just the IDs from
the vendor/product table.

The code to choose the baud clock divisor is completely rewritten.  In
addition to supporting the new higher clock rates, the rewrite fixes a
longstanding bug in the old code which put the high bits of the fractional
part of the divisor into the wrong place in the wIndex field.  That bug
was mostly harmless -- it accidentally didn't affect standard baud rates
and would only show up when using relatively fast non-standard rates.

10 years agoRe-write bhyve's I/O MMU handling in terms of PCI RID.
rstone [Tue, 1 Apr 2014 15:54:03 +0000 (15:54 +0000)]
Re-write bhyve's I/O MMU handling in terms of PCI RID.

Reviewed by: neel
MFC after: 2 months
Sponsored by: Sandvine Inc.

10 years agoRe-implement the DMAR I/O MMU code in terms of PCI RIDs
rstone [Tue, 1 Apr 2014 15:48:46 +0000 (15:48 +0000)]
Re-implement the DMAR I/O MMU code in terms of PCI RIDs

Under the hood the VT-d spec is really implemented in terms of
PCI RIDs instead of bus/slot/function, even though the spec makes
pains to convert back to bus/slot/function in examples.  However
working with bus/slot/function is not correct when PCI ARI is
in use, so convert to using RIDs in most cases.  bus/slot/function
will only be used when reporting errors to a user.

Reviewed by: kib
MFC after: 2 months
Sponsored by: Sandvine Inc.

10 years agoAdd a method to get the PCI RID for a device.
rstone [Tue, 1 Apr 2014 15:47:24 +0000 (15:47 +0000)]
Add a method to get the PCI RID for a device.

Reviewed by: kib
MFC after: 2 months
Sponsored by: Sandvine Inc.

10 years agoRevert PCI RID changes.
rstone [Tue, 1 Apr 2014 15:06:03 +0000 (15:06 +0000)]
Revert PCI RID changes.

My PCI RID changes somehow got intermixed with my PCI ARI patch when I
committed it.  I may have accidentally applied a patch to a non-clean
working tree.  Revert everything while I figure out what went wrong.

Pointy hat to: rstone

10 years agoRe-write bhyve's I/O MMU handling in terms of PCI RIDs
rstone [Tue, 1 Apr 2014 14:54:43 +0000 (14:54 +0000)]
Re-write bhyve's I/O MMU handling in terms of PCI RIDs

Reviewed by: neel
Sponsored by: Sandvine Inc

10 years agoRe-implement the DMAR I/O MMU code in terms of PCI RIDs
rstone [Tue, 1 Apr 2014 14:51:45 +0000 (14:51 +0000)]
Re-implement the DMAR I/O MMU code in terms of PCI RIDs

Under the hood the VT-d spec is really implemented in terms of
PCI RIDs instead of bus/slot/function, even though the spec makes
pains to convert back to bus/slot/function in examples.  However
working with bus/slot/function is not correct when PCI ARI is
in use, so convert to using RIDs in most cases.  bus/slot/function
will only be used when reporting errors to a user.

Reviewed by: kib
Sponsored by: Sandvine Inc.

10 years agoAdd a method to get the PCI Routing ID for a device
rstone [Tue, 1 Apr 2014 14:49:25 +0000 (14:49 +0000)]
Add a method to get the PCI Routing ID for a device

Reviewed by: kib
Sponsored by: Sandvine, Inc

10 years agoAdd the svn revision number to the IPX note.
gjb [Tue, 1 Apr 2014 14:48:16 +0000 (14:48 +0000)]
Add the svn revision number to the IPX note.

Sponsored by: The FreeBSD Foundation

10 years agoRename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4
tijl [Tue, 1 Apr 2014 14:46:11 +0000 (14:46 +0000)]
Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4
-fms-extensions.

MFC after: 2 weeks

10 years agoDon't test WITHOUT_FOO in program makefiles, test MK_FOO instead.
imp [Tue, 1 Apr 2014 14:24:32 +0000 (14:24 +0000)]
Don't test WITHOUT_FOO in program makefiles, test MK_FOO instead.

10 years agoRemove support for legacy mips*eb names. Remove tests for
imp [Tue, 1 Apr 2014 14:24:25 +0000 (14:24 +0000)]
Remove support for legacy mips*eb names. Remove tests for
TARGET_BIG_ENDIAN.

10 years agoRemove check for clang and expand the comment. Newer versions of gcc
imp [Tue, 1 Apr 2014 14:24:20 +0000 (14:24 +0000)]
Remove check for clang and expand the comment. Newer versions of gcc
generate dwarf4 by default as well, so always force dwarf2 when
generating debugging data. It is harmless on older versions of both
clang and gcc, but required on newer ones.

10 years agoThere's no need to set the default for GNUCXX based on WITHOUT_CXX
imp [Tue, 1 Apr 2014 14:24:15 +0000 (14:24 +0000)]
There's no need to set the default for GNUCXX based on WITHOUT_CXX
being defined. The system works fine without it (because GNUCXX isn't
built when WITHOUT_CXX is defined), and it is one of the few places we
test WITHOUT_FOO instead of MK_FOO in the base system. Simply
eliminate it to solve both problems. Also, minor tweak to make it
clearer that the default is always NO for GNUGCC on i386.

10 years agoEliminate FDT being treated specially. When the BSDL DTC was
imp [Tue, 1 Apr 2014 14:24:08 +0000 (14:24 +0000)]
Eliminate FDT being treated specially. When the BSDL DTC was
introduced, the meaning of WITH_FDT changed from 'do FDT in boot
loader and build dtc compiler' to be simply 'do FDT things in the boot
loader'. Now that we test for FDT in the architecture specific files,
this test here is now redunant and encourages bad behavior, so just
eliminate it and make it always yes. Those architectures whose boot
loaders don't support FDT already omit it when it is set to yes
anyway.

10 years agoTest MK_ARM_ABI rather than if WITHOUT_ARM_ABI is defined.
imp [Tue, 1 Apr 2014 14:24:03 +0000 (14:24 +0000)]
Test MK_ARM_ABI rather than if WITHOUT_ARM_ABI is defined.

10 years agoIt is possible that MK_GNUCXX is "yes" but MK_CXX is "no" so make sure
imp [Tue, 1 Apr 2014 14:23:58 +0000 (14:23 +0000)]
It is possible that MK_GNUCXX is "yes" but MK_CXX is "no" so make sure
MK_CXX isn't "no" before building these libraries.

10 years agoAdd gpiobus(4) as a link to gpio(4).
loos [Tue, 1 Apr 2014 14:17:38 +0000 (14:17 +0000)]
Add gpiobus(4) as a link to gpio(4).

10 years agoAdd atf m4 files from the vendor branch.
jmmv [Tue, 1 Apr 2014 13:47:08 +0000 (13:47 +0000)]
Add atf m4 files from the vendor branch.

These were originally deleted as "not important" but, actually we need them
in place if we want to be able to use autoconf on software that provides
atf-based tests.  (That includes being able to rebuild autotest from scratch
on the Kyua cluster machines, as the automated setup does.)

10 years ago- In the libiconv module for ISO 2022 restore the original order of the
tijl [Tue, 1 Apr 2014 10:36:11 +0000 (10:36 +0000)]
- In the libiconv module for ISO 2022 restore the original order of the
  fields of a private struct such that variables of this type are
  initialised correctly.  Fixes conversion from ISO 2022.
  Also do this in the BIG5 module to prevent similar errors in the future.
- In the libiconv module for EUC-TW replace 2^cs with 1<<cs.  Fixes
  conversion from EUC-TW.
- Synchronise iconv code with NetBSD.  In most cases this only updates
  the RCS id because the changes are already there or are NetBSD specific.
  + libc/iconv/citrus_csmapper.c: Add a comment.
  + libc/iconv/citrus_db_factory.c: Remove put16().
  + libc/iconv/citrus_iconv.c: Return EINVAL on error.
  + libc/iconv/citrus_mapper.c: Return EINVAL on error.
  + libc/iconv/citrus_memstream.c: Fix type of a variable.
  + libc/iconv/citrus_prop.h: Sync definition of _CITRUS_PROP_HINT_END.
  + libc/iconv/citrus_stdenc.c: Return EINVAL on error.
  + libiconv_modules/mapper_std/citrus_mapper_std.c: Plug memory leak.

Obtained from: NetBSD
MFC after: 2 weeks

10 years agoAdd new USB ID.
hselasky [Tue, 1 Apr 2014 10:34:39 +0000 (10:34 +0000)]
Add new USB ID.

Submitted by: Tuomo Latto <djv+fbpr@iki.fi>
PR: usb/188046
MFC after: 1 week

10 years agoEnsure make xdev respect which compiler is CC
bapt [Tue, 1 Apr 2014 06:46:59 +0000 (06:46 +0000)]
Ensure make xdev respect which compiler is CC
and which compilers should be built according to standard build options

10 years agoAdd Cortex-A15 cpu id revisions.
br [Tue, 1 Apr 2014 04:56:40 +0000 (04:56 +0000)]
Add Cortex-A15 cpu id revisions.

10 years agoRelease i2c bus on detach.
br [Tue, 1 Apr 2014 04:40:08 +0000 (04:40 +0000)]
Release i2c bus on detach.

10 years agoHide CTL messages about SCSI error responses. Too many users take
trasz [Mon, 31 Mar 2014 21:04:15 +0000 (21:04 +0000)]
Hide CTL messages about SCSI error responses.  Too many users take
them for actual target errors.  They can be enabled back by setting
kern.cam.ctl.verbose=1, or booting with bootverbose.

Sponsored by: The FreeBSD Foundation

10 years agoMake it possible to have multiple CTL worker threads. Leave the default
trasz [Mon, 31 Mar 2014 20:49:33 +0000 (20:49 +0000)]
Make it possible to have multiple CTL worker threads.  Leave the default
of 1 for now.

Sponsored by: The FreeBSD Foundation

10 years agoTurns out name was used here when ACPI_DEBUG was defined, so refine my
imp [Mon, 31 Mar 2014 19:37:39 +0000 (19:37 +0000)]
Turns out name was used here when ACPI_DEBUG was defined, so refine my
previous patch.

10 years agoUpdate jemalloc to version 3.6.0.
jasone [Mon, 31 Mar 2014 17:04:04 +0000 (17:04 +0000)]
Update jemalloc to version 3.6.0.

10 years agoddb: Minor style cleanups.
pfg [Mon, 31 Mar 2014 16:37:41 +0000 (16:37 +0000)]
ddb: Minor style cleanups.

#define should be followed by tab.

MFC after: 1 week

10 years agoRemove unused label.
ae [Mon, 31 Mar 2014 14:40:35 +0000 (14:40 +0000)]
Remove unused label.

MFC after: 1 week

10 years agoDon't generate an ICMPv6 error message if packet was consumed by filter.
ae [Mon, 31 Mar 2014 14:27:22 +0000 (14:27 +0000)]
Don't generate an ICMPv6 error message if packet was consumed by filter.

MFC after: 1 week
Sponsored by: Yandex LLC

10 years agoMerge r246607 by benno from projects/uefi
emaste [Mon, 31 Mar 2014 14:12:27 +0000 (14:12 +0000)]
Merge r246607 by benno from projects/uefi

  Use EFI types for EFI values (silences warnings).

EFI UINTN is actually a 64-bit type on 64-bit processors.

Sponsored by: The FreeBSD Foundation

10 years agoDocument r263140, removal of IPX.
gjb [Mon, 31 Mar 2014 14:04:57 +0000 (14:04 +0000)]
Document r263140, removal of IPX.

Sponsored by: The FreeBSD Foundation

10 years agoDon't copy the MF flag from original IP header to ICMP error message.
ae [Mon, 31 Mar 2014 13:00:49 +0000 (13:00 +0000)]
Don't copy the MF flag from original IP header to ICMP error message.

PR: 188092
MFC after: 1 week
Sponsored by: Yandex LLC

10 years agoIncrease the number of TX DMA segments from 32 to 35. It turned
yongari [Mon, 31 Mar 2014 01:54:59 +0000 (01:54 +0000)]
Increase the number of TX DMA segments from 32 to 35.  It turned
out 32 is not enough to support a full sized TSO packet.
While I'm here fix a long standing bug introduced in r169632 in
bce(4) where it didn't include L2 header length of TSO packet in
the maximum DMA segment size calculation.

In collaboration with: rmacklem
MFC after: 2 weeks

10 years agoRemove instances of variables that were set, but never used. gcc 4.9
imp [Sun, 30 Mar 2014 23:43:36 +0000 (23:43 +0000)]
Remove instances of variables that were set, but never used. gcc 4.9
warns about these by default.

10 years agoThere's no need to guess at the COMPILER_TYPE to pass it down. We
imp [Sun, 30 Mar 2014 23:43:30 +0000 (23:43 +0000)]
There's no need to guess at the COMPILER_TYPE to pass it down. We
guess wrong for buildkernel when CC=gcc49, say. Eliminate all the
guessing. COMPILER_TYPE propigates properly on its own, if specified,
and we guess it correctly otherwise lower in the build. Also, fix
conditionals for armv6hf when using an external compiler chain. They
were broken before, but unused. Also, prefer checking the compiler
type over CLANG_IS_CC since the latter is only supposed to be used to
determine what symlinks to install (more fixes to follow).

10 years agoMove stray targets out of the xdev section.
imp [Sun, 30 Mar 2014 22:25:01 +0000 (22:25 +0000)]
Move stray targets out of the xdev section.

10 years agoKill NO_TESTS and use MK_TESTS=no when we want to skip them.
imp [Sun, 30 Mar 2014 22:24:53 +0000 (22:24 +0000)]
Kill NO_TESTS and use MK_TESTS=no when we want to skip them.

10 years agoAllow the build system to safely set MK_FOO to avoid the ambiguity
imp [Sun, 30 Mar 2014 22:24:45 +0000 (22:24 +0000)]
Allow the build system to safely set MK_FOO to avoid the ambiguity
when both WITH_FOO and WITHOUT_FOO are set. Use this where
possible. Only disallow setting of MK_FOO on the command line. This
was preferable to inventing a new mechanism or fixing the undef bug
(bin/183762) which precludes users from turning off anything we turn
off for parts of the build with WITHOUT_FOO prior to this.

10 years agoWhen building g++, we need to build libsupc earlier to avoid a race
imp [Sun, 30 Mar 2014 22:24:37 +0000 (22:24 +0000)]
When building g++, we need to build libsupc earlier to avoid a race
with libproc. Not sure why people didn't see this before now, but I
get it often for higher (20-30) -j builds, but never for -j1 builds.

10 years agoConvert an unused banner from skeleton.c into a comment.
bapt [Sun, 30 Mar 2014 21:56:13 +0000 (21:56 +0000)]
Convert an unused banner from skeleton.c into a comment.
It is added to every generated files and fix build at certain warning level with clang 3.4

Submitted by: Thomas Dickey <dickey@his.com> (byacc upstream)
Spotted by: glebius

10 years agoadd capsicum to units(1)
eadler [Sun, 30 Mar 2014 16:04:47 +0000 (16:04 +0000)]
add capsicum to units(1)

10 years agoGive hint on how to disable the default repository.
bdrewery [Sun, 30 Mar 2014 15:24:17 +0000 (15:24 +0000)]
Give hint on how to disable the default repository.

Discussed with: bapt
MFC after: instantly (preparing EN)

10 years agoAdd support for keyboard used in Samsung Chromebook (ARM machine)
br [Sun, 30 Mar 2014 15:22:36 +0000 (15:22 +0000)]
Add support for keyboard used in Samsung Chromebook (ARM machine)

Support covers device drivers for:
- Interrupt Combiner
- gpio/pad, External Interrupts Controller (pad)
- I2C Interface
- Chrome Embedded Controller
- Chrome Keyboard

Also:
- Use new gpio dev class in EHCI driver
- Expand device tree information

10 years agoAdd lowercase postfix, so SoC-common file will be ignored by tinderbox.
br [Sun, 30 Mar 2014 14:57:00 +0000 (14:57 +0000)]
Add lowercase postfix, so SoC-common file will be ignored by tinderbox.

10 years agoDirectly call kmem_alloc_contig to allocate framebuffer memory
br [Sun, 30 Mar 2014 14:42:53 +0000 (14:42 +0000)]
Directly call kmem_alloc_contig to allocate framebuffer memory
and pass VM_MEMATTR_UNCACHEABLE (no-cache, no-buffer).
This fixes screen refreshing problem when data is updated too slowly.

Discussed with: ian

10 years ago- Merge SoC-common parts
br [Sun, 30 Mar 2014 14:25:14 +0000 (14:25 +0000)]
- Merge SoC-common parts
- Enable iicbus device

10 years agounits(1): Add some missing units
eadler [Sun, 30 Mar 2014 05:06:06 +0000 (05:06 +0000)]
units(1): Add some missing units

10 years agoTeach units(1) that an erg and ergon are the same thing.
eadler [Sun, 30 Mar 2014 04:55:33 +0000 (04:55 +0000)]
Teach units(1) that an erg and ergon are the same thing.

10 years agoUse the correct variable name in the example code.
eadler [Sun, 30 Mar 2014 04:40:41 +0000 (04:40 +0000)]
Use the correct variable name in the example code.

10 years agoFix sizeof modifier for sizeof() in printf
eadler [Sun, 30 Mar 2014 00:25:31 +0000 (00:25 +0000)]
Fix sizeof modifier for sizeof() in printf

10 years agoFix build on FreeBSD 7 where:
marcel [Sat, 29 Mar 2014 23:46:01 +0000 (23:46 +0000)]
Fix build on FreeBSD 7 where:
1.  DOSPTYP_FAT32 is not defined in <sys/diskmbr.h>
2.  uuid_enc_le() does not exist in libc.

10 years agoEnable all cryptocaps because net80211 can do software encryption.
rpaulo [Sat, 29 Mar 2014 23:25:09 +0000 (23:25 +0000)]
Enable all cryptocaps because net80211 can do software encryption.

MFC after: 1 week

10 years agoFix build on FreeBSD 8 where partition types for nandfs do not exist.
marcel [Sat, 29 Mar 2014 22:10:54 +0000 (22:10 +0000)]
Fix build on FreeBSD 8 where partition types for nandfs do not exist.

10 years agoFix build on FreeBSD 9 where <sys/pc98.h> has the same defines as
marcel [Sat, 29 Mar 2014 22:02:25 +0000 (22:02 +0000)]
Fix build on FreeBSD 9 where <sys/pc98.h> has the same defines as
<sys/diskmbr.h> and not the unique defines introduced later.

10 years agoHandle an edge case of address management similar to TCP.
tuexen [Sat, 29 Mar 2014 21:26:45 +0000 (21:26 +0000)]
Handle an edge case of address management similar to TCP.
This needs to be reconsidered when the address handling
will be reimplemented.
The patch is from rrs@.

MFC after: 3 days

10 years agoUse SCTP_OVER_UDP_TUNNELING_PORT more consistently.
tuexen [Sat, 29 Mar 2014 20:21:36 +0000 (20:21 +0000)]
Use SCTP_OVER_UDP_TUNNELING_PORT more consistently.

MFC after: 3 days