]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoRevert r290840
Enji Cooper [Tue, 1 Dec 2015 06:22:27 +0000 (06:22 +0000)]
Revert r290840

This request by the submitter was valid, but unfortunately there is a good deal
of concern over breakage when DESTDIR != / or "", i.e. with release media.
Making this change correct for all cases would make it markedly more complex
than need be

Requested by: bdrewery, ian, imp
PR: 76362

8 years agoAdjust a comment; we now support these embedded boards!
Adrian Chadd [Tue, 1 Dec 2015 06:11:09 +0000 (06:11 +0000)]
Adjust a comment; we now support these embedded boards!

8 years agoMove libelf.so.2 from /usr/lib to /lib to unbreak libkvm use after r291406
Enji Cooper [Tue, 1 Dec 2015 06:09:22 +0000 (06:09 +0000)]
Move libelf.so.2 from /usr/lib to /lib to unbreak libkvm use after r291406

Tested with the following commands as root:
- yes | make delete-old
- service ldconfig restart
- netstat -nr

X-MFC with: r291406
Reviewed by: jhb, kib
Sponsored by: EMC / Isilon Storage Division

8 years agoFix LINT-NOIP kernels after r291467
Enji Cooper [Tue, 1 Dec 2015 05:59:53 +0000 (05:59 +0000)]
Fix LINT-NOIP kernels after r291467

rn is only used if INET or INET6 are defined

Sponsored by: EMC / Isilon Storage Division

8 years agoMETA MODE: Add some basic bootstrapping support for no Makefile.depend.
Bryan Drewery [Tue, 1 Dec 2015 05:29:30 +0000 (05:29 +0000)]
META MODE: Add some basic bootstrapping support for no Makefile.depend.

This will not work for bootstrapping dependencies, it will only
bootstrap the top-level build directory.

Sponsored by: EMC / Isilon Storage Division

8 years agoMETA MODE: Update dependencies with 'the-lot' and add missing directories.
Bryan Drewery [Tue, 1 Dec 2015 05:23:19 +0000 (05:23 +0000)]
META MODE: Update dependencies with 'the-lot' and add missing directories.

This is not properly respecting WITHOUT or ARCH dependencies in target/.
Doing so requires a massive effort to rework targets/ to do so.  A
better approach will be to either include the SUBDIR Makefiles directly
and map to DIRDEPS or just dynamically lookup the SUBDIR.  These lose
the benefit of having a userland/lib, userland/libexec, etc, though and
results in a massive package.  The current implementation of targets/ is
very unmaintainable.

Currently rescue/rescue and sys/modules are still not connected.

Sponsored by: EMC / Isilon Storage Division

8 years agoMETA MODE: Fix userland/cddl.
Bryan Drewery [Tue, 1 Dec 2015 05:22:10 +0000 (05:22 +0000)]
META MODE: Fix userland/cddl.

MK_CTF controls whether ctfmerge is ran against the binaries, not
whether CTF tools should be built.

Sponsored by: EMC / Isilon Storage Division

8 years agoMETA MODE: Rework [bootstrapped] tools PATH support.
Bryan Drewery [Tue, 1 Dec 2015 05:19:02 +0000 (05:19 +0000)]
META MODE: Rework [bootstrapped] tools PATH support.

- Support more of the toolchain from TOOLSDIR.
- This also improves 'make bootstrap-tools' to pass, for example,
  AS=/usr/bin/as to Makefile.inc1, which will tell cross-tools to use
  external toolchain support and avoid building things we won't be using
  in the build.
- Always set the PATH to contain the staged TOOLSDIR directories when
  not building the bootstrap targets.

  The previous version was only setting this at MAKE.LEVEL==0 and if the
  TOOLSDIR existed.  Both of these prevented using staged tools that were
  built during the build though as DIRDEPS with .host dependencies, such
  as the fix for needing usr.bin/localedef.host in r291311.
  This is not a common tool so we must build and use it during the build,
  and need to be prepared to change PATH as soon as it appears.

  This should also fix the issue of host dependencies disappearing from
  Makefile.depend and then reappearing due to the start of the fresh build not
  having the directory yet, resulting in the tools that were built not actually
  being used.
- Only use LEGACY_TOOLS while building in Makefile.inc1.  After r291317
  and r291546 there is no need to add LEGACY_TOOLS into the PATH for
  the pseudo/targets/toolchain build.
- Because the pseudo/targets/toolchain will now build its own
  [clang-]tblgen, the special logic in clang.build.mk is no longer needed.
- LEGACY_TOOLS is no longer used outside of targets/pseudo/bootstrap-tools
  so is no longer passed into the environment in its build.

Sponsored by: EMC / Isilon Storage Division

8 years agoMETA MODE: Fix rebuilding of lib/clang/include after clang-tblgen.host is
Bryan Drewery [Tue, 1 Dec 2015 05:18:59 +0000 (05:18 +0000)]
META MODE: Fix rebuilding of lib/clang/include after clang-tblgen.host is
staged.

None of usr.bin/clang/clang-tblgen or its dependencies need
lib/clang/include, so there is no cyclic dependency here to worry about.
The issue came about because of workarounds to dependencies on clang
being optional.

Without this, the clang-tblgen called during the build would change
after it was staged for the host.  This would cause lib/clang/include to
rebuild due to changed build commands.

Sponsored by: EMC / Isilon Storage Division

8 years agoMETA MODE: Don't trim out lib/clang/include dependency.
Bryan Drewery [Tue, 1 Dec 2015 05:18:55 +0000 (05:18 +0000)]
META MODE: Don't trim out lib/clang/include dependency.

Doing this causes more trouble than it is worth regarding cyclic
dependencies.  It should not be needed after cleaning up MACHINE=host
builds in r291324.

Sponsored by: EMC / Isilon Storage Division

8 years agoUpdate dependencies after r291406 added libelf to libkvm.
Bryan Drewery [Tue, 1 Dec 2015 05:18:48 +0000 (05:18 +0000)]
Update dependencies after r291406 added libelf to libkvm.

Unfortunately filemon/meta mode tracks all indirect dependencies here
since ld(1) is reading libelf when linking in libkvm.  Churn would be
reduced if this was able to be limited to direct dependencies.

Sponsored by: EMC / Isilon Storage Division

8 years agoAdd initial support for RTL8152 USB Fast Ethernet. RTL8152 supports
Kevin Lo [Tue, 1 Dec 2015 05:12:13 +0000 (05:12 +0000)]
Add initial support for RTL8152 USB Fast Ethernet.  RTL8152 supports
IPv4/IPv6 checksum offloading and VLAN tag insertion/stripping.

Since uether doesn't provide a way to announce driver specific offload
capabilities to upper stack, checksum offloading support needs more work
and will be done in the future.

Special thanks to Hayes Wang from RealTek who gave input.

8 years agoFAST_DEPEND: Workaround hacks in the wild that have '..' or '/' in OBJS.
Bryan Drewery [Tue, 1 Dec 2015 03:09:54 +0000 (03:09 +0000)]
FAST_DEPEND: Workaround hacks in the wild that have '..' or '/' in OBJS.

This is mostly working around the converts/iconv port having '../ces/file.o'
in its OBJS list which resulted in '.depend../ces/file.o'.  Now it will have
'.depend.._ces_file.o'.

Other implementations have :T which would result in '.depend.file.o' here, but
that could lead to collisions.

X-MFC-With: r291554
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoFAST_DEPEND: Allow not using -MP by setting DEPEND_MP blank.
Bryan Drewery [Tue, 1 Dec 2015 03:00:10 +0000 (03:00 +0000)]
FAST_DEPEND: Allow not using -MP by setting DEPEND_MP blank.

-MP creates empty targets for all dependency files, which can be useful when a
dependency is deleted from the file system.  This would otherwise cause an
error for "don't know how to build FOO" since the .depend file is included
with the dependency registered.

This is mostly a workaround for the misc/dahdi-kmod port using '::' for one of
its dependencies, while -MP uses just ':'.  This results in an 'Inconsistent
operator for' error.

X-MFC-With: r290433
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agocapsicum: plug spurious memset in __cap_rights_init
Mateusz Guzik [Tue, 1 Dec 2015 02:48:42 +0000 (02:48 +0000)]
capsicum: plug spurious memset in __cap_rights_init

Reviewed by: pjd

8 years agoMETA MODE: Libc++ does in fact need Libcxxrt.
Bryan Drewery [Tue, 1 Dec 2015 01:22:10 +0000 (01:22 +0000)]
META MODE: Libc++ does in fact need Libcxxrt.

There seems to be no cyclic dependency here.  This partially reverts r283595
which had no explanation for the change.

Sponsored by: EMC / Isilon Storage Division

8 years agoMETA MODE: Always define HOST_*, even if not using them.
Bryan Drewery [Tue, 1 Dec 2015 00:53:17 +0000 (00:53 +0000)]
META MODE: Always define HOST_*, even if not using them.

Sponsored by: EMC / Isilon Storage Division

8 years agoMETA MODE: For bootstrap-tools, don't let Makefile.inc1 build any of the
Bryan Drewery [Tue, 1 Dec 2015 00:32:09 +0000 (00:32 +0000)]
META MODE: For bootstrap-tools, don't let Makefile.inc1 build any of the
toolchain.

This change prevents building of [clang-]tblgen, which is unneeded due
to already being a host dependency where needed for
targets/pseudo/toolchain.

Sponsored by: EMC / Isilon Storage Division

8 years agoMake the number of fasttrap probes and the size of the trace points hash table
Stanislav Sedov [Tue, 1 Dec 2015 00:24:54 +0000 (00:24 +0000)]
Make the number of fasttrap probes and the size of the trace points hash table
tunable via sysctl or kernel tunables.

Illumos allows this parameters to be changed via the fasttrap.conf configuration
file, but FreeBSD code hardcoded the parameters.  Expose them under
the kern.dtrace.fasttrap sysctl tree.

MFC after: 2 weeks

8 years agoDelete the TUNABLE_INT() line. It was in r291527 so that it could be
Rick Macklem [Mon, 30 Nov 2015 23:37:09 +0000 (23:37 +0000)]
Delete the TUNABLE_INT() line. It was in r291527 so that it could be
MFC'd to stable/10 and still work.

8 years agoMETA MODE: Fix bootstrap-tools after r291349.
Bryan Drewery [Mon, 30 Nov 2015 22:53:55 +0000 (22:53 +0000)]
META MODE: Fix bootstrap-tools after r291349.

Now that OBJTOP is assumed to be proper, it needs to be overridden for
the bootstrap-tools phase to ensure it is not kept as the top-level
OBJTOP.  Otherwise the libraries were not found during the
bootstrap-tools phase.

Sponsored by: EMC / Isilon Storage Division

8 years agoOnly DIRDEPS_BUILD should trigger this logic.
Bryan Drewery [Mon, 30 Nov 2015 22:53:41 +0000 (22:53 +0000)]
Only DIRDEPS_BUILD should trigger this logic.

Missed in r290816.

Sponsored by: EMC / Isilon Storage Division

8 years agoDocument the __FreeBSD_version bump done for r291527 in UPDATING.
Rick Macklem [Mon, 30 Nov 2015 22:46:34 +0000 (22:46 +0000)]
Document the __FreeBSD_version bump done for r291527 in UPDATING.

8 years agoBump __FreeBSD_version since r291527 changes the interface between the
Rick Macklem [Mon, 30 Nov 2015 22:35:53 +0000 (22:35 +0000)]
Bump __FreeBSD_version since r291527 changes the interface between the
nfsd.ko and nfscommon.ko modules. As such, both modules need to be upgraded
to-gether.

8 years agoAdd support for the new "-manage-gids" option for the nfsuserd daemon
Rick Macklem [Mon, 30 Nov 2015 22:29:11 +0000 (22:29 +0000)]
Add support for the new "-manage-gids" option for the nfsuserd daemon
to the rc scripts. With these changes, setting nfs_server_managegids="YES"
in /etc/rc.conf will enable this capability.

Suggested by: jpaetzel
Tested by: jpaetzel
Reviewed by: rc (pending)
MFC after: 2 weeks

8 years agoDocument the new "-manage-gids" option for the nfsuserd daemon.
Rick Macklem [Mon, 30 Nov 2015 22:16:30 +0000 (22:16 +0000)]
Document the new "-manage-gids" option for the nfsuserd daemon.
This is a content change.

Suggested by: jpaetzel
Tested by: jpaetzel
MFC after: 2 weeks

8 years agoAdd support for the "-manage-gids" option to the nfsuserd daemon.
Rick Macklem [Mon, 30 Nov 2015 22:11:34 +0000 (22:11 +0000)]
Add support for the "-manage-gids" option to the nfsuserd daemon.
When this option is set, the NFS server uses the list of groups
acquired via getgrouplist(3) for the uid instead of the list of
groups in the RPC request. This can be used to avoid the 16 gid
limit for the group list in the RPC request.

Suggested by: jpaetzel
Tested by: jpaetzel
MFC after: 2 weeks

8 years agoUse SPI name for parallel SCSI.
Alexander Motin [Mon, 30 Nov 2015 22:09:55 +0000 (22:09 +0000)]
Use SPI name for parallel SCSI.

8 years agoAdd kernel support to the NFS server for the "-manage-gids"
Rick Macklem [Mon, 30 Nov 2015 21:54:27 +0000 (21:54 +0000)]
Add kernel support to the NFS server for the "-manage-gids"
option that will be added to the nfsuserd daemon in a future
commit. It modifies the cache used by NFSv4 for name<-->id
translation (both username/uid and group/gid) to support this.
When "-manage-gids" is set, the server looks up each uid
for the RPC and uses the list of groups cached in the server
instead of the list of groups provided in the RPC request.
The cached group list is acquired for the cache by the nfsuserd
daemon via getgrouplist(3).
This avoids the 16 groups limit for the list in the RPC request.
Since the cache is now used for every RPC when "-manage-gids"
is enabled, the code also modifies the cache to use a separate
mutex for each hash list instead of a single global mutex.

Suggested by: jpaetzel
Tested by: jpaetzel
MFC after: 2 weeks

8 years agoFix a double-semicolon typo in my libkvm changes.
John Baldwin [Mon, 30 Nov 2015 21:53:24 +0000 (21:53 +0000)]
Fix a double-semicolon typo in my libkvm changes.

Submitted by: jmallett

8 years agolibllvmmirparser and libllvmlibdriver are only used in usr.bin/clang/llc and
Bryan Drewery [Mon, 30 Nov 2015 19:16:58 +0000 (19:16 +0000)]
libllvmmirparser and libllvmlibdriver are only used in usr.bin/clang/llc and
usr.bin/clang/llvm-ar, respectively, when MK_CLANG_EXTRAS is yes.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd support for Intel Skylake and Intel Broadwell PMC's. The Broadwell PMC's have...
Randall Stewart [Mon, 30 Nov 2015 17:35:49 +0000 (17:35 +0000)]
Add support for Intel Skylake and Intel Broadwell PMC's. The Broadwell PMC's have been
tested on the Broadwell-Xeon with a hacked up version of pmcstudy -T. I still need
to circle back and add in to pmcstudy all the new tests from the Broadwell Vtune
guide (for the hacked up version I just made it so I could run the -T option). The
Skylake CPU is not yet available (even though Intel is advertising it .. imagine that).
The Skylake PMC's will need to be tested once we can get a sample skylake CPU :-)

Sponsored by: Netflix Inc.

8 years agowpi: ignore ic_update_promisc() call when device is not running
Andriy Voskoboinyk [Mon, 30 Nov 2015 17:16:51 +0000 (17:16 +0000)]
wpi: ignore ic_update_promisc() call when device is not running

This change will fix kernel panic with uninitialized (zeroed)
RXON structure.

Tested with Intel 3945BG, IBSS mode.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4304

8 years agoARM: create new memory attribute for writethrough cacheable memory.
Michal Meloun [Mon, 30 Nov 2015 17:09:25 +0000 (17:09 +0000)]
ARM: create new memory attribute for writethrough cacheable memory.
- add new TEX class for WT cacheable memory
- export new TEX class to kernel as VM_MEMATTR_WT attribute
- add new aliases VM_MEMATTR_WRITE_COMBINING and
  VM_MEMATTR_WRITE_BACK, it's used in DRM code

Note:
 Only Cortex A8 supports WT caching in HW. On rest of Cortex CPUs,
 WT requests is treated as uncacheable.

Approved by: kib (mentor)

8 years agoFix the build after ifconfig was converted over to lib80211 in r291470
Enji Cooper [Mon, 30 Nov 2015 16:34:13 +0000 (16:34 +0000)]
Fix the build after ifconfig was converted over to lib80211 in r291470

Reported by: jenkins, O. Hartmann <ohartman@zedat.fu-berlin.de>
Pointyhat to: adrian

8 years agosfxge: avoid TSO packets collapses bacause of not 2K aligned data
Andrew Rybchenko [Mon, 30 Nov 2015 13:27:40 +0000 (13:27 +0000)]
sfxge: avoid TSO packets collapses bacause of not 2K aligned data

Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D4310

8 years agoShorten conditional branch code.
Konstantin Belousov [Mon, 30 Nov 2015 10:18:15 +0000 (10:18 +0000)]
Shorten conditional branch code.

Reviewed by: andrew
Sponsored by: The FreeBSD Foundation

8 years agoRemove unneeded instructions.
Konstantin Belousov [Mon, 30 Nov 2015 10:17:13 +0000 (10:17 +0000)]
Remove unneeded instructions.

Reviewed by: andrew
Sponsored by: The FreeBSD Foundation

8 years agoAdd more functions and types to the LinuxKPI.
Hans Petter Selasky [Mon, 30 Nov 2015 09:24:12 +0000 (09:24 +0000)]
Add more functions and types to the LinuxKPI.

MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoadd missing lib80211 include.
Adrian Chadd [Mon, 30 Nov 2015 09:02:28 +0000 (09:02 +0000)]
add missing lib80211 include.

8 years agoFix the build
Enji Cooper [Mon, 30 Nov 2015 08:02:52 +0000 (08:02 +0000)]
Fix the build

ichan is only used if AH_DEBUG_ALQ if defined

Pointyhat to: adrian

8 years agoAdd missing lib declaration.
Adrian Chadd [Mon, 30 Nov 2015 06:56:25 +0000 (06:56 +0000)]
Add missing lib declaration.

8 years agoConvert ifconfig to use lib80211.
Adrian Chadd [Mon, 30 Nov 2015 06:34:16 +0000 (06:34 +0000)]
Convert ifconfig to use lib80211.

* remove regdomain.[ch] - it's now part of lib80211.
* convert ifieee80211.c to use the ioctl routines in lib80211 and
  implement the "error? exit" wrapper behaviour the callers expect.

8 years agofix ht/40 configuration for ar9331 (hornet).
Adrian Chadd [Mon, 30 Nov 2015 06:26:59 +0000 (06:26 +0000)]
fix ht/40 configuration for ar9331 (hornet).

The synth programming here requires the real centre frequency,
which for HT20 channels is the normal channel, but HT40 is
/not/ the primary channel.  Everything else was using 'freq',
which is the correct centre frequency, but the hornet config
was using 'ichan' to do the lookup which was also the primary
channel.

So, modify the HAL call that does the mapping to take a frequency
in MHz and return the channel number.

Tested:

* Carambola 2, AR9331, tested both HT/20 and HT/40 operation.

8 years agoRemove in_setifarnh definition.
Alexander V. Chernikov [Mon, 30 Nov 2015 06:02:35 +0000 (06:02 +0000)]
Remove in_setifarnh definition.

8 years agoMove flowtable rte checks to separate function.
Alexander V. Chernikov [Mon, 30 Nov 2015 05:59:22 +0000 (05:59 +0000)]
Move flowtable rte checks to separate function.

8 years agoAdd new rt_foreach_fib_walk_del() function for deleting route entries
Alexander V. Chernikov [Mon, 30 Nov 2015 05:51:14 +0000 (05:51 +0000)]
Add new rt_foreach_fib_walk_del() function for deleting route entries
  by filter function instead of picking into routing table details in
  each consumer.
Remove now-unused rt_expunge() (eliminating last external RTF_RNH_LOCKED
 user).
This simplifies future nexthops/mulitipath changes and rtrequest1_fib()
  locking refactoring.

Actual changes:
Add "rt_chain" field to permit rte grouping while doing batched delete
  from routing table (thus growing rte 200->208 on amd64).
Add "rti_filter" /  "rti_filterdata" / "rti_spare" fields to rt_addrinfo
  to pass filter function to various routing subsystems in standard way.
Convert all rt_expunge() customers to new rt_addinfo-based api and eliminate
  rt_expunge().

8 years agoAdd lib80211 to include path.
Adrian Chadd [Mon, 30 Nov 2015 04:59:01 +0000 (04:59 +0000)]
Add lib80211 to include path.

(This commit was missing from my lib80211 commit.)

8 years agoAdd lib80211, a small (but hopefully soon to grow) set of library
Adrian Chadd [Mon, 30 Nov 2015 04:41:50 +0000 (04:41 +0000)]
Add lib80211, a small (but hopefully soon to grow) set of library
routines to interface with net80211.

This is all from the ifconfig program; the duplicate code from ifconfig
will be removed when it starts using this API.

Differential Revision: https://reviews.freebsd.org/D4290

8 years agoPrint machine check address for Book-E.
Justin Hibbits [Mon, 30 Nov 2015 02:40:41 +0000 (02:40 +0000)]
Print machine check address for Book-E.

Bits in mcsr indicate if the address is valid, and whether it's a physical
address or effective address.

Sponsored by: Alex Perez/Inertial Computing

8 years agoAdd Freescale QorIQ GPIO driver.
Justin Hibbits [Mon, 30 Nov 2015 02:23:56 +0000 (02:23 +0000)]
Add Freescale QorIQ GPIO driver.

Still missing interrupt support, to come later.

Sponsored by: Alex Perez/Inertial Computing

8 years agoFix buildworld after r291453, similar to r284346: url->user and url->pwd
Dimitry Andric [Sun, 29 Nov 2015 22:37:48 +0000 (22:37 +0000)]
Fix buildworld after r291453, similar to r284346: url->user and url->pwd
are arrays, so they can never be NULL.

Reported by: many
Pointy hat to: des

8 years agoAs the kernel allocates and frees vnodes, it fully initializes them
Kirk McKusick [Sun, 29 Nov 2015 21:42:26 +0000 (21:42 +0000)]
As the kernel allocates and frees vnodes, it fully initializes them
on every allocation and fully releases them on every free.  These
are not trivial costs: it starts by zeroing a large structure then
initializes a mutex, a lock manager lock, an rw lock, four lists,
and six pointers. And looking at vfs.vnodes_created, these operations
are being done millions of times an hour on a busy machine.

As a performance optimization, this code update uses the uma_init
and uma_fini routines to do these initializations and cleanups only
as the vnodes enter and leave the vnode_zone. With this change the
initializations are only done kern.maxvnodes times at system startup
and then only rarely again. The frees are done only if the vnode_zone
shrinks which never happens in practice. For those curious about the
avoided work, look at the vnode_init() and vnode_fini() functions in
kern/vfs_subr.c to see the code that has been removed from the main
vnode allocation/free path.

Reviewed by: kib
Tested by:   Peter Holm

8 years agoFor performance reasons, it is useful to have a single string used as
Kirk McKusick [Sun, 29 Nov 2015 21:01:02 +0000 (21:01 +0000)]
For performance reasons, it is useful to have a single string used as
the name of a filesystem when setting it as the first parameter to the
getnewvnode() function. Most filesystems call getnewvnode from just one
place so can use a literal string as the first parameter. However, NFS
calls getnewvnode from two places, so we create a global constant string
that can be used by the two instances. This change also collapses two
instances of getnewvnode() in the UFS filesystem to a single call.

Reviewed by: kib
Tested by:   Peter Holm

8 years agoadd missing initvals.
Adrian Chadd [Sun, 29 Nov 2015 18:14:18 +0000 (18:14 +0000)]
add missing initvals.

Sorry y'all.

8 years agoInstall the public sanitizer headers. These are useful for programs
Dimitry Andric [Sun, 29 Nov 2015 16:28:40 +0000 (16:28 +0000)]
Install the public sanitizer headers.  These are useful for programs
that want to directly interface with sanitizer internals.

8 years agoUse .netrc for HTTP sites and proxies, not just FTP.
Dag-Erling Smørgrav [Sun, 29 Nov 2015 14:26:59 +0000 (14:26 +0000)]
Use .netrc for HTTP sites and proxies, not just FTP.

PR: 193740
Submitted by: TEUBEL György <tgyurci@gmail.com>
MFC after: 1 week

8 years agoImprove error reporting to clearly show problematic rules.
Edward Tomasz Napierala [Sun, 29 Nov 2015 13:14:45 +0000 (13:14 +0000)]
Improve error reporting to clearly show problematic rules.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoSimplify rule retrieval and improve error handling.
Edward Tomasz Napierala [Sun, 29 Nov 2015 12:33:56 +0000 (12:33 +0000)]
Simplify rule retrieval and improve error handling.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoFix make depend
Ulrich Spörlein [Sun, 29 Nov 2015 12:23:08 +0000 (12:23 +0000)]
Fix make depend

8 years agoFix some memory management problems.
Edward Tomasz Napierala [Sun, 29 Nov 2015 12:21:02 +0000 (12:21 +0000)]
Fix some memory management problems.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoHandle asprintf(3) errors in a standards-compliant way.
Edward Tomasz Napierala [Sun, 29 Nov 2015 12:09:12 +0000 (12:09 +0000)]
Handle asprintf(3) errors in a standards-compliant way.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoRewrite the rctl(8) utility to make it possible to add multiple rules
Edward Tomasz Napierala [Sun, 29 Nov 2015 12:01:36 +0000 (12:01 +0000)]
Rewrite the rctl(8) utility to make it possible to add multiple rules
in a single run.  This speeds up operation with large rulesets.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoMinor cleanup.
Konstantin Belousov [Sun, 29 Nov 2015 11:37:25 +0000 (11:37 +0000)]
Minor cleanup.

Systematically use ANSI C functions definitions.
Correct type of the flags argument to the dev_pager_putpages() function.
Use vm_pager_free_nonreq().

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

8 years agoUser and group identifiers the rctl(8) utility receives from the kernel
Edward Tomasz Napierala [Sun, 29 Nov 2015 11:30:17 +0000 (11:30 +0000)]
User and group identifiers the rctl(8) utility receives from the kernel
are always in numeric form; don't try to resolve them by names.  This
speeds up rule listing with large rulesets by about 50%.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoAHCI: Fix AHCI driver for ARM.
Michal Meloun [Sun, 29 Nov 2015 11:28:04 +0000 (11:28 +0000)]
AHCI: Fix AHCI driver for ARM.
On ARM, we must ensure proper interdevice write ordering.
The AHCI interrupt status register must be updated in HW before
registers in interrupt controller.
Unfortunately, only way how we can do it is readback.

Discussed with: mav
Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D4240

8 years agoMake ELFv2 powerpc64 kernels build and run. Loader support will come in a
Nathan Whitehorn [Sun, 29 Nov 2015 07:16:08 +0000 (07:16 +0000)]
Make ELFv2 powerpc64 kernels build and run. Loader support will come in a
separate commit.

8 years agoFix build with new binutils. This gets a working kernel with GCC 5.2 and
Nathan Whitehorn [Sun, 29 Nov 2015 06:40:09 +0000 (06:40 +0000)]
Fix build with new binutils. This gets a working kernel with GCC 5.2 and
binutils 2.24. Without this, the self-relocation code in locore64.S was
failing due to a misaligned TOC section.

MFC after: 2 weeks

8 years agoDisable a couple of tests, perhaps temporarily, since they use private
Daniel Eischen [Sun, 29 Nov 2015 06:16:25 +0000 (06:16 +0000)]
Disable a couple of tests, perhaps temporarily, since they use private
symbols that are not exported from librt.

8 years agoUnbreak symbol versioning. I have no idea when it was broken, but it's been
Daniel Eischen [Sun, 29 Nov 2015 06:14:51 +0000 (06:14 +0000)]
Unbreak symbol versioning.  I have no idea when it was broken, but it's been
at least a few months if not a year or more.

8 years agoAdd support for the integrated wifi for the QCA953x base config and
Adrian Chadd [Sun, 29 Nov 2015 05:49:49 +0000 (05:49 +0000)]
Add support for the integrated wifi for the QCA953x base config and
AP143.

Tested:

* AP143 reference design board

8 years agoAdd initial support for the QCA953x SoC (honeybee) wifi.
Adrian Chadd [Sun, 29 Nov 2015 05:47:52 +0000 (05:47 +0000)]
Add initial support for the QCA953x SoC (honeybee) wifi.

This is a 2x2 2GHz 802.11n part.  It works enough at the moment to
bring up, scan and associate.  I haven't started using this as
a day to day AP.

The specifics:

* add honeybee initvals
* add in changes; a mix from the QCA HAL and ath9k;
* fix a bug in AR_SREV_AR9580_10_OR_LATER(), which is only used
  for one capability check and we don't even implement it - so it's
  a big no-op.

Shady things:

* ath9k has the "platform data" define the 25/40MHz clock.
  This HAL .. doesn't.  Honeybee gets hard-coded to 25MHz which
  it likely shouldn't be.  I'll have to go and identify/fix those.

Tested:

* Qualcomm Atheros AP143 reference design board.

Obtained from: Qualcomm Atheros; Linux ath9k

8 years agosfxge: add prefast annotation to common code return types
Andrew Rybchenko [Sun, 29 Nov 2015 05:42:49 +0000 (05:42 +0000)]
sfxge: add prefast annotation to common code return types

Using a typedef for common code return types (rather than "int")
allows the Prefast static analyser to understand when a function
has been successful (and thus when its postconditions must hold).

This greatly reduces then number of false positives reported by
prefast for error paths in common code functions.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days

8 years agou32 -> uint32_t.
Adrian Chadd [Sun, 29 Nov 2015 05:42:18 +0000 (05:42 +0000)]
u32 -> uint32_t.

8 years agosfxge: cleanup: fix prefast annotations on mac stats updates
Andrew Rybchenko [Sun, 29 Nov 2015 05:38:40 +0000 (05:38 +0000)]
sfxge: cleanup: fix prefast annotations on mac stats updates

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
X-MFC with:     r291397

8 years ago[ath_hal] add AR9461 (jupiter) 2.1 support.
Adrian Chadd [Sun, 29 Nov 2015 05:34:00 +0000 (05:34 +0000)]
[ath_hal] add AR9461 (jupiter) 2.1 support.

Obtained from: Linux ath9k

8 years agosfxge: modify nvram update functions for uio platform to support RFID-selectable...
Andrew Rybchenko [Sun, 29 Nov 2015 05:08:23 +0000 (05:08 +0000)]
sfxge: modify nvram update functions for uio platform to support RFID-selectable presets

Dynamic config partitions on boards that support RFID are divided into
a number of segments, each formatted like a partition, with header,
trailer and end tags. The first segment is the current active
configuration.

The segments are initialised by manftest and each contain a different
configuration e.g. firmware variant. The firmware can be instructed
via RFID to copy a segment over the first segment, hence changing the
active configuration. This allows ops to change the configuration of
a board prior to shipment using RFID.

Changes to the dynamic config may need to be written to all segments (in
particular firmware versions written by manftest) or just the first
segment (changes to the active configuration). See SF-111324-SW.
If only the first segment is written the code still needs to be aware of
the possible presence of subsequent segments as writing to a segment may
cause its size to increase, which would overwrite the subsequent
segments and invalidate them.

Boards that do not support RFID will only have one segment in their
dynamic config partition.

Submitted by:   Paul Fox <pfox at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D4302

8 years agodrm/i915: Reduce diff with Linux 3.8
Jean-Sébastien Pédron [Sat, 28 Nov 2015 17:38:27 +0000 (17:38 +0000)]
drm/i915: Reduce diff with Linux 3.8

There is no functional change. The goal is to ease the future update to
Linux 3.8's i915 driver.

MFC after: 2 months

8 years agodrm/i915: Further reduce the diff in i915_dma.c
Jean-Sébastien Pédron [Sat, 28 Nov 2015 17:37:41 +0000 (17:37 +0000)]
drm/i915: Further reduce the diff in i915_dma.c

MFC after: 2 months

8 years agodrm/i915: Reduce diff with Linux 3.8
Jean-Sébastien Pédron [Sat, 28 Nov 2015 15:22:46 +0000 (15:22 +0000)]
drm/i915: Reduce diff with Linux 3.8

There is no functional change. The goal is to ease the future update to
Linux 3.8's i915 driver.

MFC after: 2 months

8 years agoAHCI: Use bus_dmamap_sync(9) when accessing DMA buffers.
Michal Meloun [Sat, 28 Nov 2015 14:30:42 +0000 (14:30 +0000)]
AHCI: Use bus_dmamap_sync(9) when accessing DMA buffers.

Reviewed by: mav
Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D4240

8 years agoARM: Implement atomic_swap_int(9). It's used in DRM2 code.
Michal Meloun [Sat, 28 Nov 2015 12:12:28 +0000 (12:12 +0000)]
ARM: Implement atomic_swap_int(9). It's used in DRM2 code.

Approved by: kib (mentor)

8 years agoARM: Add support for new KRAIT 300 CPU revision.
Michal Meloun [Sat, 28 Nov 2015 12:11:44 +0000 (12:11 +0000)]
ARM: Add support for new KRAIT 300 CPU revision.

Approved by: kib (mentor)

8 years agoARM: Cumulative fixes for GIC
Michal Meloun [Sat, 28 Nov 2015 12:09:36 +0000 (12:09 +0000)]
ARM: Cumulative fixes for GIC
 - fix detection of interrupt root controller
 - allow (but warn) unsupported configuration bits
 - dont send EOI for spurious interrupts
 - print more informations for spurious interrupts
 - use device_printf() where appropriate

Reviewed by: ian (earlier version)
Approved by: kib (mentor)

8 years agoRemove sv_prepsyscall, sv_sigsize and sv_sigtbl members of the struct
Konstantin Belousov [Sat, 28 Nov 2015 08:49:07 +0000 (08:49 +0000)]
Remove sv_prepsyscall, sv_sigsize and sv_sigtbl members of the struct
sysent.

sv_prepsyscall is unused.

sv_sigsize and sv_sigtbl translate signal number from the FreeBSD
namespace into the ABI domain.  It is only utilized on i386 for iBCS2
binaries.  The issue with this approach is that signals for iBCS2 were
delivered with the FreeBSD signal frame layout, which does not follow
iBCS2.  The same note is true for any other potential user if
sv_sigtbl.  In other words, if ABI needs signal number translation, it
really needs custom sv_sendsig method instead.

Sponsored by: The FreeBSD Foundation

8 years agoDisconnect iBCS2 emulator from the build. The ibcs2 option, the build
Konstantin Belousov [Sat, 28 Nov 2015 08:31:32 +0000 (08:31 +0000)]
Disconnect iBCS2 emulator from the build.  The ibcs2 option, the build
glue and the sources are not removed for now.

Discussed with: emaste
Sponsored by: The FreeBSD Foundation

8 years ago[ath_hal] use the correct revision information for QCA953x.
Adrian Chadd [Sat, 28 Nov 2015 06:50:09 +0000 (06:50 +0000)]
[ath_hal] use the correct revision information for QCA953x.

This probe/attaches correctly in my local branch and now displays
a useful message:

ath0: <Qualcomm Atheros QCA953x> at mem 0x18100000-0x1811ffff irq 0 on nexus0
...
ath0: AR9530 mac 1280.0 RF5110 phy 0.0

8 years agoAdd AR9530 (honeybee) config option.
Adrian Chadd [Sat, 28 Nov 2015 01:09:30 +0000 (01:09 +0000)]
Add AR9530 (honeybee) config option.

8 years agoRegen src.conf.5 for recent option changes.
Hajimu UMEMOTO [Sat, 28 Nov 2015 00:55:49 +0000 (00:55 +0000)]
Regen src.conf.5 for recent option changes.

8 years agoFix breakage by recent collation change.
Hajimu UMEMOTO [Sat, 28 Nov 2015 00:41:37 +0000 (00:41 +0000)]
Fix breakage by recent collation change.
LC_ALL has to be exported.

8 years ago* Add device string for QCA955x (scorpion);
Adrian Chadd [Sat, 28 Nov 2015 00:27:16 +0000 (00:27 +0000)]
* Add device string for QCA955x (scorpion);
* Add device ID and device string for QCA953x (honeybee).

8 years agowrap in ATH_DEBUG.
Adrian Chadd [Sat, 28 Nov 2015 00:14:37 +0000 (00:14 +0000)]
wrap in ATH_DEBUG.

Thanks sparc64 build!

8 years ago[ath] conditionally print out the rate series information if ATH_DEBUG_XMIT is set.
Adrian Chadd [Fri, 27 Nov 2015 22:33:40 +0000 (22:33 +0000)]
[ath] conditionally print out the rate series information if ATH_DEBUG_XMIT is set.

8 years agoTake also the send queue and sent queue into account when triggering
Michael Tuexen [Fri, 27 Nov 2015 22:11:46 +0000 (22:11 +0000)]
Take also the send queue and sent queue into account when triggering
the sending of outgoing stream reset requests.

MFC after: 3 days

8 years agokbdmap: include filename when reporting fopen() failure
Ed Maste [Fri, 27 Nov 2015 21:27:39 +0000 (21:27 +0000)]
kbdmap: include filename when reporting fopen() failure

Previously only one of two cases reported the file name. Use the same
error string in both cases.

Sponsored by: The FreeBSD Foundation

8 years agoIn vm_pageout_grow_cache(), do not re-try the inactive queue when
Konstantin Belousov [Fri, 27 Nov 2015 19:43:36 +0000 (19:43 +0000)]
In vm_pageout_grow_cache(), do not re-try the inactive queue when
active queue scan initiated write.

Re-trying from the inactive queue when doing active scan makes the
loop never end if number of domains is greater than 1 and inactive or
active scan cannot reach the target.

Reported and tested by: Andrew Gallatin <gallatin@netflix.com>
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

8 years agoAdd helper to catch single step debug event and distinguish it from bkpt
Zbigniew Bodek [Fri, 27 Nov 2015 19:03:59 +0000 (19:03 +0000)]
Add helper to catch single step debug event and distinguish it from bkpt

Some architectures (including ARMv6/v7) do not have separate single step
events and cannot see difference between breakpoint and single step.
Add db_pc_is_singlestep() to avoid skipping instruction we stepped on
to trigger debug event.
This commit does not change the existing functionality but adds possibility
to implement custom db_pc_is_singlestep().

Reviewed by:   imp
Submitted by:  Zbigniew Bodek <zbb@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Juniper Networks Inc.
Differential Revision: https://reviews.freebsd.org/D4036

8 years agoAdd support to libkvm for reading vmcores from other architectures.
John Baldwin [Fri, 27 Nov 2015 18:58:26 +0000 (18:58 +0000)]
Add support to libkvm for reading vmcores from other architectures.
- Add a kvaddr_type to represent kernel virtual addresses instead of
  unsigned long.
- Add a struct kvm_nlist which is a stripped down version of struct nlist
  that uses kvaddr_t for n_value.
- Add a kvm_native() routine that returns true if an open kvm descriptor
  is for a native kernel and memory image.
- Add a kvm_open2() function similar to kvm_openfiles().  It drops the
  unused 'swapfile' argument and adds a new function pointer argument for
  a symbol resolving function.  Native kernels still use _fdnlist() from
  libc to resolve symbols if a resolver function is not supplied, but cross
  kernels require a resolver.
- Add a kvm_nlist2() function similar to kvm_nlist() except that it uses
  struct kvm_nlist instead of struct nlist.
- Add a kvm_read2() function similar to kvm_read() except that it uses
  kvaddr_t instead of unsigned long for the kernel virtual address.
- Add a new kvm_arch switch of routines needed by a vmcore backend.
  Each backend is responsible for implementing kvm_read2() for a given
  vmcore format.
- Use libelf to read headers from ELF kernels and cores (except for
  powerpc cores).
- Add internal helper routines for the common page offset hash table used
  by the minidump backends.
- Port all of the existing kvm backends to implement a kvm_arch switch and
  to be cross-friendly by using private constants instead of ones that
  vary by platform (e.g. PAGE_SIZE).  Static assertions are present when
  a given backend is compiled natively to ensure the private constants
  match the real ones.
- Enable all of the existing vmcore backends on all platforms.  This means
  that libkvm on any platform should be able to perform KVA translation
  and read data from a vmcore of any platform.

Tested on: amd64, i386, sparc64 (marius)
Differential Revision: https://reviews.freebsd.org/D3341

8 years agoAdd support for exynos5_ehci in loader
Zbigniew Bodek [Fri, 27 Nov 2015 18:22:04 +0000 (18:22 +0000)]
Add support for exynos5_ehci in loader

Create new driver which initializes Arndale PHY and calls ehci_init

Reviewed by:   hselasky
Submitted by:  Wojciech Macek <wma@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Juniper Networks Inc.
Differential Revision: https://reviews.freebsd.org/D4192

8 years agoIncrease malloc area in loader/usb
Zbigniew Bodek [Fri, 27 Nov 2015 18:20:21 +0000 (18:20 +0000)]
Increase malloc area in loader/usb

Previous value was not enough on Arndale platform.

Reviewed by:   hselasky
Submitted by:  Wojciech Macek <wma@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Juniper Networks Inc.
Differential Revision: https://reviews.freebsd.org/D4145