]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoQuiesce warning around gcc_assert() for an inline macro that uses
sbruno [Mon, 4 Nov 2013 18:15:45 +0000 (18:15 +0000)]
Quiesce warning around gcc_assert() for an inline macro that uses
a static variable.  This code has been moved around in gcc, but is still in
use in the latest trunk version of the compiler.

gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:208:36:
      warning: static variable 'dwarf_reg_size_table' is used in an inline
               function with external linkage [-Wstatic-in-inline]
gcc_assert (index < (int) sizeof(dwarf_reg_size_table));

10 years agoDocument RB_FOREACH_SAFE() and RB_FOREACH_REVERSE_SAFE().
glebius [Mon, 4 Nov 2013 16:56:35 +0000 (16:56 +0000)]
Document RB_FOREACH_SAFE() and RB_FOREACH_REVERSE_SAFE().

Submitted by: Mikhail <mp lenta.ru>

10 years agoQuiesce warning about unused argument in call to rl_message() by wrapping
sbruno [Mon, 4 Nov 2013 16:52:27 +0000 (16:52 +0000)]
Quiesce warning about unused argument in call to rl_message() by wrapping
this call with the same #if defined (PREFER_STDARG) directive as in display.c

Using -E to compile display.c/search.c shows that this is the code chosen by
the build when we create libreadline

10 years agoWhen building the textproc/docproj port, the ports-mgmt/pkg port
gjb [Mon, 4 Nov 2013 16:28:29 +0000 (16:28 +0000)]
When building the textproc/docproj port, the ports-mgmt/pkg port
needs /var/run/ld-elf*.so.hints, which is not automatically created.

Fix reldoc build by running the ldconfig(8) startup script in the
chroot directory before starting the port build phase.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoRemove the duplicated implementations of some bus_space functions and use
ian [Mon, 4 Nov 2013 16:16:40 +0000 (16:16 +0000)]
Remove the duplicated implementations of some bus_space functions and use
the essentially identical generic implementations instead.  The generic
implementations differ only in the spelling of a couple variable names
and some formatting differences.

10 years agoQuiesce warning regarding %llf which has no effect.
sbruno [Mon, 4 Nov 2013 16:15:43 +0000 (16:15 +0000)]
Quiesce warning regarding %llf which has no effect.

Submitted as illumos issue #4284

Reviewed by: delphij

10 years agoRework the aicasm build machinery so that it gets built along with toolchain
ian [Mon, 4 Nov 2013 15:55:04 +0000 (15:55 +0000)]
Rework the aicasm build machinery so that it gets built along with toolchain
components instead of with the kernel and/or modules.  This ensures that it
gets built with the host compiler, not the compiler in obj/... used to build
the target components (which may be a cross-compiler outputting code for a
different architecture and using header files with types and options set up
for the wrong architecture).

Reviewed by: imp

10 years agoFix EUC ESDB and JIS CS-mapper. This also fixes an identity transformation
hrs [Mon, 4 Nov 2013 15:49:36 +0000 (15:49 +0000)]
Fix EUC ESDB and JIS CS-mapper.  This also fixes an identity transformation
by "cat foo.euc-jp | iconv -f euc-jp -t utf-8 | iconv -f utf-8 -t euc-jp".

10 years ago- Add manual pages for capability rights (rights(4)), cap_rights_init(3)
pjd [Mon, 4 Nov 2013 14:10:22 +0000 (14:10 +0000)]
- Add manual pages for capability rights (rights(4)), cap_rights_init(3)
  family of functions and cap_rights_get(3) function.
- Update remaining Capsicum-related manual pages.

Reviewed by: bdrewery
MFC after: 3 days

10 years agoAdd myself to the committers-src list and to the calendar.
jmmv [Mon, 4 Nov 2013 11:59:44 +0000 (11:59 +0000)]
Add myself to the committers-src list and to the calendar.

Approved by: rpaulo (mentor)

10 years agoCode logic of handling PFTM_PURGE into pf_find_state().
glebius [Mon, 4 Nov 2013 08:20:06 +0000 (08:20 +0000)]
Code logic of handling PFTM_PURGE into pf_find_state().

10 years agoRemove unused PFTM_UNTIL_PACKET const.
glebius [Mon, 4 Nov 2013 08:15:59 +0000 (08:15 +0000)]
Remove unused PFTM_UNTIL_PACKET const.

10 years agoAdd Bluetooth/PAN (personal area networking) commands.
adrian [Mon, 4 Nov 2013 05:52:42 +0000 (05:52 +0000)]
Add Bluetooth/PAN (personal area networking) commands.

Submitted by: Cedric Gross <cg@cgross.info>

10 years agoAdd device ids for the Centrino 2x00 devices.
adrian [Mon, 4 Nov 2013 05:40:19 +0000 (05:40 +0000)]
Add device ids for the Centrino 2x00 devices.

Submitted by: Cedric Gross <cg@cgross.info>

10 years agoRemove trailing whitespace.
adrian [Mon, 4 Nov 2013 04:10:36 +0000 (04:10 +0000)]
Remove trailing whitespace.

Submitted by: Cedric Gross <cg@cgross.info>

10 years agoProperly quote the included filename, now that it has a dot in it. Doh.
ian [Mon, 4 Nov 2013 03:46:09 +0000 (03:46 +0000)]
Properly quote the included filename, now that it has a dot in it.  Doh.

10 years agoRename WANDBOARD-COMMON to WANDBOARD.common and adjust the configs that
ian [Mon, 4 Nov 2013 03:39:23 +0000 (03:39 +0000)]
Rename WANDBOARD-COMMON to WANDBOARD.common and adjust the configs that
include it accordingly.  The build machinery for universe and tinderbox
tries to build every kernel config whose name begins and ends with [A-Z0-9]
and the common include file that has most of the options isn't buildable
by itself, so the new lowercase .common will avoid building it.

10 years agoInitialize the struct tm before handing it to strptime(3).
markj [Mon, 4 Nov 2013 02:50:43 +0000 (02:50 +0000)]
Initialize the struct tm before handing it to strptime(3).

PR: 183550
MFC after: 2 weeks

10 years agoDuring code inspection, I spotted that there was a code path where
rmacklem [Sun, 3 Nov 2013 23:17:30 +0000 (23:17 +0000)]
During code inspection, I spotted that there was a code path where
CLNT_CONTROL() would be called on "client" after it was
released via CLNT_RELEASE(). It was unlikely that this
code path gets executed and I have not heard of any problem
report caused by this bug. This patch fixes the code so that
this cannot happen.

MFC after: 2 months

10 years agokqueue: Change error for kqueues rlimit from EMFILE to ENOMEM and document
jilles [Sun, 3 Nov 2013 23:06:24 +0000 (23:06 +0000)]
kqueue: Change error for kqueues rlimit from EMFILE to ENOMEM and document
this error condition in the kqueue(2) manual page.

Discussed with: kib

10 years agoComments and style(9) only, no functional changes.
ian [Sun, 3 Nov 2013 22:55:33 +0000 (22:55 +0000)]
Comments and style(9) only, no functional changes.

10 years agoAdd description of two EHCI PCI IDs.
hselasky [Sun, 3 Nov 2013 21:33:42 +0000 (21:33 +0000)]
Add description of two EHCI PCI IDs.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

10 years agoThis library uses macros to define fprintf behvavior for several object types
sbruno [Sun, 3 Nov 2013 21:05:44 +0000 (21:05 +0000)]
This library uses macros to define fprintf behvavior for several object types
The compiler will see the non-string literal arguments to the fprintf calls and
omit warnings for them. Quiese these warnings in contrib code:

cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:743:12: warning: format
  string is not a string literal (potentially insecure) [-Wformat-security]
  ARENDER(pctl, nvlist_array, nvl, name, val, nelem);

10 years agoUpdate libreadline with vendor patches 8-13 as fetched from:
sbruno [Sun, 3 Nov 2013 20:38:51 +0000 (20:38 +0000)]
Update libreadline with vendor patches 8-13 as fetched from:
ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/

MFC after: 2 weeks

10 years agoRemove the WITH_LIBICONV_COMPAT hack that seems to do more harm than
peter [Sun, 3 Nov 2013 19:04:57 +0000 (19:04 +0000)]
Remove the WITH_LIBICONV_COMPAT hack that seems to do more harm than
good.  This caused libc to spoof the ports libiconv namespace and
provide a colliding libiconv.so.3 to fool rtld.  This should have
been removed some time ago.

10 years agoCorrect alignment.
pjd [Sun, 3 Nov 2013 19:02:18 +0000 (19:02 +0000)]
Correct alignment.

10 years agoRemove utxrm(8). This command has been superseded by 'utx rm'.
ed [Sun, 3 Nov 2013 16:43:52 +0000 (16:43 +0000)]
Remove utxrm(8). This command has been superseded by 'utx rm'.

10 years agoUnlock the lock before destroying it.
tuexen [Sun, 3 Nov 2013 14:00:17 +0000 (14:00 +0000)]
Unlock the lock before destroying it.
This issue was reported by Andrew Galante.

MFC after: 3 days

10 years agoBugfix: the attach routine needs to use the same table of fdt compat
ian [Sat, 2 Nov 2013 22:44:35 +0000 (22:44 +0000)]
Bugfix:  the attach routine needs to use the same table of fdt compat
strings that the probe routine used.

10 years agoAdd a missing register definition.
ian [Sat, 2 Nov 2013 21:07:39 +0000 (21:07 +0000)]
Add a missing register definition.

10 years agoArrange for uart_cpu_fdt's probe() routine to use the same table of compat
ian [Sat, 2 Nov 2013 20:14:39 +0000 (20:14 +0000)]
Arrange for uart_cpu_fdt's probe() routine to use the same table of compat
strings as uart_bus_fdt's probe().

The bus code uses ofw_bus_search_compatible() and that's not an option in
cpu (console) code -- it runs way before the ofw routines are usable.  So
the console probe has its own loop to search the table, but now at least
there's only one table to be maintained when new devices are added.

10 years agoChanges from upstream to improve compilation when INET or INET6
tuexen [Sat, 2 Nov 2013 20:12:19 +0000 (20:12 +0000)]
Changes from upstream to improve compilation when INET or INET6
or none of them is defined.

MFC after: 3 days

10 years agocircumvent a couple of warnings:
luigi [Sat, 2 Nov 2013 18:03:21 +0000 (18:03 +0000)]
circumvent a couple of warnings:
- on line 2550 intentionally overriding a const qualifier
- on line 3219 intentionally converting uint64_t to a pointer

10 years agoDon't create a distinct free page pool for segregating allocations that are
alc [Sat, 2 Nov 2013 17:08:20 +0000 (17:08 +0000)]
Don't create a distinct free page pool for segregating allocations that are
accessed through the direct map unless the kernel configuration actually
includes a direct map.  Only a few configurations do, and for the rest the
unnecessary free page pool is a small pessimization.

Tested by: zbb
MFC after: 6 weeks

10 years agoRestore the entropy gathering from the m_data pointer value, not the
adrian [Sat, 2 Nov 2013 15:13:02 +0000 (15:13 +0000)]
Restore the entropy gathering from the m_data pointer value, not the
m_data payload.

After talking with markm/bde, this is what markm actually intended.

10 years agoAdd device ID for 'Sanoxy 802.11N' usb
alfred [Sat, 2 Nov 2013 11:37:16 +0000 (11:37 +0000)]
Add device ID for 'Sanoxy 802.11N' usb

10 years agoFix API mismatch exposed by lagg.
alfred [Sat, 2 Nov 2013 10:49:47 +0000 (10:49 +0000)]
Fix API mismatch exposed by lagg.

When destroying a lagg the driver tries to restore the old mac and
fails due to API mismatch

10 years agoFix several issues with the busdma(9) KPI use in the e1000 drivers.
kib [Sat, 2 Nov 2013 09:16:11 +0000 (09:16 +0000)]
Fix several issues with the busdma(9) KPI use in the e1000 drivers.
The problems do not affect bouncing busdma in a visible way, but are
critical for the dmar backend.

- The bus_dmamap_create(9) is not documented to take BUS_DMA_NOWAIT flag.
- Unload descriptor map after receive.
- Do not reset descriptor map to NULL, bus_dmamap_load(9) requires
  valid map, and also this leaks the map.

Reported and tested by: pho
Approved by: jfv
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoWhen zero'ing out a buffer, make sure we are using right size.
delphij [Sat, 2 Nov 2013 01:16:10 +0000 (01:16 +0000)]
When zero'ing out a buffer, make sure we are using right size.

Without this change, in the worst but unlikely case scenario, certain
administrative operations, including change of configuration, set or
delete key from a GEOM ELI provider, may leave potentially sensitive
information in buffer allocated from kernel memory.

We believe that it is not possible to actively exploit these issues, nor
does it impact the security of normal usage of GEOM ELI providers when
these operations are not performed after system boot.

Security: possible sensitive information disclosure
Submitted by: Clement Lecigne <clecigne google com>
MFC after: 3 days

10 years agoadd missing file from previous netmap update...
luigi [Sat, 2 Nov 2013 00:54:47 +0000 (00:54 +0000)]
add missing file from previous netmap update...

10 years agoTeach the netgraph code to use a const char * pointer too.
adrian [Sat, 2 Nov 2013 00:11:38 +0000 (00:11 +0000)]
Teach the netgraph code to use a const char * pointer too.

Pointy hat to: adrian

10 years agoCreate a unique unit number for each controller and namespace cdev.
jimharris [Fri, 1 Nov 2013 23:30:54 +0000 (23:30 +0000)]
Create a unique unit number for each controller and namespace cdev.

Sponsored by: Intel
MFC after: 3 days

10 years agoFix this build for clang.
adrian [Fri, 1 Nov 2013 22:38:58 +0000 (22:38 +0000)]
Fix this build for clang.

10 years agoDo not exit with error status after printing data for perftest.
jimharris [Fri, 1 Nov 2013 22:05:29 +0000 (22:05 +0000)]
Do not exit with error status after printing data for perftest.

Sponsored by: Intel
Reported by: Joe Golio <joseph.golio@emc.com>
MFC after: 3 days

10 years agoReimplement r257525 such that it work with the historic FreeBSD make
brooks [Fri, 1 Nov 2013 22:03:20 +0000 (22:03 +0000)]
Reimplement r257525 such that it work with the historic FreeBSD make
implementation.  This fixes the toolchain and kernel-toolchain targets
when building from older FreeBSD versions where make is fmake.

Reported by: luigi
Sponsored by: DARPA/AFRL
MFC after: 3 days

10 years agoupdate to the latest netmap snapshot.
luigi [Fri, 1 Nov 2013 21:21:14 +0000 (21:21 +0000)]
update to the latest netmap snapshot.
This includes the following:
- use separate memory regions for VALE ports
- locking fixes
- some simplifications in the NIC-specific routines
- performance improvements for the VALE switch
- some new features in the pkt-gen test program
- documentation updates

There are small API changes that require programs to be recompiled
(NETMAP_API has been bumped so you will detect old binaries at runtime).

In particular:
- struct netmap_slot now is 16 bytes to support an extra pointer,
  which may save one data copy when using VALE ports or VMs;
- the struct netmap_if has two extra fields;

MFC after: 3 days

10 years agoConvert the random entropy harvesting code to use a const void * pointer
adrian [Fri, 1 Nov 2013 20:53:49 +0000 (20:53 +0000)]
Convert the random entropy harvesting code to use a const void * pointer
rather than just void *.

Then, as part of this, convert a couple of mbuf m->m_data accesses
to mtod(m, const void *).

Reviewed by: markm
Approved by: security-officer (delphij)
Sponsored by: Netflix, Inc.

10 years agoThe ability to do 8-bit implies 4-bit capability too. Rearrange the cases
ian [Fri, 1 Nov 2013 19:29:59 +0000 (19:29 +0000)]
The ability to do 8-bit implies 4-bit capability too.  Rearrange the cases
and add a fallthrough comment to make that happen.

10 years agoTI sdhci driver improvements, mostly related to fdt data...
ian [Fri, 1 Nov 2013 19:22:06 +0000 (19:22 +0000)]
TI sdhci driver improvements, mostly related to fdt data...

Use the published compatible strings (our own invention, "ti,mmchs" is
still accepted as well, for now).

Don't blindly turn on 8-bit bus mode, because even though the conroller
supports it, the board has to be wired appropriately as well.  Use the
published property (bus-width=<n>) and honor all the valid values (1,4,8).

The eMMC device on a Beaglebone Black is wired for 8-bit, update the dts.

The mmchs controller can inherently do both 1.8v and 3.0v on the first
device and 1.8v only on other devices, unless an external transceiver is
used.  Set the voltage automatically for the first device and honor
the published fdt property (ti,dualvolt) for other devices.

Thanks go to Ilya Bakulin for figuring out the voltage compatibility stuff.

10 years agoOpenBSD 5.4 added.
pluknet [Fri, 1 Nov 2013 18:55:56 +0000 (18:55 +0000)]
OpenBSD 5.4 added.

10 years agoSomehow fix LINT-NOIP.
glebius [Fri, 1 Nov 2013 18:42:03 +0000 (18:42 +0000)]
Somehow fix LINT-NOIP.

10 years agosmall cleanup for building picobsd-head without CLANG.
luigi [Fri, 1 Nov 2013 18:29:27 +0000 (18:29 +0000)]
small cleanup for building picobsd-head without CLANG.

Note that svn 257268 gnu/usr.bin/binutils/ld/Makefile
seems to break the "toolchain" target when building HEAD
on RELENG_9, so until this is solved you may want to

    svn update -r 257267 gnu/usr.bin/binutils/ld/Makefile

before building picobsd

10 years agoAdd support for queued invalidation.
kib [Fri, 1 Nov 2013 17:38:52 +0000 (17:38 +0000)]
Add support for queued invalidation.

Right now, the semaphore write is scheduled after each batch, which is
not optimal and must be tuned.

Discussed with: alc
Tested by: pho
MFC after: 1 month

10 years agoReturn BUS_PROBE_NOWILDCARD from the DMAR probe method.
kib [Fri, 1 Nov 2013 17:16:44 +0000 (17:16 +0000)]
Return BUS_PROBE_NOWILDCARD from the DMAR probe method.

Confirmed by: nwhitehorn
MFC after: 1 month

10 years agosh(1),limits(1): Document kqueues (-k) rlimit.
jilles [Fri, 1 Nov 2013 13:57:30 +0000 (13:57 +0000)]
sh(1),limits(1): Document kqueues (-k) rlimit.

10 years agoAdd -f support to 'pkg bootstrap' and 'pkg add' to force installation
bdrewery [Fri, 1 Nov 2013 12:37:36 +0000 (12:37 +0000)]
Add -f support to 'pkg bootstrap' and 'pkg add' to force installation
of pkg(8) even if already installed.

This is useful if you somehow messup pkg(8) and need to reinstall from
remote with it already being registered in the pkg(8) /var/db/pkg database.

Also add some sanity checks to 'pkg add'.

Approved by: bapt
MFC after: 2 days

10 years agosh: Reorder union node to reduce its size on 64-bit platforms.
jilles [Fri, 1 Nov 2013 11:28:56 +0000 (11:28 +0000)]
sh: Reorder union node to reduce its size on 64-bit platforms.

10 years agoRemove the dependency on procfs.
pluknet [Fri, 1 Nov 2013 10:42:32 +0000 (10:42 +0000)]
Remove the dependency on procfs.

Reviewed by: kib
MFC after: 1 week
X-MFC with: r257430

10 years agoMake getenv_*() functions and respectively TUNABLE_*_FETCH() macros not
mav [Fri, 1 Nov 2013 10:32:33 +0000 (10:32 +0000)]
Make getenv_*() functions and respectively TUNABLE_*_FETCH() macros not
allocate memory and so not require sleepable environment.  getenv() has
already used on-stack temporary storage, so just use it more rationally.
getenv_string() receives buffer as argument, so don't need another one.

10 years agoin_ifadown() can be void.
glebius [Fri, 1 Nov 2013 10:29:10 +0000 (10:29 +0000)]
in_ifadown() can be void.

10 years agoCleanup in_ifscrub(), which is just an entry to in_scrubprefix().
glebius [Fri, 1 Nov 2013 10:18:41 +0000 (10:18 +0000)]
Cleanup in_ifscrub(), which is just an entry to in_scrubprefix().

10 years agoprison_check_ip4() can take const arguments.
glebius [Fri, 1 Nov 2013 10:01:57 +0000 (10:01 +0000)]
prison_check_ip4() can take const arguments.

10 years agoPerform media change after setting IFF_DRV_RUNNING flag. Without it,
yongari [Fri, 1 Nov 2013 05:03:47 +0000 (05:03 +0000)]
Perform media change after setting IFF_DRV_RUNNING flag. Without it,
driver would ignore the first link state update if controller
already established a link.

Reported by: bsam
Tested by: bsam

10 years agoKernel config for Wandboard.
ian [Fri, 1 Nov 2013 02:04:05 +0000 (02:04 +0000)]
Kernel config for Wandboard.

10 years agoUse LOG2_ID_PAGE_SIZE again for the identity mapping in regions 6 & 7.
marcel [Fri, 1 Nov 2013 01:32:01 +0000 (01:32 +0000)]
Use LOG2_ID_PAGE_SIZE again for the identity mapping in regions 6 & 7.
Make the default translation size the same as the PBVM page size to
avoid inserting overlapping translations in the TC. That generally is
very bad.

10 years agoAdd dts source for imx6 SoCs and for Wandboard boards.
ian [Fri, 1 Nov 2013 00:45:08 +0000 (00:45 +0000)]
Add dts source for imx6 SoCs and for Wandboard boards.

The imx6.dtsi is incomplete, but has enough to support devices that work
right now.  Eventually it will need to be split into several files that
account for the differences between SoCs in the imx6 family.

The board config for Wandboard Dual is untested.  Solo and Quad work, but
one one core is turned on for the quad right now (baby steps).

10 years agoInstall include files for netpfil/pf when requested by the Makefile
sbruno [Fri, 1 Nov 2013 00:32:26 +0000 (00:32 +0000)]
Install include files for netpfil/pf when requested by the Makefile

Reviewed by: glebius

10 years agoThe PAL_PTCE_INFO function returns the counts and strides of the
marcel [Fri, 1 Nov 2013 00:21:38 +0000 (00:21 +0000)]
The PAL_PTCE_INFO function returns the counts and strides of the
outer and inner loop as 32-bit integers mux'd in 64-bit return
values. Change our data types for the count and stride to match
and simplify/adjust accordingly.
Note that with this change the defaults of the ptc.e parameters
have changed. Since all hardware is supposed to support the PAL
call, there should be no impact. Even ski is unaffected, because
the TC is re-initialized without considering the virtual address.
So, as long as we call ptc.e at least once, we're good. That's
what the new defaults do.
Most processor implementations need but a single ptc.e to purge
the entire TC anyway...

10 years agoAdd the Soc- / machine-dependent parts of imx6 support.
ian [Fri, 1 Nov 2013 00:21:09 +0000 (00:21 +0000)]
Add the Soc- / machine-dependent parts of imx6 support.

10 years agoFix lock recursion, triggered by `smartctl -a /dev/adaX`.
mav [Fri, 1 Nov 2013 00:14:15 +0000 (00:14 +0000)]
Fix lock recursion, triggered by `smartctl -a /dev/adaX`.

10 years agoConvert the if/else list of compatible devices to the table-driven
ian [Thu, 31 Oct 2013 23:57:33 +0000 (23:57 +0000)]
Convert the if/else list of compatible devices to the table-driven
ofw_bus_search_compatible() routine.  In addition to converting existing
strings to table entries, also add compat strings for the whole imx family.

10 years agoAdd definitions for the register and data that describes the SoC type.
ian [Thu, 31 Oct 2013 23:08:30 +0000 (23:08 +0000)]
Add definitions for the register and data that describes the SoC type.
This isn't in the chip reference manuals, it was found in u-boot and
various old mailing list threads.

10 years agoPurge the translation cache of APs before we unleash them. To that
marcel [Thu, 31 Oct 2013 23:06:04 +0000 (23:06 +0000)]
Purge the translation cache of APs before we unleash them. To that
end, make pmap_invalidate_all() global and have it only handle the
local CPU -- i.e. no rendezvous. We do not use pmap_invalidate_all
other than during initialization.
Note that the BSP already purges its TC -- it was missing for APs
only. Nonetheless, this so far seems to eliminate random problems.

10 years agoRevamp the SoC identity numbering scheme to be more in line with the way
ian [Thu, 31 Oct 2013 23:05:05 +0000 (23:05 +0000)]
Revamp the SoC identity numbering scheme to be more in line with the way
Freescale numbers the chips in the ID registers.

10 years agoRespect the kern.smp.disabled tunable. When we're scanning the MADT in
marcel [Thu, 31 Oct 2013 22:46:03 +0000 (22:46 +0000)]
Respect the kern.smp.disabled tunable. When we're scanning the MADT in
ia64_probe_sapics(), we also create PCPU structures for any Local SAPICs
we encounter. When SMP is disabled, this leaves us with partially setup
PCPU structures, which typically results in panics when we're iterating
over CPUs. When SMP is disabled, we now prevent the creation of the
PCPU structures.

10 years agoOuch, do the shift properly. An uin64_t needs the right postfix when shifting.
andreast [Thu, 31 Oct 2013 20:42:47 +0000 (20:42 +0000)]
Ouch, do the shift properly. An uin64_t needs the right postfix when shifting.

10 years agoRate limit (to once per minute) "Listen queue overflow" message in
emax [Thu, 31 Oct 2013 20:33:21 +0000 (20:33 +0000)]
Rate limit (to once per minute) "Listen queue overflow" message in
sonewconn().

Reviewed by: scottl, lstewart
Obtained from: Netflix, Inc
MFC after: 2 weeks

10 years agoRemove 'netstat -i' from crashinfo, as this no longer is supported.
glebius [Thu, 31 Oct 2013 20:30:56 +0000 (20:30 +0000)]
Remove 'netstat -i' from crashinfo, as this no longer is supported.

10 years agoIntegrate github revision 0446821e49224c6a29be28760cc9c4cc14f56d8a as
sbruno [Thu, 31 Oct 2013 20:03:59 +0000 (20:03 +0000)]
Integrate github revision 0446821e49224c6a29be28760cc9c4cc14f56d8a as
suggested by upstream

https://github.com/the-tcpdump-group/libpcap/issues/327

Quiesce assignment warnings by use of const

10 years agoAdd myself as a ports committer
trociny [Thu, 31 Oct 2013 19:55:36 +0000 (19:55 +0000)]
Add myself as a ports committer

Approved by: bdrewery (mentor)

10 years agoQueisce warning about attempting to add char * together and use explicit
sbruno [Thu, 31 Oct 2013 18:53:39 +0000 (18:53 +0000)]
Queisce warning about attempting to add char * together and use explicit
array indexing to indicate what is meant to be done

10 years agoQueisce warning about attempting to add char * together and use explicit
sbruno [Thu, 31 Oct 2013 18:53:13 +0000 (18:53 +0000)]
Queisce warning about attempting to add char * together and use explicit
array indexing to indicate what is meant to be done

10 years agoFix up FreeBSD tag for files not from a vendor branch
emaste [Thu, 31 Oct 2013 18:44:40 +0000 (18:44 +0000)]
Fix up FreeBSD tag for files not from a vendor branch

Unexpand the tag, remove the fbsd:nokeywords property and add the
svn:keywords property.  This should eliminate the gratuituous diffs
that appear on these files in projects branches.

Sponsored by: The FreeBSD Foundation

10 years agoMake struct ifnet readable and comprehensible again by grouping
andre [Thu, 31 Oct 2013 15:46:10 +0000 (15:46 +0000)]
Make struct ifnet readable and comprehensible again by grouping
and ordering related variables, fields and locks next to each
other.  Add more comments to variables.

Over time 'ifnet' has accumlated a lot of additional pointers and
functionality in an unstructured way making it quite hard to read
and understand while obfuscating relationships between fields and
variables.

Quantify the structure size and how bloated it has become.

This is only a mechanical change in preparation for upcoming
work to make ifnet opaque to drivers and to separate out the
interface queuing.

Sponsored by: The FreeBSD Foundation

10 years agoAdd sdhci driver glue for imx family SoCs. This should support both uSDHC
ian [Thu, 31 Oct 2013 15:27:39 +0000 (15:27 +0000)]
Add sdhci driver glue for imx family SoCs.  This should support both uSDHC
(newer SoCs) and eSDHC (older SoCs), but the eSDHC support is untested and
likely to need some tweaking.

10 years agoAdd stubbed-out imx6 support for clocks and power management. This
ian [Thu, 31 Oct 2013 15:04:23 +0000 (15:04 +0000)]
Add stubbed-out imx6 support for clocks and power management.  This
contains little more than a few stub functions required to keep the
linker happy, but it's enough to let early imx6 development proceed.

10 years agoAdd support for the USB PHY on imx6 SoCs. Pretty minimal at this point,
ian [Thu, 31 Oct 2013 14:52:06 +0000 (14:52 +0000)]
Add support for the USB PHY on imx6 SoCs.  Pretty minimal at this point,
but enough to get usb host mode working.

10 years agoAllow the Arduino Leonardo to work by supporting CDC=0 devices.
adrian [Thu, 31 Oct 2013 13:54:51 +0000 (13:54 +0000)]
Allow the Arduino Leonardo to work by supporting CDC=0 devices.

CDC=0 simply means "no command codes", CDC=1 means "AT command codes."
There's no driver change required!  It's purely to tell the application
layer whether to speak AT commands or not.  Things are all still serial.

PR: usb/183505
Reviewed by: hps
MFC after: 1 week

10 years agoAfter around 20 years of duty it is time for pkg_install to retire
bapt [Thu, 31 Oct 2013 13:00:35 +0000 (13:00 +0000)]
After around 20 years of duty it is time for pkg_install to retire

10 years agoAdjust the manpage category for the pkg bootstrap
bapt [Thu, 31 Oct 2013 12:05:37 +0000 (12:05 +0000)]
Adjust the manpage category for the pkg bootstrap

10 years agoMake lpathconf(2) support optional to make it compile again on Linux.
pjd [Thu, 31 Oct 2013 11:38:25 +0000 (11:38 +0000)]
Make lpathconf(2) support optional to make it compile again on Linux.

Submitted by: Hashem Nasarat @riseup.net

10 years agoFix a potential memory leak.
hselasky [Thu, 31 Oct 2013 11:03:36 +0000 (11:03 +0000)]
Fix a potential memory leak.

MFC after: 1 week

10 years agoRemove the dependency on procfs. Use sysctl KERN_PROC_PATHNAME and
kib [Thu, 31 Oct 2013 09:29:37 +0000 (09:29 +0000)]
Remove the dependency on procfs.  Use sysctl KERN_PROC_PATHNAME and
KERN_PROC_PID to obtain the parent process pathname and command, used
to determine the calling shell.

Submitted by: Stefan Neudorf
PR: bin/183484
MFC after: 1 week

10 years agoFix some types. Compilation for external target complains that "u_int"
hselasky [Thu, 31 Oct 2013 09:20:30 +0000 (09:20 +0000)]
Fix some types. Compilation for external target complains that "u_int"
is not idential to "uint32_t" when defining set channel prototype
functions. The WLAN channel range should be from 0 to 65535
inclusivly, and u_int should be fine for this purpose.

10 years agoFix long line and record proper commit message for r257427:
kib [Thu, 31 Oct 2013 09:03:42 +0000 (09:03 +0000)]
Fix long line and record proper commit message for r257427:
Add the '-k' option for getopt() call and usage.

Submitted by: Stefan Neudorf
PR: bin/183494
MFC after: 1 week

10 years agoThe limit for the swap space is spelled 'swapsize', at least since
kib [Thu, 31 Oct 2013 08:58:32 +0000 (08:58 +0000)]
The limit for the swap space is spelled 'swapsize', at least since
tcsh 6.17.00 import.

Submitted by: Stefan Neudorf
PR: bin/183480
MFC after: 1 week

10 years agoThe limit for the swap space is spelled 'swapsize', at least since
kib [Thu, 31 Oct 2013 08:22:29 +0000 (08:22 +0000)]
The limit for the swap space is spelled 'swapsize', at least since
tcsh 6.17.00 import.

Submitted by: Stefan Neudorf
PR: bin/183480
MFC after: 1 week

10 years agoMake the virtual ioapic available unconditionally in a bhyve virtual machine.
neel [Thu, 31 Oct 2013 05:44:45 +0000 (05:44 +0000)]
Make the virtual ioapic available unconditionally in a bhyve virtual machine.

This is in preparation for moving the ioapic device model from userspace to
vmm.ko.

Reviewed by: grehan

10 years agoRename the VMM_CTRx() family of macros to VCPU_CTRx() to highlight that these
neel [Thu, 31 Oct 2013 05:20:11 +0000 (05:20 +0000)]
Rename the VMM_CTRx() family of macros to VCPU_CTRx() to highlight that these
tracepoints are vcpu-specific.

Add support for tracepoints that are global to the virtual machine - these
tracepoints are called VM_CTRx().

10 years agoProvide a crutch that prevents watchdog to interrupt dumping
glebius [Thu, 31 Oct 2013 05:13:53 +0000 (05:13 +0000)]
Provide a crutch that prevents watchdog to interrupt dumping
on a box with IPMI enabled.

Okay from: jhb
Sponsored by: Netflix
Sponsored by: Nginx, Inc.