SVNews

NOTE: This service is experimental and subject to change! Use at your own risk!

Year:   Month: - or - Filter committers: - or -
Filter paths:
Include diffs if smaller than lines.

2015 - 05 - 25   (today)
20:44:46 - r283544
( 36 minutes ago)
by dchagin
Affects:  /head/sys/amd64/linux32/linux32_machdep.c
/head/sys/compat/linux/linux_emul.c
/head/sys/i386/linux/linux_machdep.c
When I merged the lemul branch I missied kib@'s r282708 commit.
This is not the final fix as I need properly cleanup thread resources
before other threads suicide.

Tested by:      Ruslan Makhmatkhanov
20:29:36 - r283543
( 51 minutes ago)
by bapt
Affects:  /head/gnu/lib/Makefile
ntp is now again libreadline free, so only build libreadline for gdb
20:27:46 - r283542
( 53 minutes ago)
by bapt
Affects: 
(8 files)
/head/usr.sbin/ntp/*
Fix overlinking again after recent ntp updates
Fix building WITHOUT_OPENSSL
20:06:49 - r283541
(1 hour 14 minutes ago)
by glebius
Affects: 
(8 files)
/head/sys/net80211/*
Cleanup compat shims for FreeBSD versions that predate 10.0-RELEASE.
There are no plans to merge anything save a trivial bugfix to stable/9.

Discussed with: adrian
19:53:29 - r283540
(1 hour 27 minutes ago)
by glebius
Affects: 
(25 files)
/head/sys/dev/*
/head/sys/net80211/*
Change three methods in struct ieee80211com, namely ic_updateslot,
ic_update_mcast and ic_update_promisc, to pass pointer to the ieee80211com,
not to the ifnet.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
19:48:48 - r283539
(1 hour 32 minutes ago)
by glebius
Affects:  /head/sys/net80211/ieee80211_freebsd.c
When sending RTM_IEEE80211_CSA, RTM_IEEE80211_RADAR, RTM_IEEE80211_CAC and
RTM_IEEE80211_RADIO routing messages, broadcast them on all vap interfaces
instead of sending them on parent.

Reviewed by:    adrian
Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
19:18:16 - r283538
(2 hours 3 minutes ago)
by adrian
Affects: 
(24 files)
/head/sys/net80211/*
Convert malloc/free back to #define's, as part of OS portability work.

DragonflyBSD uses the FreeBSD wireless stack and drivers.  Their malloc()
API is named differently, so they don't have userland/kernel symbol
clashes like we do (think libuinet.)

So, to make it easier for them and to port to other BSDs/other operating
systems, start hiding the malloc specific bits behind defines in
ieee80211_freebsd.h.

DragonflyBSD can now put these portability defines in their local
ieee80211_dragonflybsd.h.

This should be a great big no-op for everyone running wifi.

TODO:

* kill M_WAITOK - some platforms just don't want you to use it
* .. and/or handle it returning NULL rather than waiting forever.
* MALLOC_DEFINE() ?
* Migrate the well-known malloc names (eg M_TEMP) to net80211
  namespace defines.
18:50:26 - r283537
(2 hours 31 minutes ago)
by glebius
Affects: 
(23 files)
/head/sys/dev/*
Set ic_softc in all 802.11 drivers. Not required right now, but will be
used quite soon.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
17:06:52 - r283536
(4 hours 14 minutes ago)
by adrian
Affects:  /head/sys/dev/wpi/if_wpi.c
/head/sys/dev/wpi/if_wpivar.h
Update wpi(4) to use the new mgmt RX API.
16:37:41 - r283535
(4 hours 43 minutes ago)
by adrian
Affects: 
(18 files)
/head/sys/dev/*
/head/sys/net80211/*
Begin plumbing ieee80211_rx_stats through the receive path.

Smart NICs with firmware (eg wpi, iwn, the new atheros parts, the intel 7260
series, etc) support doing a lot of things in firmware.  This includes but
isn't limited to things like scanning, sending probe requests and receiving
probe responses.  However, net80211 doesn't know about any of this - it still
drives the whole scan/probe infrastructure itself.

In order to move towards suppoting smart NICs, the receive path needs to
know about the channel/details for each received packet.  In at least
the iwn and 7260 firmware (and I believe wpi, but I haven't tried it yet)
it will do the scanning, power-save and off-channel buffering for you -
all you need to do is handle receiving beacons and probe responses on
channels that aren't what you're currently on.  However the whole receive
path is peppered with ic->ic_curchan and manual scan/powersave handling.
The beacon parsing code also checks ic->ic_curchan to determine if the
received beacon is on the correct channel or not.[1]

So:

* add freq/ieee values to ieee80211_rx_stats;
* change ieee80211_parse_beacon() to accept the 'current' channel
  as an argument;
* modify the iv_input() and iv_recv_mgmt() methods to include the rx_stats;
* add a new method - ieee80211_lookup_channel_rxstats() - that looks up
  a channel based on the contents of ieee80211_rx_stats;
* if it exists, use it in the mgmt path to switch the current channel
  (which still defaults to ic->ic_curchan) over to something determined
  by rx_stats.

This is enough to kick-start scan offload support in the Intel 7260
driver that Rui/I are working on.  It also is a good start for scan
offload support for a handful of existing NICs (wpi, iwn, some USB
parts) and it'll very likely dramatically improve stability/performance
there.  It's not the whole thing - notably, we don't need to do powersave,
we should not scan all channels, and we should leave probe request sending
to the firmware and not do it ourselves.  But, this allows for continued
development on the above features whilst actually having a somewhat
working NIC.

TODO:

* Finish tidying up how the net80211 input path works.
  Right now ieee80211_input / ieee80211_input_all act as the top-level
  that everything feeds into; it should change so the MIMO input routines
  are those and the legacy routines are phased out.

* The band selection should be done by the driver, not by the net80211
  layer.

* ieee80211_lookup_channel_rxstats() only determines 11b or 11g channels
  for now - this is enough for scanning, but not 100% true in all cases.
  If we ever need to handle off-channel scan support for things like
  static-40MHz or static-80MHz, or turbo-G, or half/quarter rates,
  then we should extend this.

[1] This is a side effect of frequency-hopping and CCK modes - you
    can receive beacons when you think you're on a different channel.
    In particular, CCK (which is used by the low 11b rates, eg beacons!)
    is decodable from adjacent channels - just at a low SNR.
    FH is a side effect of having the hardware/firmware do the frequency
    hopping - it may pick up beacons transmitted from other FH networks
    that are in a different phase of hopping frequencies.
15:18:32 - r283534
(6 hours 2 minutes ago)
by avg
Affects:  /vendor-sys/illumos/dist/uts/common/fs/zfs/zfs_ioctl.c
5515 dataset user hold doesn't reject empty tags

Author: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Approved by: Matthew Ahrens <mahrens@delphix.com>

illumos/illumos-gate@752fd8dabccac68d6d09f82f3bf3561e055e400b
15:12:23 - r283533
(6 hours 9 minutes ago)
by glebius
Affects:  /head/sys/dev/iwn/if_iwn.c
Use ic_printf() instead of if_printf().
15:09:17 - r283532
(6 hours 12 minutes ago)
by glebius
Affects:  /head/sys/dev/iwn/if_iwn.c
Store softc in ic_softc and access it without using struct ifnet.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
15:08:38 - r283531
(6 hours 12 minutes ago)
by glebius
Affects:  /head/sys/net80211/ieee80211_var.h
Add void * member to struct ieee80211com, so that drivers can obtain their
softc without going through the struct ifnet.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
14:54:10 - r283530
(6 hours 27 minutes ago)
by glebius
Affects:  /head/sys/net80211/ieee80211_radiotap.c
Remove unused include.
14:30:44 - r283529
(6 hours 50 minutes ago)
by glebius
Affects: 
(10 files)
/head/sys/net80211/*
Use name from ieee80211com instead of parent ifnet, in debugging printfs.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
14:12:50 - r283528
(7 hours 8 minutes ago)
by glebius
Affects:  /head/sys/dev/ipw/if_ipw.c
Don't compare array to NULL.

Found by:       clang
13:51:13 - r283527
(7 hours 30 minutes ago)
by glebius
Affects: 
(27 files)
/head/sys/dev/*
/head/sys/net80211/ieee80211_var.h
Make net80211 drivers supply their device name to the net80211 layer, so
that the latter doesn't need to go through struct ifnet to get their name.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
13:43:03 - r283526
(7 hours 38 minutes ago)
by dim
Affects: 
(121 files)
/head/*
Upgrade our copy of clang and llvm to 3.6.1 release.

This release contains the following cherry-picked revisions from
upstream trunk:

  226124 226151 226164 226165 226166 226407 226408 226409 226652
  226905 226983 227084 227087 227089 227208 227209 227210 227211
  227212 227213 227214 227269 227430 227482 227503 227519 227574
  227822 227986 227987 227988 227989 227990 228037 228038 228039
  228040 228188 228189 228190 228273 228372 228373 228374 228403
  228765 228848 228918 229223 229225 229226 229227 229228 229230
  229234 229235 229236 229238 229239 229413 229507 229680 229750
  229751 229752 229911 230146 230147 230235 230253 230255 230469
  230500 230564 230603 230657 230742 230748 230956 231219 231237
  231245 231259 231280 231451 231563 231601 231658 231659 231662
  231984 231986 232046 232085 232142 232176 232179 232189 232382
  232386 232389 232425 232438 232443 232675 232786 232797 232943
  232957 233075 233080 233351 233353 233409 233410 233508 233584
  233819 233904 234629 234636 234891 234975 234977 235524 235641
  235662 235931 236099 236306 236307

Please note that from 3.5.0 onwards, clang and llvm require C++11
support to build; see UPDATING for more information.
11:56:57 - r283525
(9 hours 24 minutes ago)
by avg
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
zfs: fixes for a full stream received into an existing dataset

- this should fail early unless the force flag is set
- if the force flag is set then any local modifications including
  snapshots should be undone

See:    https://www.illumos.org/issues/5912
See:    https://reviews.csiden.org/r/220/

Reviewed by:    mahrens, Paul Dagnelie <pcd@delphix.com>
MFC after:      15 days
Sponsored by:   ClusterHQ
11:48:15 - r283524
(9 hours 33 minutes ago)
by avg
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c
dsl_dataset_promote_check: ensure that shared snaps do not become too long

... after they are transfered from the old origin to the new one.

See:    https://www.illumos.org/issues/5909
See:    https://reviews.csiden.org/r/219/

Reviewed by:    mahrens
MFC after:      10 days
Sponsored by:   ClusterHQ
11:36:14 - r283523
(9 hours 45 minutes ago)
by avg
Affects: 
(4 files)
/stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_znode.h
/stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
MFC r282475: zfs: do not hold an extra reference on a root vnode
11:35:27 - r283522
(9 hours 46 minutes ago)
by avg
Affects: 
(3 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_znode.h
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
MFC r282475: zfs: do not hold an extra reference on a root vnode
11:33:57 - r283521
(9 hours 47 minutes ago)
by avg
Affects: 
(3 files)
/stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
MFC r282473: dmu_recv_end_check: don't leak hold if
dsl_destroy_snapshot_check_impl fails
11:33:45 - r283520
(9 hours 47 minutes ago)
by avg
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
MFC r282473: dmu_recv_end_check: don't leak hold if
dsl_destroy_snapshot_check_impl fails
11:32:10 - r283519
(9 hours 49 minutes ago)
by avg
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
MFC r282632: MFV r282630: 5809 Blowaway full receive in v1 pool causes kernel
panic
11:30:36 - r283518
(9 hours 50 minutes ago)
by avg
Affects: 
(3 files)
/stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
MFC r282632: MFV r282630: 5809 Blowaway full receive in v1 pool causes kernel
panic
10:51:40 - r283517
(10 hours 29 minutes ago)
by markm
Affects:  /head/gnu/lib/Makefile
Unbreak build where WANT_GDB == "no', as libreadline is also used by ntpdc.
09:47:16 - r283516
(11 hours 34 minutes ago)
by royger
Affects:  /head/sys/x86/xen/xenpv.c
xen: make sure xenpv bus is the last to attach

This is needed so other buses have a chance of attaching a real ISA bus, if
none is found xenpv will attach it.

Sponsored by: Citrix Systems R&D
09:08:19 - r283515
(12 hours 13 minutes ago)
by kib
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
Remove excess Giant acquisition around the dounmount() call.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
08:34:55 - r283514
(12 hours 46 minutes ago)
by arybchik
Affects: 
(73 files)
/head/share/man/man4/sfxge.4
/head/sys/*
sfxge: add 7xxx NICs family support

Support 7xxx adapters including firmware-assisted TSO and VLAN tagging:

  - Solarflare Flareon Ultra 7000 series 10/40G adapters:
    - Solarflare SFN7042Q QSFP+ Server Adapter
    - Solarflare SFN7142Q QSFP+ Server Adapter

  - Solarflare Flareon Ultra 7000 series 10G adapters:
    - Solarflare SFN7022F SFP+ Server Adapter
    - Solarflare SFN7122F SFP+ Server Adapter
    - Solarflare SFN7322F Precision Time Synchronization Server Adapter

  - Solarflare Flareon 7000 series 10G adapters:
    - Solarflare SFN7002F SFP+ Server Adapter

Support utilities to configure adapters and update firmware.

The work is done by Solarflare developers
(Andy Moreton, Andrew Lee and many others),
Artem V. Andreev <Artem.Andreev at oktetlabs.ru> and me.

Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 weeks
Causually read by: gnn
Differential Revision: https://reviews.freebsd.org/D2618
02:32:30 - r283513
(18 hours 48 minutes ago)
by markj
Affects:  /vendor-sys/illumos/dist/uts/common/dtrace/fasttrap.c
5930 fasttrap_pid_enable() panics when prfind() fails in forking process
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Bryan Cantrill <bryan@joyent.com>

illumos/illumos-gate@9df7e4e12eb093557252d3bec029b5c382613e36
02:30:54 - r283512
(18 hours 50 minutes ago)
by markj
Affects:  /vendor-sys/illumos/dist/uts/common/dtrace/dtrace.c
3599 dtrace_dynvar tail calls can blow stack
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Bryan Cantrill <bryan@joyent.com>

illumos/illumos-gate@d47448f09aae3aa1a87fc450a0c44638e7ce7b51
01:31:39 - r283511
(19 hours 49 minutes ago)
by markj
Affects:  /head/sys/opencrypto/cryptodeflate.c
Use the correct number of arguments for the
opencrypto:deflate:deflate_global:bad DTrace probe, which is defined to
have

MFC after:      1 week
01:29:45 - r283510
(19 hours 51 minutes ago)
by ian
Affects: 
(6 files)
/stable/10/sys/arm/arm/machdep.c
/stable/10/sys/boot/*
MFC r283033, r283062, r283066, r283069:

  Do not set preload_addr_relocate for ARM.

  Refactor net_getparams() to make it easier to get params from sources other
  than bootp and rarp.

  Add a routine to obtain netboot parameters from the U-Boot env vars

  Enable the NETIF_OPEN_CLOSE_ONCE option for ubldr.
01:22:56 - r283509
(19 hours 58 minutes ago)
by markj
Affects:  /head/sys/cddl/dev/dtrace/amd64/dtrace_asm.S
/head/sys/cddl/dev/dtrace/i386/dtrace_asm.S
Remove unused references to calltrap.

MFC after:      3 days
01:18:46 - r283508
(20 hours 2 minutes ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/cmd/lockstat/lockstat.1
/head/cddl/contrib/opensolaris/cmd/lockstat/lockstat.c
lockstat(1): document the -V option.

MFC after:      3 days
01:09:18 - r283507
(20 hours 12 minutes ago)
by markj
Affects:  /head/share/man/man9/sleep.9
Remove a reference to the PBDRY flag, which itself was removed in r248470.

MFC after:      3 days
01:07:55 - r283506
(20 hours 13 minutes ago)
by rodrigc
Affects: 
(4 files)
/head/sys/conf/*
/head/sys/modules/*
For objcopy, use --input-target and --output-target

When building with gcc 4.9 and binutils 2.25,
using '--input' and '--output' returns an error
message:
   objcopy: option `--input' is ambiguous

Reported by:  Jenkins
01:06:55 - r283505
(20 hours 14 minutes ago)
by ian
Affects: 
(10 files)
/stable/10/sys/boot/arm/uboot/*
/stable/10/sys/boot/common/*
/stable/10/sys/boot/uboot/*
MFC r277962, r277988, r282661, r282727, r282731, r283013, r283035:

  Add support for booting relocatable kernels on PowerPC.

  Add code to support loading relocatable kernels at offsets that are
  not zero.

  Move ubldr text section to the start of the output file, so that when you
  create a stripped .bin file from it the entry point is the first byte of
  the file.  (Will allow "load $addr $file ; go $addr" in u-boot.)

  Create a relocatable instance of ubldr for ARM (ubldr.bin).

  Re-link ubldr when any of its libraries change.

  An ARM kernel can be loaded at any 2MB boundary, make ubldr aware of that.
00:30:26 - r283504
(20 hours 51 minutes ago)
by sbruno
Affects: 
(2 files)
/stable/10/sys/dev/e1000/if_em.c
MFC r283290

Bump rx_overruns when indicated by the ICR mask.

PR:             199716
Sponsored by:   Limelight Networks
2015 - 05 - 24   (yesterday)
23:53:10 - r283503
(21 hours 28 minutes ago)
by gonzo
Affects: 
(5 files)
/head/sys/arm/ti/am335x/am335x_lcd.c
/head/sys/dev/fdt/*
/head/sys/dev/ofw/*
Rename fdt_find_child to ofw_bus_find_child. There is nothing FDT-specific
in this function.

Suggested by: andrew@
23:19:47 - r283502
(22 hours 1 minute ago)
by ngie
Affects:  /head/lib/Makefile
Remove SUBDIR_DEPEND for non-existent libreadline directory

libreadline lives under gnu/lib

MFC after: 1 week
19:00:46 - r283501
(1 day 2 hours ago)
by ian
Affects: 
(5 files)
/stable/10/sys/arm/freescale/imx/*
MFC r282516:

  Add the code necessary to run the imx6 chip at its lowest clock/power
  operating point (396MHz/950mV).
18:59:45 - r283500
(1 day 2 hours ago)
by ian
Affects: 
(15 files)
/stable/10/sys/arm/conf/APALIS-IMX6
/stable/10/sys/arm/freescale/imx/*
/stable/10/sys/boot/fdt/dts/arm/*
MFC r268838, r277644:

  Add support for Toradex Apalis i.MX6 development board.

  Add support for imx6 audio transmitting, include drivers for:
  o Digital Audio Multiplexer (AUDMUX)
  o Smart Direct Memory Access Controller (SDMA)
  o Synchronous Serial Interface (SSI)
18:23:57 - r283499
(1 day 2 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/arm/cpufunc_asm_armv7.S
MFC r282418:

  On an icache sync by address/len, round the length up if the operation
  spans a cacheline boundary.
18:14:39 - r283498
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_time.c
Linux nanosleep() and clock_nanosleep() system calls always
writes the remaining time into the structure pointed to by rmtp
unless rmtp is NULL. The value of *rmtp can then be used to call
nanosleep() again and complete the specified pause if the previous
call was interrupted.

Note. clock_nanosleep() with an absolute time value does not write
the remaining time.

While here fix whitespaces and typo in SDT_PROBE.
18:13:21 - r283497
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_socket.c
/head/sys/compat/linux/linux_socket.h
Convert SCM_TIMESTAMP in recvmsg().
18:12:04 - r283496
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_ioctl.c
/head/sys/compat/linux/linux_ioctl.h
The latest cp tool is trying to use the btrfs clone operation that is
implemented via ioctl interface. First of all return ENOTSUP for this
operation as a cp fallback to usual method in that case. Secondly, do
not print out the message about unimplemented operation.
18:11:22 - r283495
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/fs/pseudofs/pseudofs.c
/head/sys/modules/pseudofs/Makefile
Hide vfs.pfs.trace variable if it is not used.
18:10:07 - r283494
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_socket.c
Fix an mbuf(9) leak in sendmsg() under failure condition and
remove unneeded check for failed M_WAITOK allocation.

Found by: Brainy Code Scanner
Reported by: Maxime Villard
18:09:01 - r283493
(1 day 3 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283492.
18:08:01 - r283492
(1 day 3 hours ago)
by dchagin
Affects: 
(7 files)
/head/sys/amd64/*
/head/sys/compat/linux/linux_stats.c
/head/sys/i386/linux/*
Implement Linux specific syncfs() system call.
18:06:46 - r283491
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_misc.c
Properly check tv_nsec value. The tv_nsec field can also be one
of the special value UTIME_NOW or UTIME_OMIT.
18:06:12 - r283490
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_socket.c
Since FreeBSD supports SOCK_CLOEXEC & SOCK_NONBLOCK options
remove its emulation via fcntl call from Linuxulator.
18:05:21 - r283489
(1 day 3 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283488.
18:04:04 - r283488
(1 day 3 hours ago)
by dchagin
Affects: 
(8 files)
/head/sys/amd64/*
/head/sys/compat/linux/*
/head/sys/i386/linux/*
Implement recvmmsg() and sendmmsg() system calls.
18:03:14 - r283487
(1 day 3 hours ago)
by dchagin
Affects: 
(4 files)
/head/sys/amd64/*
/head/sys/compat/linux/linux_socket.h
/head/sys/i386/linux/linux.h
Reduce duplication between MD Linux code by moving msg related
struct definitions out into the compat/linux/linux_socket.h
18:02:17 - r283486
(1 day 3 hours ago)
by dchagin
Affects: 
(10 files)
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283484.
18:00:29 - r283485
(1 day 3 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/dev/fdt/fdt_pinctrl.c
MFC r281371: Use OF_getencpropalloc() to handle endianess of the properties.
18:00:14 - r283484
(1 day 3 hours ago)
by dchagin
Affects: 
(6 files)
/head/sys/amd64/*
/head/sys/compat/linux/linux_event.c
/head/sys/i386/linux/*
Implement epoll_pwait() system call.
17:59:17 - r283483
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_ioctl.c
Convert signal number to native for VT_SETMODE ioctl and remove
strange and invalid ISSIGVALID macro.
The code has not been tested right way but it was originally broken.
17:58:24 - r283482
(1 day 3 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283480.
17:57:29 - r283481
(1 day 3 hours ago)
by ian
Affects: 
(4 files)
/stable/10/sys/dev/uart/uart_bus_fdt.c
/stable/10/sys/dev/uart/uart_cpu_fdt.c
/stable/10/sys/dev/uart/uart_cpu_fdt.h
MFC r281073, r281074, r281077, r281200:

  Use OF_getencprop over OF_getprop and fdt32_to_cpu. The latter may give
  us the wrong data in the failure case if shift was not zero.

  Remove the extra copy of uart_fdt_get_clock and uart_fdt_get_shift. While
  here also use OF_getencprop in uart_fdt_get_clock.

  Move uart_fdt_get_clock and uart_fdt_get_shift to uart_bus_fdt.c, we may
  not build uart_cpu_fdt.c in all configs.

  Fix uart_fdt_get_clock. It should have been using the cell variable passed
  in, not value on the stack.
17:57:07 - r283480
(1 day 3 hours ago)
by dchagin
Affects: 
(8 files)
/head/sys/amd64/*
/head/sys/compat/linux/*
/head/sys/i386/linux/*
Add utimensat() system call.

The patch developed by Jilles Tjoelker and Andrew Wilcox and
adopted for lemul branch by me.
17:56:02 - r283479
(1 day 3 hours ago)
by dchagin
Affects: 
(8 files)
/head/sys/*
The kernel sends signals to the processes via ABI specific sv_sendsig method.
Native ABI do not need signal conversion, only emulators may want this. Usually
emulators implements its own sv_sendsig method. For now only ibcs2 emulator does
not have own sv_sendsig implementation and depends on native sendsig() method.
So, remove any extra attempts to convert signal numbers from native sendsig()
methods except from i386 where ibsc2 is living.
17:53:48 - r283478
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linprocfs/linprocfs.c
Simplify linprocfs_doprocenviron(). Remove extra proc visibility checks
and initialize pn_vis by well known procfs_candebug().
17:51:57 - r283477
(1 day 3 hours ago)
by ian
Affects: 
(6 files)
/stable/10/sys/conf/files.powerpc
/stable/10/sys/dev/fdt/*
/stable/10/sys/dev/ofw/*
MFC r279368, r280772, r280848:

  Allow creating subclass of FDT simplebus

  Make simplebus a base class of ofwbus.

  Fix bug in xrefinfo_find() for 64-bit platforms
17:49:09 - r283476
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_timer.c
Convert Linux signal number to the FreeBSD.
17:48:34 - r283475
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linprocfs/linprocfs.c
Convert Linux sigsets before showing.
Linux kernel displays sigset always as 16x4 bit mask.
17:47:20 - r283474
(1 day 3 hours ago)
by dchagin
Affects: 
(20 files)
/head/sys/*
Rework signal code to allow using it by other modules, like linprocfs:

1. Linux sigset always 64 bit on all platforms. In order to move Linux
sigset code to the linux_common module define it as 64 bit int. Move
Linux sigset manipulation routines to the MI path.

2. Move Linux signal number definitions to the MI path. In general, they
are the same on all platforms except for a few signals.

3. Map Linux RT signals to the FreeBSD RT signals and hide signal conversion
tables to avoid conversion errors.

4. Emulate Linux SIGPWR signal via FreeBSD SIGRTMIN signal which is outside
of allowed on Linux signal numbers.

PR:             197216
17:46:04 - r283473
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linprocfs/linprocfs.c
Add support for /proc/<pid>/auxv.
17:44:42 - r283472
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linprocfs/linprocfs.c
Add vdso and stack names to the /proc/self/maps.
17:44:08 - r283471
(1 day 3 hours ago)
by dchagin
Affects: 
(8 files)
/head/sys/amd64/*
/head/sys/compat/linux/*
/head/sys/i386/linux/*
According to Linux man sigaltstack(3) shall return EINVAL if the ss
argument is not a null pointer, and the ss_flags member pointed to by ss
contains flags other than SS_DISABLE. However, in fact, Linux also
allows SS_ONSTACK flag which is simply ignored.

For buggy apps (at least mono) ignore other than SS_DISABLE
flags as a Linux do.

While here move MI part of sigaltstack code to the appropriate place.

Reported by:    abi at abinet dot ru
17:42:45 - r283470
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_event.c
/head/sys/compat/linux/linux_event.h
Add EPOLLERR flag handling to epoll.

Tested by:      abi at abinet dot ru
17:40:14 - r283469
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_event.c
As fo_fill_kinfo() does not check fo_fill_kinfo to NULL
add a fo_fill_kinfo op to eventfdops.

Reported by:    trinity
17:39:18 - r283468
(1 day 3 hours ago)
by dchagin
Affects: 
(12 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283467.
17:38:02 - r283467
(1 day 3 hours ago)
by dchagin
Affects: 
(6 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Call nosys in case when the incorrect syscall number is specified.

Reported by:    trinity
17:35:42 - r283466
(1 day 3 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283465.
17:33:21 - r283465
(1 day 3 hours ago)
by dchagin
Affects: 
(7 files)
/head/sys/amd64/*
/head/sys/compat/linux/linux_file.c
/head/sys/i386/linux/*
Add preliminary fallocate system call implementation
to emulate posix_fallocate() function.

Differential Revision:  https://reviews.freebsd.org/D1523
Reviewed by:    emaste
17:30:31 - r283464
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_time.c
/head/sys/compat/linux/linux_timer.c
/head/sys/compat/linux/linux_timer.h
Delete the duplicate of linux_to_native_clockid() function.

Differential Revision:  https://reviews.freebsd.org/D1521
Reviewed by:    trasz
17:29:18 - r283463
(1 day 3 hours ago)
by dchagin
Affects: 
(4 files)
/head/sys/compat/linux/*
Do not use struct l_timespec without conversion. While here move
args->timeout handling before acquiring the futex key at FUTEX_WAIT path.

Differential Revision:  https://reviews.freebsd.org/D1520
Reviewed by:    trasz
17:27:59 - r283462
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_futex.c
Add prototypes for static futex functions.

Differential Revision:  https://reviews.freebsd.org/D1519
Reviewed by:    trasz
17:26:58 - r283461
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_stats.c
As for now our tmpfs is no longer being considered
"highly experimental" remove /dev/shm magic commited
in r218497 and convert tmpfs type to an expected magic number.

Differential Revision:  https://reviews.freebsd.org/D1497
Reviewed by:    emaste, trasz
17:25:57 - r283460
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_emul.h
/head/sys/compat/linux/linux_futex.c
Print out unsupported futex operation message only once for the process.

Differential Revision:  https://reviews.freebsd.org/D1498
17:23:08 - r283459
(1 day 3 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_time.c
/head/sys/compat/linux/linux_timer.h
Add some clock mappings used in glibc 2.20.

Differential Revision:  https://reviews.freebsd.org/D1465
Reviewd by:     trasz
17:16:55 - r283458
(1 day 4 hours ago)
by mav
Affects: 
(4 files)
/stable/9/sys/fs/nfsclient/nfs_clbio.c
MFC r282881: Do not promote large async writes to sync.

Present implementation of large sync writes is too strict and so can be
quite slow.  Instead of doing that, execute large async write in chunks,
syncing each chunk separately.

It would be good to fix large sync writes too, but I leave it to somebody
with more skills in this area.
17:16:30 - r283457
(1 day 4 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/fs/nfsclient/nfs_clbio.c
MFC r282881: Do not promote large async writes to sync.

Present implementation of large sync writes is too strict and so can be
quite slow.  Instead of doing that, execute large async write in chunks,
syncing each chunk separately.

It would be good to fix large sync writes too, but I leave it to somebody
with more skills in this area.
17:09:07 - r283456
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_emul.c
/head/sys/compat/linux/linux_fork.c
Improve ktr(9) records in thread managment code.

Differential Revision:  https://reviews.freebsd.org/D1464
Reviewed by:    trasz
17:08:25 - r283455
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_emul.c
Use local struct proc * varable instead of dereferencing td->td_proc.

Differential Revision:  https://reviews.freebsd.org/D1463
Reviewed by:    emaste
17:07:10 - r283454
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_emul.c
Avoid unnecessary em zeroing in non-exec path
as it already zeroed by malloc with M_ZERO flag
and move zeroing to the proper place in exec path.

Differential Revision:  https://reviews.freebsd.org/D1462
Reviewed by:    trasz
17:05:59 - r283453
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_emul.c
Remove the unnecessary cast.

Differential Revision:  https://reviews.freebsd.org/D1461
Reviewed by:    emaste
17:00:43 - r283452
(1 day 4 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283451.
16:59:26 - r283451
(1 day 4 hours ago)
by dchagin
Affects: 
(7 files)
/head/sys/amd64/*
/head/sys/compat/linux/linux_misc.c
/head/sys/i386/linux/*
Implement ppoll() system call.

Differential Revision:  https://reviews.freebsd.org/D1105
Reviewed by:    trasz
16:56:32 - r283450
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_fork.c
td_sigmask of a newly created thread copied from td.
Remove excess initialization of td_sigmask.

Differential Revision:  https://reviews.freebsd.org/D1128
Reviewed by:    emaste
16:55:32 - r283449
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_mib.h
Update Linux compat revision to 32.

Differential Revision:  https://reviews.freebsd.org/D1122
Reviewed by:    emaste
16:53:32 - r283448
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/modules/Makefile
Connect linux64 module to the build.

Differential Revision:  https://reviews.freebsd.org/D1097
Reviewed by:    emaste
16:52:45 - r283447
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_util.h
Fix linux_common module build with KTR option.

Differential Revision:  https://reviews.freebsd.org/D1096
Reviewed by:    trasz
16:51:04 - r283446
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux32/linux32_machdep.c
Include opt_compat.h, so that COMPAT_LINUX32 is defined, and we can
access to the semop structs and functions.

Submitted by:   cognet@

Differential Revision:  https://reviews.freebsd.org/D1095
Reviewed by:    trasz
16:50:17 - r283445
(1 day 4 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283444.
16:49:14 - r283444
(1 day 4 hours ago)
by dchagin
Affects: 
(9 files)
/head/sys/*
Implement eventfd system call.

Differential Revision:  https://reviews.freebsd.org/D1094
In collaboration with:  Jilles Tjoelker
16:47:13 - r283443
(1 day 4 hours ago)
by dchagin
Affects: 
(5 files)
/head/sys/amd64/*
/head/sys/compat/linux/*
/head/sys/i386/linux/linux.h
Put the correct value for the abi_nfdbits parameter of kern_select() for
all supported Linuxulators.

Differential Revision:  https://reviews.freebsd.org/D1093
Reviewed by:    trasz
16:42:49 - r283442
(1 day 4 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283441.
16:41:39 - r283441
(1 day 4 hours ago)
by dchagin
Affects: 
(17 files)
/head/sys/*
Implement epoll family system calls. This is a tiny wrapper
around kqueue() to implement epoll subset of functionality.
The kqueue user data are 32bit on i386 which is not enough for
epoll user data, so we keep user data in the proc emuldata.

Initial patch developed by rdivacky@ in 2007, then extended
by Yuri Victorovich @ r255672 and finished by me
in collaboration with mjg@ and jillies@.

Differential Revision:  https://reviews.freebsd.org/D1092
16:36:29 - r283440
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/kern/kern_event.c
/head/sys/sys/syscallsubr.h
For future use in the Linuxulator:

1. Add a kern_kqueue() counterpart for kqueue() with flags parameter.

2. Be a bit secure. To avoid a double fp lookup add a kern_kevent_fp()
counterpart for kern_kevent() with file pointer parameter instead
of file descriptor an pass the buck to it.

Suggested by: mjg [2]

Differential Revision:  https://reviews.freebsd.org/D1091
Reviewed by:    trasz
16:34:57 - r283439
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_file.c
Implement F_DUPFD_CLOEXEC fcntl flag.

Differential Revision:  https://reviews.freebsd.org/D1089
Reviewed by:    trasz
16:32:52 - r283438
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_file.h
Add several fcntl flags.

Differential Revision:  https://reviews.freebsd.org/D1088
Reviewed by:    trasz
16:31:44 - r283437
(1 day 4 hours ago)
by dchagin
Affects: 
(5 files)
/head/sys/amd64/*
/head/sys/compat/linux/*
/head/sys/i386/linux/linux.h
To avoid code duplication move open/fcntl definitions to the MI
header file.

Differential Revision:  https://reviews.freebsd.org/D1087
Reviewed by:    trasz
16:30:23 - r283436
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux32/linux32_sysvec.c
/head/sys/compat/linux/linux_signal.c
/head/sys/i386/linux/linux_sysvec.c
Use the BSD_TO_LINUX_SIGNAL() wherever there is no need
to check the ABI as it is known.

Differential Revision:  https://reviews.freebsd.org/D1086
16:28:58 - r283435
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_misc.c
Convert Linux wait options to the FreeBSD.
Check wait options as a Linux do.
Linux always set WEXITED option not a WUNTRACED|WNOHANG
which is a strange bug.

Differential Revision:  https://reviews.freebsd.org/D1085
Reviewed by:    trasz
16:27:38 - r283434
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_misc.c
Set WIFCONTINUED to the wait status if needed.

Differential Revision:  https://reviews.freebsd.org/D1083
Reviewed by:    trasz
16:26:55 - r283433
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_socket.c
Rewrite linux_recvfrom. To avoid double conversion of sockaddr use
kern_recvit() directly.
And check fromlen parameter before sockaddr copyin and conversion.

Differential Revision:  https://reviews.freebsd.org/D1082
16:25:44 - r283432
(1 day 4 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux/linux_locore.s
/head/sys/amd64/linux32/linux32_locore.s
/head/sys/i386/linux/linux_locore.s
Being exported through vdso the note.Linux section used by glibc
to determine the kernel version (this saves one uname call).
Temporarily disable the export of a note.Linux section until I figured
out how to change the kernel version in the note.Linux on the fly.

Differential Revision:  https://reviews.freebsd.org/D1081
Reviewed by:    trasz
16:24:24 - r283431
(1 day 4 hours ago)
by dchagin
Affects: 
(7 files)
/head/sys/amd64/*
/head/sys/compat/linux/linux_misc.h
/head/sys/i386/linux/*
Add AT_RANDOM and AT_EXECFN auxiliary vector entries which are used by
glibc. At list since glibc version 2.16 using AT_RANDOM is mandatory.

Differential Revision:  https://reviews.freebsd.org/D1080
16:22:03 - r283430
(1 day 4 hours ago)
by dchagin
Affects:  /head/usr.bin/kdump/Makefile
/head/usr.bin/kdump/kdump.c
/head/usr.bin/kdump/linux32_syscalls.conf
Teach kdump to understand both linux emulation.

Differential Revision:  https://reviews.freebsd.org/D1079
Reviewed by:    emaste
16:19:57 - r283429
(1 day 5 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux/*
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283428.
16:18:03 - r283428
(1 day 5 hours ago)
by dchagin
Affects: 
(4 files)
/head/sys/amd64/*
/head/sys/compat/linux/linux_file.c
/head/sys/i386/linux/syscalls.master
Change linux faccessat syscall definition to match actual linux one.

The AT_EACCESS and AT_SYMLINK_NOFOLLOW flags are actually implemented
within the glibc wrapper function for faccessat().  If either of these
flags are specified, then the wrapper function employs fstatat() to
determine access permissions.

Differential Revision:  https://reviews.freebsd.org/D1078
Reviewed by:    trasz
16:14:41 - r283427
(1 day 5 hours ago)
by dchagin
Affects: 
(10 files)
/head/sys/compat/linux/*
Where possible we will use M_LINUX malloc(9) type.
Move M_FUTEX defines to the linux_common.ko.

Differential Revision:  https://reviews.freebsd.org/D1077
Reviewed by:    emaste
16:11:30 - r283426
(1 day 5 hours ago)
by andrew
Affects:  /head/sys/arm/arm/machdep.c
/head/sys/arm/conf/VIRT
/head/sys/conf/options.arm
Add support for getting the memory map from EFI if it has been pased in
by loader.efi.
16:11:21 - r283425
(1 day 5 hours ago)
by dchagin
Affects: 
(5 files)
/head/sys/amd64/linux/*
Regen for r283424.
16:07:11 - r283424
(1 day 5 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux/*
/head/sys/modules/linux64/Makefile
Add preliminary support for x86-64 Linux binaries.

Differential Revision:  https://reviews.freebsd.org/D1076
16:00:01 - r283423
(1 day 5 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_common.c
/head/sys/compat/linux/linux_ioctl.c
Move FEATURE macros for v4l and v4l2 to the common module.

Differential Revision:  https://reviews.freebsd.org/D1075
Reviewed by:    emaste
15:54:58 - r283422
(1 day 5 hours ago)
by dchagin
Affects: 
(9 files)
/head/sys/amd64/linux32/linux32_sysvec.c
/head/sys/compat/linux/*
/head/sys/modules/*
Refund the proc emuldata struct for future use. For now move flags from
thread emuldata to proc emuldata as it was originally intended.

As we can have both 64 & 32 bit Linuxulator running any eventhandler
can be called twice for us. To prevent this move eventhandlers code
from linux_emul.c to the linux_common.ko module.

Differential Revision:  https://reviews.freebsd.org/D1073
15:51:18 - r283421
(1 day 5 hours ago)
by dchagin
Affects: 
(22 files)
/head/sys/*
Introduce a new module linux_common.ko which is intended for the
following primary purposes:

1. Remove the dependency of linsysfs and linprocfs modules from linux.ko,
which will be architecture specific on amd64.

2. Incorporate into linux_common.ko general code for platforms on which
we'll support two Linuxulator modules (for both instruction set - 32 & 64 bit).

3. Move malloc(9) declaration to linux_common.ko, to enable getting memory
usage statistics properly.

Currently linux_common.ko incorporates a code from linux_mib.c and linux_util.c
and linprocfs, linsysfs and linux kernel modules depend on linux_common.ko.

Temporarily remove dtrace garbage from linux_mib.c and linux_util.c

Differential Revision:  https://reviews.freebsd.org/D1072
In collaboration with:  Vassilis Laganakos.

Reviewed by:    trasz
15:48:34 - r283420
(1 day 5 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_stats.c
Add newfstatat system call for 64-bit Linuxulator.

Differential Revision:  https://reviews.freebsd.org/D1071
Reviewed by:    trasz
15:47:15 - r283419
(1 day 5 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_misc.c
/head/sys/compat/linux/linux_signal.c
/head/sys/compat/linux/linux_stats.c
Fix compilation with -DDEBUG option.

Differential Revision:  https://reviews.freebsd.org/D1070
Reviewed by:    trasz
15:47:06 - r283418
(1 day 5 hours ago)
by tijl
Affects:  /head/lib/libiconv_modules/UTF7/citrus_utf7.c
When only 2 bytes can be read from a 4 byte UTF-16 character in a base64
encoded chunk of a UTF-7 string, treat that as an incomplete character and
return an error instead of a shift sequence and no error.

Also check that the low 2 bytes have a valid value.

MFC after:      1 week
15:45:36 - r283417
(1 day 5 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_vdso.c
/head/sys/compat/linux/linux_vdso.h
Add 64 bit support to the vdso.

Differential Revision:  https://reviews.freebsd.org/D1069
Reviewed by:    trasz
15:44:41 - r283416
(1 day 5 hours ago)
by dchagin
Affects: 
(4 files)
/head/sys/amd64/linux32/linux.h
/head/sys/compat/linux/*
/head/sys/i386/linux/linux.h
x86_64 Linux do not use multiplexing on ipc system calls.
Move struct ipc_perm definition to the MD path as it differs for 64 and
32 bit platform.

Differential Revision:  https://reviews.freebsd.org/D1068
Reviewed by:    trasz
15:43:53 - r283415
(1 day 5 hours ago)
by dchagin
Affects: 
(5 files)
/head/sys/compat/linux/*
Disable i386 call for x86-64 Linux.

Differential Revision:  https://reviews.freebsd.org/D1067
Reviewed by:    trasz
15:42:36 - r283414
(1 day 5 hours ago)
by dchagin
Affects:  /head/sys/compat/linprocfs/linprocfs.c
Print out proper procmap entry for 64 bit binaries.

Differential Revision:  https://reviews.freebsd.org/D1066
Reviewed by:    trasz
15:41:27 - r283413
(1 day 5 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_socket.c
/head/sys/compat/linux/linux_socket.h
64-bit paltforms, like x86_64, do not use multiplexing on
socketcall system calls.

Differential Revision:  https://reviews.freebsd.org/D1065
Reviewed by:    trasz
15:39:08 - r283412
(1 day 5 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_stats.c
Get ready to commit x86_64 Linux emulation.
All fields of type l_int in struct statfs are defined
as l_long on i386 and amd64.

Differential Revision:  https://reviews.freebsd.org/D1064
Reviewed by:    trasz
15:32:52 - r283411
(1 day 5 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux32/linux32_sysvec.c
/head/sys/i386/linux/linux_sysvec.c
Remove stale comment about a signal trampoline which
is moved to the shared page at r219609.

Differential Revision:  https://reviews.freebsd.org/D1063
Reviewed by:    trasz
15:30:52 - r283410
(1 day 5 hours ago)
by dchagin
Affects: 
(6 files)
/head/sys/amd64/linux32/*
/head/sys/compat/linux/*
/head/sys/i386/linux/linux_sysvec.c
Put linux_platform into the vdso to avoid copying it onto the stack at
every exec.

Differential Revision:  https://reviews.freebsd.org/D1062
Reviewed by:    trasz
15:29:56 - r283409
(1 day 5 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/boot/uboot/fdt/uboot_fdt.c
/stable/10/sys/boot/uboot/lib/glue.h
MFC r280194:

  Fix fdt_platform_fixups() mem region handling.
15:29:20 - r283408
(1 day 5 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux32/linux.h
/head/sys/i386/linux/linux.h
Eliminate a now unused global declaration of elf_linux_sysvec.

Differential Revision:  https://reviews.freebsd.org/D1061
Reviewed by:    trasz
15:28:17 - r283407
(1 day 5 hours ago)
by dchagin
Affects: 
(16 files)
/head/sys/*
Implement vdso - virtual dynamic shared object. Through vdso Linux
exposes functions from kernel with proper DWARF CFI information so that
it becomes easier to unwind through them.
Using vdso is a mandatory for a thread cancelation && cleanup
on a modern glibc.

Differential Revision:  https://reviews.freebsd.org/D1060
15:27:31 - r283406
(1 day 5 hours ago)
by tijl
Affects:  /head/lib/libiconv_modules/UTF7/citrus_utf7.c
Fix decoding of UTF-7 when a base64 encoded chunk appears at the end of
the input buffer.

_citrus_UTF7_mbtoutf16 stored the decoder state at the beginning so it
could restore this state on an incomplete character such that the next
call would restart the decoding.  The problem was that "-" (end of base64
mode) at the end of a string was also treated as an incomplete character
but was also removed from the state buffer.  So the initial state would be
restored (with base64 mode) and the next call would no longer see the "-"
so it continued in base64 mode.

This state saving/restoring isn't needed here.  It's already handled
elsewhere (citrus_iconv_std.c:_citrus_iconv_std_iconv_convert) so just
remove it.

Also initialise *nresult.

PR:             200398
Tested by:      delphij
MFC after:      1 week
15:22:33 - r283405
(1 day 5 hours ago)
by dchagin
Affects: 
(10 files)
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283403.
15:21:47 - r283404
(1 day 5 hours ago)
by ian
Affects: 
(7 files)
/stable/10/sys/arm/conf/*
MFC r279850:

  Remove MODULES_OVERRIDE="" for Marvel-based armv5 systems.

  Also add some #NO_UNIVERSE to configs that essentially duplicate DB-88F6XXX.
15:21:25 - r283403
(1 day 6 hours ago)
by dchagin
Affects: 
(5 files)
/head/sys/amd64/linux32/*
/head/sys/compat/linux/linux_misc.c
/head/sys/i386/linux/*
Implement pselect6() system call.

Differential Revision:  https://reviews.freebsd.org/D1051
Reviewed by:    trasz
15:19:44 - r283402
(1 day 6 hours ago)
by dchagin
Affects: 
(10 files)
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283401.
15:18:19 - r283401
(1 day 6 hours ago)
by dchagin
Affects: 
(6 files)
/head/sys/amd64/linux32/*
/head/sys/compat/linux/*
/head/sys/i386/linux/*
Implement prlimit64() system call.

Differential Revision:  https://reviews.freebsd.org/D1050
Reviewed by:    emaste, trasz
15:15:46 - r283400
(1 day 6 hours ago)
by dchagin
Affects: 
(10 files)
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283399.
15:14:51 - r283399
(1 day 6 hours ago)
by dchagin
Affects: 
(5 files)
/head/sys/amd64/linux32/*
/head/sys/compat/linux/linux_file.c
/head/sys/i386/linux/*
Implement dup3() system call.

Differential Revision:  https://reviews.freebsd.org/D1049
Reviewed by:    emaste
15:13:56 - r283398
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_misc.c
Sched_rr_get_interval returns EINVAL in case when the invalid pid
specified. This silence the ltp tests.

Differential Revision:  https://reviews.freebsd.org/D1048
Reviewed by:    trasz
15:12:38 - r283397
(1 day 6 hours ago)
by dchagin
Affects: 
(10 files)
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283396.
15:11:32 - r283396
(1 day 6 hours ago)
by dchagin
Affects: 
(6 files)
/head/sys/amd64/linux32/*
/head/sys/compat/linux/*
/head/sys/i386/linux/*
Implement rt_sigqueueinfo() system call.

Differential Revision:  https://reviews.freebsd.org/D1047
Reviewed by:    trasz
15:08:25 - r283395
(1 day 6 hours ago)
by dchagin
Affects: 
(10 files)
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283394.
15:06:39 - r283394
(1 day 6 hours ago)
by dchagin
Affects: 
(6 files)
/head/sys/amd64/linux32/*
/head/sys/compat/linux/*
/head/sys/i386/linux/*
Implement waitid() system call.

Differential Revision:  https://reviews.freebsd.org/D1046
15:05:22 - r283393
(1 day 6 hours ago)
by dchagin
Affects: 
(5 files)
/head/sys/i386/linux/*
Regen for r283392.
15:04:12 - r283392
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/i386/linux/syscalls.master
struct l_rusage does not defined for i386 Linuxulator due to it's nature.

Differential Revision:  https://reviews.freebsd.org/D2139
15:03:09 - r283391
(1 day 6 hours ago)
by dchagin
Affects: 
(6 files)
/head/sys/amd64/linux32/*
/head/sys/compat/linux/linux_misc.c
/head/sys/i386/linux/*
To reduce code duplication introduce linux_copyout_rusage() method.
Use it in linux_wait4() system call and move linux_wait4() to the MI path.
While here add a prototype for the static bsd_to_linux_rusage().

Differential Revision:  https://reviews.freebsd.org/D2138
Reviewed by:    trasz
15:00:27 - r283390
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_misc.c
/head/sys/compat/linux/linux_misc.h
Add a function for converting wait options.

Differential Revision:  https://reviews.freebsd.org/D1045
Reviewed by:    trasz
14:58:30 - r283389
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_signal.c
/head/sys/compat/linux/linux_signal.h
Add a siginfo_t conversion function.

Differential Revision:  https://reviews.freebsd.org/D1044
Reviewed by:    emaste, trasz
14:57:39 - r283388
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_misc.h
Remove a now unused define.

Differential Revision:  https://reviews.freebsd.org/D1043
Reviewed by:    trasz
14:57:17 - r283387
(1 day 6 hours ago)
by ian
Affects: 
(9 files)
/stable/10/sys/arm/conf/*
MFC r279837:

  Remove MODULES_OVERRIDE="" and WITHOUT_MODULES="ahc" from armv6 configs.
14:56:21 - r283386
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_mib.c
/head/sys/compat/linux/linux_mib.h
Introduce LINUX_VERSION_STR, LINUX_VERSION_CODE macro for use instead
of harcoded pr_osrelease, pr_osrel values. This will be used later in
the VDSO.

Differential Revision:  https://reviews.freebsd.org/D1042
Reviewed by:    trasz
14:55:12 - r283385
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux32/linux32_sysvec.c
/head/sys/i386/linux/linux_sysvec.c
Some style(9) && whitespaces fixes. No functional changes.

Differential Revision:  https://reviews.freebsd.org/D1041
Reviewed by:    emaste
14:54:12 - r283384
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/compat/linux/linux_emul.c
pthread_join() caller do futex_wait on child_clear_tid. As a results
of multiple simultaneous calls to pthread_join() specifying the same
target thread are undefined wake up the one thread.

Differential Revision:  https://reviews.freebsd.org/D1040
14:53:16 - r283383
(1 day 6 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/amd64/linux32/*
/head/sys/compat/linux/*
/head/sys/i386/linux/*
Switch linuxulator to use the native 1:1 threads.

The reasons:
1. Get rid of the stubs/quirks with process dethreading,
   process reparent when the process group leader exits and close
   to this problems on wait(), waitpid(), etc.
2. Reuse our kernel code instead of writing excessive thread
   managment routines in Linuxulator.

Implementation details:

1. The thread is created via kern_thr_new() in the clone() call with
   the CLONE_THREAD parameter. Thus, everything else is a process.
2. The test that the process has a threads is done via P_HADTHREADS
   bit p_flag of struct proc.
3. Per thread emulator state data structure is now located in the
   struct thread and freed in the thread_dtor() hook.
   Mandatory holdig of the p_mtx required when referencing emuldata
   from the other threads.
4. PID mangling has changed. Now Linux pid is the native tid
   and Linux tgid is the native pid, with the exception of the first
   thread in the process where tid and pid are one and the same.

Ugliness:

   In case when the Linux thread is the initial thread in the thread
   group thread id is equal to the process id. Glibc depends on this
   magic (assert in pthread_getattr_np.c). So for system calls that
   take thread id as a parameter we should use the special method
   to reference struct thread.

Differential Revision:  https://reviews.freebsd.org/D1039
14:51:29 - r283382
(1 day 6 hours ago)
by dchagin
Affects: 
(15 files)
/head/sys/*
In preparation for switching linuxulator to the use the native 1:1
threads add a hook for cleaning thread resources before the thread die.

Differential Revision:  https://reviews.freebsd.org/D1038
14:49:21 - r283381
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/sys/proc.h
In preparation for switching linuxulator to the use the native 1:1
threads add per thread emulator state data.

Differential Revision:  https://reviews.freebsd.org/D1037
Reviewed by:    trasz
14:47:00 - r283380
(1 day 6 hours ago)
by dchagin
Affects: 
(10 files)
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283379.
14:45:57 - r283379
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux32/syscalls.master
/head/sys/compat/linux/linux_misc.c
/head/sys/i386/linux/syscalls.master
Implement a Linux version of sched_getparam() && sched_setparam().
Temporarily use the first thread in proc.

Differential Revision:  https://reviews.freebsd.org/D1036
Reviewed by:    trasz
14:44:57 - r283378
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux32/linux32_machdep.c
Remove a now unused include.

Differential Revision:  https://reviews.freebsd.org/D1035
Reviewed by:    trasz
14:44:06 - r283377
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/kern/p1003_1b.c
/head/sys/sys/syscallsubr.h
In preparation for switching linuxulator to the use the native 1:1
threads split sys_sched_getparam(), sys_sched_setparam(),
sys_sched_getscheduler(), sys_sched_setscheduler() to their kern_*
counterparts and add targettd parameter to allow specify the target
thread directly by callee.

Differential Revision:  https://reviews.freebsd.org/D1034
Reviewed by:    trasz
14:43:06 - r283376
(1 day 6 hours ago)
by dchagin
Affects: 
(5 files)
/head/sys/i386/linux/*
Regen for r283375.
14:40:41 - r283375
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/i386/linux/syscalls.master
In preparation for switching linuxulator to the use the native 1:1
threads use MI linux_sched_rr_get_interval() in i386.

Differential Revision:  https://reviews.freebsd.org/D1033
Reviewed by:    trasz
14:39:26 - r283374
(1 day 6 hours ago)
by dchagin
Affects: 
(4 files)
/head/sys/*
In preparation for switching linuxulator to the use the native 1:1
threads refactor kern_sched_rr_get_interval() and sys_sched_rr_get_interval().
Add a kern_sched_rr_get_interval() counterpart which takes a targettd
parameter to allow specify target thread directly by callee (new Linuxulator).

Linuxulator temporarily uses first thread in proc.

Move linux_sched_rr_get_interval() to the MI part.

Differential Revision:  https://reviews.freebsd.org/D1032
Reviewed by:    trasz
14:37:45 - r283373
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/kern/kern_thr.c
/head/sys/sys/syscallsubr.h
In preparation for switching linuxulator to the use the native 1:1
threads introduce kern_thr_alloc() which will be used later in the
linux_clone().

Differential Revision:  https://reviews.freebsd.org/D1029
Reviewed by:    trasz
14:36:33 - r283372
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/kern/kern_thr.c
/head/sys/sys/syscallsubr.h
In preparation for switching linuxulator to the use the native 1:1
threads split sys_thr_exit() up into sys_thr_exit() and kern_thr_exit().
Move
Where the second will be used in linux_exit() system call later.

Differential Revision:  https://reviews.freebsd.org/D1028
Reviewed by:    trasz
14:34:46 - r283371
(1 day 6 hours ago)
by dchagin
Affects: 
(10 files)
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Regen for r283370.
14:33:19 - r283370
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux32/syscalls.master
/head/sys/compat/linux/linux_fork.c
/head/sys/i386/linux/syscalls.master
In preparation for switching linuxulator to the use the native 1:1
threads introduce linux_exit() stub instead of sys_exit() call
(which terminates process).
In the new linuxulator exit() system call terminates the calling
thread (not a whole process).

Differential Revision:  https://reviews.freebsd.org/D1027
Reviewed by:    trasz
14:29:35 - r283369
(1 day 6 hours ago)
by dchagin
Affects:  /head/sys/amd64/linux32/linux.h
/head/sys/i386/linux/linux.h
In preparation for switching linuxulator to the use the native 1:1
threads print the thread id in addition to the pid in debug messages.
14:25:03 - r283368
(1 day 6 hours ago)
by ian
Affects: 
(17 files)
/stable/10/sys/arm/conf/*
MFC r276004: Fix the indentation to simplify comparing the ARM config files.
12:33:12 - r283367
(1 day 8 hours ago)
by andrew
Affects:  /head/sys/arm/conf/VIRT
/head/sys/arm/qemu/files.qemu
/head/sys/arm/qemu/virt_mp.c
Enable SMP on the qemu virt platform. We use the device tree to find which
cpus to enable, and PSCI to start them.
12:20:11 - r283366
(1 day 9 hours ago)
by andrew
Affects: 
(37 files)
/head/sys/arm/arm/*
Remove trailing whitespace from sys/arm/arm
12:12:01 - r283365
(1 day 9 hours ago)
by andrew
Affects:  /head/sys/arm/arm/cpufunc.c
/head/sys/arm/include/cpu-v6.h
/head/sys/arm/include/sysreg.h
Add more cp15_ functions, and use them in cpufunc.c where possible.
11:24:14 - r283364
(1 day 9 hours ago)
by melifaro
Affects:  /head/sys/sys/sockio.h
Fix SIOCGI2C structure requirement.

In reality, SIOCGI2C ioctl requires struct ifreq as many other
ioctls. Doing copyin() on (significantly) larger struct ifstat sometimes
triggered EFAULT.

Reported by:    Olivier Cochard-Labbé <olivier at cochard.me>
MFC after:      1 week
11:08:06 - r283363
(1 day 10 hours ago)
by andrew
Affects:  /head/sys/dev/psci/psci.c
Rework the PSCI cpu on code to allow it to work before device drivers have
started. This allows this functions to be used with the regular ARM SMP
initialisation sequence.
11:04:45 - r283362
(1 day 10 hours ago)
by andrew
Affects:  /head/sys/arm/qemu/files.qemu
Include the ofw cpu driver. This allows us to get a list of cpus enabled
by qemu, however we may not be running on them.
08:45:19 - r283361
(1 day 12 hours ago)
by ganbold
Affects:  /head/sys/arm/conf/YYHD18
/head/sys/boot/fdt/dts/arm/meson3.dtsi
/head/sys/boot/fdt/dts/arm/yyhd18-m3.dts
Add kernel config and dts files for an aml8726-m3
based device.
Following u-boot commands allow FreeBSD boot on
Yiyate Android TV Box (aml8726-m3):

tv open 480p
mmc rescan 0
fatload mmc 0 0x80100000 kernel.bin
go 0x80100000

The current FreeBSD driver doesn't program the video
clocks so the u-boot tv command is necessary in order
for the frame buffer to be useful (otherwise it can
be skipped).

The SD card for the Yiyate Android TV Box doesn't need
anything special beyond creating a FAT16 and a UFS
filesystem.

Differential Revision:  https://reviews.freebsd.org/D2636
Submitted by:   John Wehle
07:45:42 - r283360
(1 day 13 hours ago)
by ganbold
Affects:  /head/sys/dev/acpi_support/acpi_ibm.c
/head/sys/dev/gpio/gpioled.c
/head/sys/dev/led/led.c
This implements default-state support as described in:

https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/leds-gpio.txt

Without this booting the VSATV102 causes the blue "working" led to turn
off when the kernel starts up. With this the led (which is turned on by
the firmware) stays on since that's the default state specified in the FDT.

Expanded the meaning of the led_create_state state parameter in order
to implement support for "keep". The original values were:

== 0             Off
!= 0             On

The new values are:

== -1            don't change / keep current setting
== 0             Off
!= -1 && != 0    On

This should have no effect on acpi_asus_attach which only calls
led_create_state with state set to 1. Updated acpi_ibm_attach
in order to avoid surprises.

Differential Revision:  https://reviews.freebsd.org/D2615
Submitted by:   John Wehle
Reviewed by:    gonzo, loos
07:32:02 - r283359
(1 day 13 hours ago)
by kib
Affects: 
(8 files)
/stable/10/sys/*
MFC r282708:
On exec, single-threading must be enforced before arguments space is
allocated from exec_map.
07:23:16 - r283358
(1 day 13 hours ago)
by ngie
Affects: 
(2 files)
/user/ngie/fix-progs/sys/boot/fdt/dts/arm/vsatv102-m6.dts
MFhead @ r283357
07:21:30 - r283357
(1 day 13 hours ago)
by ngie
Affects:  /head/tools/regression/file
Remove directory for test that has been integrated in under tests/sys/...

X-MFC with: r282067
MFC after: 1 week
07:16:46 - r283356
(1 day 14 hours ago)
by ngie
Affects:  /user/ngie/fix-progs/tools/regression/file
Remove directory for test that has been integrated in under
tests/sys/...
07:14:38 - r283355
(1 day 14 hours ago)
by ngie
Affects:  /user/ngie/checkdpadd-fixes
Prune branch that is no longer really relevant

Most of this has been either integrated in previously, fixed via LIBADD, or
will be fixed via LIBADD
07:13:37 - r283354
(1 day 14 hours ago)
by ngie
Affects:  /user/ngie/optional-require
Prune branch that I haven't done any work on
07:11:03 - r283353
(1 day 14 hours ago)
by ngie
Affects: 
(1812 files)
/user/ngie/more-tests/*
MFhead @ r283351
07:09:16 - r283352
(1 day 14 hours ago)
by ganbold
Affects:  /head/sys/boot/fdt/dts/arm/vsatv102-m6.dts
Enable leds for VSATV102 in dts.

Differential Revision:   https://reviews.freebsd.org/D2614
Submitted by:   John Wehle
07:00:58 - r283351
(1 day 14 hours ago)
by ngie
Affects: 
(2856 files)
/user/ngie/fix-progs/*
MFhead @ r283350
06:53:10 - r283350
(1 day 14 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: r283278

sfxge: relax assertion to allow RST flag in TSO packets

Kernel under stress load, mixed MC reboot and sfupdate really
generates TSO packet with RST flag.
It will generate many TCP packets with RST flag set.
May be RST flag should be set in the last segment only, but it could be
dropped. So, it is safer to keep the flag in all packets to be sure that
connection is reset.

Sponsored by:   Solarflare Communications, Inc.
04:14:09 - r283349
(1 day 17 hours ago)
by trasz
Affects: 
(3 files)
/stable/10/sys/cam/cam_periph.c
/stable/10/sys/cam/cam_xpt.c
MFC r279554:

Make periphdriver_register() take XPT lock when modifying the periph_drivers
array.

This fixes a panic that sometimes occured when kldloading ctl.ko.

PR:             200384
Sponsored by:   The FreeBSD Foundation
02:46:08 - r283348
(1 day 18 hours ago)
by sjg
Affects:  /projects/bmake/share/mk/sys.mk
Add options for auto obj and meta mode to sys.mk
02:45:15 - r283347
(1 day 18 hours ago)
by sjg
Affects:  /projects/bmake/share/mk/local.sys.mk
Move include of auto.obj.mk to sys.mk
02:16:00 - r283346
(1 day 19 hours ago)
by sjg
Affects:  /projects/bmake/share/mk/Makefile
Add files to install
02:15:18 - r283345
(1 day 19 hours ago)
by gjb
Affects: 
(2 files)
/stable/10/release/Makefile.ec2
MFC r283252:
  Include the TARGET in the EC2 AMI name.

  Without this, AWS rejects subsequent image uploads of a different
  architecture because the name conflicts.

Sponsored by:   The FreeBSD Foundation
01:52:22 - r283344
(1 day 19 hours ago)
by pkelsey
Affects: 
(2 files)
/stable/10/share/man/man3/pthread_getspecific.3
MFC r283093:

Added description of POSIX-specified behavior when invoked on a key from within
that key's destructor.
01:48:33 - r283343
(1 day 19 hours ago)
by pkelsey
Affects: 
(2 files)
/stable/10/sys/dev/netmap/netmap_mem2.c
MFC r282978:

When a netmap process terminates without the full set of buffers it
was granted via rings and ni_bufs_list_head represented in those rings
and lists (e.g., via SIGKILL), those buffers are no longer available
for subsequent users for the lifetime of the system. To mitigate this
resource leak, reset the allocator state when the last ref to that
allocator is released.

Note that this only recovers leaked resources for an allocator when
there are no longer any users of that allocator, so there remain
circumstances in which leaked allocator resources may not ever be
recovered - consider a set of multiple netmap processes that are all
using the same allocator (say, the global allocator) where members of
that set may be killed and restarted over time but at any given point
there is one member of that set running.
01:09:51 - r283342
(1 day 20 hours ago)
by ian
Affects: 
(2 files)
/stable/10/share/man/man4/ucom.4
MFC r280221:

  Update ucom(4) with information about the new PPS capture abilities.
00:53:43 - r283341
(1 day 20 hours ago)
by ian
Affects: 
(7 files)
/stable/10/sys/dev/usb/serial/*
/stable/10/sys/kern/kern_tc.c
/stable/10/sys/sys/*
MFC r279728, r279729, r279756, r279773, r282424, r281367:

  Add mutex support to the pps_ioctl() API in the kernel.

  Add PPS support to USB serial drivers.

  Use correct mode variable for PPS support.

  Switch polarity of USB serial PPS events.

  The ftdi "get latency" and "get bitmode" device commands are read
  operations, not writes.

  Implement a mechanism for making changes in the kernel<->driver PPS
  interface without breaking ABI or API compatibility with existing drivers.

  Bump version number to indicate the new PPS ABI version changes in the
  pps_state structure.
2015 - 05 - 23   (2 days ago)
23:35:19 - r283340
(1 day 21 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/arm/mv/armadaxp/armadaxp_mp.c
/stable/10/sys/arm/mv/armadaxp/mptramp.S
MFC r262409, r267129, r267130, r280709:

  Move the declaration for mpentry() into a header file

  Fix broken SMP startup on Armada XP after r265694

  Avoid using hard-coded SoC's register address in mptramp code for Armada XP

  Use pmap_mapdev()/unmapdev() to temporarily map on-chip sram while copying
  the startup trampoline code.
23:27:00 - r283339
(1 day 21 hours ago)
by ian
Affects: 
(6 files)
/stable/10/sys/arm/arm/*
/stable/10/sys/arm/include/vmparam.h
/stable/10/sys/conf/options.arm
MFC r280278, r280402:

  Allow to override default kernel virtual address assignment on ARM.

  Do not save/restore the TLS pointer on context switch for armv6.
23:08:54 - r283338
(1 day 22 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/arm/ti/am335x/am335x_dmtimer.c
/stable/10/sys/arm/ti/omap4/omap4_prcm_clks.c
MFC r279816, r279826:

  Attach the prcm clock driver early, so it can set the mpcore timer frequency.

  Change the name of the dmtimer pps device from /dev/ppsN to /dev/dmtppsN.
23:08:16 - r283337
(1 day 22 hours ago)
by andrew
Affects:  /head/sys/arm/arm/autoconf.c
Fix a lock up where we enter swapper() with interrupts disabled.

In smp_rendezvous_cpus we expect to wait for all cpus to enter
smp_rendezvous_action. If we call this holding a proc lock swapper may
attempt to also lock it, however as interrupts are disabled the cpu never
handles the ipi. Because smp_rendezvous_action waits for all signaled
cpus before contining it may get caught waiting for the cpu running swapper
as the proc mutex will be unlocked after smp_rendezvous_cpus finishes.

The fix is to enable interrupts in the configure stage as we should be
doing.

MFC after:      1 week
23:05:31 - r283336
(1 day 22 hours ago)
by ian
Affects: 
(6 files)
/stable/10/sys/arm/arm/*
/stable/10/sys/arm/include/*
MFC r279810, r279811:

  Clean data cache before instruction cache in armv7_icache_sync_range().

  Add minimum cache line sizes to struct cpuinfo, use them in the new cache
  maintenance routines.  Also add a routine to invalidate the branch cache.
22:48:54 - r283335
(1 day 22 hours ago)
by ian
Affects: 
(5 files)
/stable/10/sys/arm/arm/*
/stable/10/sys/arm/include/armreg.h
MFC r278518: Resolve cache line size from CP15 instead of hard-coded 32.
22:36:41 - r283334
(1 day 22 hours ago)
by ian
Affects: 
(6 files)
/stable/10/sys/arm/arm/gic.c
/stable/10/sys/dev/fdt/simplebus.c
/stable/10/sys/dev/ofw/*
MFC r277098, r279235:

  Introduce ofw_bus_reg_to_rl() to replace part of common bus code

  Fix endianness on FDT read in ARM GIC
22:34:25 - r283333
(1 day 22 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/kern/kern_cons.c
MFC r274711:

 Stop using early_putc immediately after configuring console with cninit()
22:33:06 - r283332
(1 day 22 hours ago)
by ian
Affects: 
(4 files)
/stable/10/sys/arm/arm/gic.c
/stable/10/sys/arm/mv/mv_pci.c
/stable/10/sys/dev/ofw/ofwbus.c
MFC r274249, r274484, r275583:

  Avoid panic in ofwbus caused by not released resource list entry

  Fix typo in ARM GIC device_printf()

  Fix buffer overflow in Marvell PCI/PCIe driver
22:28:59 - r283331
(1 day 22 hours ago)
by andrew
Affects:  /head/sys/arm/arm/mp_machdep.c
Use the wait-for-event instruction to put the core we have just enabled
to sleep while it waits to start scheduling. The boot core can then use
the send-event instruction to wake the cores when they should enter the
scheduler.

MFC after:      1 week
21:58:41 - r283330
(1 day 23 hours ago)
by rmacklem
Affects:  /head/sys/fs/nfsclient/nfs_clrpcops.c
The NFS client generated directory block(s) with d_fileno == 0
so that it would not return less data than requested.
Since returning less directory data than requested is not a problem
for FreeBSD and even UFS no longer returns directory structures
with d_fileno == 0, this patch stops the client from doing this.
Although entries with d_fileno == 0 should not be a problem,
the man pages no longer document that these entries should be
ignored, so there was a concern that these entries might be an
issue in the future.

Suggested by:   trasz
Tested by:      trasz
MFC after:      2 weeks
21:12:51 - r283329
(2 days ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/ti/aintc.c
MFC r276021, r279766:

  Reduce the diff in the Ti aintc between head and arm_intrng

  Fix spurious interrupts on arm am335x (beaglebone), by doing the EOI in
  both the post-filter and post-thread callbacks.
21:04:15 - r283328
(2 days ago)
by pluknet
Affects:  /head/sys/sys/proc.h
Update P_TOTAL_STOP commentary.
20:54:25 - r283327
(2 days ago)
by ian
Affects: 
(20 files)
/stable/10/sys/arm/*
/stable/10/sys/dev/uart/*
MFC r279723, r279724:

  Define new linker set, UART_FDT_CLASS_AND_DEVICE, for registering full
  (class and device) FDT UART. Define second one, UART_FDT_CLASS, for UART
  class only.

  Move the uart_class definitions and fdt compat data into the individual
  uart implementations, and export them using the new linker-set mechanism.
20:53:19 - r283326
(2 days ago)
by ian
Affects: 
(3 files)
/stable/10/sys/sys/cdefs.h
/stable/10/sys/sys/linker_set.h
MFC r268137, r268138:

  Define a "__weak" macro for declaring symbols "weak".

  Add support for empty data sets. Data set begin and end pointers
  should resolve to "NULL" when not present. This is done by declaring
  the data set begin and end symbols as "weak".
20:29:06 - r283325
(2 days ago)
by pho
Affects:  /user/pho/stress2/misc/pthread9.sh
Added a regression test.

Sponsored by:    EMC / Isilon storage division
20:01:20 - r283324
(2 days 1 hour ago)
by ian
Affects: 
(2 files)
/stable/10/sys/dev/uart/uart_dev_pl011.c
MFC r279239:

  Enable 'receive timeout' interrupt allowing us to not
  loose 'rx buffer full' event.
19:57:44 - r283323
(2 days 1 hour ago)
by ian
Affects: 
(4 files)
/stable/10/sys/arm/samsung/exynos/exynos_uart.c
/stable/10/sys/dev/uart/uart.h
/stable/10/sys/dev/uart/uart_bus_fdt.c
MFC r277132: Rename Exynos UART driver functions. No functional change.
19:50:14 - r283322
(2 days 1 hour ago)
by ian
Affects: 
(6 files)
/stable/10/sys/arm/samsung/exynos/*
MFC r266942, r266944:

  Do only receive chars if there are some data in the buffer.
  This fixes operation on newer Exynos boards.

  Rename exynos uart driver filenames.
19:27:04 - r283321
(2 days 1 hour ago)
by ian
Affects: 
(6 files)
/stable/10/sys/dev/uart/*
MFC r272399, r272602, r274451, r274452:

  Add uart driver for Qualcomm MSM 7000/8000 series chips.
  It is working on IFC6410 board which has Qualcomm Snapdragon SoC.

  Use documented compat string for msm uart.

  Make PL011 UART to wait on putc only when TX FIFO is full

  Make uart_bus_fdt a decendant of ofwbus
19:09:04 - r283320
(2 days 2 hours ago)
by kib
Affects:  /head/sys/kern/kern_thread.c
If thread requested to not stop on non-boundary, then not only
stopping signals should obey, but also all forms of single-threading.
Otherwise, thread might sleep interruptible while owning some
resources, and single-threading thread could try to access them.
An example is owning vnode lock while dumping core.

Submitted by:   Conrad Meyer
Review: https://reviews.freebsd.org/D2612
Tested by:      pho
MFC after:      1 week
17:48:09 - r283319
(2 days 3 hours ago)
by ian
Affects: 
(2 files)
/stable/10/sys/arm/arm/physmem.c
MFC r279702: Update a comment that had drifted out of date.
17:43:02 - r283318
(2 days 3 hours ago)
by ian
Affects: 
(3 files)
/stable/10/sys/dev/mmc/mmc.c
/stable/10/sys/dev/sdhci/sdhci.c
MFC r279359, r279360:

For new eMMC chips, we must signal controller HC capability in OP_COND command.

Detect, report and use 8-bit bus if is available.
17:30:30 - r283317
(2 days 3 hours ago)
by ian
Affects: 
(4 files)
/stable/10/sys/arm/arm/cpufunc_asm_armv7.S
/stable/10/sys/arm/arm/cpuinfo.c
/stable/10/sys/arm/include/atomic.h
MFC r278770, r279114, r279215, r279338, r279543:

  Add logic for handling new-style ARM cpu ID info.

  Correct a comment which was exactly backwards from reality.

  There is no reason to do i+dcache writeback and invalidate when changing
  the translation table (this may be left over from armv5 days).  It's
  especially bad to do so using a cache operation that isn't coherent on
  SMP systems.

  Add casting to make atomic ops work for pointers.  (Apparently nobody has
  ever done atomic ops on pointers before now on arm).

  Revert incorrect casting.
16:54:46 - r283316
(2 days 4 hours ago)
by alc
Affects:  /head/sys/mips/mips/pmap.c
Simplify the allocation of page table pages for mips64.  Specifically,
when allocation fails, it suffices to perform VM_WAIT.  The direct map
covers the entirely of physical memory, so unlike 32-bit mips any
physical page can be used as a page table page.
14:59:27 - r283315
(2 days 6 hours ago)
by pfg
Affects: 
(5 files)
/head/sys/ddb/*
ddb:  de-register
14:48:03 - r283314
(2 days 6 hours ago)
by andrew
Affects:  /head/sys/arm/ti/omap4/omap4var.h
/head/sys/arm/ti/omap4/pandaboard/pandaboard.c
Remove an unused header.
09:49:40 - r283313
(2 days 11 hours ago)
by ae
Affects:  /head/sys/net80211/ieee80211_output.c
/head/sys/net80211/ieee80211_wds.c
Properly update TX statistics for wlan(4).
ieee80211_pwrsave() can fail due to queue overflow, check its return code
and increment oerrors counter when it fails. Also handle more error cases
and update oerrors counter when we don't send mbuf due to some errors.
Return ENETDOWN when parent interface isn't ready. Update obytes and omcasts
counters in corresponding places.

PR:             184626
Differential Revision:  https://reviews.freebsd.org/D2621
Reviewed by:    adrian
MFC after:      1 week
09:48:59 - r283312
(2 days 11 hours ago)
by rodrigc
Affects: 
(3 files)
/stable/10/bin/pkill/tests/pgrep-j_test.sh
/stable/10/bin/pkill/tests/pkill-j_test.sh
Merge: 278618 278633 278636 278653 278742 278776 279121

Multiple fixes for pgrep and pkill tests.

PR: 19109
09:16:35 - r283311
(2 days 12 hours ago)
by rodrigc
Affects: 
(2 files)
/stable/10/contrib/netbsd-tests/bin/expr/t_expr.sh
Merge: r277829

Revert r277357 as expr has been enhanced to better detect overflow conditions,
and now the tests pass

PR: 196867
X-MFC with: r277798
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
09:14:29 - r283310
(2 days 12 hours ago)
by kib
Affects: 
(5 files)
/stable/10/sys/kern/kern_malloc.c
/stable/10/sys/vm/*
MFC r282690:
Call uma_reclaim() from the additional pagedaemon thread to reclaim kmem
arena address space.
08:02:54 - r283309
(2 days 13 hours ago)
by adrian
Affects:  /head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_eeprom.c
Add support for the tuning cap for Hornet/AR9331 boards.

This dramatically improves RX sensitivity and behaviour on the
AR9331 hardware I have, including the Carambola 2.

Tested:

* AR9331, Carambola 2 board

Submitted by:   Zilvinas Valinskas <zilvinas.valinskas@gmail.com>
01:17:50 - r283308
(2 days 20 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/vmm.c
Exceptions don't deliver an error code in real mode.

MFC after:      1 week
00:32:58 - r283307
(2 days 20 hours ago)
by gjb
Affects:  /head/release/i386/make-memstick.sh
Use mkimg(1) to create the i386 memstick images, similar to
how is done for amd64.  The exception here is there is no
EFI partition for i386.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
2015 - 05 - 22   (3 days ago)
23:55:59 - r283306
(2 days 21 hours ago)
by jhb
Affects: 
(2 files)
/stable/10/share/man/man4/xen.4
MFC 282273:
Update this page to note that XENHVM now works on i386.  (It shipped
enabled in GENERIC in 10.0.)
23:54:12 - r283305
(2 days 21 hours ago)
by jhb
Affects: 
(2 files)
/stable/10/sys/dev/pci/pci_pci.c
MFC 281872:
Fix some incorrect #if conditions around older workarounds for bus
numbering goofs.
23:07:55 - r283304
(2 days 22 hours ago)
by marcel
Affects: 
(6 files)
/head/bin/ps/*
Convert to use libxo. Document use of libxo as well.

Obtained from:  Phil Shafer <phil@juniper.net>
Sponsored by:   Juniper Networks, Inc.
21:51:36 - r283303
(2 days 23 hours ago)
by jhb
Affects: 
(3 files)
/stable/10/sys/amd64/include/param.h
/stable/10/sys/netpfil/pf/pf.c
MFC 266852,270223:
- Fix pf(4) to build with MAXCPU set to 256.  MAXCPU is actually a count,
  not a maximum ID value (so it is a cap on mp_ncpus, not mp_maxid).
- Bump MAXCPU on amd64 from 64 to 256.  In practice APIC only permits 255
  CPUs (IDs 0 through 254).  Getting above that limit requires x2APIC.
21:38:11 - r283302
(2 days 23 hours ago)
by gjb
Affects:  /head/release/Makefile.mirrors
Fix staging virtual machine images for ftp propagation.

MFC after:      3 days
X-MFC-Note:     needs all previous changes
Sponsored by:   The FreeBSD Foundation
21:33:13 - r283301
(2 days 23 hours ago)
by peter
Affects:  /head/etc/rc.d/local_unbound
Adjust default argument construction for -c to be getopt compliant for
consistency, even though unbound understood it.
21:10:14 - r283300
(3 days ago)
by imp
Affects:  /head/sys/kern/imgact_elf.c
Fix typo in symbol name. It helps to hit save in all your buffers
before committing.
21:09:11 - r283299
(3 days ago)
by neel
Affects:  /head/sys/amd64/vmm/vmm_instruction_emul.c
Remove the verification of instruction length after instruction decode. The
check has been bogus since r273375.

MFC after:      1 week
21:04:42 - r283298
(3 days ago)
by gjb
Affects:  /head/release/Makefile.mirrors
Fix a number of logic and/or naming problems in Makefile.mirrors.
Reduce a number of duplicated logic.

As of this commit, this file does exactly what it is needed to do.

MFC after:      3 days
X-MFC-Note:     needs all previous changes
Sponsored by:   The FreeBSD Foundation
20:50:35 - r283297
(3 days ago)
by imp
Affects:  /head/sys/arm/include/elf.h
/head/sys/kern/imgact_elf.c
/head/sys/sys/imgact_elf.h
Export the eflags field from the elf header. This allows better
discrimination between different subarch binaries, at least for mips
and arm. Arm is implemented, mips is still tbd, so not currently
exported. aarch64 does not export this because aarch64 binaries use
different tags and flags than arm.

Differential Revision: https://reviews.freebsd.org/D2611
19:04:06 - r283296
(3 days 2 hours ago)
by pfg
Affects:  /head/sys/ddb/db_command.c
ddb:  Use NULL for pointers

Hinted by:      DragonflyBSD
18:31:26 - r283295
(3 days 2 hours ago)
by emaste
Affects:  /head/contrib/ipfilter/tools/ipf.c
ipf(1): Use strchr(3) instead of deprecated index(3)

Reviewed by:    cy
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D2607
18:23:21 - r283294
(3 days 2 hours ago)
by glebius
Affects: 
(1024 files)
/projects/ifnet/*
Merge head r257698 through r283293.
17:34:22 - r283293
(3 days 3 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/intel/vmx.c
/head/sys/amd64/vmm/vmm.c
Don't rely on the 'VM-exit instruction length' field in the VMCS to always
have an accurate length on an EPT violation. This is not needed by the
instruction decoding code because it also has to work with AMD/SVM that
does not provide a valid instruction length on a Nested Page Fault.

In collaboration with:  Leon Dang (ldang@nahannisys.com)
Discussed with:         grehan
MFC after:              1 week
17:06:33 - r283292
(3 days 4 hours ago)
by sbruno
Affects: 
(894 files)
/projects/em_mq/*
MFH @283290
17:05:21 - r283291
(3 days 4 hours ago)
by jkim
Affects: 
(100 files)
/head/sys/*
CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten
years for head.  However, it is continuously misused as the mpsafe argument
for callout_init(9).  Deprecate the flag and clean up callout_init() calls
to make them more consistent.

Differential Revision:  https://reviews.freebsd.org/D2613
Reviewed by:    jhb
MFC after:      2 weeks
17:01:43 - r283290
(3 days 4 hours ago)
by sbruno
Affects:  /head/sys/dev/e1000/if_em.c
Bump rx_overruns when indicated by the ICR mask.

PR:             199716
MFC after:      3 days
Sponsored by:   Limelight Networks
16:38:55 - r283289
(3 days 4 hours ago)
by gjb
Affects: 
(2 files)
/stable/10/sys/boot/powerpc/ps3/Makefile
MFC r281011 (jkim):
  Fix powerpc, powerpc64 build.

Sponsored by:   The FreeBSD Foundation
15:57:42 - r283288
(3 days 5 hours ago)
by allanjude
Affects:  /head/usr.sbin/bsdinstall/scripts/zfsboot
Fix a syntax error in bsdinstall/zfsboot

Differential Revision:  https://reviews.freebsd.org/D2571
Submitted by:   Michael Dexter
Approved by:    dteske
MFC after:      1 week
X-MFC-With:     r283023, r282443
Sponsored by:   ScaleEngine Inc.
14:25:23 - r283287
(3 days 6 hours ago)
by andrew
Affects:  /head/sys/arm/ti/cpsw/if_cpsw.c
Add a miibus_statchg and use it to enable Gigabit mode when appropriate.

MFC after:      1 week
12:01:29 - r283286
(3 days 9 hours ago)
by trasz
Affects:  /head/share/man/man4/ctl.4
Start documenting ctl(4) sysctls.

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
11:59:37 - r283285
(3 days 9 hours ago)
by trasz
Affects: 
(4 files)
/head/usr.bin/ctlstat/ctlstat.8
/head/usr.sbin/*
Advertise ctlstat(8) a little better.

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
11:20:59 - r283284
(3 days 10 hours ago)
by whu
Affects:  /stable/10/sys/i386/include/apicvar.h
Fix a i386 build failure cause by commit r283280.
11:09:41 - r283283
(3 days 10 hours ago)
by jhb
Affects:  /head/sys/kern/kern_ktr.c
/head/sys/sys/ktr.h
Expand ktr_mask to be a 64-bit unsigned integer.

The mask does not really need to be updated with atomic operations and
the downside of losing races during transitions is not great (it is
not marked volatile, so those races are pretty wide open as it is).

Differential Revision:  https://reviews.freebsd.org/D2595
Reviewed by:    emaste, neel, rpaulo
MFC after:      2 weeks
11:04:54 - r283282
(3 days 10 hours ago)
by jhb
Affects:  /head/sys/kern/kern_exit.c
/head/tests/sys/kern/Makefile
/head/tests/sys/kern/ptrace_test.c
Only reparent a traced process to its old parent if the tracing process is
not the old parent. Otherwise, proc_reap() will leave the zombie in place
resulting in the process' status being returned twice to its parent.

Add test cases for PT_TRACE_ME and PT_ATTACH which are fixed by
this change.

Differential Revision:  https://reviews.freebsd.org/D2594
Reviewed by:    kib
MFC after:      2 weeks
11:03:51 - r283281
(3 days 10 hours ago)
by jhb
Affects:  /head/sys/fs/procfs/procfs_ctl.c
Always set p_oppid when attaching to an existing process via procfs
tracing.  This matches the behavior of ptrace(PT_ATTACH).  Also,
the procfs detach request assumes p_oppid is always set.

Reviewed by:    kib
MFC after:      2 weeks
09:03:55 - r283280
(3 days 12 hours ago)
by whu
Affects: 
(21 files)
/stable/10/sys/*
MFC r282212:

Microsoft vmbus, storage and other related driver enhancements for HyperV.
    - Vmbus multi channel support.
    - Vector interrupt support.
    - Signal optimization.
    - Storvsc driver performance improvement.
    - Scatter and gather support for storvsc driver.
    - Minor bug fix for KVP driver.
Thanks royger, jhb and delphij from FreeBSD community for the reviews
and comments. Also thanks Hovy Xu from NetApp for the contributions to
the storvsc driver.

PR:     195238
Submitted by:   whu
Reviewed by:    royger
Approved by:    royger
Relnotes:       yes
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D2575
08:11:31 - r283279
(3 days 13 hours ago)
by kib
Affects: 
(3 files)
/stable/10/sys/kern/kern_thread.c
/stable/10/sys/sys/proc.h
MFC r282944:
Decrement p_boundary_count in the single-threading thread, during making
other thread runnable.  This guarantees that upon return from the
thread_single_end(), p_boundary_count is zero.
07:39:21 - r283278
(3 days 13 hours ago)
by arybchik
Affects:  /head/sys/dev/sfxge/sfxge_tx.c
sfxge: relax assertion to allow RST flag in TSO packets

Kernel under stress load, mixed MC reboot and sfupdate really
generates TSO packet with RST flag.
It will generate many TCP packets with RST flag set.
May be RST flag should be set in the last segment only, but it could be
dropped. So, it is safer to keep the flag in all packets to be sure that
connection is reset.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D2609
05:02:53 - r283277
(3 days 16 hours ago)
by imp
Affects:  /head/sys/arm/at91/at91_pio.c
Need to handle the !FDT case still too... I thought in r270025 we
wouldn't need it, but it appears that we still do for the moment...
03:16:18 - r283276
(3 days 18 hours ago)
by gonzo
Affects: 
(56 files)
/head/UPDATING
/head/sys/*
Switch TI platform support code from using FreeBSD's custom-baked DTS
files to vendor-provided ones. It should make easier to adopt platform
code to new revisions of hardware and to use DTS overlays for various
Beaglebone extensions (shields/capes).

Original dts filenames were not changed, they're now wrappers over dts
files provided by TI. So make sure you update .dtb files on your
devices as part of kernel update

GPIO addressing was changed: instead of one global /dev/gpioc0 there
are per-bank instances of /dev/gpiocX. Each bank has 32 pins so for
instance pin 121 on /dev/gpioc0 in old addressing scheme is now pin 25
on /dev/gpioc3

On Pandaboard serial console devices was changed from /dev/ttyu0 to
/dev/ttyu2 so you'll have to update /etc/ttys to get login prompt
on serial port in multiuser mode. Single user mode serial console
should work as-is

Differential Revision:  https://reviews.freebsd.org/D2146
Reviewed by:    rpaulo, ian, Michal Meloun, Svatopluk Kraus
02:00:44 - r283275
(3 days 19 hours ago)
by gonzo
Affects:  /head/sys/dev/fdt/fdt_common.c
/head/sys/dev/fdt/fdt_common.h
Add helper method fdt_find_child to make access to child nodes easier.

Some FDT nodes have complex properties organized as a child sub-nodes
(e.g. timing for LCD panel) we need easy way to obtain handles for
these sub-nodes
01:44:07 - r283274
(3 days 19 hours ago)
by davidcs
Affects:  /head/sys/dev/bxe/bxe.c
/head/sys/dev/bxe/bxe_stats.c
/head/sys/dev/bxe/bxe_stats.h
Add stat counters for Jumbo Frames using SGE ring.
Also remove the checks for IFCAP_LRO in bxe_alloc_fp_buffers() and
bxe_pf_rx_q_prep() since both TPA and Jumbo can use SGE ring.

Submitted by:gary.zambrano@qlogic.com
Approved by:davidcs@freebsd.org
MFC after:5 days
2015 - 05 - 21   (4 days ago)
23:14:18 - r283273
(3 days 22 hours ago)
by rmacklem
Affects:  /head/sys/fs/nfsclient/nfs_clvnops.c
The NFS client wasn't handling getdirentries(2) requests for sizes
that are not an exact multiple of DIRBLKSIZ correctly. Fortunately
readdir(3) always uses an exact multiple of DIRBLKSIZ, so few applications
were affected. This patch fixes this problem by reducing the size
of the directory read to an exact multiple of DIRBLKSIZ.

Tested by:      trasz
Reported by:    trasz
Reviewed by:    trasz
MFC after:      2 weeks
22:50:40 - r283272
(3 days 22 hours ago)
by gjb
Affects:  /head/release/Makefile.mirrors
Fix make(1) syntax error for non-embedded targets.

Sponsored by:   The FreeBSD Foundation
22:11:57 - r283271
(3 days 23 hours ago)
by gjb
Affects:  /head/release/Makefile.mirrors
If TARGET or EMBEDDED_TARGET == arm, set EMBEDDED variable,
which helps control some of the arm-specific bits a bit more
cleanly (but not really 'clean').

If BOARDNAME is defined (as is in the WANDBOARD configuration
RE uses), do some magic to work with the KERNCONF and BOARDNAME
to rename the file, making it a bit more intuitive for the
consumer to determine which they need.

Yes, it is ugly, that is why there is a big warning at the top.
It is, however, still much cleaner than the now 474-line shell
script, and this Makefile produces the hierarchy needed without
much evil.

MFC after:      1 week
X-MFC-Note:     needs all previous Makefile.mirror commits
Sponsored by:   The FreeBSD Foundation
21:45:37 - r283270
(3 days 23 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/contrib/netcat/netcat.c
MFC r282613: MFV r282611: netcat from OpenBSD 5.7.
20:47:19 - r283269
(4 days ago)
by davidcs
Affects:  /head/sys/dev/bxe/bxe.c
Limit the size of the posted receive buffers in Rx Rings to MJUMPAGESIZE.
Previously for jumbo MTUs, the rx ring buffers were
 MTU + any required pad. Now when this size greater than MJUMPAGESIZE, the
packet is spanned across multiple buffers and the
mbufs are stiched together.

Submitted by:gary.zambrano@qlogic.com
Approved by:davidcs@freebsd.org
20:43:02 - r283268
(4 days ago)
by gjb
Affects:  /head/release/Makefile.mirrors
Remove the arm/armv6 bits from Makefile.mirrors, which needs
some re-thinking.

Sponsored by:   The FreeBSD Foundation
20:39:39 - r283267
(4 days ago)
by pfg
Affects: 
(2 files)
/stable/10/sys/sys/cdefs.h
MFC     r282863:

Adjust visibility macros.

The GCC visibility attributes were introduced in GCC 4.0.
Apparently the "protected" attribute was introduced only
until GCC 4.2, but we are not currently using it.
20:22:55 - r283266
(4 days ago)
by gjb
Affects:  /head/release/Makefile.mirrors
Include xz(1)-compressed images when not a snapshot build.

Do not suffix non-snapshot checksum files with SNAP_SUFFIX.

Sponsored by:   The FreeBSD Foundation
20:18:13 - r283265
(4 days 1 hour ago)
by gjb
Affects:  /head/release/Makefile.mirrors
cd(1) to .CURDIR before calling stat(1) to fix the path
to sh(1).

Include xz(1)-compressed images when renaming snapshot
builds.

Use OSRELEASE in place of REVISION-BRANCH for checksum
filenames.

Sponsored by:   The FreeBSD Foundation
20:11:52 - r283264
(4 days 1 hour ago)
by tychon
Affects:  /head/usr.sbin/bhyve/pci_hostbridge.c
The 'hostbridge' device exists to allow guests to infer msi/msix
capablity by advertising pcie capability.

Since the 'hostbridge' device isn't a true pci-to-pci bridge, and
doesn't actaully use the bridge configuration space layout, change
the header-type from type 1 to type 0 to avoid confusion.

Reviewed by:    neel
20:09:36 - r283263
(4 days 1 hour ago)
by loos
Affects:  /head/sys/dev/sdhci/sdhci.c
/head/sys/dev/sdhci/sdhci.h
Raise the SDHCI timeout to 10 seconds and add a sysctl to allow changing
this value at runtime.

The SD card specification says that a block write or a block erase can take
up to 250ms to complete and thus, under some circumstances, the existent 2
seconds timeout was triggering with normal usage.

This change fixes the sporadic controller timeout that happens on RPi and
RPi 2.

Discussed with:         ian (some time ago)
19:40:31 - r283262
(4 days 1 hour ago)
by emaste
Affects: 
(2 files)
/stable/10/sys/amd64/amd64/machdep.c
MFC r258431: Disable amd64 boot time memory test by default

  The page presence memory test takes a long time on large memory systems
  and has little value on contemporary amd64 hardware.

Relnotes:       Yes
Reviewed by:    jhb, kib
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D1544
19:31:10 - r283261
(4 days 1 hour ago)
by jkim
Affects:  /head/sys/dev/acpica/acpi_cpu.c
/head/sys/dev/acpica/acpi_throttle.c
Do not probe Intel PIIX4 south bridge quirks on amd64.  These quirky south
bridges only supported Intel Pentium and Pentium II era processors and there
is no reason for hardware virtualizations to emulate these quirks.

MFC after:      1 week
19:16:28 - r283260
(4 days 2 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/usr.sbin/crunch/crunchide/exec_elf32.c
MFC r282144: crunchide: add basic string table sanity checks

Reported by:    Coverity Scan
CID:            978805, 980919
Sponsored by:   The FreeBSD Foundation
19:05:47 - r283259
(4 days 2 hours ago)
by delphij
Affects: 
(3 files)
/stable/10/contrib/libarchive/libarchive/archive_read.c
/stable/10/contrib/libarchive/libarchive/archive_read_support_format_cpio.c
MFC r282932: MFV r282927,r282928,r282930 (kientzle):

Don't segfault when reading malformed cpio archives.
18:59:11 - r283258
(4 days 2 hours ago)
by delphij
Affects: 
(3 files)
/stable/10/bin/date/date.1
/stable/10/bin/date/date.c
MFC r282608:

date(1): Make -r behave like GNU's version when the option can not be
interpreted as a number, which checks the file's modification time and
use that as the date/time value.

This improves compatibility with GNU coreutils's version of date(1).
18:29:36 - r283257
(4 days 2 hours ago)
by delphij
Affects: 
(12 files)
/head/bin/pax/*
Eliminate unneeded includes.

MFC after:      2 weeks
18:29:11 - r283256
(4 days 2 hours ago)
by neel
Affects:  /head/usr.sbin/bhyvectl/bhyvectl.c
Add an option "--get-vmcs-exit-inst-length" to display the instruction length
of the instruction that caused the VM-exit.

MFC after:      1 week
18:23:37 - r283255
(4 days 2 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/vmm_instruction_emul.c
Emulate the "CMP r/m, reg" instruction (opcode 39H).

Reported and tested by: Leon Dang (ldang@nahannisys.com)
MFC after:      1 week
17:40:53 - r283254
(4 days 3 hours ago)
by dim
Affects:  /head/sys/sys/module.h
Ensure that the static structs emitted by the MODULE_DEPEND() and
MODULE_VERSION() macros don't end up as .comm symbols, when all the
version fields are zero.

Normally, such symbols will end up in .bss, but for kernel module
version objects, this can lead to "garbage" version numbers.

Fix this by instructing the compiler to always put these structs in the
.data segment instead.

Reported by:    delphij, ae
MFC after:      1 week
17:39:42 - r283253
(4 days 3 hours ago)
by loos
Affects: 
(12 files)
/head/sys/arm/*
/head/sys/boot/fdt/dts/arm/*
/head/sys/dev/mmc/mmc.c
Add the MMC/SD driver for Allwinner SoCs.

This is based on the patch sent by Alexander Fedorov with the following
fixes/improvements:

 - Better error handling;
 - Clock is derived from PLL6 (obtained from netbsd);
 - No more unnecessary busy loops on interrupt handler;
 - style(9) fixes and code cleanup.

I also want to thanks Martin Galvan who has sent an alternative
implementation with some interesting fixes.

Tested on CubieBoard2, Banana-Pi (thanks to netgate!) and Cubieboard1
(Pratik Singhal).

This is intended to pave the way for the upcoming GSoC work (and make
easier the build of images for the supported boards).

PR:             196081
Submitted by:   Alexander Fedorov <alexander.fedorov@rtlservice.com>
17:39:42 - r283252
(4 days 3 hours ago)
by gjb
Affects:  /head/release/Makefile.ec2
Include the TARGET in the EC2 AMI name.

Without this, AWS rejects subsequent image uploads of a different
architecture because the name conflicts.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
16:44:31 - r283251
(4 days 4 hours ago)
by bdrewery
Affects: 
(4 files)
/stable/10/ObsoleteFiles.inc
/stable/10/share/man/man9/Makefile
/stable/10/share/man/man9/namei.9
MFC r282574:

  Remove references to Giant in namei(9).  This was removed in r241896.
16:43:26 - r283250
(4 days 4 hours ago)
by jhb
Affects:  /head/sys/kern/kern_condvar.c
/head/sys/sys/condvar.h
Revert r282971.  It depends on condvar consumers not destroying condvars
until all threads sleeping on a condvar have resumed execution after being
awakened.  However, there are cases where that guarantee is very hard to
provide.
15:38:43 - r283249
(4 days 5 hours ago)
by jmg
Affects:  /head/sys/sys/systm.h
remove stray ; that came in r272673...
15:16:18 - r283248
(4 days 6 hours ago)
by pfg
Affects: 
(31 files)
/head/sys/*
ddb: finish converting boolean values.

The replacement started at r283088 was necessarily incomplete without
replacing boolean_t with bool.  This also involved cleaning some type
mismatches and ansifying old C function declarations.

Pointed out by: bde
Discussed with: bde, ian, jhb
15:05:46 - r283247
(4 days 6 hours ago)
by bapt
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
Mark libgomp.so.1 as an old lib not an old file
14:36:15 - r283246
(4 days 6 hours ago)
by imp
Affects:  /head/usr.sbin/bluetooth/bthidd/Makefile
Remove stray DEBUG_FLAGS=-g that snuck in with r137868
14:36:14 - r283245
(4 days 6 hours ago)
by imp
Affects:  /head/usr.bin/tar/Makefile
Remove stray DEBUG_FLAGS=-g that snuck in with r184761.
14:36:12 - r283244
(4 days 6 hours ago)
by imp
Affects:  /head/cddl/usr.bin/ctfconvert/Makefile
Remove stray DEBUG_FLAGS=-g that's been here since the initial import.
14:36:11 - r283243
(4 days 6 hours ago)
by imp
Affects:  /head/lib/libufs/Makefile
Remove the stray DEBUG_FLAGS=-g line that snuck in with the
soft-updates journaling project merge in r207141.
13:42:37 - r283242
(4 days 7 hours ago)
by trasz
Affects: 
(5 files)
/stable/10/etc/auto_master
/stable/10/etc/autofs/*
/stable/10/usr.sbin/autofs/auto_master.5
MFC r279955:

Add -noauto autofs map, for automatic handling of fstab entries
marked "noauto".

Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
13:41:08 - r283241
(4 days 7 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/automountd.c
MFC r279954:

Get executable direct maps to work.

Sponsored by:   The FreeBSD Foundation
13:39:38 - r283240
(4 days 7 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/common.c
MFC r279953:

Rework the concat() algorithm to be correct in all cases.

Sponsored by:   The FreeBSD Foundation
13:37:48 - r283239
(4 days 7 hours ago)
by trasz
Affects: 
(4 files)
/stable/10/usr.sbin/autofs/automount.c
/stable/10/usr.sbin/autofs/common.c
/stable/10/usr.sbin/autofs/common.h
MFC r279916:

Make "automount -LL -o whatever" present options in the same order
as used by automountd(8).

Sponsored by:   The FreeBSD Foundation
13:36:00 - r283238
(4 days 7 hours ago)
by trasz
Affects: 
(4 files)
/stable/10/usr.sbin/autofs/automount.c
/stable/10/usr.sbin/autofs/automountd.c
/stable/10/usr.sbin/autofs/common.c
MFC r279915:

Make concat() accept NULL arguments.

Sponsored by:   The FreeBSD Foundation
13:34:33 - r283237
(4 days 7 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/automountd.c
MFC r279914:

Options from auto_master must be appended to options from maps,
not prepended.

Sponsored by:   The FreeBSD Foundation
13:33:06 - r283236
(4 days 7 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/automountd.8
MFC r279851:

Fix typo.

Sponsored by:   The FreeBSD Foundation
13:31:44 - r283235
(4 days 7 hours ago)
by trasz
Affects: 
(3 files)
/stable/10/usr.sbin/autofs/automount.c
/stable/10/usr.sbin/autofs/automountd.c
MFC r279846:

Properly pass options for direct maps.

Sponsored by:   The FreeBSD Foundation
13:30:10 - r283234
(4 days 7 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/usr.bin/ar/read.c
MFC r276774: ar: Avoid null pointer deref while reading corrupt archives

  ELF Tool Chain ticket #467

Reported by:    Alexander Cherepanov <cherepan@mccme.ru>
Sponsored by:   The FreeBSD Foundation
13:29:34 - r283233
(4 days 7 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/common.c
MFC r279845:

Fix handling of direct maps, broken in r275756.  Previously, running
automount(8) would unmount direct map trigger nodes every second time.

Sponsored by:   The FreeBSD Foundation
13:26:52 - r283232
(4 days 7 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/common.c
MFC r279843:

Refactor.

Sponsored by:   The FreeBSD Foundation
13:25:28 - r283231
(4 days 7 hours ago)
by trasz
Affects: 
(6 files)
/stable/10/usr.sbin/autofs/*
MFC r279813:

Make things more readable; no functional changes.

Sponsored by:   The FreeBSD Foundation
13:23:49 - r283230
(4 days 7 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/common.c
MFC r279812:

Remove some particularly bad code; no functional changes.

MFC r279815:

Erm, revert chunk committed by mistake.

Sponsored by:   The FreeBSD Foundation
13:21:03 - r283229
(4 days 8 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/common.c
MFC r279808:

Fix memory leak.

Sponsored by:   The FreeBSD Foundation
13:19:44 - r283228
(4 days 8 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/common.c
MFC r279807:

Improve separated_concat() to properly handle the case of concatenating
"/" and "/foo".
13:18:02 - r283227
(4 days 8 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/common.c
MFC r279806:

Minor optimization/cleanup in node_path(); no functional changes.
13:13:56 - r283226
(4 days 8 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/etc/devd.conf
MFC r277171:

Use newly added GEOM notifications to discard autofs caches.

Sponsored by:   The FreeBSD Foundation
13:11:48 - r283225
(4 days 8 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/auto_master.5
MFC r276883:

Improve documentation for autofs variables and executable maps;
also some markup fixes.

Sponsored by:   The FreeBSD Foundation
13:10:08 - r283224
(4 days 8 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/etc/auto_master
MFC r276833:

Make /net use -intr by default.  Linux does that, and it seems a good idea.

Sponsored by:   The FreeBSD Foundation
13:08:30 - r283223
(4 days 8 hours ago)
by trasz
Affects: 
(6 files)
/stable/10/etc/*
/stable/10/usr.sbin/autofs/auto_master.5
MFC r275681:

Add "-media" autofs map, to access data on removable media, such as CD
drives or flash keys.  It can be enabled by uncommenting a single entry
in default /etc/auto_master.  It can also be easily modified to use
fuse-based filesystems instead of in-kernel ones.

There is still one deficiency - the mountpoints are permanent, they
don't disappear when user removes the media.  Fixing it needs some
autofs changes.

Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
13:04:14 - r283222
(4 days 8 hours ago)
by bapt
Affects:  /head/ObsoleteFiles.inc
Removed files not installed anymore with mandoc
13:02:43 - r283221
(4 days 8 hours ago)
by bapt
Affects:  /head/usr.bin/Makefile
/head/usr.bin/demandoc
Remove demandoc(1) from the build
12:51:56 - r283220
(4 days 8 hours ago)
by bapt
Affects: 
(4 files)
/head/lib/*
/head/share/mk/src.libnames.mk
/head/usr.bin/mandoc/Makefile
Drop libmandoc and incorporate it into the main mandoc Makefile

This simplifies maintainance of mandoc(1).
Note that the same direction was taken on OpenBSD
10:40:18 - r283219
(4 days 10 hours ago)
by royger
Affects: 
(4 files)
/stable/10/sys/conf/files.amd64
/stable/10/sys/conf/files.i386
/stable/10/sys/dev/atkbdc/atkbd.c
MFC: r282269, r282277

atkbd: remove usage of x86bios
Remove leftover from r282269.
10:28:33 - r283218
(4 days 10 hours ago)
by royger
Affects: 
(2 files)
/stable/10/sys/dev/xen/netfront/netfront.c
MFC: r282908

netfront: wait for backend to connect before sending ARP

Sponsored by: Citrix Systems R&D
09:24:35 - r283217
(4 days 11 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge.c
MFC: r283051

sfxge: do not advertise LRO capability if LRO is compiled out

Sponsored by:   Solarflare Communications, Inc.
09:23:28 - r283216
(4 days 11 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge.c
MFC: r283050

sfxge: automatically turn off TSO when Tx checksum offload is disabled

Also return error if TSO is requested without Tx checksum offload.

Sponsored by:   Solarflare Communications, Inc.
09:22:15 - r283215
(4 days 11 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge.c
MFC: r283049

sfxge: allow to disable checksum offloads over VLAN

It just affects capabilities of the created VLAN interface.

Sponsored by:   Solarflare Communications, Inc.
09:21:05 - r283214
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: r283048

sfxge: fix overflow queue freeze

If TxQ lock is obtained, deferred packet list shold be serviced even if
the packet addition fails because of overflow.

Without the patch freeze happens if:
 - queue is not blocked (i.e. completion does not trigger unblock and service)
 - put-list overflow (1024 entries)
 - sfxge_tx_packet_add() acquires TxQ lock just as it is released it in
   sfxge_tx_qdpl_service() on the second CPU but before pending check
 - sfxge_tx_packet_add() swizzles put-list to get-list, fails because of
   non-tcp get-list overflow and returns without packet list service
 - sfxge_tx_qdpl_service() on the second CPU checks that there are no
   pending packets in the put-list and returns

Other possible solution is to guaranee that maximum length of the put-list
is less than maximum length of any get-list.

Sponsored by:   Solarflare Communications, Inc.
09:15:19 - r283213
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_port.c
MFC: r283007

sfxge: avoid usage of ifm_data

The driver uses ifm_data to save capabilities mask calculated during
initialization when supported phy modes are discovered.
The patch simply calculates it when either media or options are changed.

Sponsored by:   Solarflare Communications, Inc.
09:13:47 - r283212
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge.c
MFC: r283000

sfxge: add local variable with changed capabilities mask

It is required for the next patch which adds dependency of TSO
capabilities from Tx checksum offloads.

Sponsored by:   Solarflare Communications, Inc.
09:12:25 - r283211
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: r282998

sfxge: move mbuf free to sfxge_if_transmit()

It is a preparation to the next patch which will service packet queue
even if packet addtion fails.

Sponsored by:   Solarflare Communications, Inc.
09:11:03 - r283210
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: r282997

sfxge: get rid of locked variable in sfxge_tx_packet_add()

Now each branch has one and only one possible TxQ lock state.
It simplifies understanding of the code.

Sponsored by:   Solarflare Communications, Inc.
09:09:51 - r283209
(4 days 12 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge.c
/stable/10/sys/dev/sfxge/sfxge_rx.c
MFC: r282996

sfxge: support Rx checksum offloads disabling

We can't disable it in HW, but we can ignore result.
Discard Rx descriptor checksum flags if Rx checksum offload is off.

Sponsored by:   Solarflare Communications, Inc.
09:08:10 - r283208
(4 days 12 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: r282942

sfxge: split sfxge_tx_qdpl_put() into *_locked() and *_unlocked()

It simplifies understanding of the sfxge_tx_packet_add() logic and
avoids passing of 'locked' to called function.

Sponsored by:   Solarflare Communications, Inc.
09:06:41 - r283207
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge.c
MFC: r282941

sfxge: do not change CSUM_TSO when IFCAP_TSOx is changed

It is simply not required since the kernel checks corresponding
IFCAP_TSOx capability and CSUM_TSO in hw-assisted offloads.
Note that CSUM_TSO is two bits (CSUM_IP_TSO|CSUM_IP6_TSO) and both bits
are set in IPv4 and IPv6 mbufs.

Sponsored by:   Solarflare Communications, Inc.
09:05:13 - r283206
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_rx.c
MFC: r282940

sfxge: LRO may be done only if checksums are OK

Also it is cheaper to check Rx descriptor flags than TCP protocol in IP
header.

Sponsored by:   Solarflare Communications, Inc.
09:03:18 - r283205
(4 days 12 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge.c
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: r282903

sfxge: advertise IPv6 Rx and Tx checksum offload support

Tx checksum offload may be enabled/disabled.

Sponsored by:   Solarflare Communications, Inc.
09:00:45 - r283204
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge.c
MFC: r282900

sfxge: IPv4 Tx checksum offload may be disabled in fact

Split IFCAP_HWCSUM to IFCAP_RXCSUM and IFCAP_TXCSUM to highlight Tx and Rx.

Sponsored by:   Solarflare Communications, Inc.
08:59:03 - r283203
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_rx.c
MFC: r282899

sfxge: add local variable with Rx descriptor flags

Sponsored by:   Solarflare Communications, Inc.
08:55:06 - r283202
(4 days 12 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_port.c
MFC: r282897

sfxge: add missing const qualifier to sfxge_link_mode

Sponsored by:   Solarflare Communications, Inc.
08:38:25 - r283201
(4 days 12 hours ago)
by bapt
Affects:  /head/include/stringlist.h
/head/lib/libc/gen/stringlist.c
Remove clause 3 and 4 from the license

Obtained from:  NetBSD
08:32:52 - r283200
(4 days 12 hours ago)
by ae
Affects: 
(2 files)
/stable/9/sys/kern/uipc_mbuf.c
MFC r282594:
  m_dup() is supposed to give a writable copy of an mbuf chain. It uses
  m_dup_pkthdr(), that uses M_COPYFLAGS mask to copy m_flags field.
  If original mbuf chain has M_RDONLY flag, its copy also will have it.
  Reset this flag explicitly.
08:28:48 - r283199
(4 days 12 hours ago)
by bapt
Affects:  /head/usr.bin/soelim/soelim.1
* fix roff terminology in .Nd
* remove .Xr to self
* add AUTHORS section

Submitted by:   schwarze at OpenBSD
08:28:35 - r283198
(4 days 12 hours ago)
by ae
Affects: 
(2 files)
/stable/10/sys/kern/uipc_mbuf.c
MFC r282594:
  m_dup() is supposed to give a writable copy of an mbuf chain. It uses
  m_dup_pkthdr(), that uses M_COPYFLAGS mask to copy m_flags field.
  If original mbuf chain has M_RDONLY flag, its copy also will have it.
  Reset this flag explicitly.
08:26:24 - r283197
(4 days 12 hours ago)
by bapt
Affects:  /head/usr.bin/soelim/soelim.c
add an include on sys/types.h because we do explicitly use size_t
remove unused stdbool.h

Suggested by:   schwarze at OpenBSD
08:23:45 - r283196
(4 days 12 hours ago)
by bapt
Affects:  /head/usr.bin/soelim/soelim.c
Use the POSIX PATH_MAX macro from limits.h instead of non standard MAXPATHLEN

Submitted by:   schwarze at OpenBSD
08:20:42 - r283195
(4 days 13 hours ago)
by bapt
Affects:  /head/usr.bin/soelim/soelim.c
sort headers
07:50:56 - r283194
(4 days 13 hours ago)
by hselasky
Affects: 
(4 files)
/stable/9/sys/dev/usb/serial/uftdi.c
/stable/9/sys/dev/usb/usbdevs
MFC r282505:
Add new USB ID.

PR:             199843
07:49:44 - r283193
(4 days 13 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/dev/usb/serial/uftdi.c
/stable/10/sys/dev/usb/usbdevs
MFC r282505:
Add new USB ID.

PR:             199843
07:48:06 - r283192
(4 days 13 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/sound/pcm/dsp.c
MFC r282017:
Allow DSP basename cloning to be disabled or enabled at boot and
runtime. This is useful when implementing OSS sound stacks in
userspace via libcuse for example.
07:46:01 - r283191
(4 days 13 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/sys/dev/sound/pcm/dsp.c
MFC r282017:
Allow DSP basename cloning to be disabled or enabled at boot and
runtime. This is useful when implementing OSS sound stacks in
userspace via libcuse for example.
07:42:46 - r283190
(4 days 13 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/cam/scsi/scsi_da.c
MFC r279726:
Add DA_Q_NO_RC16 quirk for USB mass storage device.

PR:             194062
07:41:03 - r283189
(4 days 13 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/cam/scsi/scsi_da.c
MFC r279726:
Add DA_Q_NO_RC16 quirk for USB mass storage device.

PR:             194062
07:35:20 - r283188
(4 days 13 hours ago)
by ganbold
Affects:  /head/sys/arm/amlogic/aml8726/aml8726_usb_phy-m6.c
Add missing break statement.

Submitted by:     John Wehle
07:34:08 - r283187
(4 days 13 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/dev/vt/vt.h
/stable/10/sys/dev/vt/vt_core.c
MFC r282645, r282646 and r282730:
* Prevent switching to NULL or own window in the "vt_proc_window_switch"
  function. This fixes an issue where X11 keyboard input can appear
  stuck. The cause of the problem is a duplicate TTY device window
  switch IOCTL during boot, which leaves the "vt_switch_timer" running,
  because the current window is already selected. While at it factor out
  some NULL checks.
* The "SYSCTL_INT()" default value is only used for read only SYSCTLs
  and is not applicable unless the integer pointer is NULL. Set it to
  zero to avoid confusion. While at it remove extra semicolon at the end
  of the "VT_SYSCTL_INT()" macro.
* Ensure the result from signed subtraction under modulus does not
  become negative.

PR:                     200032
07:23:50 - r283186
(4 days 13 hours ago)
by ganbold
Affects:  /head/sys/arm/amlogic/aml8726/aml8726_usb_phy-m3.c
/head/sys/arm/amlogic/aml8726/files.aml8726
Add driver for usbclock generator for earlier amlogic chip.

Differential Revision:  https://reviews.freebsd.org/D2590
Submitted by:           John Wehle
07:10:49 - r283185
(4 days 14 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/sound/usb/uaudio.c
MFC r282652:
Ensure the USB audio driver doesn't attach twice on the same USB
device by grabbing all the USB audio device interfaces.
07:09:19 - r283184
(4 days 14 hours ago)
by hselasky
Affects: 
(5 files)
/stable/8/sys/dev/sound/usb/uaudio.c
MFC r282652:
Ensure the USB audio driver doesn't attach twice on the same USB
device by grabbing all the USB audio device interfaces.
07:09:01 - r283183
(4 days 14 hours ago)
by ganbold
Affects:  /head/sys/arm/amlogic/aml8726/aml8726_ccm.c
/head/sys/arm/amlogic/aml8726/aml8726_pinctrl.c
/head/sys/arm/amlogic/aml8726/aml8726_sdxc-m8.c
Remove unnecessary break statements.

Submitted by:      John Wehle
07:07:28 - r283182
(4 days 14 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/sys/dev/sound/usb/uaudio.c
MFC r282652:
Ensure the USB audio driver doesn't attach twice on the same USB
device by grabbing all the USB audio device interfaces.
07:01:08 - r283181
(4 days 14 hours ago)
by ganbold
Affects:  /head/sys/arm/amlogic/aml8726/aml8726_rtc.c
/head/sys/boot/fdt/dts/arm/odroidc1.dts
/head/sys/boot/fdt/dts/arm/vsatv102-m6.dts
The RTC initialization values are based on the SoC which can be
determined at runtime so there's no need to set the values in
each DTS.
Tested on YYHD18 (aml8726-m3), VSATV102 (aml8726-m6), and
ODROIDC1 (aml8726-m8b).

Differential Revision:  https://reviews.freebsd.org/D2588
Submitted by:           John Wehle
06:58:50 - r283180
(4 days 14 hours ago)
by dim
Affects:  /vendor/clang/clang-release_361-r237755
Tag clang tags/RELEASE_361/final r237755 (effectively, 3.6.1 release).
06:58:19 - r283179
(4 days 14 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/ofed/drivers/net/mlx4/en_netdev.c
MFC r282817:
Apply proper locking when iterating the multicast addresses and add a
missing check for NULL from a non-blocking "kzalloc()" function call.

Sponsored by:   Mellanox Technologies
06:58:08 - r283178
(4 days 14 hours ago)
by dim
Affects: 
(44 files)
/vendor/clang/dist/include/clang/*
/vendor/clang/dist/lib/*
/vendor/clang/dist/test/*
Vendor import of clang RELEASE_361/final tag r237755 (effectively, 3.6.1
release):
https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_361/final@237755
06:57:51 - r283177
(4 days 14 hours ago)
by dim
Affects:  /vendor/llvm/llvm-release_361-r237755
Tag llvm tags/RELEASE_361/final r237755 (effectively, 3.6.1 release).
06:57:07 - r283176
(4 days 14 hours ago)
by dim
Affects: 
(416 files)
/vendor/llvm/dist/*
Vendor import of llvm RELEASE_361/final tag r237755 (effectively, 3.6.1
release):
https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_361/final@237755
06:56:35 - r283175
(4 days 14 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/ofed/drivers/net/mlx4/en_netdev.c
MFC r282817:
Apply proper locking when iterating the multicast addresses and add a
missing check for NULL from a non-blocking "kzalloc()" function call.

Sponsored by:   Mellanox Technologies
06:53:55 - r283174
(4 days 14 hours ago)
by hselasky
Affects: 
(12 files)
/stable/9/share/man/man4/usb_quirk.4
/stable/9/sys/dev/usb/*
MFC r282577:
Add support for DYMO LabelWriter PnP.
06:47:20 - r283173
(4 days 14 hours ago)
by hselasky
Affects: 
(8 files)
/stable/10/share/man/man4/usb_quirk.4
/stable/10/sys/dev/usb/*
MFC r282577:
Add support for DYMO LabelWriter PnP.
06:34:06 - r283172
(4 days 14 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/kern/kern_sysctl.c
MFC r280495:
Implement a simple OID number garbage collector. Given the increasing
number of dynamically created and destroyed SYSCTLs during runtime it
is very likely that the current new OID number limit of 0x7fffffff can
be reached. Especially if dynamic OID creation and destruction results
from automatic tests. Additional changes:

- Optimize the typical use case by decrementing the next automatic OID
sequence number instead of incrementing it. This saves searching time
when inserting new OIDs into a fresh parent OID node.

- Add simple check for duplicate non-automatic OID numbers.
06:30:44 - r283171
(4 days 14 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/kern/kern_sysctl.c
MFC r280495:
Implement a simple OID number garbage collector. Given the increasing
number of dynamically created and destroyed SYSCTLs during runtime it
is very likely that the current new OID number limit of 0x7fffffff can
be reached. Especially if dynamic OID creation and destruction results
from automatic tests. Additional changes:

- Optimize the typical use case by decrementing the next automatic OID
sequence number instead of incrementing it. This saves searching time
when inserting new OIDs into a fresh parent OID node.

- Add simple check for duplicate non-automatic OID numbers.
05:06:08 - r283170
(4 days 16 hours ago)
by ngie
Affects: 
(3 files)
/head/contrib/atf/atf-sh/atf_check_test.sh
/head/contrib/atf/atf-sh/misc_helpers.sh
Import proposed fix from upstream for
atf-sh/atf_check_test:flush_stdout_on_timeout

Many thanks for jmmv for the fix!

MFC after: 1 week
PR: 197060

Original commit message:

From 0e546407567ea858e261e72f75c5ed61e07d0ddf Mon Sep 17 00:00:00 2001
From: Julio Merino <jmmv@google.com>
Date: Tue, 17 Feb 2015 18:10:11 -0500
Subject: [PATCH] Fix atf-sh/atf_check_test:flush_stdout_on_death

The test atf-sh/atf_check_test:flush_stdout_on_timeout was flaky as it
was playing solely with time.  Fix this by making the test more robust
and rename it while we are at it: there is nothing left about "timeouts"
in this test, considering that ATF itself does not enforce deadlines
any longer.

Fixes FreeBSD PR 197060.
05:02:08 - r283169
(4 days 16 hours ago)
by ngie
Affects:  /head/Makefile.inc1
_Really_, _Really_ fix buildworld by moving the conditionals down, fixing some
typos, and fixing the dependency when MK_LIBCPLUSPLUS != no

- `:D` operator evaluation is immediate, i.e. like .if defined(..). So r283159
  was in effect a no-op commit.
- Fix dependency in MK_LIBCPLUSPLUS case in two ways:
-- lib/libc++ was the wrong dependency. It should have been libcxxrt.
-- lib/libc++ was missing __L, so again it was depending on the directory, not
   the relevant .PHONY target.

Tested with: make tinderbox (amd64, arm, sparc64) and JFLAG=-j16
In collaboration with: bdrewery, imp, peter
BIG pointyhat to: ngie (for trying to commit things at 6am while staying up all
                        night working on other tasks)
04:19:22 - r283168
(4 days 17 hours ago)
by grehan
Affects:  /head/usr.sbin/bhyve/block_if.h
Temporarily revert r282922 which bumped the max descriptors.

While there is no issued with the number of descriptors in
a virtio indirect descriptor, it's a guest's choice as to
whether indirect descriptors are used. For the case where
they aren't, the virtio block ring size is still 64 which
is less than the now reported max_segs of 67. This results
in an assertion in recent Linux guests even though it was
benign since they were using indirect descs.

The intertwined relationship between virtio ring size,
max seg size and blockif queue size will be addressed
in an upcoming commit, at which point the max descriptors
will again be bumped up to 67.
03:32:44 - r283167
(4 days 17 hours ago)
by allanjude
Affects:  /head/lib/libprocstat/Makefile
/head/lib/libprocstat/libprocstat.3
/head/usr.bin/procstat/procstat.1
Create links to the libprocstat man pages for all of the libprocstat functions
so they can be looked up by name

Add a cross refrence to libprocstat in the procstat.1 man page

Differential Revision:  https://reviews.freebsd.org/D2578
Suggested by:   jmg
Reviewed by:    brueffer
Approved by:    wblock (mentor)
MFC after:      1 week
Sponsored by:   ScaleEngine Inc.
03:26:46 - r283166
(4 days 17 hours ago)
by ngie
Affects:  /vendor/atf/dist/atf-sh/atf_check_test.sh
/vendor/atf/dist/atf-sh/misc_helpers.sh
Import proposed fix from
https://github.com/jmmv/atf/commit/0e546407567ea858e261e72f75c5ed61e07d0ddf.patch

PR: 197060

Original commit message:

From 0e546407567ea858e261e72f75c5ed61e07d0ddf Mon Sep 17 00:00:00 2001
From: Julio Merino <jmmv@google.com>
Date: Tue, 17 Feb 2015 18:10:11 -0500
Subject: [PATCH] Fix atf-sh/atf_check_test:flush_stdout_on_death

The test atf-sh/atf_check_test:flush_stdout_on_timeout was flaky as it
was playing solely with time.  Fix this by making the test more robust
and rename it while we are at it: there is nothing left about "timeouts"
in this test, considering that ATF itself does not enforce deadlines
any longer.

Fixes FreeBSD PR 197060.
01:50:06 - r283165
(4 days 19 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/usr.sbin/kbdmap/kbdmap.c
MFC r282904: kbdmap(1): increase description size to 256 bytes

  After conversion to UTF-8 some INDEX.keymaps descriptions are longer
  than the previous limit of 64 bytes.

PR:             193656
01:47:12 - r283164
(4 days 19 hours ago)
by emaste
Affects: 
(3 files)
/stable/10/share/syscons/keymaps/INDEX.keymaps
/stable/10/share/vt/keymaps/INDEX.keymaps
MFC INDEX.keymaps fixes

r282898: Correct UTF-8 encoding in Británico

  One á was ISO 8859-1 0xE1 instead of UTF-8 0xC3 0xA1.

r282902: Correct language code -- "Danish" is English

  The menu entry "Danish ISO-8859-1 (macbook)" was first added to the
  syscons(4) INDEX.keymaps in r241851 with no language code, and then in
  r256367 incorrectly tagged with "da".  It is a Danish keyboard map, but
  the description is in English and therefore must be "en".

  This error subsequently propagated into the vt(4) INDEX.keymaps.

r282905: Restore 'he' language code for Hebrew kbdmap(1) menu title

r282914: kbdmap(1): Correct menu title: keyboards have a layout, not a language

PR:             146793, 193656
2015 - 05 - 20   (5 days ago)
23:15:56 - r283163
(4 days 22 hours ago)
by kib
Affects:  /head/sys/vm/vm_page.c
Do grammar fix in the comment to record the right commit message for
r283162.

Fix a cosmetic issue with vm_page_alloc() calling vm_page_free_toq()
with the page not completely satisfying vm_page_free() assertions.
The page is not owned by the object, since insertion failed.  But
besides m->object reset to NULL, we should also set VPO_UNMANAGED flag
for consistency.

Reported by:    pho
Reviewed by:    alc
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
23:03:22 - r283162
(4 days 22 hours ago)
by kib
Affects:  /head/sys/vm/vm_page.c
Remove the write-only variable phent.  We currently do not check the
size of the program header's entries.

Reported by:    adrian (by using gcc 4.9)
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
19:32:57 - r283161
(5 days 1 hour ago)
by gjb
Affects: 
(16 files)
/stable/10/etc/etc.arm/ttys
/stable/10/release/*
/stable/10/sys/arm/conf/*
MFC r282500, r282693:
 r282500:
  Add initial support for building RPI2 images.

  In release.sh, allow overriding buildenv_setup() before
  the handoff to arm/release.sh.

  Copy arm/RPI-B.conf -> arm/RPI2.conf, set UBOOT_PORT and
  the correct KERNEL, and add the buildenv_setup() override
  to install the sysutils/u-boot-rpi2 port/package.

  Copy tools/arm/crochet-RPI-B.conf -> tools/arm/crochet-RPI2.conf,
  and set the correct entries for the RaspberryPi2 board.

 r282693:
  Merge ^/projects/release-arm-redux into ^/head.

  Of note:

  - This commit adds native FreeBSD/arm release build support without
    requiring out-of-tree utilities.

  - Part of this merge removes the WANDBOARD-{SOLO,DUAL,QUAD} kernel
    configuration files, for which the IMX6 kernel configuration file
    should be used instead.

  - The resulting images have a 'freebsd' user (password 'freebsd'),
    to allow ssh(1) access when console access is not available (VGA
    or serial).  The default 'root' user password is set to 'root'.

  - The /etc/ttys file for arm images now enable both ttyv0 and ttyu0
    by default.

Note:  The RPI2 kernel configuration does not yet exist in stable/10,
however the merge conflicts needed to be properly resolved.
Additionally, SRCBRANCH has been set to base/stable/10 in the updated
arm configuration files as part of this commit.

Sponsored by:   The FreeBSD Foundation
18:56:29 - r283160
(5 days 2 hours ago)
by bapt
Affects: 
(5 files)
/head/Makefile.inc1
/head/ObsoleteFiles.inc
/head/kerberos5/lib/*
Make kerberos use the same sqlite libraries as other sqlite consumer.

This reduces the number of copy of sqlite we have to just one and easier
tracking version of sqlite

Differential Revision:  https://reviews.freebsd.org/D2443
Reviewed by:    imp, stas, bjk
18:41:54 - r283159
(5 days 2 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Fix breakage I didn't fully solve in r283151 by depending on the .PHONY
target, not the directory when building libctf for libproc

Reported by: many, Jenkins
Submitted by: rodrigc
17:48:22 - r283158
(5 days 3 hours ago)
by oshogbo
Affects:  /head/sys/kern/subr_nvlist.c
Fix memory leak.

Approved by:    pjd (mentor)
17:47:01 - r283157
(5 days 3 hours ago)
by oshogbo
Affects:  /head/sys/kern/subr_nvpair.c
Style.

Approved by:    pjd (mentor)
17:44:58 - r283156
(5 days 3 hours ago)
by oshogbo
Affects:  /head/sys/kern/subr_nvlist.c
Always use the nv_free function.

Approved by:    pjd (mentor)
17:42:40 - r283155
(5 days 3 hours ago)
by oshogbo
Affects:  /head/sys/sys/nvpair_impl.h
Correct variable name in the interface.

Approved by:    pjd (mentor)
17:02:30 - r283154
(5 days 4 hours ago)
by gjb
Affects:  /stable/10
Record mergeinfo for r282772, missed in r282877.

Sponsored by:   The FreeBSD Foundation
15:37:15 - r283153
(5 days 5 hours ago)
by kib
Affects:  /head/lib/libc/gen/dlfcn.c
Remove the write-only variable phent.  We currently do not check the
size of the program header's entries.

Reported by:    adrian (by using gcc 4.9)
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
13:05:33 - r283152
(5 days 8 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Unbreak the arm64/sparc64 tinderbox by only compiling lib/libproc and
lib/librtld_db on architectures where they're supported

Reported by: bz, Jenkins
Pointyhat to: bapt
13:04:00 - r283151
(5 days 8 hours ago)
by ngie
Affects:  /head/Makefile.inc1
cddl/lib/libctf isn't always a requirement for lib/libproc; its use is dependent
on MK_CTF != "no". Use the other divined value instead of reinventing the wheel
12:56:40 - r283150
(5 days 8 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Add _more_ missing dependencies for lib/libproc to further squash build races

Verified via `cd lib/libproc; make -VLIBADD`

Pointyhat to: ngie
12:54:22 - r283149
(5 days 8 hours ago)
by emaste
Affects:  /head/sys/modules/Makefile
Avoid trying to build cxbge on 32-bit MIPS

It lacks required 64-bit atomics.

Reviewed by:    imp (earlier version)
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D2585
12:46:30 - r283148
(5 days 8 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Articulate all dependencies for lib/libproc to squash build races after r283139
on !arm64 and !sparc64

Pointyhat to: bapt
Sponsored by: EMC / Isilon Storage Division
12:26:09 - r283147
(5 days 8 hours ago)
by ngie
Affects:  /head/cddl/sbin/Makefile
/head/cddl/usr.bin/Makefile
/head/cddl/usr.sbin/Makefile
Build cddl/{sbin,usr.bin,usr.sbin} in parallel as all of the applications are
freestanding (they require libraries build via make libraries in buildworld)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
11:59:53 - r283146
(5 days 9 hours ago)
by ae
Affects:  /head/sys/netipsec/key.c
In the reply to SADB_X_SPDGET message use the same sequence number that
was in the request. Some IKE deamons expect it will the same. Linux and
NetBSD also follow this behaviour.

PR:             137309
MFC after:      2 weeks
11:16:17 - r283145
(5 days 10 hours ago)
by ngie
Affects:  /head/cddl/lib/Makefile
Add dependencies for libzfs_core and libzpool I missed on my first pass on this
Makefile

MFC with: r283144
Sponsored by: EMC / Isilon Storage Division
11:03:53 - r283144
(5 days 10 hours ago)
by ngie
Affects:  /head/cddl/lib/Makefile
Articulate dependencies for cddl/lib/libdtrace and cddl/lib/libzfs

Parallelize the build in this subdirectory

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
10:56:09 - r283143
(5 days 10 hours ago)
by ngie
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
Remove usr/share/dtrace/{tcpconn,tcpstate,tcptrack,udptrack} if MK_CDDL == no

Sponsored by: EMC / Isilon Storage Division
09:42:33 - r283142
(5 days 11 hours ago)
by glebius
Affects:  /head/sys/net80211/ieee80211_freebsd.c
EVENTHANDLER_REGISTER() doesn't fail.
09:40:34 - r283141
(5 days 11 hours ago)
by trasz
Affects:  /head/usr.sbin/uefisign/pe.c
Remove the warning about invalid PE checksum; apparently nothing
cares about those checksums anyway.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
09:36:25 - r283140
(5 days 11 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Only build sys/boot/usb/tools if MK_USB != no

Sponsored by: EMC / Isilon Storage Division
09:23:37 - r283139
(5 days 11 hours ago)
by bapt
Affects:  /head/Makefile.inc1
Fix buildworld by adding libproc and librtld_db to the _prebuild_libs
Those are needed to build libdtrace
06:23:01 - r283138
(5 days 14 hours ago)
by rpaulo
Affects:  /head/sys/arm/ti/ti_pruss.c
/head/sys/arm/ti/ti_pruss.h
ti_pruss: pass the correct IRQ to userland.

Also, fix several problems with the kqueue notification.

Submitted by:   Manuel Stühn freebsdnewbie at freenet.de
05:49:52 - r283137
(5 days 15 hours ago)
by ganbold
Affects:  /head/sys/arm/conf/ODROIDC1
/head/sys/arm/conf/VSATV102
D2432 (Patch for Amlogic single core PIC) moved the SMP option out
of AML8726 and into board specific config files since some boards
(e.g. YYHD18) use the aml8726-m3 which only have a single core.

r283057 applied most of D2432, however while it removed SMP from
AML8726, it missed adding the SMP option to the board specific
config files.

Differential Revision:  https://reviews.freebsd.org/D2589
Submitted by:   John Wehle
01:08:01 - r283136
(5 days 20 hours ago)
by hiren
Affects:  /head/sys/netinet/tcp_hostcache.c
Add a new sysctl net.inet.tcp.hostcache.purgenow=1 to expire and purge all
entries in hostcache immediately.

In collaboration with:  bz, rwatson
MFC after:      1 week
Relnotes:       yes
Sponsored by:   Limelight Networks
2015 - 05 - 19   (6 days ago)
23:53:25 - r283135
(5 days 21 hours ago)
by delphij
Affects: 
(77 files)
/stable/8/contrib/file/*
/stable/8/lib/libmagic/*
/stable/8/usr.bin/file/Makefile
MFC: file 5.22.
22:29:11 - r283134
(5 days 22 hours ago)
by bapt
Affects:  /head/cddl/usr.sbin/lockstat/Makefile
/head/cddl/usr.sbin/plockstat/Makefile
Reduce overlinking.
Because of libdtrace there is still a bit a overlinking but nothing we can deal
with easily
22:24:19 - r283133
(5 days 22 hours ago)
by bapt
Affects:  /head/cddl/lib/libdtrace/Makefile
/head/cddl/usr.sbin/dtrace/Makefile
Correctly link libdtrace and convert to LIBADD
Make dtrace only link to libdtrace
22:23:15 - r283132
(5 days 22 hours ago)
by bapt
Affects:  /head/lib/libproc/Makefile
Fix underlinking
22:22:53 - r283131
(5 days 22 hours ago)
by bapt
Affects:  /head/share/mk/src.libnames.mk
Register libdtrace and its direct and indirect dependencies
Register librdlt_db
Register libproc dependencies
Register libctf dependencies
21:59:00 - r283130
(5 days 23 hours ago)
by bapt
Affects:  /head/cddl/usr.bin/ctfconvert/Makefile
Convert to LIBADD
21:57:11 - r283129
(5 days 23 hours ago)
by bapt
Affects:  /head/cddl/usr.bin/ctfdump/Makefile
Convert to LIBADD
Remove dependency on pthread, it is not needed
21:16:53 - r283128
(6 days ago)
by imp
Affects:  /head/sys/dev/mmc/mmc.c
Re-select the SD card before getting the SD status. On a couple Atmel
boards, this prevents some error messages during enumeration and also
gives us the correct erase block size. They appear to be harmless
elsewhere.

# Note: we treat too many commands as 'can't fail' if they don't work
# after a couple of retries. We need to fix that, but not today...
21:16:51 - r283127
(6 days ago)
by imp
Affects:  /head/sys/arm/conf/SAM9G20EK
Add NFS server to mix (for easier, in-place updates). Move to
partition 2 for root (since partition 1 is reserved for FAT
files the Atmel ROMs can load).
21:16:37 - r283126
(6 days ago)
by imp
Affects:  /head/sys/arm/arm/pmap.c
Improve comment about unmapped I/O and fix typos.

Submitted by: Matteo Riondato
MFC After: 2 days
21:00:53 - r283125
(6 days ago)
by emaste
Affects:  /head/lib/csu/Makefile
/head/lib/csu/i386
/head/lib/csu/i386-elf
All FreeBSD platforms are elf: move i386-elf to i386

This was a leftover from when we had both i386 a.out and ELF.

Reviewed by:    kib, imp
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D2591
19:17:20 - r283124
(6 days 2 hours ago)
by hiren
Affects:  /head/sys/netinet/tcp_input.c
Correct the wording as we are increasing the window size.

Reviewed by:    jhb
Sponsored by:   Limelight Networks
19:15:19 - r283123
(6 days 2 hours ago)
by jhb
Affects:  /head/sys/dev/hwpmc/hwpmc_core.c
/head/sys/dev/hwpmc/hwpmc_mod.c
Fix two bugs that could result in PMC sampling effectively stopping.
In both cases, the the effect of the bug was that a very small positive
number was written to the counter. This means that a large number of
events needed to occur before the next sampling interrupt would trigger.
Even with very frequently occurring events like clock cycles wrapping all
the way around could take a long time. Both bugs occurred when updating
the saved reload count for an outgoing thread on a context switch.

First, the counter-independent code compares the current reload count
against the count set when the thread switched in and generates a delta
to apply to the saved count. If this delta causes the reload counter
to go negative, it would add a full reload interval to wrap it around to
a positive value. The fix is to add the full reload interval if the
resulting counter is zero.

Second, occasionally the raw counter value read during a context switch
has actually wrapped, but an interrupt has not yet triggered. In this
case the existing logic would return a very large reload count (e.g.
2^48 - 2 if the counter had overflowed by a count of 2). This was seen
both for fixed-function and programmable counters on an E5-2643.
Workaround this case by returning a reload count of zero.

PR:             198149
Differential Revision:  https://reviews.freebsd.org/D2557
Reviewed by:    emaste
MFC after:      1 week
Sponsored by:   Norse Corp, Inc.
19:01:52 - r283122
(6 days 2 hours ago)
by brooks
Affects: 
(2 files)
/stable/10/contrib/tcpdump/tcpdump.c
MFC r282436 (the portion that makes sense):

Remove "capability mode sandbox enabled" messages.

These messages serve little purpose and break some consumers.

PR:             199855
Differential Revision:  https://reviews.freebsd.org/D2440
Reviewed by:    rwatson
Approved by:    pjd
Sponsored by:   DARPA, AFRL
19:01:22 - r283121
(6 days 2 hours ago)
by jhb
Affects:  /head/sys/dev/hwpmc/hwpmc_core.c
Use the proper mask when reloading sampling PMCs for Core CPUs.

Differential Revision:  https://reviews.freebsd.org/D2492
Reviewed by:    emaste
MFC after:      1 month
18:58:18 - r283120
(6 days 2 hours ago)
by jhb
Affects:  /head/lib/libpmc/libpmc.c
/head/sys/dev/hwpmc/hwpmc_mod.c
/head/sys/sys/pmc.h
Use fixed enum values for PMC_CLASSES().

This removes one of the frequent causes of ABI breakage when new CPU
types are added to hwpmc(4).

Differential Revision:  https://reviews.freebsd.org/D2586
Reviewed by:    davide, emaste, gnn (earlier version)
MFC after:      2 weeks
18:35:18 - r283119
(6 days 2 hours ago)
by jhb
Affects: 
(19 files)
/head/sys/dev/ixl/*
Remove executable property from several ixl(4) source files.

Differential Revision:  https://reviews.freebsd.org/D2583
Reviewed by:    erj
18:29:13 - r283118
(6 days 2 hours ago)
by melifaro
Affects:  /head/sbin/ipfw/tables.c
Bring back support for checking tables via "ipfw -n".

Currently we have different table key types which can easily interfere
with each other (numbers and IPv4 address, interface names and hostnames,
  flows and hostnames/addresses).
This conflicts are solved by [auto-]creating _typed_ tables, so after
table is created, only keys of given type can be inserted to that table.
ipfw(8) consults with kernel about key/value type for particular table so
it knows key/value interpretation.
However, we have 2 cases (adding entries to non-existing table and
  parsing configuration file via `ipfw -n`) when kernel is unable to
  provide us table info we need. Fix the latter case by partially importing
  old `table_fill_xentry()` parse function responsible for guessing key type.

Sponsored by:   Yandex LLC
17:14:27 - r283117
(6 days 4 hours ago)
by ae
Affects:  /head/sys/netipsec/keysock.c
Remove unneded mbuf length adjustment, M_PREPEND() already did that.

PR:             139387
MFC after:      1 week
16:51:30 - r283116
(6 days 4 hours ago)
by luigi
Affects:  /head/sys/netpfil/ipfw/ip_fw_pfil.c
/head/sys/netpfil/ipfw/ip_fw_sockopt.c
use proper types to represent function pointers
16:23:47 - r283115
(6 days 4 hours ago)
by asomers
Affects:  /head/sys/kern/kern_shutdown.c
Properly null-terminate strings in a kernel dump header.  A version string
longer than 192 bytes will cause the version field of a dump header to
overflow. strncpy doesn't null terminate it, so savecore will print a
corrupted info file. Using strlcpy fixes the bug.

Differential Revision:  https://reviews.freebsd.org/D2560
Reviewed by:            markj
MFC after:              3 weeks
Sponsored by:           Spectra Logic
15:43:20 - r283114
(6 days 5 hours ago)
by bjk
Affects:  /head/share/man/man9/psignal.9
Fixup to the kern_psignal manpage

r283105 misspelled kern_psignal as kernel_psignal in one occurrence, and
added trailing whitespace.

While here, change 'call' to the more standard 'function', and say why
the name was changed (taken from the commit message for r225617).
15:29:00 - r283113
(6 days 5 hours ago)
by luigi
Affects:  /head/sys/netpfil/ipfw/ip_dn_private.h
remove a redundant ; at the end of a function

MFC after:      1 week
15:25:47 - r283112
(6 days 5 hours ago)
by br
Affects: 
(11 files)
/head/lib/libpmc/libpmc.c
/head/sys/*
Add Performance Monitoring Counters support for AArch64.
Family-common and CPU-specific counters implemented.

Supported CPUs: ARM Cortex A53/57/72.

Reviewed by:    andrew, bz, emaste, gnn, jhb
Sponsored by:   ARM Limited
Differential Revision:  https://reviews.freebsd.org/D2555
14:49:31 - r283111
(6 days 6 hours ago)
by luigi
Affects:  /head/sys/netpfil/ipfw/dn_sched.h
remove an extra ; after MODULE_DEPEND
(would otherwise generate a warning with more verbose compiler flags)

MFC after:      1 week
14:23:33 - r283110
(6 days 6 hours ago)
by emaste
Affects:  /head/sys/sys/elf_common.h
Add GRP_COMDAT section group flag to ELF header

Reviewed by:    kib
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D2582
14:21:00 - r283109
(6 days 7 hours ago)
by kib
Affects:  /head/sys/x86/x86/cpu_machdep.c
When sleeping in Sx state using MWAIT instruction, accept fast wakeup
requests from writes to the monitored line.

Submitted by:   avg
14:05:15 - r283108
(6 days 7 hours ago)
by emaste
Affects:  /head/Makefile.inc1
Update crunch bootstrapping test for recent fixes

- r277259 crunchide: Correct 64-bit section header offset
- r281674 crunchide: always include both 32- and 64-bit ELF support

With built-in cross-size support we also no longer need a special case
for cross-build crunchide.

Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2576
14:04:21 - r283107
(6 days 7 hours ago)
by glebius
Affects:  /head/sys/netpfil/pf/pf.c
/head/sys/netpfil/pf/pf_if.c
/head/sys/netpfil/pf/pf_norm.c
Use MTX_SYSINIT() instead of mtx_init() to separate mutex initialization
from associated structures initialization.  The mutexes are global, while
the structures are per-vnet.

Submitted by:   Nikos Vassiliadis <nvass gmx.com>
14:02:40 - r283106
(6 days 7 hours ago)
by glebius
Affects:  /head/sys/netpfil/pf/pf_ioctl.c
During module unload unlock rules before destroying UMA zones, which
may sleep in uma_drain(). It is safe to unlock here, since we are already
dehooked from pfil(9) and all pf threads had quit.

Sponsored by:   Nginx, Inc.
11:33:04 - r283105
(6 days 9 hours ago)
by julian
Affects:  /head/share/man/man9/psignal.9
Only several years late, catch the psignal man page up to the
fact that psignal has been renamed to kern_psignal since 9.0.

MFC after:      1 week
09:28:52 - r283104
(6 days 11 hours ago)
by ae
Affects:  /head/sys/geom/uncompress/g_uncompress.c
Read GEOM_UNCOMPRESS metadata using several requests that fit into
MAXPHYS. For large compressed images the metadata size can be bigger
than MAXPHYS and this triggers KASSERT in g_read_data().
Also use g_free() to free memory allocated by g_read_data().

PR:             199476
MFC after:      2 weeks
09:22:06 - r283103
(6 days 11 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/controller/dwc_otg.c
Fix for DWC OTG device side isochronous transfers. The even or odd
isochronous frame bit needs to be flipped.

MFC after:      3 days
08:37:03 - r283102
(6 days 12 hours ago)
by ae
Affects:  /head/sys/netipsec/key.c
Change SA's state before sending SADB_EXPIRE message. This state will
be reported to keying daemon.

MFC after:      2 weeks
08:30:04 - r283101
(6 days 12 hours ago)
by ae
Affects:  /head/sys/netipsec/key.c
Teach key_expire() send SADB_EXPIRE message with the SADB_EXT_LIFETIME_HARD
extension header type. The key_flush_sad() now will send SADB_EXPIRE
message when HARD lifetime expires. This is required by RFC 2367 and some
keying daemons rely on these messages. HARD lifetime messages have
precedence over SOFT lifetime messages, so now they will be checked first.
Also now SADB_EXPIRE messages will be send even the SA has not been used,
because keying daemons might want to rekey such SA.

PR:             200282, 200283
Submitted by:   Tobias Brunner <tobias at strongswan dot org>
MFC after:      2 weeks
08:00:39 - r283100
(6 days 13 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
MFC r279819:

Fix CARP when in use in a HyperV environment:

 - Bump link state when stopping or starting the interface;
 - Don't handle SIOCGIFADDR specially, similar to r277103.

This change is based on a previous revision from Andy Zhang
(Microsoft) who did the diagnostic work and many thanks to
them for their help in supporting the HyperV work.

PR:             kern/187203
06:45:56 - r283099
(6 days 14 hours ago)
by adrian
Affects:  /head/sys/mips/conf/ROUTERSTATION
Convert routerstation to use geom_uncompress.
06:45:06 - r283098
(6 days 14 hours ago)
by adrian
Affects:  /head/sys/mips/conf/RSPRO
Migrate RSPRO to use the uncompress module, not uzip.

(This is hand-in-hand with what I'm about to do with freebsd-wifi-build.)
05:41:00 - r283097
(6 days 15 hours ago)
by adrian
Affects:  /head/sys/mips/conf/AP135
/head/sys/mips/conf/QCA955X_BASE
QCA955x / AP135 platform tidyups.

* Change mips24k -> mips74k for hwpmc, but leave it disabled for now.
* don't build pci by default.
* build pci and qca955x_pci for AP135, as theres a PCIe NIC.
* don't build a hwpmc module, it doesn't really work out well
  for the mips boards at the moment.
* add ipfw and DEFAULT_TO_ACCEPT.
05:33:07 - r283096
(6 days 15 hours ago)
by adrian
Affects:  /head/sys/mips/conf/AP135.hints
The AP135 PCIe NIC isn't an ath device, it's an 11ac part (linux ath10k.)
So, don't try to attach hints to it here.
05:31:58 - r283095
(6 days 15 hours ago)
by adrian
Affects:  /head/sys/mips/atheros/files.ar71xx
/head/sys/mips/atheros/qca955x_pci.c
Add initial support for the QCA955x PCIe host controller.

The QCA955x looks a lot like the AR724x PCIe controller, except it
supports two root complexes.  Unfortunately I only have one, so
although this code has started down the path of supporting more than
one, it's definitely not yet ready.

Tested:

* AP135 board (QCA9558 SoC), with the 11ac NIC swapped for an AR9380
  PCIe NIC.

Notes:

* Yes, this driver isn't very pretty.  I decided to commit what I have
  versus holding onto something that isn't yet finished.  It is enough
  to bring up the above NIC and interrupt routing works, so it's a good
  start.

* However, yes, the DDR flush routine hooks need to be fixed up.
  I don't think I'm firing the right one at the moment.
03:02:52 - r283094
(6 days 18 hours ago)
by adrian
Affects:  /head/tools/bsdbox/Makefile.base
Add mv / expr ; these are used by the updated freebsd-wifi-build environment.
02:24:55 - r283093
(6 days 18 hours ago)
by pkelsey
Affects:  /head/share/man/man3/pthread_getspecific.3
Added description of POSIX-specified behavior when invoked on a key from within
that key's destructor.

Reviewed by: jhb, -doc
Approved by: jmallett (mentor)
MFC after: 3 days
Sponsored by: Norse Corp, Inc.

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 47 ms, 452 revisions printed. Current time is 2015-05-25 21:21:27. All times are in UTC/GMT.