]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoUpdate jemalloc to 4.1.0.
jasone [Mon, 29 Feb 2016 19:10:32 +0000 (19:10 +0000)]
Update jemalloc to 4.1.0.

Add missing Symbol.map entry for __aligned_alloc.

Add weak-->strong symbol binding for
{malloc_stats_print,mallctl,mallctlnametomib,mallctlbymib} -->
{__malloc_stats_print,__mallctl,__mallctlnametomib,__mallctlbymib}.  These
bindings complete the set necessary to allow applications to replace all
malloc-related symbols.

8 years agoRemove uudecode make rule for vt fonts
emaste [Mon, 29 Feb 2016 18:35:16 +0000 (18:35 +0000)]
Remove uudecode make rule for vt fonts

vt(4) fonts are provided in either .bdf or .hex form, and the binary
.fnt file is generated by vtfontcvt at build time.

8 years agoEnable NO_ make variable deprecation warning
emaste [Mon, 29 Feb 2016 17:57:11 +0000 (17:57 +0000)]
Enable NO_ make variable deprecation warning

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D5495

8 years agouserboot: use MK_CTF=no to disable CTF
emaste [Mon, 29 Feb 2016 17:54:55 +0000 (17:54 +0000)]
userboot: use MK_CTF=no to disable CTF

The NO_ form (e.g. NO_CTF) is deprecated.

8 years agoFix typo.
trasz [Mon, 29 Feb 2016 17:40:37 +0000 (17:40 +0000)]
Fix typo.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years ago{kbdcontrol,vidcontrol,quota,telnet}(8) -> {kbdcontrol,vidcontrol,quota,telnet}(1)
trasz [Mon, 29 Feb 2016 17:40:02 +0000 (17:40 +0000)]
{kbdcontrol,vidcontrol,quota,telnet}(8) -> {kbdcontrol,vidcontrol,quota,telnet}(1)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoioctl(8) -> ioctl(2)
trasz [Mon, 29 Feb 2016 17:37:35 +0000 (17:37 +0000)]
ioctl(8) -> ioctl(2)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agokbdmux(8) -> kbdmux(4)
trasz [Mon, 29 Feb 2016 17:36:00 +0000 (17:36 +0000)]
kbdmux(8) -> kbdmux(4)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoerrno(3) -> errno(2)
trasz [Mon, 29 Feb 2016 17:34:54 +0000 (17:34 +0000)]
errno(3) -> errno(2)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agojls(1) -> jls(8)
trasz [Mon, 29 Feb 2016 17:30:34 +0000 (17:30 +0000)]
jls(1) -> jls(8)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agosha256(8) -> sha256(1)
trasz [Mon, 29 Feb 2016 17:29:34 +0000 (17:29 +0000)]
sha256(8) -> sha256(1)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agocarp(8) -> carp(4)
trasz [Mon, 29 Feb 2016 17:28:05 +0000 (17:28 +0000)]
carp(8) -> carp(4)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoddb(9) -> ddb(4)
trasz [Mon, 29 Feb 2016 17:26:41 +0000 (17:26 +0000)]
ddb(9) -> ddb(4)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoeventtimers(7) -> eventtimers(4)
trasz [Mon, 29 Feb 2016 17:26:05 +0000 (17:26 +0000)]
eventtimers(7) -> eventtimers(4)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoFix typo.
trasz [Mon, 29 Feb 2016 17:25:13 +0000 (17:25 +0000)]
Fix typo.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agotzsetup(1) -> tzsetup(8)
trasz [Mon, 29 Feb 2016 17:24:34 +0000 (17:24 +0000)]
tzsetup(1) -> tzsetup(8)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agokenv(8) -> kenv(1)
trasz [Mon, 29 Feb 2016 17:22:34 +0000 (17:22 +0000)]
kenv(8) -> kenv(1)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoFix typo.
trasz [Mon, 29 Feb 2016 17:20:37 +0000 (17:20 +0000)]
Fix typo.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agosysconf(2) -> sysconf(3)
trasz [Mon, 29 Feb 2016 17:20:04 +0000 (17:20 +0000)]
sysconf(2) -> sysconf(3)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agosendmsg(3) -> sendmsg(2)
trasz [Mon, 29 Feb 2016 17:19:15 +0000 (17:19 +0000)]
sendmsg(3) -> sendmsg(2)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agodump(1) -> dump(8).
trasz [Mon, 29 Feb 2016 17:17:10 +0000 (17:17 +0000)]
dump(1) -> dump(8).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoThe tcpdump is section 1, not 8.
trasz [Mon, 29 Feb 2016 17:16:06 +0000 (17:16 +0000)]
The tcpdump is section 1, not 8.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoAutofs is section 5, not 4.
trasz [Mon, 29 Feb 2016 17:14:04 +0000 (17:14 +0000)]
Autofs is section 5, not 4.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoFix typos in .Xrs.
trasz [Mon, 29 Feb 2016 16:52:06 +0000 (16:52 +0000)]
Fix typos in .Xrs.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoFix typo.
trasz [Mon, 29 Feb 2016 16:50:28 +0000 (16:50 +0000)]
Fix typo.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoMark amd(8) and all related utilities as obsolete.
trasz [Mon, 29 Feb 2016 16:45:10 +0000 (16:45 +0000)]
Mark amd(8) and all related utilities as obsolete.

Reviewed by: wblock@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5443

8 years agoDocument that WITHOUT_ELFCOPY_AS_OBJCOPY will be removed
emaste [Mon, 29 Feb 2016 16:39:38 +0000 (16:39 +0000)]
Document that WITHOUT_ELFCOPY_AS_OBJCOPY will be removed

In case ELF Tool Chain's elfcopy introduces any regressions this knob is
available as a transition aid. It will be removed once we are confident
that any regressions have been fixed.

8 years agoAdd riscv to the list of architectures for cscope.
andrew [Mon, 29 Feb 2016 16:39:27 +0000 (16:39 +0000)]
Add riscv to the list of architectures for cscope.

8 years agoMFV r296164:
pfg [Mon, 29 Feb 2016 14:46:39 +0000 (14:46 +0000)]
MFV r296164:
Update openresolve to version 3.7.3 including:

 *  Save the initial working directory and change to it just before
     running any scripts.
     This avoids scripts putting files accidently where they shouldn't.
 *  Strip trailing dot from search and domain names.
 *  man page improvements.

Relnotes: yes

8 years agoFix fdt_get_mem_regions() to work with 64-bit addresses
wma [Mon, 29 Feb 2016 09:22:39 +0000 (09:22 +0000)]
Fix fdt_get_mem_regions() to work with 64-bit addresses

    Use u_long instead of uint32_t variables to avoid overflow
    in case of PA space bigger than 32-bit.

Obtained from:         Semihalf
Submitted by:          Michal Stanek <mst@semihalf.com>
Sponsored by:          Annapurna Labs
Approved by:           cognet (mentor)
Reviewed by:           andrew, br, wma
Differential revision: https://reviews.freebsd.org/D5393

8 years agohyperv/channel: Add sysctl node for channel owner cpu
sephe [Mon, 29 Feb 2016 09:14:55 +0000 (09:14 +0000)]
hyperv/channel: Add sysctl node for channel owner cpu

And add sysctl node for sub-channel's channel id.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5489

8 years agohyperv/hn: Utilize mbuf flowid
sephe [Mon, 29 Feb 2016 09:05:33 +0000 (09:05 +0000)]
hyperv/hn: Utilize mbuf flowid

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5488

8 years agoFix build failure introduced by r296182
sgalabov [Mon, 29 Feb 2016 09:03:07 +0000 (09:03 +0000)]
Fix build failure introduced by r296182

Approved by: adrian (mentor)

8 years agohyperv/hn: Put LRO aggregation limit settings under FreeBSD version check
sephe [Mon, 29 Feb 2016 08:53:53 +0000 (08:53 +0000)]
hyperv/hn: Put LRO aggregation limit settings under FreeBSD version check

This simplifies MFC to 10-stable

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5487

8 years agohyperv/hn: Switch to if_transmit by default after r296178
sephe [Mon, 29 Feb 2016 08:45:07 +0000 (08:45 +0000)]
hyperv/hn: Switch to if_transmit by default after r296178

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5485

8 years agoThis review aims at introducing ubldr (loader with U-Boot interface) for MIPS
sgalabov [Mon, 29 Feb 2016 07:47:04 +0000 (07:47 +0000)]
This review aims at introducing ubldr (loader with U-Boot interface) for MIPS
(32 and 64-bit, LE and BE).
The changes were tested with QEMU's 'mips' target.

Most of the implementation was lifted from the ARM version, the appropriate
MIPS-specific things were implemented.

With these changes I am able to go all the way through the u-boot->ubldr->kernel
boot chain in QEMU on all combinations of bit-ness and endian-ness.

For the tests I've used FAT32 disk images (as FAT32 is supported by U-boot),
which include /boot/kernel/kernel and /boot/kernel/ubldr.bin

In U-boot I do:
fatload ide 0 <LOAD_ADDR> /boot/kernel/ubldr.bin; go <LOAD_ADDR>
where LOAD_ADDR is 80800000 for 32-bit and ffffffff80800000 for 64-bit

Then it's the usual ubldr that takes over and loads and starts a kernel.

Approved by: adrian (mentor)
Sponsored by: Smartcom - Bulgaria AD
Differential Revision: https://reviews.freebsd.org/D5313

8 years agoThese changes attempt to put things in order before the introduction of MIPS
sgalabov [Mon, 29 Feb 2016 07:27:49 +0000 (07:27 +0000)]
These changes attempt to put things in order before the introduction of MIPS
ubldr.

The changes are mostly dealing with removing unnecessary casts from the U-Boot
API (we're passing only pointers, no obvious reason to cast them to uint32_t),
cleaning up some compiler warnings and using the proper printf format
specifiers in order to be able to compile cleanly for both 32-bit and 64-bit
MIPS targets.

Reviewed by: imp
Approved by: adrian (mentor)
Sponsored by: Smartcom - Bulgaria AD
Differential Revision: https://reviews.freebsd.org/D5312

8 years agohyperv/channel: Add debug sysctl nodes for channel indices
sephe [Mon, 29 Feb 2016 05:24:29 +0000 (05:24 +0000)]
hyperv/channel: Add debug sysctl nodes for channel indices

It would serve as a debug tool, if the shared buffer ring's indices
stopped updating.

Submitted by: HongJiang Zhang <honzhan microsoft com>
Reviewed by: sephe, Jun Su <junsu microsoft com>
Modified by: sephe
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5402

8 years agohyperv: Use proper fence function to keep store-load order for msgs
sephe [Mon, 29 Feb 2016 04:58:40 +0000 (04:58 +0000)]
hyperv: Use proper fence function to keep store-load order for msgs

sfence only makes sure about the store-store order, which is not
sufficient here.  Use atomic_thread_fence_seq_cst() as suggested
jhb and kib (a locked op in the nutshell, which should have the

Reviewed by: jhb, kib, Jun Su <junsu microsoft com>
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5436

8 years agoAdd entries for Phil Shafer (phil@)
phil [Mon, 29 Feb 2016 04:50:24 +0000 (04:50 +0000)]
Add entries for Phil Shafer (phil@)

Differential Revision: https://reviews.freebsd.org/D5246
Approved by: sjg (mentor)

8 years agobuf_ring/drbr: Add buf_ring_peek_clear_sc and use it in drbr_peek
sephe [Mon, 29 Feb 2016 03:54:51 +0000 (03:54 +0000)]
buf_ring/drbr: Add buf_ring_peek_clear_sc and use it in drbr_peek

Unlike buf_ring_peek, it only supports single consumer mode, and it
clears the cons_head if DEBUG_BUFRING/INVARIANTS is defined.

The normal use case of drbr_peek for network drivers is:

m = drbr_peek(br);
err = hw_spec_encap(&m); /* could m_defrag/m_collapse */
(*)
if (err) {
    if (m == NULL)
        drbr_advance(br);
    else
        drbr_putback(br, m);
    /* break the loop */
}
drbr_advance(br);

The race is:
If hw_spec_encap() m_defrag or m_collapse the mbuf, i.e. the old mbuf
was freed, or like the Hyper-V's network driver, that transmission-
done does not even require the TX lock; then on the other CPU at the
(*) time, the freed mbuf could be recycled and being drbr_enqueue even
before the current CPU had the chance to call drbr_{advance,putback}.
This triggers a panic in drbr_enqueue duplicated element check, if
DEBUG_BUFRING/INVARIANTS is defined.

Use buf_ring_peek_clear_sc() in drbr_peek() to fix the above race.

This change is a NO-OP, if neither DEBUG_BUFRING nor INVARIANTS are
defined.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5416

8 years agoAdd support for the Freescale dTSEC DPAA-based ethernet controller.
jhibbits [Mon, 29 Feb 2016 03:38:00 +0000 (03:38 +0000)]
Add support for the Freescale dTSEC DPAA-based ethernet controller.

Freescale's QorIQ line includes a new ethernet controller, based on their
Datapath Acceleration Architecture (DPAA).  This uses a combination of a Frame
manager, Buffer manager, and Queue manager to improve performance across all
interfaces by being able to pass data directly between hardware acceleration
interfaces.

As part of this import, Freescale's Netcomm Software (ncsw) driver is imported.
This was an attempt by Freescale to create an OS-agnostic sub-driver for
managing the hardware, using shims to interface to the OS-specific APIs.  This
work was abandoned, and Freescale's primary work is in the Linux driver (dual
BSD/GPL license).  Hence, this was imported directly to sys/contrib, rather than
going through the vendor area.  Going forward, FreeBSD-specific changes may be
made to the ncsw code, diverging from the upstream in potentially incompatible
ways.  An alternative could be to import the Linux driver itself, using the
linuxKPI layer, as that would maintain parity with the vendor-maintained driver.
However, the Linux driver has not been evaluated for reliability yet, and may
have issues with the import, whereas the ncsw-based driver in this commit was
completed by Semihalf 4 years ago, and is very stable.

Other SoC modules based on DPAA, which could be added in the future:
* Security and Encryption engine (SEC4.x, SEC5.x)
* RAID engine

Additional work to be done:
* Implement polling mode
* Test vlan support
* Add support for the Pattern Matching Engine, which can do regular expression
  matching on packets.

This driver has been tested on the P5020 QorIQ SoC.  Others listed in the
dtsec(4) manual page are expected to work as the same DPAA engine is included in
all.

Obtained from: Semihalf
Relnotes: Yes
Sponsored by: Alex Perez/Inertial Computing

8 years agoFix up the ath(4) device names for QCA chipsets.
adrian [Mon, 29 Feb 2016 02:40:58 +0000 (02:40 +0000)]
Fix up the ath(4) device names for QCA chipsets.

Submitted by: Tobias Kortkamp <t@tobik.me>

8 years agoMFV r296159
pfg [Mon, 29 Feb 2016 00:15:25 +0000 (00:15 +0000)]
MFV r296159
Sync our libedit with NetBSD's libedit 2016-02-27.

Obtained from: NetBSD

8 years agourtwn: do not filter beacon frames in HOSTAP mode while scanning
avos [Mon, 29 Feb 2016 00:05:37 +0000 (00:05 +0000)]
urtwn: do not filter beacon frames in HOSTAP mode while scanning

urtwn_set_rx_bssid_all() will allow to receive beacons only
when they are not denied by filter.

Revealed by D5474.

Tested with RTL8188CUS, HOSTAP mode.

Reviewed by: kevlo
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5477

8 years agoetc/defaults/rc.conf: fix a typo (wlanddebug -> wlandebug)
avos [Sun, 28 Feb 2016 23:57:26 +0000 (23:57 +0000)]
etc/defaults/rc.conf: fix a typo (wlanddebug -> wlandebug)

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

8 years agonet80211: fix a comment for TX lock
avos [Sun, 28 Feb 2016 23:52:33 +0000 (23:52 +0000)]
net80211: fix a comment for TX lock

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

8 years agonet80211: remove redundant locking.
avos [Sun, 28 Feb 2016 23:48:34 +0000 (23:48 +0000)]
net80211: remove redundant locking.

All callers of ieee80211_promisc()/ieee80211_allmulti()
(ieee80211_vap_detach(), ieee80211_ioctl(), ap_start() and ap_end())
already hold the com_lock while calling them.

Tested with RTL8188EU, STA mode.

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

8 years agonet80211: fix 'taskqueue_drain with non-sleepable locks held' warning
avos [Sun, 28 Feb 2016 23:35:03 +0000 (23:35 +0000)]
net80211: fix 'taskqueue_drain with non-sleepable locks held' warning

Do not run ieee80211_waitfor_parent() when it's not needed.

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

8 years ago- address obsolete Kerberos options
jgh [Sun, 28 Feb 2016 21:04:04 +0000 (21:04 +0000)]
- address obsolete Kerberos options

PR: 205168
Submitted by: kevin@bostoncrypto.com
Reviewed by: bjk
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D5430

8 years agoFix typo in device description
gonzo [Sun, 28 Feb 2016 19:39:00 +0000 (19:39 +0000)]
Fix typo in device description

Spotted by: jmcneill

8 years agoImplement process-shared locks support for libthr.so.3, without
kib [Sun, 28 Feb 2016 17:52:33 +0000 (17:52 +0000)]
Implement process-shared locks support for libthr.so.3, without
breaking the ABI.  Special value is stored in the lock pointer to
indicate shared lock, and offline page in the shared memory is
allocated to store the actual lock.

Reviewed by: vangyzen (previous version)
Discussed with: deischen, emaste, jhb, rwatson,
Martin Simmons <martin@lispworks.com>
Tested by: pho
Sponsored by: The FreeBSD Foundation

8 years agoAdd Allwinner A10/A20 RTC driver.
jmcneill [Sun, 28 Feb 2016 17:42:27 +0000 (17:42 +0000)]
Add Allwinner A10/A20 RTC driver.

Submitted by: Vladimir Belian <fate10@gmail.com>
Reviewed by: andrew, imp, jmcneill
Approved by: gonzo (mentor)
Differential Revision: https://reviews.freebsd.org/D5414

8 years agoAdd SMP support to the ARM PLATFORM code. This will allow us to have
andrew [Sun, 28 Feb 2016 13:43:58 +0000 (13:43 +0000)]
Add SMP support to the ARM PLATFORM code. This will allow us to have
different methods to start the secondary cores in a kernel built for
multiple SoCs, e.g. with the Allwinner A20 and A31.

Sponsored by: ABT systems Ltd
Differential Revision: https://reviews.freebsd.org/D5466

8 years agoFix .Xr - autofs(5) is section 5, not 8.
trasz [Sun, 28 Feb 2016 10:40:09 +0000 (10:40 +0000)]
Fix .Xr - autofs(5) is section 5, not 8.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoAdd speed limit to dd(1). This is useful for testing RCTL disk io limits
trasz [Sun, 28 Feb 2016 10:27:12 +0000 (10:27 +0000)]
Add speed limit to dd(1). This is useful for testing RCTL disk io limits
(when they actually get committed, that is), and might also come in handy
in other situations.

Reviewed by: wblock@ (man page)
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoBuild ofw_cpu.c on all ARM configs using FDT. As we mve towards using the
andrew [Sun, 28 Feb 2016 09:35:37 +0000 (09:35 +0000)]
Build ofw_cpu.c on all ARM configs using FDT. As we mve towards using the
Linux dts files these are more likely to have cpu nodes we can attach to.

Sponsored by: ABT Systems Ltd

8 years agoMigrate athregs over to use the new stats API.
adrian [Sun, 28 Feb 2016 06:30:39 +0000 (06:30 +0000)]
Migrate athregs over to use the new stats API.

8 years agoMigrate athstats to use the new stats API.
adrian [Sun, 28 Feb 2016 06:29:25 +0000 (06:29 +0000)]
Migrate athstats to use the new stats API.

8 years agoBegin abstracting out the access method for ath(4) ioctls.
adrian [Sun, 28 Feb 2016 06:29:07 +0000 (06:29 +0000)]
Begin abstracting out the access method for ath(4) ioctls.

Each of the ath* commands do their own direct socket/ioctl calls,
which makes it difficult to forklift upgrade things.

So, this is the beginning of abstracting out the stats API calls
in the hope that I can migrate things to use a /dev/athX file for
ioctls and use a more general interface.

Tested:

* QCA9565 NIC, STA mode

8 years agoSort subdirectories in BSD.debug.dist
emaste [Sun, 28 Feb 2016 00:24:13 +0000 (00:24 +0000)]
Sort subdirectories in BSD.debug.dist

8 years ago- Add myself to ports-secteam
junovitch [Sat, 27 Feb 2016 23:39:59 +0000 (23:39 +0000)]
- Add myself to ports-secteam

Approved by:    delphij, miwi, feld

8 years agoFix PIO mode on A31 and later SoCs.
jmcneill [Sat, 27 Feb 2016 22:26:05 +0000 (22:26 +0000)]
Fix PIO mode on A31 and later SoCs.

Newer Allwinner MMC implementations use a different FIFO register offset
(0x200 instead of 0x100). Since the FDT uses the same compat string for
both cases, base the decision on which FIFO offset to use on the Allwinner
SoC family.

Reviewed by: Emmanuel Vadot <manu@bidouilliste.com>
Approved by: gonzo (mentor)
Differential Revision: https://reviews.freebsd.org/D5468

8 years agoRemove old compatibility checks.
bdrewery [Sat, 27 Feb 2016 21:08:27 +0000 (21:08 +0000)]
Remove old compatibility checks.

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division

8 years agoImplement pmap_change_attr() for PowerPC (Book-E only for now)
jhibbits [Sat, 27 Feb 2016 20:39:36 +0000 (20:39 +0000)]
Implement pmap_change_attr() for PowerPC (Book-E only for now)

Summary:
Some drivers need special memory requirements.  X86 solves this with a
pmap_change_attr() API, which DRM uses for changing the mapping of the GART and
other memory regions.  Implement the same function for PowerPC.  AIM currently
does not need this, but will in the future for DRM, so a default is added for
that, for business as usual.  Book-E has some drivers coming down that do
require non-default memory coherency.  In this case, the Datapath Acceleration
Architecture (DPAA) based ethernet controller has 2 regions for the buffer
portals: cache-inhibited, and cache-enabled.  By default, device memory is
cache-inhibited.  If the cache-enabled memory regions are mapped
cache-inhibited, an alignment exception is thrown on access.

Test Plan:
Tested with a new driver to be added after this (DPAA dTSEC ethernet driver).
No alignment exceptions thrown, driver works as expected with this.

Reviewed By: nwhitehorn
Sponsored by: Alex Perez/Inertial Computing
Differential Revision: https://reviews.freebsd.org/D5471

8 years agoMove another range check to use RMAN_IS_DEFAULT_RANGE().
jhibbits [Sat, 27 Feb 2016 16:27:48 +0000 (16:27 +0000)]
Move another range check to use RMAN_IS_DEFAULT_RANGE().

8 years agoRemove reaming files of the Casper daemon.
oshogbo [Sat, 27 Feb 2016 14:45:32 +0000 (14:45 +0000)]
Remove reaming files of the Casper daemon.

Reported by:    emaste
Approved by: pjd (mentor)

8 years agoCorrect date on ELF Tool Chain UPDATING entry
emaste [Sat, 27 Feb 2016 12:34:51 +0000 (12:34 +0000)]
Correct date on ELF Tool Chain UPDATING entry

Reported by: dhw

8 years agoMove IPI related parts back to (ARM) machine specific file now, when
skra [Sat, 27 Feb 2016 12:03:07 +0000 (12:03 +0000)]
Move IPI related parts back to (ARM) machine specific file now, when
the interrupt framework is also going to be used by another (MIPS)
architecture. IPI implementations may vary much across different
architectures.

An IPI implementation should still define INTR_IPI_COUNT and use
intr_ipi_setup_counters() to setup IPI counters which are inside of
intrcnt[] and intrnames[] arrays. Those are used for sysctl and ddb.
Then, intr_ipi_increment_count() should be used to increment obtained
counter.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D5459

8 years agoMigrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().
jhibbits [Sat, 27 Feb 2016 03:38:01 +0000 (03:38 +0000)]
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().

Most calls to bus_alloc_resource() use "anywhere" as the range, with a given
count.  Migrate these to use the new bus_alloc_resource_anywhere() API.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D5370

8 years agoAdd the bus_alloc_resource_anywhere() convenience function.
jhibbits [Sat, 27 Feb 2016 03:35:28 +0000 (03:35 +0000)]
Add the bus_alloc_resource_anywhere() convenience function.

Summary:
Many instances of bus_alloc_resource() simply use 0 and ~0 for start and end to
denote 'anywhere' with a given count.  To clean this up, introduce a
bus_alloc_resource_anywhere() convenience function.

Bump __FreeBSD_version for the new API.

Reviewed By: jhb
Differential Revision: https://reviews.freebsd.org/D5370

8 years agoReplace several bus_alloc_resource() calls with bus_alloc_resource_any()
jhibbits [Sat, 27 Feb 2016 03:34:01 +0000 (03:34 +0000)]
Replace several bus_alloc_resource() calls with bus_alloc_resource_any()

Most of these are BARs, and we allocate them in their entirety.  The one outlier
in this is amdsbwd, which calls bus_set_resource() prior.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D5370 (partial)

8 years agoMissing tab.
pfg [Sat, 27 Feb 2016 02:11:00 +0000 (02:11 +0000)]
Missing tab.

Pointed out by: bapt

8 years agoRPC: update the getrpcbyname() definition to include a const qualifier.
pfg [Fri, 26 Feb 2016 23:25:21 +0000 (23:25 +0000)]
RPC: update the getrpcbyname() definition to include a const qualifier.

Add const qualifier making getrpcbyname() and getrpcbyname_r()
prototypes match those used in latest Sun RPC code (TI-RPC 2.3).

Obtained from: NetBSD

8 years agopciconf: Silence a GCC warning.
pfg [Fri, 26 Feb 2016 23:12:59 +0000 (23:12 +0000)]
pciconf: Silence a GCC warning.

Fix the build on sparc64 and powerpc.

Taken from: wma

8 years agoRestore lib/casper debug directory, reverting r296130
emaste [Fri, 26 Feb 2016 22:25:35 +0000 (22:25 +0000)]
Restore lib/casper debug directory, reverting r296130

Reported by: bdrewery
Pointy hat to: emaste

8 years agoRemove libexec/casper debug directory missed in r296047
emaste [Fri, 26 Feb 2016 22:19:39 +0000 (22:19 +0000)]
Remove libexec/casper debug directory missed in r296047

8 years agoRemove WARNS inherited fine by ../Makefile.inc.
bdrewery [Fri, 26 Feb 2016 22:14:23 +0000 (22:14 +0000)]
Remove WARNS inherited fine by ../Makefile.inc.

Sponsored by: EMC / Isilon Storage Division

8 years agoMake it clear that the "size" argument is for the dst string.
bdrewery [Fri, 26 Feb 2016 22:14:19 +0000 (22:14 +0000)]
Make it clear that the "size" argument is for the dst string.

The rest of the manpage already referenced 'dstsize' but did not rename
the variable in the prototype in r257646.

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division

8 years agoUpdate dependencies.
bdrewery [Fri, 26 Feb 2016 22:14:15 +0000 (22:14 +0000)]
Update dependencies.

Sponsored by: EMC / Isilon Storage Division

8 years agoRemove unneeded lines.
bdrewery [Fri, 26 Feb 2016 22:14:08 +0000 (22:14 +0000)]
Remove unneeded lines.

- WARNS can be inherited from lib/Makefile.inc
- CFLAGS referred to a non-existent directory and this shouldn't be needed
  anyhow due to the build picking up includes from WORLDTMP.

Sponsored by: EMC / Isilon Storage Division

8 years agoThese can build in parallel.
bdrewery [Fri, 26 Feb 2016 22:14:04 +0000 (22:14 +0000)]
These can build in parallel.

Sponsored by: EMC / Isilon Storage Division

8 years agoImport bsd.clang-analyze.mk based on NetBSD's version.
bdrewery [Fri, 26 Feb 2016 22:14:00 +0000 (22:14 +0000)]
Import bsd.clang-analyze.mk based on NetBSD's version.

This allows 'make analyze' or 'make OBJ.clang-analyzer' to run the
Clang static analyzer and present results on stdout.

Obtained from: NetBSD (CVS Rev. 1.3)
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D5449

8 years agoMETA_MODE: Default to the silent build.
bdrewery [Fri, 26 Feb 2016 22:13:56 +0000 (22:13 +0000)]
META_MODE: Default to the silent build.

Sponsored by: EMC / Isilon Storage Division

8 years agoMove PROGS logic to proper place and remove redundant and unneeded logic.
bdrewery [Fri, 26 Feb 2016 22:13:52 +0000 (22:13 +0000)]
Move PROGS logic to proper place and remove redundant and unneeded logic.

- bsd.progs.mk is safe to include regardless of PROGS/PROGS_CXX/SCRIPTS
  being set.
- bsd.progs.mk includes bsd.prog.mk always and will bring in
  bsd.files.mk and bsd.obj.mk.
- DIRDEPS_BUILD: There's no need for _SKIP_BUILD or _SKIP_STAGING as the
  PROGS were implicitly being built by the staging dependency anyway.  This
  was also preventing other objects from building if they were not part of
  the staging sets.
- DIRDEPS_BUILD: This fixes PROGS without bsd.test.mk not staging.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agoDIRDEPS_BUILD: Fix some things building in MAKELEVEL0.
bdrewery [Fri, 26 Feb 2016 22:13:48 +0000 (22:13 +0000)]
DIRDEPS_BUILD: Fix some things building in MAKELEVEL0.

For PROGS this was recursing twice since MAKELEVEL0 is for 'dirdeps'
which then really builds in a sub-make.

Sponsored by: EMC / Isilon Storage Division

8 years agoFollow-up r295991: Only allow 'make destroy*' to include bsd.obj.mk.
bdrewery [Fri, 26 Feb 2016 22:13:45 +0000 (22:13 +0000)]
Follow-up r295991: Only allow 'make destroy*' to include bsd.obj.mk.

Sponsored by: EMC / Isilon Storage Division

8 years agoTrack .meta files for .sh but don't preserve timestamp.
bdrewery [Fri, 26 Feb 2016 22:13:42 +0000 (22:13 +0000)]
Track .meta files for .sh but don't preserve timestamp.

See r291320 for more information.

Sponsored by: EMC / Isilon Storage Division

8 years agoAllow configuring .MAKE.MODE via META_MODE as meta.sys.mk does.
bdrewery [Fri, 26 Feb 2016 22:13:38 +0000 (22:13 +0000)]
Allow configuring .MAKE.MODE via META_MODE as meta.sys.mk does.

meta.sys.mk is only used for the DIRDEPS_BUILD.

Sponsored by: EMC / Isilon Storage Division

8 years agoRemove more references to targets we've never had.
bdrewery [Fri, 26 Feb 2016 22:13:35 +0000 (22:13 +0000)]
Remove more references to targets we've never had.

Sponsored by: EMC / Isilon Storage Division

8 years agoRemove _manpages and _maninstall targets as they are no longer needed.
bdrewery [Fri, 26 Feb 2016 22:13:31 +0000 (22:13 +0000)]
Remove _manpages and _maninstall targets as they are no longer needed.

r96164 added them to avoid recursing twice with _SUBDIR.  That issue was
fixed in bsd.subdir.mk in r291635 for all targets.

Sponsored by: EMC / Isilon Storage Division

8 years agonet80211: fix 'uma_zalloc_arg: zone "32" with non-sleepable locks held'
avos [Fri, 26 Feb 2016 20:47:08 +0000 (20:47 +0000)]
net80211: fix 'uma_zalloc_arg: zone "32" with non-sleepable locks held'
when 'sysctl net.wlan.devices' is executed.

PR: 207497
Submitted by: glebius
Approved by: adrian (mentor)

8 years agoMake unions in PowerPC libc endian-safe.
nwhitehorn [Fri, 26 Feb 2016 20:38:23 +0000 (20:38 +0000)]
Make unions in PowerPC libc endian-safe.

8 years agoFix inverted test for lock status while waiting for PLL to become stable.
jmcneill [Fri, 26 Feb 2016 20:33:32 +0000 (20:33 +0000)]
Fix inverted test for lock status while waiting for PLL to become stable.

Reviewed by: andrew
Approved by: adrian (mentor)

8 years agoMake FPSCR definition endian clean.
nwhitehorn [Fri, 26 Feb 2016 20:25:26 +0000 (20:25 +0000)]
Make FPSCR definition endian clean.

PR: 207526
Submitted by: Simon Byrne
Obtained from: Julia
MFC after: 1 month

8 years agorlogin(1): Replace select(2) with poll(2).
pfg [Fri, 26 Feb 2016 20:02:01 +0000 (20:02 +0000)]
rlogin(1): Replace select(2) with poll(2).

Obtanied from: NetBSD (CVS Rev. 1.27 - 1.28)

8 years agoAdd debug /libexec directory for rtld-elf debug files
emaste [Fri, 26 Feb 2016 19:49:04 +0000 (19:49 +0000)]
Add debug /libexec directory for rtld-elf debug files

8 years agogetty(8): Undo incomplete support VEOL2 and VSTATUS.
pfg [Fri, 26 Feb 2016 19:35:51 +0000 (19:35 +0000)]
getty(8): Undo incomplete support VEOL2 and VSTATUS.

Forgot to add some definitions for charnames[].

8 years agogetty(8): Support VEOL2 and VSTATUS
pfg [Fri, 26 Feb 2016 19:08:37 +0000 (19:08 +0000)]
getty(8): Support VEOL2 and VSTATUS

Bring some type cleanups while here.

Obtained from: NetBSD

8 years agoMake the CUBIEBOARD config include the A10 config with a few needed
andrew [Fri, 26 Feb 2016 18:54:26 +0000 (18:54 +0000)]
Make the CUBIEBOARD config include the A10 config with a few needed
additions. This is used by the release scripts so we need to keep it
around for now.

Sponsored by: ABT Systems Ltd