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

10 years agoAdd in the SGMII configuration code. The DB120 doesn't use it, so I
Adrian Chadd [Wed, 26 Feb 2014 01:46:42 +0000 (01:46 +0000)]
Add in the SGMII configuration code.  The DB120 doesn't use it, so I
have no way to evaluate it.

Obtained from: OpenWRT

10 years agoAdd the DB120 specific hints for the AR8327.
Adrian Chadd [Wed, 26 Feb 2014 01:32:27 +0000 (01:32 +0000)]
Add the DB120 specific hints for the AR8327.

Tested:

* DB120

10 years agoUndo the DB120 hard-coded values in the AR8327 code and fetch it from
Adrian Chadd [Wed, 26 Feb 2014 01:32:06 +0000 (01:32 +0000)]
Undo the DB120 hard-coded values in the AR8327 code and fetch it from
the hints environment.

Tested:

* DB120

10 years agoUpdate release/release.conf.sample to reflect changes in r262509.
Glen Barber [Wed, 26 Feb 2014 01:19:52 +0000 (01:19 +0000)]
Update release/release.conf.sample to reflect changes in r262509.

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

10 years agoRework how WORLD_FLAGS and KERNEL_FLAGS are set, to remove an
Glen Barber [Wed, 26 Feb 2014 01:06:41 +0000 (01:06 +0000)]
Rework how WORLD_FLAGS and KERNEL_FLAGS are set, to remove an
unnecessary expr(1) call.

Inspired by: hrs (a few months ago)
MFC after: 1 week
X-MFC-With: r262499, r262505
Sponsored by: The FreeBSD Foundation

10 years agoRevert r262466, as it does not compile on PowerPC.
Mark Johnston [Wed, 26 Feb 2014 01:00:00 +0000 (01:00 +0000)]
Revert r262466, as it does not compile on PowerPC.

Reported by: jhibbits

10 years agoChase r262505, and remove CVS exclusion from picobsd builds.
Glen Barber [Wed, 26 Feb 2014 00:54:59 +0000 (00:54 +0000)]
Chase r262505, and remove CVS exclusion from picobsd builds.

Sponsored by: The FreeBSD Foundation

10 years agoQueue pending exceptions in the 'struct vcpu' instead of directly updating the
Neel Natu [Wed, 26 Feb 2014 00:52:05 +0000 (00:52 +0000)]
Queue pending exceptions in the 'struct vcpu' instead of directly updating the
processor-specific VMCS or VMCB. The pending exception will be delivered right
before entering the guest.

The order of event injection into the guest is:
- hardware exception
- NMI
- maskable interrupt

In the Intel VT-x case, a pending NMI or interrupt will enable the interrupt
window-exiting and inject it as soon as possible after the hardware exception
is injected. Also since interrupts are inherently asynchronous, injecting
them after the hardware exception should not affect correctness from the
guest perspective.

Rename the unused ioctl VM_INJECT_EVENT to VM_INJECT_EXCEPTION and restrict
it to only deliver x86 hardware exceptions. This new ioctl is now used to
inject a protection fault when the guest accesses an unimplemented MSR.

Discussed with: grehan, jhb
Reviewed by: jhb

10 years agoIn release/Makefile, remove exclusion of CVS directories in the
Glen Barber [Wed, 26 Feb 2014 00:52:01 +0000 (00:52 +0000)]
In release/Makefile, remove exclusion of CVS directories in the
src/ and ports/ distributions.

While I am thinking about it, exclude .git directories for src/
and ports/, as somewhat of a followup to r262499.

Sponsored by: The FreeBSD Foundation

10 years agoFix comment introduced in r262480: it's 1920x1200, not 1980x1200.
Julio Merino [Tue, 25 Feb 2014 23:04:39 +0000 (23:04 +0000)]
Fix comment introduced in r262480: it's 1920x1200, not 1980x1200.

PR: kern/180558
MFC after: 5 days

10 years agoRefresh our implementation of OpenBSD's Blowfish password format.
Xin LI [Tue, 25 Feb 2014 23:03:48 +0000 (23:03 +0000)]
Refresh our implementation of OpenBSD's Blowfish password format.

Notable changes:

 - Support of $2b$ password format to address a problem where very
   long passwords (more than 256 characters, when an integer
   overflow would happen and cause the length to wrap at 256).
 - Updated pseudo code in comments to reflect the reality.
 - Removed our local shortcut of processing magic string and rely
   on the centralized and tigntened validation.
 - Diff reduction from upstream.

For now we are still generating the older $02a$ format of password
but we will migrate to the new format once the format is formally
finalized.

MFC after: 1 month

10 years agoUpdate LLDB snapshot to upstream r202189
Ed Maste [Tue, 25 Feb 2014 22:13:51 +0000 (22:13 +0000)]
Update LLDB snapshot to upstream r202189

Highlights include:

- 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, including to the remote GDB protocol client

Sponsored by: DARPA, AFRL

10 years agorelease.sh:
Glen Barber [Tue, 25 Feb 2014 22:13:48 +0000 (22:13 +0000)]
release.sh:
- Add a VCSCMD variable that defaults to 'svn checkout',
  and update places 'svn co' is used directly.
- After sourcing a configuration file, prefix SRCBRANCH,
  PORTBRANCH, and DOCBRANCH with the SVNROOT.
- Properly capitalize 'FreeBSD.org' in the default SVNROOT.
- Update Copyright.

release.conf.sample:
- Add an example to use git instead of svn, by nullifying
  SVNROOT, and setting SRCBRANCH, DOCBRANCH, and PORTBRANCH
  to the URL fo a git repository.

release.7:
- Document VCSCMD.

Submitted by: Rick Miller (based on)
Sponsored by: The FreeBSD Foundation

10 years agoImport LLDB as of SVN r202189 (git 32871eb)
Ed Maste [Tue, 25 Feb 2014 21:42:16 +0000 (21:42 +0000)]
Import LLDB as of SVN r202189 (git 32871eb)

(A number of files not required for the FreeBSD build have been removed.)

Sponsored by: DARPA, AFRL

10 years agoSlightly better revision of teaching userboot how to respect MK_CDDL
Sean Bruno [Tue, 25 Feb 2014 21:07:18 +0000 (21:07 +0000)]
Slightly better revision of teaching userboot how to respect MK_CDDL

Reviewed by: grehan

10 years agoRough cleanup (new sentence -> new line, grammar, spelling, mdoc).
Christian Brueffer [Tue, 25 Feb 2014 21:01:55 +0000 (21:01 +0000)]
Rough cleanup (new sentence -> new line, grammar, spelling, mdoc).
This could use more work.

PR: 187035 (in part)
Submitted by: Bjorn Heidotting
MFC after: 1 week

10 years agoRemove more constants related to static sysctl nodes. The MAXID constants
John Baldwin [Tue, 25 Feb 2014 18:44:33 +0000 (18:44 +0000)]
Remove more constants related to static sysctl nodes.  The MAXID constants
were primarily used to size the sysctl name list macros that were removed
in r254295.  A few other constants either did not have an associated
sysctl node, or the associated node used OID_AUTO instead.

PR: ports/184525 (exp-run)

10 years agoArguments for malloc and calloc should be size_t, not int.
Kirk McKusick [Tue, 25 Feb 2014 18:25:27 +0000 (18:25 +0000)]
Arguments for malloc and calloc should be size_t, not int.
Use proper bounds check when trying to free cached memory.

Spotted by: Xin Li
Tested by:  Dmitry Sivachenko
MFC after:  2 weeks

10 years agoTeach userboot to comply with WITHOUT_CDDL/WITHOUT_ZFS
Sean Bruno [Tue, 25 Feb 2014 18:00:55 +0000 (18:00 +0000)]
Teach userboot to comply with WITHOUT_CDDL/WITHOUT_ZFS

Apparently, LIBZFS is set to a non-empty string when WITHOUT_CDDL/WITHOUT_ZFS
are set, I think this is a bug, but work around this feature for now.

Reviewed by: grehan

10 years agoIn puthdr(), start the ELF .data section on a new page, as this is
Christian Brueffer [Tue, 25 Feb 2014 17:13:42 +0000 (17:13 +0000)]
In puthdr(), start the ELF .data section on a new page, as this is
what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S).

This makes resulting ELF binaries bootable with grub, gptboot and boot2.

PR: 153801
Submitted by: Gleb Kurtsou <gleb.kurtsou at gmail.com>
Tested by: Ruben Kerkhof <ruben at rubenkerkhof.com>
Glanced at by: jhb, peter
MFC after: 1 month

10 years ago- Pin configuration is a complete iomux register now and includes
Ruslan Bukin [Tue, 25 Feb 2014 17:02:11 +0000 (17:02 +0000)]
- Pin configuration is a complete iomux register now and includes
  drive strength, pull mode, mux mode, speed, etc.
- Add i2c devices to the tree
- Add IPG clock

10 years agoInvalidate the SCU cache tag ram on all 4 cores, not just 1-3. I misread
Ian Lepore [Tue, 25 Feb 2014 15:22:40 +0000 (15:22 +0000)]
Invalidate the SCU cache tag ram on all 4 cores, not just 1-3.  I misread
Juergen's original code, it was doing all 4 cores.  Also remove the L2
cache invalidate operation, this code runs before L2 is activated.

10 years agoIncrease maximum number of columns to support 1980x1200 displays.
Julio Merino [Tue, 25 Feb 2014 13:48:05 +0000 (13:48 +0000)]
Increase maximum number of columns to support 1980x1200 displays.

In my specific case, this fixes the problem of my PowerMac G5 displaying a
4:3 console on a 16:10 display with black bars on the left and right.

PR: kern/180558
Reviewed by: nwhitehorn
MFC after: 5 days

10 years agoDon't generate devd rules for WSP device ID's found in the ATP driver yet.
Hans Petter Selasky [Tue, 25 Feb 2014 09:34:30 +0000 (09:34 +0000)]
Don't generate devd rules for WSP device ID's found in the ATP driver yet.

MFC after: 2 weeks

10 years agoUpdates for WSP driver:
Hans Petter Selasky [Tue, 25 Feb 2014 08:37:06 +0000 (08:37 +0000)]
Updates for WSP driver:

1) Add support for page back/forward.
2) While doing HOR scrolling, disable VER scrolling.
3) Checking dx_sum and dy_sum before emulate right button, this can
avoids unexpected right button press.
4) Fix stable pointer operation when emulating middle button.

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

10 years agoMake sure a for loop in fire_alloc_msix() terminates, by making the loop
Dimitry Andric [Tue, 25 Feb 2014 07:33:28 +0000 (07:33 +0000)]
Make sure a for loop in fire_alloc_msix() terminates, by making the loop
counter signed.

Reviewed by: marius
MFC after: 3 days

10 years agoIn sys/sparc64/sparc64/spitfire.c, prevent signed shift overflow by
Dimitry Andric [Tue, 25 Feb 2014 07:28:51 +0000 (07:28 +0000)]
In sys/sparc64/sparc64/spitfire.c, prevent signed shift overflow by
casting to the appropriate type.  (Note this fix cannot be done in
sys/sparc64/sparc64/spitfire.c, since that file is also included by
assembly source files.)

Reviewed by: marius
MFC after: 3 days

10 years agosh: Add -h option to SYNOPSIS
Daichi GOTO [Tue, 25 Feb 2014 03:05:43 +0000 (03:05 +0000)]
sh: Add -h option to SYNOPSIS

Reviewed by: jilles
MFC after: soon

10 years agoMake all 8 syscall arguments available to syscall probes in the same way
Mark Johnston [Tue, 25 Feb 2014 02:58:11 +0000 (02:58 +0000)]
Make all 8 syscall arguments available to syscall probes in the same way
that this is done for SDT probes. This fixes the syscall/tst.args.d test,
which was failing because mmap(2)'s sixth argument wasn't available to the
probe.

MFC after: 2 weeks

10 years agoAdd a flag to run's device list which uses a standard scsi eject.
Kevin Lo [Tue, 25 Feb 2014 01:42:02 +0000 (01:42 +0000)]
Add a flag to run's device list which uses a standard scsi eject.
The flag indicates that the mcu doesn't need to load firmware.

Tested by: Alex Deiter <alex dot deiter at gmail.com>, myself
Tested on: ASUS USB-N66

10 years agoWrap for loop in #if block testing the size is actually greater
Xin LI [Tue, 25 Feb 2014 01:11:05 +0000 (01:11 +0000)]
Wrap for loop in #if block testing the size is actually greater
than 0.  This silences gcc warning.

Reviewed by: sha256(1) with clang
X-MFC-With: r262447

10 years agoRevert 262462 and 262461, they didn't solve the problem, in
Xin LI [Tue, 25 Feb 2014 00:57:06 +0000 (00:57 +0000)]
Revert 262462 and 262461, they didn't solve the problem, in
fact I should actually waited the build to be finished before
committing.

A proper fix would be committed once my test build passes.

Pointy hat to: delphij

10 years agoPatch 2/2:
Xin LI [Mon, 24 Feb 2014 23:58:07 +0000 (23:58 +0000)]
Patch 2/2:

Reindent the code after previous change.

X-MFC-With: r262447

10 years agoPatch 1/2:
Xin LI [Mon, 24 Feb 2014 23:56:09 +0000 (23:56 +0000)]
Patch 1/2:

Pet gcc: enclose the for loop that currently do nothing with an if.

Reviewed by: sha256(1)
X-MFC-With: r262447

10 years agoAdd support for Quartz Module.
Ruslan Bukin [Mon, 24 Feb 2014 19:32:15 +0000 (19:32 +0000)]
Add support for Quartz Module.

Quartz is a tiny module utilized Freescale VF6xx
system-on-chip and development kit produced by
Device Solutions.

Quartz is available in a form of LGA (38x38x2mm)
or as a module with high-density connectors.

Sponsored by: Device Solutions

10 years agoUpdate ATP manual page.
Hans Petter Selasky [Mon, 24 Feb 2014 19:27:26 +0000 (19:27 +0000)]
Update ATP manual page.

Submitted by: Rohit Grover <rgrover1@gmail.com>
MFC after: 2 weeks

10 years agoFix compiler warning.
Hans Petter Selasky [Mon, 24 Feb 2014 19:19:35 +0000 (19:19 +0000)]
Fix compiler warning.

Reported by: David Wolfskill <david@catwhisker.org>
MFC after: 2 weeks

10 years agoBuild FICL support into little-endian 64-bit MIPS boot-loader fragments;
Robert Watson [Mon, 24 Feb 2014 18:44:22 +0000 (18:44 +0000)]
Build FICL support into little-endian 64-bit MIPS boot-loader fragments;
while this won't actually be used for anything (yet), it doesn't hurt to
ensure it is exposed to the tinderbox.

Requested by:   imp, jmallett
MFC after:      3 weeks

10 years agoBuild 64-bit ELF support into little-endian 64-bit MIPS boot-loader
Robert Watson [Mon, 24 Feb 2014 18:44:03 +0000 (18:44 +0000)]
Build 64-bit ELF support into little-endian 64-bit MIPS boot-loader
fragments; while this won't actually be used for anything (yet), it
doesn't hurt to ensure it is exposed to the tinderbox.

Requested by: imp, jmallett
MFC after: 3 weeks

10 years agohier(7): Add /usr/lib/private
Eitan Adler [Mon, 24 Feb 2014 17:14:08 +0000 (17:14 +0000)]
hier(7): Add /usr/lib/private

Requested by: theraven
MFC After: 3 days

10 years agoFix an array index out of bounds bug in iconv VIQR (Vietnamese) module.
Tijl Coosemans [Mon, 24 Feb 2014 14:40:28 +0000 (14:40 +0000)]
Fix an array index out of bounds bug in iconv VIQR (Vietnamese) module.

PR: 185964
Submitted by: Manuel Mausz <manuel-freebsd@mausz.at>
MFC after: 5 days

10 years agoFix Simplified Chinese character set conversions by switching around the
Tijl Coosemans [Mon, 24 Feb 2014 13:43:11 +0000 (13:43 +0000)]
Fix Simplified Chinese character set conversions by switching around the
fields of an internal struct so it corresponds with the way variables of
this type are initialised.

PR: 185964
Submitted by: Manuel Mausz <manuel-freebsd@mausz.at>
MFC after: 5 days

10 years agoConsistently pass around context information using a simple pointer. This
Tijl Coosemans [Mon, 24 Feb 2014 13:33:20 +0000 (13:33 +0000)]
Consistently pass around context information using a simple pointer.  This
fixes some dereferencing bugs in Chinese character set conversions.

PR: 185964
MFC after: 5 days

10 years agoEnable the second and the third I2C controllers on Beaglebone-black.
Luiz Otavio O Souza [Mon, 24 Feb 2014 12:45:03 +0000 (12:45 +0000)]
Enable the second and the third I2C controllers on Beaglebone-black.

The first I2C controller is only used to manage the on-board devices (PMIC
and HDMI framer) and its bus is not exposed on the expasion headers.

With this change the following pins on the P9 expansion headers are now
reserved as I2C pins:

 Pin 17 - I2C1 SCL
 Pin 18 - I2C1 SDA
 Pin 19 - I2C2 SCL
 Pin 20 - I2C2 SDA

The I2C2 is the bus that should be used to read the contents of cape
eeproms.

Approved by: adrian (mentor, implicit)

10 years agoUpdate ATP driver:
Hans Petter Selasky [Mon, 24 Feb 2014 10:44:42 +0000 (10:44 +0000)]
Update ATP driver:
- Add support for emulating a mouse wheel, Z-axis.

Submitted by: Rohit Grover <rgrover1@gmail.com>
MFC after: 2 weeks

10 years agoAdd in port0/port6 configuration as part of the platform data code path.
Adrian Chadd [Mon, 24 Feb 2014 05:55:00 +0000 (05:55 +0000)]
Add in port0/port6 configuration as part of the platform data code path.

It's still hardcoded (for db120) but it is now hardcoded in all the
same place (ie, the pdata path.)  The port config/status code now checks
port0/port6 as appropriate to configure things.

Tested:

* Qualcomm Atheros DB120, AR8327 switch.

10 years agoAdd the AR8327 bits to the DB120 config file.
Adrian Chadd [Mon, 24 Feb 2014 04:48:46 +0000 (04:48 +0000)]
Add the AR8327 bits to the DB120 config file.

There's plenty of hints that I haven't yet fleshed out and are hardcoded
in arswitch_8327.c.  They're listed here (from OpenWRT) for completeness.

This is enough to get the thing up, running and pinging.

Note that the mdiobus for the on-switch switch changes - the AR8327
probes first, which exposes mdio1, and thus the arge1 mdiobus will probe
and attach as mdio2.  That is what the AR9344 on-chip switch has to
attach to.

Tested:

* Qualcomm Atheros DB120

10 years agoLink the AR8327 to the build.
Adrian Chadd [Mon, 24 Feb 2014 04:47:27 +0000 (04:47 +0000)]
Link the AR8327 to the build.

10 years agoAdd initial AR8327 support.
Adrian Chadd [Mon, 24 Feb 2014 04:47:16 +0000 (04:47 +0000)]
Add initial AR8327 support.

This is (almost!) enough to actually probe, attach, configure a default
port group and do some basic work.  It's also totally hard-coded for
the Qualcomm Atheros DB120 board - it doesn't yet have any of the code
from OpenWRT which parses extra configuration data to know how to program
the switch.  The LED stuff is also missing.

But, it's enough to facilitate board, PHY, switch and VLAN bringup,
so I am committing it now.

Tested:

* Qualcomm Atheros DB120

Obtained from: OpenWRT

10 years agoMethodize the arswitch VLAN routines.
Adrian Chadd [Mon, 24 Feb 2014 04:44:28 +0000 (04:44 +0000)]
Methodize the arswitch VLAN routines.

These differ per chipset family in subtle and evil ways.

It becomes very noticable on the AR8327 where the layout is just plain
wrong.

10 years ago* Ensure enough ports/phys are available for both the AR8327 and previous
Adrian Chadd [Mon, 24 Feb 2014 04:43:23 +0000 (04:43 +0000)]
* Ensure enough ports/phys are available for both the AR8327 and previous
  switches.

* Add some new VLAN HAL methods that will be used by the VLAN configuration
  code.  The AR933x and later switches use slightly different register
  layouts (even though the driver currently doesn't support it.)

10 years agoAdd the bits needed to run SMP on imx6.
Ian Lepore [Mon, 24 Feb 2014 03:51:31 +0000 (03:51 +0000)]
Add the bits needed to run SMP on imx6.

The 'option SMP' isn't added to the kernel config yet; people wanting to
test this have to opt-in for now.

10 years agoInvalidate caches immediately upon entry to init_secondary(). Also set
Ian Lepore [Mon, 24 Feb 2014 03:47:39 +0000 (03:47 +0000)]
Invalidate caches immediately upon entry to init_secondary().  Also set
the Bufferable bit in the PDE entries of the secondary processor startup
pagetables.

The caches really need to be invalidated even earlier than this, but this
is a big step in the right direction.  The invalidate needs to happen
before the MMU is enabled, which means it has to be called from asm code
that's running with physical addressing.  Fixing that will be handled in
a future change.

10 years agoAdd correct attributions.
Adrian Chadd [Mon, 24 Feb 2014 02:47:47 +0000 (02:47 +0000)]
Add correct attributions.

Sponsored by: Netflix, Inc.

10 years agoAdd a new option - 'a <file>' - which spits out annotated callgraphs.
Adrian Chadd [Mon, 24 Feb 2014 02:43:58 +0000 (02:43 +0000)]
Add a new option - 'a <file>' - which spits out annotated callgraphs.

'-m <file>' spits out the given stream into <file> (eg, /dev/stdout).
However, it only resolves the first symbol; it doesn't parse the entire
callgraph.  If it fails to lookup then it doesn't print anything.

'-a' instead does a symbol and file:line lookup for each address in each
callgraph and will happily print the address itself with no lookup
information if it couldn't look things up.

This makes it much easier to pull out individual records from a
pmc data file and look at the callgraph information without having to
hand-decode the addresses.

Sponsored by: Netflix, Inc.

10 years agoAdd a very basic and totally hacked up iwnstats program.
Adrian Chadd [Mon, 24 Feb 2014 02:38:43 +0000 (02:38 +0000)]
Add a very basic and totally hacked up iwnstats program.

This just extracts the current statistics out from the NIC via
the new ioctl API and displays them.  It runs every 100ms to hopefully
grab the latest statistics.

I may eventually teach this to use libstatfoo like what has been done
for athstats and such; but this is good enough for now for people to
do some basic investigation.

Tested:

* Intel Centrino 6205

10 years agoTrack and expose the latest statistics from the firmware.
Adrian Chadd [Mon, 24 Feb 2014 02:37:04 +0000 (02:37 +0000)]
Track and expose the latest statistics from the firmware.

Tested:

* Intel Centrino 6205

10 years agoReserve a bit for statistics debugging. I'll hopefully use it soon.
Adrian Chadd [Mon, 24 Feb 2014 02:13:20 +0000 (02:13 +0000)]
Reserve a bit for statistics debugging.  I'll hopefully use it soon.

10 years agoAdd a new cache maintenance function, idcache_inv_all, to the table, and
Ian Lepore [Mon, 24 Feb 2014 01:41:58 +0000 (01:41 +0000)]
Add a new cache maintenance function, idcache_inv_all, to the table, and
implementations for each of the chips we support.  Most chips up through
armv6 can use the armv4 implementation which has a single coprocessor
opcode for this operation.  The rather more complex armv7 implementation
comes from netbsd.

10 years agoAdd an ident line.
Ian Lepore [Mon, 24 Feb 2014 01:17:23 +0000 (01:17 +0000)]
Add an ident line.

10 years agoRemove a useless newline, warnx already appends a newline
Baptiste Daroussin [Sun, 23 Feb 2014 23:49:10 +0000 (23:49 +0000)]
Remove a useless newline, warnx already appends a newline

10 years agoUpdate ATP driver:
Hans Petter Selasky [Sun, 23 Feb 2014 23:36:32 +0000 (23:36 +0000)]
Update ATP driver:
- Support for double-tap and drag.
- Support for 2-finger horizontal scrolling which translates to page-back/forward events.
- Single finger tap is equivalent to a left-button press.
- Two-finger taps are mapped to the right-button click.
- Three fingers are mapped to middle button.
- Add sysctl to disable single finger tapping.
- Fix for multiple open of /dev/atp0
- Enhanced support for the Fountain/Geyser family by adding Geyser4.
- Update manual page.

Submitted by: Rohit Grover <rgrover1@gmail.com>
MFC after: 2 weeks

10 years agoFix a typo.
Adrian Chadd [Sun, 23 Feb 2014 23:13:53 +0000 (23:13 +0000)]
Fix a typo.

10 years agoActually set the proper bit to indicate TTB shared memory.
Ian Lepore [Sun, 23 Feb 2014 23:06:50 +0000 (23:06 +0000)]
Actually set the proper bit to indicate TTB shared memory.

Submitted by: Juergan Weiss

10 years agoIf the L2 cache type is PIPT, pass a physical address for a flush.
Ian Lepore [Sun, 23 Feb 2014 22:52:48 +0000 (22:52 +0000)]
If the L2 cache type is PIPT, pass a physical address for a flush.

While this is technically more correct, I don't think it much matters,
because the only thing in the tree that calls cpu_flush_dcache() is md(4)
and I'm > 99% sure it's bogus that it does so; md has no ability to do
anything that can perturb data cache coherency.

10 years agoLower the level of WARNS to fix build with gcc
Baptiste Daroussin [Sun, 23 Feb 2014 22:50:22 +0000 (22:50 +0000)]
Lower the level of WARNS to fix build with gcc

10 years agoMove the declaration for mpentry() into a header file instead of pasting
Ian Lepore [Sun, 23 Feb 2014 22:35:18 +0000 (22:35 +0000)]
Move the declaration for mpentry() into a header file instead of pasting
it into a bunch of different .c files.  Remove declarations for the unused
mptramp() function from everywhere except AramadaXP (and I think it's
really not used there either, because the code that references it appears
to be insanely does-nothing in nature).

10 years agoEliminate an unused-var warning by wrapping #if 0 around some tables of
Ian Lepore [Sun, 23 Feb 2014 22:29:59 +0000 (22:29 +0000)]
Eliminate an unused-var warning by wrapping #if 0 around some tables of
values that were probably entered "for completeness" from a datasheet, and
for all I know may be useful/necessary some day.

10 years agoRemove libyaml, it has been replaced by libucl
Baptiste Daroussin [Sun, 23 Feb 2014 22:27:14 +0000 (22:27 +0000)]
Remove libyaml, it has been replaced by libucl

10 years agoBuild the BERI boot loader on 64-bit MIPS (but not 32-bit MIPS). While
Robert Watson [Sun, 23 Feb 2014 22:20:52 +0000 (22:20 +0000)]
Build the BERI boot loader on 64-bit MIPS (but not 32-bit MIPS).  While
these binaries aren't immediately useful on other MIPSes, still build them
as part of mips64 world in order to expose them to tinderbox.

MFC after: 3 weeks
Sponsored by: DARPA, AFRL

10 years agoCapability rights are held by descriptors, not processes.
Pawel Jakub Dawidek [Sun, 23 Feb 2014 22:13:16 +0000 (22:13 +0000)]
Capability rights are held by descriptors, not processes.

Reported by: jonathan

10 years agoWhen building FDT on MIPS, use softfloat.
Robert Watson [Sun, 23 Feb 2014 22:12:25 +0000 (22:12 +0000)]
When building FDT on MIPS, use softfloat.

MFC after: 3 weeks
Sponsored by: DARPA, AFRL

10 years agoOn mips64, built 64-bit ELF support.
Robert Watson [Sun, 23 Feb 2014 22:11:26 +0000 (22:11 +0000)]
On mips64, built 64-bit ELF support.

MFC after: 3 weeks
Sponsored by: DARPA, AFRL

10 years agoGive mips64 its own ficl configuration that sizes pointers/etc suitably for
Robert Watson [Sun, 23 Feb 2014 22:10:25 +0000 (22:10 +0000)]
Give mips64 its own ficl configuration that sizes pointers/etc suitably for
a 64-bit architecture, rather than trying to share the 32-bit MIPS ficl
configuration.

When building ficl on MIPS, don't conflate 32-bit and 64-bit ISAs -- unlike
x86, we don't want a 32-bit loader on a 64-bit CPU.  Use quite conservative
code generation -- e.g., softfloat, no GOT, etc -- suitable for early boot.

MFC after: 3 weeks
Sponsored by: DARPA, AFRL

10 years agoUpdate my copyright
Baptiste Daroussin [Sun, 23 Feb 2014 22:04:03 +0000 (22:04 +0000)]
Update my copyright

10 years agoSwitch pkg(7) from libyaml to libucl
Baptiste Daroussin [Sun, 23 Feb 2014 21:55:07 +0000 (21:55 +0000)]
Switch pkg(7) from libyaml to libucl

10 years agoBranch libucl to the build
Baptiste Daroussin [Sun, 23 Feb 2014 21:50:11 +0000 (21:50 +0000)]
Branch libucl to the build

10 years agoImport libucl into head
Baptiste Daroussin [Sun, 23 Feb 2014 21:49:21 +0000 (21:49 +0000)]
Import libucl into head

UCL is heavily infused by nginx configuration as the example of a convenient
configuration system. However, UCL is fully compatible with JSON format and is
able to parse json files.

UCL is used by pkg(8) for its configuration file as well for the manifest format
in packages, it will be used in base for the pkg boostrap (signature checking
and configuration file parsing.)

libucl has been developped and is maintained by vsevolod@

10 years agoFix indentation.
Adrian Chadd [Sun, 23 Feb 2014 21:43:15 +0000 (21:43 +0000)]
Fix indentation.

10 years agoImport libucl into vendor
Baptiste Daroussin [Sun, 23 Feb 2014 21:28:28 +0000 (21:28 +0000)]
Import libucl into vendor

UCL is heavily infused by nginx configuration as the example of a convenient
configuration system. However, UCL is fully compatible with JSON format and is
able to parse json files.

UCL is used by pkg(8) for its configuration file as well for the manifest format
in packages, it will be used in base for the pkg boostrap (signature checking
and configuration file parsing.)

libucl has been developped and is maintained by vsevolod@

10 years agoFix parsing multiple roots with whitespace between them.
David Chisnall [Sun, 23 Feb 2014 21:13:07 +0000 (21:13 +0000)]
Fix parsing multiple roots with whitespace between them.

Patch by:   Patrick Wildt

10 years agoFix a typo _IMX51_TZICRREG_H_ -> _IMX51_TZICREG_H_ (extra R)
Ian Lepore [Sun, 23 Feb 2014 21:13:04 +0000 (21:13 +0000)]
Fix a typo _IMX51_TZICRREG_H_ -> _IMX51_TZICREG_H_ (extra R)

10 years agoPicoStation M2HP presents reg domain 0x2a which is not found in atheros or linux
Hiren Panchasara [Sun, 23 Feb 2014 18:07:17 +0000 (18:07 +0000)]
PicoStation M2HP presents reg domain 0x2a which is not found in atheros or linux
reference code. Add this workaround for now.

Reviewed by: adrian

10 years agoDon't force bootverbose on anymore, it can be set from ubldr now.
Ian Lepore [Sun, 23 Feb 2014 01:49:01 +0000 (01:49 +0000)]
Don't force bootverbose on anymore, it can be set from ubldr now.

10 years agoCreate a generic IMX6 kernel config. This is based on the existing
Ian Lepore [Sun, 23 Feb 2014 01:48:07 +0000 (01:48 +0000)]
Create a generic IMX6 kernel config.  This is based on the existing
WANDBOARD.common config, but with the freescale-specific optons and devices
all together at the bottom now.  In addition to reformatting and shuffling
lines around, two new options are added because they're now known to work,
VFP and FREEBSD_BOOT_LOADER.

This config does not include any static DTB, it requires that u-boot
provide a DTB (or a custom kernel config can compile one in).

This will supercede all the existing WANDBOARD* configs, but those will
be left around for a while to help people transition their customized
configs to include this new one instead.

10 years agoAdd the FREEBSD_BOOT_LOADER option so that a loaded DTB passed in from
Ian Lepore [Sun, 23 Feb 2014 01:37:29 +0000 (01:37 +0000)]
Add the FREEBSD_BOOT_LOADER option so that a loaded DTB passed in from
ubldr will actually get used.

10 years agoRemove KASSERT from in6p_lookup_mcast_ifp().
Craig Rodrigues [Sun, 23 Feb 2014 01:27:22 +0000 (01:27 +0000)]
Remove KASSERT from in6p_lookup_mcast_ifp().

When the devel/jenkins port, version 1.551 was started,
the kernel would panic if INVARIANTS was enabled in the kernel config.

Suggested by: bms

10 years agoAdd a feature for automatically finding and loading a dtb file by name.
Ian Lepore [Sat, 22 Feb 2014 22:18:20 +0000 (22:18 +0000)]
Add a feature for automatically finding and loading a dtb file by name.
The name is taken from the u-boot env vars fdtfile or fdt_file.  If the
name isn't fully-qualified a search is done in module_path locations.

The search order for a usable dtb in fdt_setup_fdtp() is now

 - A dtb loaded with an explicit "load -t dtb" command.
 - A dtb already loaded into memory somehow[*] and pointed to by fdt_to_load.
 - A dtb in the memory pointed to by the u-boot env vars fdtaddr or fdt_addr.
 - A file named by the u-boot env vars fdtfile or fdt_file.
 - A static dtb compiled into the kernel.

* Presumably by some arch-specific command or code.

10 years agoext2fs: fully enable ext4 read-only support.
Pedro F. Giffuni [Sat, 22 Feb 2014 22:07:16 +0000 (22:07 +0000)]
ext2fs: fully enable ext4 read-only support.

The ext4 developers tend to tag Ext4-specific flags as
"incompatible" even when such features are not relevant for
read-only support.  This is a consequence of the process
though which this filesystem is implemented without design
and the fact that some new features are not extensible to
ext2/3.

Organize the features according to what we support and sort
them so that we can now read-only mount filesystems with
some features that may be found in newly formatted ext4 fs.

Submitted by: Zheng Liu
Reviewed by: pfg
MFC after: 5 days

10 years agoChange file_loadraw() from static to public. Change the order of its
Ian Lepore [Sat, 22 Feb 2014 22:03:26 +0000 (22:03 +0000)]
Change file_loadraw() from static to public.  Change the order of its
arguments from type,filename to filename,type to be consistant with other
public file_whatever() functions, and change it to return a pointer to
the preloaded_file struct describing the file.  Adjust existing callers.

10 years agobsd-family-tree: Add DragonFly 3.6.1 to the tree.
Eitan Adler [Sat, 22 Feb 2014 21:35:40 +0000 (21:35 +0000)]
bsd-family-tree: Add DragonFly 3.6.1 to the tree.

10 years agobsd-family-tree: Add DragonFly 3.6.1 to the tree.
Eitan Adler [Sat, 22 Feb 2014 21:34:28 +0000 (21:34 +0000)]
bsd-family-tree: Add DragonFly 3.6.1 to the tree.

10 years agoImprove logging of send errors, reporting error code and interface.
Gleb Smirnoff [Sat, 22 Feb 2014 19:20:40 +0000 (19:20 +0000)]
Improve logging of send errors, reporting error code and interface.
Reduce code duplication between INET and INET6.

Tested by: Lytochkin Boris <lytboris gmail.com>