]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAll callers of static method load_nvlist() in spa.c handles error case,
Xin LI [Sun, 2 Mar 2014 02:41:33 +0000 (02:41 +0000)]
All callers of static method load_nvlist() in spa.c handles error case,
so there is no reason to assert that we won't hit an error.  Instead,
just return that error to caller and have the upper layer handle it.

Obtained from: FreeNAS
Reported by: rodrigc
Reviewed by: Matthew Ahrens
MFC after: 2 weeks

10 years agoRevive support for /etc/issue, lost due revision 81963.
Marcel Moolenaar [Sun, 2 Mar 2014 00:47:47 +0000 (00:47 +0000)]
Revive support for /etc/issue, lost due revision 81963.

Obtained from: Juniper Networks, Inc.

10 years agoUse ${MAKE} so that we always use the same version/implementation
Marcel Moolenaar [Sun, 2 Mar 2014 00:14:57 +0000 (00:14 +0000)]
Use ${MAKE} so that we always use the same version/implementation
of make.

10 years agoWhen our linker merges .SUNW_dof sections from multiple files, it simply
Mark Johnston [Sat, 1 Mar 2014 23:09:07 +0000 (23:09 +0000)]
When our linker merges .SUNW_dof sections from multiple files, it simply
concatenates the DOF tables into one section. Previously, the USDT init
code in drti.o would only look at the first table in the DOF section; with
this change, it iterates over all the tables, passing each DOF table to
the kernel.

PR: 186821
Submitted by: Fedor Indutny <fedor@indutny.com>
MFC after: 1 month

10 years agoext2fs: small formatting fixes.
Pedro F. Giffuni [Sat, 1 Mar 2014 21:22:20 +0000 (21:22 +0000)]
ext2fs: small formatting fixes.

Remove some redundant spaces.
No functional change.

MFC after: 3 days

10 years agoIf we can't find the u-boot api signature, exit with an error status that
Ian Lepore [Sat, 1 Mar 2014 19:25:23 +0000 (19:25 +0000)]
If we can't find the u-boot api signature, exit with an error status that
includes "badab1"; u-boot displays the status in hex, so this may help
give some clue about why ubldr isn't working (more than -1 does anyway).

10 years agoExpose a few DTrace parameters as sysctls under kern.dtrace and add
Mark Johnston [Sat, 1 Mar 2014 19:06:43 +0000 (19:06 +0000)]
Expose a few DTrace parameters as sysctls under kern.dtrace and add
descriptions for several existing sysctls.

PR: 187027
Submitted by: Fedor Indutny <fedor@indutny.com> (original version)
MFC after: 2 weeks

10 years agoPrevent fdt data loaded from a file from overwriting the kernel environment,
Ian Lepore [Sat, 1 Mar 2014 19:02:00 +0000 (19:02 +0000)]
Prevent fdt data loaded from a file from overwriting the kernel environment,
by having uboot_autoload() do the fdt setup (which may load a file) rather
than waiting until we're actually in the process of launching the kernel.

As part of making this happen...
 - Define LOADER_FDT_SUPPORT on the uboot/lib compile command line when
   MK_FDT is set.
 - Make fdt_setup_fdtb() public.
 - Declare public fdt_whatever() functions in a header instead of using
   scattered extern decls in .c files.

10 years ago- Make pointer easier to control when moving slowly.
Hans Petter Selasky [Sat, 1 Mar 2014 18:56:50 +0000 (18:56 +0000)]
- Make pointer easier to control when moving slowly.
- Increase chance of vertical scrolling as vertical scrolling is used more often.

Submitted by: Huang Wen Hui <huanghwh@gmail.com>
MFC after: 2 weeks

10 years agoFix emulation of call and jmp instructions on i386 and for 32-bit processes
Mark Johnston [Sat, 1 Mar 2014 17:55:20 +0000 (17:55 +0000)]
Fix emulation of call and jmp instructions on i386 and for 32-bit processes
on amd64.

Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in>
MFC after: 2 weeks

10 years agoApply fix for lldb not linking after the sparc backend import.
Dimitry Andric [Sat, 1 Mar 2014 16:07:17 +0000 (16:07 +0000)]
Apply fix for lldb not linking after the sparc backend import.

Reported by: se
Pointy hat to: dim

10 years agoSilence the gcc warning about unsigned comparison with 0 in a different
Tijl Coosemans [Sat, 1 Mar 2014 13:23:52 +0000 (13:23 +0000)]
Silence the gcc warning about unsigned comparison with 0 in a different
way because mnemonic_ext_size isn't a preprocessor macro.

MFC after: 3 days

10 years ago(I think!) make the AR8327 switch correctly handle traffic.
Adrian Chadd [Sat, 1 Mar 2014 10:04:31 +0000 (10:04 +0000)]
(I think!) make the AR8327 switch correctly handle traffic.

This patch does four things:

* it globally disables mirroring;
* it globally sets the mirroring on each port to be disabled;
* the initial port setup now programs a portmask for the port to allow
  transmission (forwarding) to all other ports bar itself;
* the vlan setup path now programs the portmask for the port to
  allow transmission (forwarding) to all other ports bar itself.

Before this, I hard-coded the portmask to 0x3f which would mean all
ports (bar port 6, which currently isn't hooked up to anything.)
This means that traffic would be duplicated back out the port it
received it.  I bet this wasn't .. optimal.

In any case, this _seems_ to make DHCP from my macosx laptop
work through this access point.  I'll do some further testing
to ensure it's actually working correctly on all my devices.

Tested:

* DB120, AR8327 switch

10 years agossh-copy-id: add restorecon call
Eitan Adler [Sat, 1 Mar 2014 03:36:46 +0000 (03:36 +0000)]
ssh-copy-id: add restorecon call

In certain situations when creating an authorized_key file on a Linux machine
restorecon(1) may need to be called.  Therefore, attempt to run it if it exists.

MFC After: 1 week
Idea from: https://bugzilla.redhat.com/show_bug.cgi?id=739989

10 years agoFix a race between VMRUN() and vcpu_notify_event() due to 'vcpu->hostcpu'
Neel Natu [Sat, 1 Mar 2014 03:17:58 +0000 (03:17 +0000)]
Fix a race between VMRUN() and vcpu_notify_event() due to 'vcpu->hostcpu'
being updated outside of the vcpu_lock(). The race is benign and could
potentially result in a missed notification about a pending interrupt to
a vcpu. The interrupt would not be lost but rather delayed until the next
VM exit.

The vcpu's hostcpu is now updated concurrently with the vcpu state change.
When the vcpu transitions to the RUNNING state the hostcpu is set to 'curcpu'.
It is set to 'NOCPU' in all other cases.

Reviewed by: grehan

10 years agossh-copy-id: avoid sending private keys; add -v option
Eitan Adler [Sat, 1 Mar 2014 03:17:46 +0000 (03:17 +0000)]
ssh-copy-id: avoid sending private keys; add -v option

To help avoid confusion: when attempting to send a key file check to see if a
file of the same name exists with a '.pub' suffix and send that instead.  This
mimics the behavior of other ssh-copy-id scripts.

Add -v passthrough.

Reported by: dweimer <dweimer@dweimer.net>
Reported by: feld
MFC After: 1 week

10 years agoAdd the bluetooth information structs to the firmware RX statistics message.
Adrian Chadd [Sat, 1 Mar 2014 02:57:22 +0000 (02:57 +0000)]
Add the bluetooth information structs to the firmware RX statistics message.

It turns out that there's a variant format of the RX statisitcs notification
from the intel firmware.  It's even more whacked - the non-BT variant has
bluetooth fields; apparently some later NICs return even _more_ bluetooth
related fields.

I'll commit the statistics structure changes here - it's a no-op for the
driver.  I'll later teach the driver code to populate a statistics structure
from the received message after reformatting things correctly.

I don't _think_ it's going to fix anything related to sensitivity programming
as the CCK/OFDM (non-11n) fields are in the same place for both formats.
But the HT structure and the general statistics aren't in the same place.

I'll go find some NIC(s) that spit out the other format and when I find one,
I'll go and update the driver to handle things correctly.

Tested:

* Intel 5100 (which returns the legacy, non-BT format)

Obtained from: Linux iwlwifi

10 years agoBe paranoid about bit operations here.
Adrian Chadd [Sat, 1 Mar 2014 00:11:45 +0000 (00:11 +0000)]
Be paranoid about bit operations here.

10 years agoRemove now dead code.
Adrian Chadd [Sat, 1 Mar 2014 00:02:09 +0000 (00:02 +0000)]
Remove now dead code.

10 years agoBump __FreeBSD_version after import of ncurses 5.9.
Xin LI [Fri, 28 Feb 2014 23:52:12 +0000 (23:52 +0000)]
Bump __FreeBSD_version after import of ncurses 5.9.

10 years agoMFV r262617: ncurses 5.9.
Xin LI [Fri, 28 Feb 2014 23:48:13 +0000 (23:48 +0000)]
MFV r262617: ncurses 5.9.

10 years agoAdd a script which lists SVN log entries only for changesets
Craig Rodrigues [Fri, 28 Feb 2014 23:12:20 +0000 (23:12 +0000)]
Add a script which lists SVN log entries only for changesets
which have files which have been Added or Removed.

This can help identify changesets which should be
mentioned in Release Engineering's release notes.

10 years agoFix syntax errors (missing ;) that bsdl dtc was tolerant of, but gpl
Warner Losh [Fri, 28 Feb 2014 22:37:40 +0000 (22:37 +0000)]
Fix syntax errors (missing ;) that bsdl dtc was tolerant of, but gpl
dtc isn't.

10 years agoUse proper include path for dtc as well as cpp.
Warner Losh [Fri, 28 Feb 2014 22:37:35 +0000 (22:37 +0000)]
Use proper include path for dtc as well as cpp.

10 years agoOnly try to build the static dtb when we're building a static dtb...
Warner Losh [Fri, 28 Feb 2014 22:06:19 +0000 (22:06 +0000)]
Only try to build the static dtb when we're building a static dtb...

10 years agoCorrect VMware capitalization.
John Baldwin [Fri, 28 Feb 2014 21:33:40 +0000 (21:33 +0000)]
Correct VMware capitalization.

Submitted by: joeld

10 years agoext2fs: use of tab vs spaces.
Pedro F. Giffuni [Fri, 28 Feb 2014 21:25:32 +0000 (21:25 +0000)]
ext2fs: use of tab vs spaces.

Consistently use a single tab after a #define as mentioned in style(9).
Use tabs instead of space for indenting.
Fix a typo: "hash_vesion".

No functional change.

MFC after: 3 days

10 years agosince -F is safe, and an update from 10-HEAD to 10-STABLE is sooo bloody
John-Mark Gurney [Fri, 28 Feb 2014 19:51:47 +0000 (19:51 +0000)]
since -F is safe, and an update from 10-HEAD to 10-STABLE is sooo bloody
anoying w/o it..  recommend people use -F too...

10 years agoWhitespace fix.
John Baldwin [Fri, 28 Feb 2014 19:21:07 +0000 (19:21 +0000)]
Whitespace fix.

10 years agoRedo import of ncurses 5.9 (stripped).
Xin LI [Fri, 28 Feb 2014 19:18:07 +0000 (19:18 +0000)]
Redo import of ncurses 5.9 (stripped).

10 years agoUndo two previous imports which was never done in preparation of doing a
Xin LI [Fri, 28 Feb 2014 19:12:44 +0000 (19:12 +0000)]
Undo two previous imports which was never done in preparation of doing a
new import.

10 years agoWorkaround an apparent bug in VMWare Fusion's nested VT support where it
John Baldwin [Fri, 28 Feb 2014 19:07:55 +0000 (19:07 +0000)]
Workaround an apparent bug in VMWare Fusion's nested VT support where it
triggers a VM exit with the exit reason of an external interrupt but
without a valid interrupt set in the exit interrupt information.

Tested by: Michael Dexter
Reviewed by: neel
MFC after: 1 week

10 years agoIntegrate device-tree upstream files into the build process:
Warner Losh [Fri, 28 Feb 2014 18:29:09 +0000 (18:29 +0000)]
Integrate device-tree upstream files into the build process:
(1) Invoke cpp to bring in files via #include (although the old
    /include/ stuff is supported still).
(2) bring in files from either vendor tree or freebsd-custom files
    when building.
(3) move all dts* files from sys/boot/fdt/dts to
    sys/boot/fdt/dts/${MACHINE} as appropriate.
(4) encode all the magic to do the build in sys/tools/fdt/make_dtb.sh
    so that the different places in the tree use the exact same logic.
(5) switch back to gpl dtc by default. the bsdl one in the tree has
    significant issues not easily addressed by those unfamiliar with
    the code.

10 years agoMerge the projects/clang-sparc64 branch back to head. This brings in
Dimitry Andric [Fri, 28 Feb 2014 18:06:00 +0000 (18:06 +0000)]
Merge the projects/clang-sparc64 branch back to head.  This brings in
several updates from the llvm and clang trunks to make the sparc64
backend fully functional.

Apart from one patch to sys/sparc64/include/pcpu.h which is still under
discussion, this makes it possible to let clang fully build world and
kernel for sparc64.

Any assistance with testing this on actual sparc64 hardware is greatly
appreciated, as there will unavoidably be bugs left.

Many thanks go to Roman Divacky for his upstream work on getting the
sparc64 backend into shape.

MFC after: 1 month

10 years agoMerge from head up to r262611.
Dimitry Andric [Fri, 28 Feb 2014 17:46:56 +0000 (17:46 +0000)]
Merge from head up to r262611.

10 years agoPull in r196874 from upstream llvm trunk:
Dimitry Andric [Fri, 28 Feb 2014 17:12:31 +0000 (17:12 +0000)]
Pull in r196874 from upstream llvm trunk:

  Fix a crash that occurs when PWD is invalid.

  MCJIT needs to be able to run in hostile environments, even when PWD
  is invalid. There's no need to crash MCJIT in this case.

  The obvious fix is to simply leave MCContext's CompilationDir empty
  when PWD can't be determined. This way, MCJIT clients,
  and other clients that link with LLVM don't need a valid working directory.

  If we do want to guarantee valid CompilationDir, that should be done
  only for clients of getCompilationDir(). This is as simple as checking
  for an empty string.

  The only current use of getCompilationDir is EmitGenDwarfInfo, which
  won't conceivably run with an invalid working dir. However, in the
  purely hypothetically and untestable case that this happens, the
  AT_comp_dir will be omitted from the compilation_unit DIE.

This should help fix assertions occurring with ports-mgmt/tinderbox,
when it is using jails, and sometimes invalidates clang's current
working directory.

Reported by: decke
MFC after: 2 weeks
X-MFC-With: r261991

10 years agoSymbolic bindings for the dts files...
Warner Losh [Fri, 28 Feb 2014 16:51:33 +0000 (16:51 +0000)]
Symbolic bindings for the dts files...

10 years agoAdd missing skeleton file.
Warner Losh [Fri, 28 Feb 2014 16:43:56 +0000 (16:43 +0000)]
Add missing skeleton file.

10 years agoAdd skeleton.dtsi and update to new place in tree.
Warner Losh [Fri, 28 Feb 2014 16:42:14 +0000 (16:42 +0000)]
Add skeleton.dtsi and update to new place in tree.

10 years agoAdd proper svn:keyword props
Warner Losh [Fri, 28 Feb 2014 16:35:01 +0000 (16:35 +0000)]
Add proper svn:keyword props

10 years agoThese file have a, possibly dubious, GPL claim. Until that's sorted, move to gnu.
Warner Losh [Fri, 28 Feb 2014 16:26:44 +0000 (16:26 +0000)]
These file have a, possibly dubious, GPL claim. Until that's sorted, move to gnu.

10 years agomdoc cleanup.
Christian Brueffer [Fri, 28 Feb 2014 15:55:35 +0000 (15:55 +0000)]
mdoc cleanup.

MFC after: 1 week

10 years agoAdd device and gadget bindings for fdt. These are preliminary and will
Warner Losh [Fri, 28 Feb 2014 03:00:31 +0000 (03:00 +0000)]
Add device and gadget bindings for fdt. These are preliminary and will
need work before they work, especially the gadget bindings.

10 years agotcb device for fdt
Warner Losh [Fri, 28 Feb 2014 03:00:28 +0000 (03:00 +0000)]
tcb device for fdt

10 years agoshdwc device for fdt
Warner Losh [Fri, 28 Feb 2014 03:00:25 +0000 (03:00 +0000)]
shdwc device for fdt

10 years agoAdd device node for SDRAMC device. Currently just claims device's
Warner Losh [Fri, 28 Feb 2014 02:59:51 +0000 (02:59 +0000)]
Add device node for SDRAMC device. Currently just claims device's
resources.

10 years agoAdd fdt binding for nand for Atmel parts. This does little more than
Warner Losh [Fri, 28 Feb 2014 02:38:04 +0000 (02:38 +0000)]
Add fdt binding for nand for Atmel parts. This does little more than
match the device. Pinctrl will need to be added before this will work,
in addition to migrating the current board_foo.c method of configuring
these pins to something else. Non-FDT systems won't be affected, yet.

10 years ago4478 dtrace_dof_maxsize is far too small
Mark Johnston [Fri, 28 Feb 2014 02:04:41 +0000 (02:04 +0000)]
4478 dtrace_dof_maxsize is far too small

illumos/illumos-gate@d339a29bb4765c4b6883a935cf69b669cd05bca0

PR: 187027
MFC after: 1 week

10 years ago4478 dtrace_dof_maxsize is far too small
Mark Johnston [Fri, 28 Feb 2014 01:53:37 +0000 (01:53 +0000)]
4478 dtrace_dof_maxsize is far too small

illumos/illumos-gate@d339a29bb4765c4b6883a935cf69b669cd05bca0

10 years agoCorrect initial import script
Warner Losh [Fri, 28 Feb 2014 01:33:03 +0000 (01:33 +0000)]
Correct initial import script

10 years agoInitial import of DTS files from Linux
Warner Losh [Fri, 28 Feb 2014 01:32:44 +0000 (01:32 +0000)]
Initial import of DTS files from Linux

10 years agoInitial import of Linux/Vendor DTS files for various embedded boards.
Warner Losh [Fri, 28 Feb 2014 01:31:35 +0000 (01:31 +0000)]
Initial import of Linux/Vendor DTS files for various embedded boards.

10 years agoAdd an armv7 implementation of cpu_sleep(). The arm11/armv6 implementation
Ian Lepore [Fri, 28 Feb 2014 00:41:55 +0000 (00:41 +0000)]
Add an armv7 implementation of cpu_sleep().  The arm11/armv6 implementation
we've been using was actually just spinning due to ARM having redefined
the old 'wait for interrupt' operation via the system coprocessor as a nop
and replacing it with a WFI instruction.

10 years agoAdd some rudimentary voltage control to go with the rudimentary frequency
Ian Lepore [Fri, 28 Feb 2014 00:26:57 +0000 (00:26 +0000)]
Add some rudimentary voltage control to go with the rudimentary frequency
control.  If we have to scale back the frequency due to temperature, it
will help to lower the voltage as well.

10 years agoSupply a DELAY() implementation via weak linkage, so that SoC-specific
Ian Lepore [Fri, 28 Feb 2014 00:23:04 +0000 (00:23 +0000)]
Supply a DELAY() implementation via weak linkage, so that SoC-specific
code can supply a better implementation.  A SoC with variable CPU frequency
is likely to use a fixed-frequency timer for DELAY() (but still use the
mpcore private timers as eventtimers).

Also remove spaces from the eventtimer and timecounter names.

10 years agoAll our current ARM multi-core systems have all cores in one package with
Ian Lepore [Fri, 28 Feb 2014 00:17:03 +0000 (00:17 +0000)]
All our current ARM multi-core systems have all cores in one package with
a shared L2 cache, reflect that in the common cpu_topo() routine.

10 years agoPull in r202422 from upstream llvm trunk (by Roman Divacky):
Dimitry Andric [Thu, 27 Feb 2014 23:17:00 +0000 (23:17 +0000)]
Pull in r202422 from upstream llvm trunk (by Roman Divacky):

  Lower FNEG just like FABS to fneg[ds] and fmov[ds], thus avoiding
  expensive libcall. Also, Qp_neg is not implemented on at least
  FreeBSD. This is also what gcc is doing.

10 years agoInitialize the Low Power Mode bits to keep the ARM cores running during WFI.
Ian Lepore [Thu, 27 Feb 2014 22:55:33 +0000 (22:55 +0000)]
Initialize the Low Power Mode bits to keep the ARM cores running during WFI.

10 years agoMFV r262570:
Xin LI [Thu, 27 Feb 2014 21:50:46 +0000 (21:50 +0000)]
MFV r262570:

4626 libzfs memleak in zpool_in_use()

illumos/illumos-gate@fb13f48f1d9593453b94cd1c7277553b56f493c8

MFC after: 2 weeks

10 years agoRestore SIM freeze/release match, broken at r253549.
Alexander Motin [Thu, 27 Feb 2014 21:48:34 +0000 (21:48 +0000)]
Restore SIM freeze/release match, broken at r253549.

This fixes problem with SIM left in frozen state after reinit, for example,
after firmware update.

MFC after: 1 week

10 years agoAdd tws(4) to the hardware notes.
Christian Brueffer [Thu, 27 Feb 2014 21:47:20 +0000 (21:47 +0000)]
Add tws(4) to the hardware notes.

MFC after: 3 days

10 years agoGet rid of the 'chan' from softc structure and use the latter
Xin LI [Thu, 27 Feb 2014 21:41:52 +0000 (21:41 +0000)]
Get rid of the 'chan' from softc structure and use the latter
directly as sleep channel.

PR: kern/174684
Submitted by: jmg
MFC after: 2 weeks

10 years agoAdd missing includes and remove two unused ones.
Christian Brueffer [Thu, 27 Feb 2014 21:01:10 +0000 (21:01 +0000)]
Add missing includes and remove two unused ones.

Reviewed by: loos
MFC after: 1 week

10 years ago4626 libzfs memleak in zpool_in_use()
Xin LI [Thu, 27 Feb 2014 20:00:26 +0000 (20:00 +0000)]
4626 libzfs memleak in zpool_in_use()

illumos/illumos-gate@fb13f48f1d9593453b94cd1c7277553b56f493c8

10 years agoBring in Ian Campbell's pruned dts repo.
Warner Losh [Thu, 27 Feb 2014 19:39:44 +0000 (19:39 +0000)]
Bring in Ian Campbell's pruned dts repo.
From git://xenbits.xen.org/people/ianc/device-tree-rebasing.git
commit efa963ec806366c9628dfd1269316bb93b7ecb15
Merge: a72ba09 459c249
Author: Ian Campbell <ian.campbell@citrix.com>
Date:   Wed Feb 26 08:39:16 2014 +0000

    Merge tag 'v3.14-rc4-dts'

    Linux 3.14-rc4

10 years agoDo not setup interrupt handler (polling is used).
Ruslan Bukin [Thu, 27 Feb 2014 18:13:07 +0000 (18:13 +0000)]
Do not setup interrupt handler (polling is used).

10 years agosh: Do not corrupt internal representation if LINENO inner expansion fails.
Jilles Tjoelker [Thu, 27 Feb 2014 16:54:43 +0000 (16:54 +0000)]
sh: Do not corrupt internal representation if LINENO inner expansion fails.

Example:
  f() { : ${LINENO+$((1/0))}; }
and call this function twice.

10 years agoAdd geom_uncompress to the list of available geom modules on loader.conf.
Luiz Otavio O Souza [Thu, 27 Feb 2014 13:31:54 +0000 (13:31 +0000)]
Add geom_uncompress to the list of available geom modules on loader.conf.

Approved by: adrian (mentor)

10 years agoFix a leftover of r260523. Remove the unnecessary dependency to zlib.h.
Luiz Otavio O Souza [Thu, 27 Feb 2014 13:29:26 +0000 (13:29 +0000)]
Fix a leftover of r260523.  Remove the unnecessary dependency to zlib.h.

Approved by: adrian (mentor)

10 years agoInspired by r262522, fix make depend. This fixes the build of gpio modules.
Luiz Otavio O Souza [Thu, 27 Feb 2014 13:26:41 +0000 (13:26 +0000)]
Inspired by r262522, fix make depend.  This fixes the build of gpio modules.

Approved by: adrian (mentor)

10 years agoWe install the tool, so why not the man page?
Dag-Erling Smørgrav [Thu, 27 Feb 2014 13:05:56 +0000 (13:05 +0000)]
We install the tool, so why not the man page?

MFC after: 3 days

10 years agoClear the knote list before destroying it.
Hans Petter Selasky [Thu, 27 Feb 2014 12:11:43 +0000 (12:11 +0000)]
Clear the knote list before destroying it.
Add seldrain() to wakeup any pollers.

Submitted by: Kohji Okuno <okuno.kohji@jp.panasonic.com>
MFC after: 2 weeks

10 years agoPass proper pointer to bus_dmamem_free() in mps_iocfacts_free().
Alexander Motin [Thu, 27 Feb 2014 11:34:26 +0000 (11:34 +0000)]
Pass proper pointer to bus_dmamem_free() in mps_iocfacts_free().

Passing there pointer into the middle of allocated area caused kernel
panic during reinit, for example, after firmware upgrade.

MFC after: 1 week

10 years agoAdd driver for Inter-Integrated Circuit (I2C).
Ruslan Bukin [Thu, 27 Feb 2014 09:59:15 +0000 (09:59 +0000)]
Add driver for Inter-Integrated Circuit (I2C).

10 years agoAdd missing call to "knlist_destroy()".
Hans Petter Selasky [Thu, 27 Feb 2014 09:15:58 +0000 (09:15 +0000)]
Add missing call to "knlist_destroy()".

Found by: John-Mark Gurney <jmg@funkthat.com>
MFC after: 2 weeks

10 years agoAdd support for kqfilter to USB character devices.
Hans Petter Selasky [Thu, 27 Feb 2014 08:57:37 +0000 (08:57 +0000)]
Add support for kqfilter to USB character devices.

Submitted by: Kohji Okuno <okuno.kohji@jp.panasonic.com>
MFC after: 2 weeks

10 years agoDon't complain about missing prototypes to ease bootstrap issues.
Warner Losh [Thu, 27 Feb 2014 08:21:28 +0000 (08:21 +0000)]
Don't complain about missing prototypes to ease bootstrap issues.

10 years agoStyle(9) nit: Use tab here.
Warner Losh [Thu, 27 Feb 2014 08:19:19 +0000 (08:19 +0000)]
Style(9) nit: Use tab here.

10 years agoFix callchain capture for hwpmc(4). While here, some style(9) fixes, too.
Justin Hibbits [Thu, 27 Feb 2014 04:45:29 +0000 (04:45 +0000)]
Fix callchain capture for hwpmc(4).  While here, some style(9) fixes, too.

MFC after: 2 weeks

10 years agosyncer(4) is a kernel process, not a user process
Benjamin Kaduk [Thu, 27 Feb 2014 04:06:34 +0000 (04:06 +0000)]
syncer(4) is a kernel process, not a user process

Noticed by: Geoffrey Thomas <gthomas@mokafive.com>
Approved by: hrs (mentor)

10 years agoFix the struct reg mappings for i386 and amd64, which differ between illumos
Mark Johnston [Thu, 27 Feb 2014 01:24:47 +0000 (01:24 +0000)]
Fix the struct reg mappings for i386 and amd64, which differ between illumos
and FreeBSD.

Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in>
MFC after: 2 weeks

10 years agoMove some files that are identical on i386 and amd64 to an x86 subdirectory
Mark Johnston [Thu, 27 Feb 2014 01:04:35 +0000 (01:04 +0000)]
Move some files that are identical on i386 and amd64 to an x86 subdirectory
rather than keeping duplicate copies.

Discussed with: avg
MFC after: 1 week

10 years agoI had some unrelated (wrong) changes to makewhatis. Undo them.
Eitan Adler [Thu, 27 Feb 2014 00:52:34 +0000 (00:52 +0000)]
I had some unrelated (wrong) changes to makewhatis.  Undo them.

10 years agolinprocfs: add support for /sys/kernel/random/uuid
Eitan Adler [Thu, 27 Feb 2014 00:43:10 +0000 (00:43 +0000)]
linprocfs: add support for /sys/kernel/random/uuid

PR: kern/186187
Submitted by: Fernando <fernando.apesteguia@gmail.com>
MFC After: 2 weeks

10 years agoMerge from head up to r262536.
Dimitry Andric [Wed, 26 Feb 2014 22:26:40 +0000 (22:26 +0000)]
Merge from head up to r262536.

10 years agoPull in r202179 from upstream clang trunk:
Dimitry Andric [Wed, 26 Feb 2014 22:21:01 +0000 (22:21 +0000)]
Pull in r202179 from upstream clang trunk:

  Pass the sparc architecture variant to the assembler.

10 years agoPull in r202177 from upstream clang trunk (by Roman Divacky):
Dimitry Andric [Wed, 26 Feb 2014 22:18:33 +0000 (22:18 +0000)]
Pull in r202177 from upstream clang trunk (by Roman Divacky):

  Give sparcv9 the ability to set the target cpu. Change it from
  accepting -march which doesnt exist on sparc gcc to -mcpu. While here
  adjust a few tests to not write an unused temporary file.

10 years agoReplace many pasted identical definitions of cpu_initclocks() with a common
Ian Lepore [Wed, 26 Feb 2014 22:06:10 +0000 (22:06 +0000)]
Replace many pasted identical definitions of cpu_initclocks() with a common
implementation in arm/machdep.c.  Most arm platforms either don't need to
do anything, or just need to call the standard eventtimer init routines.
A generic implementation that does that is now provided via weak linkage.
Any platform that needs to do something different can provide a its own
implementation to override the generic one.

10 years agosh: Make expari() static.
Jilles Tjoelker [Wed, 26 Feb 2014 21:38:42 +0000 (21:38 +0000)]
sh: Make expari() static.

10 years agoDocument the "-a" and "-x" options to match the changes in r262236.
Neel Natu [Wed, 26 Feb 2014 19:14:54 +0000 (19:14 +0000)]
Document the "-a" and "-x" options to match the changes in r262236.

Reviewed by: grehan

10 years agoMinor tweaks to the imx GPT timer...
Ian Lepore [Wed, 26 Feb 2014 18:29:14 +0000 (18:29 +0000)]
Minor tweaks to the imx GPT timer...
 - Don't use spaces or dots in the eventtimer or timecounter names.
   They turn into sysctl node names, and it's just confusing.
 - Use comparator #3 instead of #1 for one-shot events.  There's an
   extra 1-cycle penalty in the hardware for accessing the registers
   for comparator 1, no point in paying that penalty.
 - Lower the quality of the eventtimer from 1000 to 800, because the
   device can't support PERCPU timers and some other device in the system
   may be able to provide that.

10 years agoMFV (r262529): fix is_upper() predicate
Dag-Erling Smørgrav [Wed, 26 Feb 2014 17:14:02 +0000 (17:14 +0000)]
MFV (r262529): fix is_upper() predicate

MFC after: 1 week

10 years agoMerge upstream r763: fix is_upper() predicate.
Dag-Erling Smørgrav [Wed, 26 Feb 2014 17:06:54 +0000 (17:06 +0000)]
Merge upstream r763: fix is_upper() predicate.

10 years agoUpdate LLDB snapshot to upstream r202189
Ed Maste [Wed, 26 Feb 2014 16:09:54 +0000 (16:09 +0000)]
Update LLDB snapshot to upstream r202189

Highlights include (upstream revs in parens):

- Improvements to the remote GDB protocol client
  (r196610, r197579, r197857, r200072, and others)

- Bug fixes for big-endian targets
  (r196808)

- Initial support for libdispatch (GCD) queues in the debuggee
  (r197190)

- Add "step-avoid-libraries" setting
  (r199943)

- IO subsystem improvements (including initial work on a curses gui)
  (r200263)

- Support hardware watchpoints on FreeBSD
  (r201706)

- Improved unwinding through hand-written assembly functions
  (r201839)

- Handle DW_TAG_unspecified_parameters for variadic functions
  (r202061)

- Fix Ctrl+C interrupting a running inferior process
  (r202086, r202154)

- Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler,
  ELF core files, DWARF debug info, and others.

Sponsored by: DARPA, AFRL

10 years agoAdded a regression test for r234131.
Peter Holm [Wed, 26 Feb 2014 09:08:25 +0000 (09:08 +0000)]
Added a regression test for r234131.

Discussed with:  asomers
Sponsored by: EMC / Isilon storage division

10 years agoThere is no need to prevent iscsictl from adding iSER session when there
Edward Tomasz Napierala [Wed, 26 Feb 2014 09:06:57 +0000 (09:06 +0000)]
There is no need to prevent iscsictl from adding iSER session when there
is no iSER support in ctld and/or kernel; should the user make that mistake,
the output from "iscsictl -L" is enough to determine what the problem is.

Sponsored by: The FreeBSD Foundation

10 years agoChange the MK_ZFS != "no" case slightly to avoid a name
Peter Grehan [Wed, 26 Feb 2014 04:49:09 +0000 (04:49 +0000)]
Change the MK_ZFS != "no" case slightly to avoid a name
clash with LIBZFS in bsd.lib.mk

Submitted by: Max N Boyarov   zotrix at bsd dot by
OK'd by: sbruno

10 years agoFix make depend.
Li-Wen Hsu [Wed, 26 Feb 2014 03:26:00 +0000 (03:26 +0000)]
Fix make depend.

Approved by: uqs

10 years agoUpdate jemalloc to version 3.5.1.
Jason Evans [Wed, 26 Feb 2014 02:36:59 +0000 (02:36 +0000)]
Update jemalloc to version 3.5.1.

10 years agoAdd LED setup support for the AR8327.
Adrian Chadd [Wed, 26 Feb 2014 02:00:37 +0000 (02:00 +0000)]
Add LED setup support for the AR8327.

Tested:

* DB120

Obtained from: OpenWRT