]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
6 years agoAllwinner dtb: Add NanoPi M1 to the build
manu [Tue, 1 Aug 2017 20:28:11 +0000 (20:28 +0000)]
Allwinner dtb: Add NanoPi M1 to the build

It was tested on NanoPi M1 Plus.

6 years ago+ Add myself to calendar.freebsd.
taras [Tue, 1 Aug 2017 20:16:00 +0000 (20:16 +0000)]
+ Add myself to calendar.freebsd.

6 years agoAdd joneum to the calendar.freebsd
tcberner [Tue, 1 Aug 2017 19:29:16 +0000 (19:29 +0000)]
Add joneum to the calendar.freebsd

Reported by: mckusick
Submitted by: joneum

6 years agoAlwinner: nanopi-neo: Remove r_i2c node from DTS as it isn't used on the board
manu [Tue, 1 Aug 2017 19:22:00 +0000 (19:22 +0000)]
Alwinner: nanopi-neo: Remove r_i2c node from DTS as it isn't used on the board

6 years agofix sort order
emax [Tue, 1 Aug 2017 18:48:09 +0000 (18:48 +0000)]
fix sort order

6 years agoadd myself
emax [Tue, 1 Aug 2017 18:46:24 +0000 (18:46 +0000)]
add myself

Requested by: mckusick

6 years agoAllwinner dtb: add link for NanoPi Neo
manu [Tue, 1 Aug 2017 18:33:27 +0000 (18:33 +0000)]
Allwinner dtb: add link for NanoPi Neo

Reported by: Richard Puga <richard@puga.net>
Tested by: Richard Puga <richard@puga.net>, myself

6 years agoCCACHE_BUILD: Follow-up r321880: Fix some PATH issues with buildworld.
bdrewery [Tue, 1 Aug 2017 18:26:20 +0000 (18:26 +0000)]
CCACHE_BUILD: Follow-up r321880: Fix some PATH issues with buildworld.

- bsd.compiler.mk: Must ensure that the CCACHE_WRAPPER_PATH comes first
  in PATH.
- Makefile.inc1: Must prepend the CCACHE_WRAPPER_PATH into BPATH as it
  overrides the PATH set in bsd.compiler.mk in sub-makes.  The PATH
  set in bsd.compiler.mk is not exported and doing so would cause it to
  then override the BPATH set from environment.  The only sane solution
  is to prepend into BPATH as needed.
CCACHE_PATH could possibly be used for some of this as well.

Sponsored by: Dell EMC Isilon

6 years agoAdd Anne Dickison.
mckusick [Tue, 1 Aug 2017 18:25:04 +0000 (18:25 +0000)]
Add Anne Dickison.

Requested by: Anne Dickison

6 years agoAdd myself to the calendar.freebsd
lev [Tue, 1 Aug 2017 18:05:19 +0000 (18:05 +0000)]
Add myself to the calendar.freebsd

Reported by: mckusick

6 years agoFix a witness assertion that fires when a lock type's class changes.
markj [Tue, 1 Aug 2017 17:50:28 +0000 (17:50 +0000)]
Fix a witness assertion that fires when a lock type's class changes.

When all instances of a lock type are destroyed (for example, after a
module unload), the corresponding witness entry remains associated with
that lock type. In this case, we shouldn't panic if a new instance of the
lock type is created and its lock class does not match that recorded in the
witness entry.

Reviewed by: jhb
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D11788

6 years agoNO_CLEAN: No need to run delete-old if the directories don't exist.
bdrewery [Tue, 1 Aug 2017 16:41:17 +0000 (16:41 +0000)]
NO_CLEAN: No need to run delete-old if the directories don't exist.

X-MFC-With: r321443
MFC after: 1 month
Sponsored by: Dell EMC Isilon

6 years agoFor the udp-client example, instruct user to add an entry for a udp based
sevan [Tue, 1 Aug 2017 16:20:33 +0000 (16:20 +0000)]
For the udp-client example, instruct user to add an entry for a udp based
service.
For tcp-client & udp-client, use the same port in configuration snippet as used
in the comment prior to remove any ambiguity on the port number which needs to
be specified.

Reviewed by: bcr (mentor) wblock (mentor)
Approved by: gavin
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D9830

6 years agoCCACHE_BUILD: Allow setting CCACHE_BUILD_TYPE=wrapper.
bdrewery [Tue, 1 Aug 2017 16:15:08 +0000 (16:15 +0000)]
CCACHE_BUILD: Allow setting CCACHE_BUILD_TYPE=wrapper.

This uses the /usr/local/libexec/ccache/<cc,c++> wrappers rather than
modifying CC to be '/usr/local/bin/ccache cc'.  Some forms of compilation
do not support the 'command' type.

Sponsored by: Dell EMC Isilon

6 years agoUpdate doceng, re, security-officer, clusteradm, webmaster and
gjb [Tue, 1 Aug 2017 16:05:23 +0000 (16:05 +0000)]
Update doceng, re, security-officer, clusteradm, webmaster and
donations entries.

Requested by: sevan
Sponsored by: The FreeBSD Foundation

6 years agoIn xdev-links, when installing symlinks to the cross-compiler pieces that
ian [Tue, 1 Aug 2017 14:54:25 +0000 (14:54 +0000)]
In xdev-links, when installing symlinks to the cross-compiler pieces that
includes the OS version (armv6-freebsd12.0-cc, etc), use the OS version of
the compiler/world source code, not the version of the build host machine.

6 years ago[calendar.freebsd] Add myselft into freebsd.calendar
mizhka [Tue, 1 Aug 2017 11:51:35 +0000 (11:51 +0000)]
[calendar.freebsd] Add myselft into freebsd.calendar

6 years agozfsboottest: catch up with r316585 and provide ldi_get_size method
avg [Tue, 1 Aug 2017 11:09:18 +0000 (11:09 +0000)]
zfsboottest: catch up with r316585 and provide ldi_get_size method

This method is required for querying file / disk sizes which is needed
at least for finding all copies of ZFS VDEV labels.

Reported by: ngie
MFC after: 1 week

6 years agoMerge ena-com 1.1.4.2
mw [Tue, 1 Aug 2017 11:00:04 +0000 (11:00 +0000)]
Merge ena-com 1.1.4.2

Update ENA HAL after fixing gcc build in r321861.

Submitted by: rlibby
Reviewed by: cognet (mentor)
Approved by: cognet (mentor)
Differential Revision: https://reviews.freebsd.org/D11480

6 years agopci: fix write order when sizing BARs
royger [Tue, 1 Aug 2017 10:47:44 +0000 (10:47 +0000)]
pci: fix write order when sizing BARs

According to the PCI Local Specification rev. 3.0 in case of a 64-bit
BAR both the low and the high parts of the register should be set to
~0 before attempting to read back the size.

So far I have found no single device that has problems with the
previous approach, but I think it's better to stay on the safe size.

This commit should not introduce any functional change.

MFC after: 3 weeks
Sponsored by: Citrix Systems R&D
Reviewed by: jhb
Differential revision: https://reviews.freebsd.org/D11750

6 years agoAdd myself to calendar
mw [Tue, 1 Aug 2017 10:11:20 +0000 (10:11 +0000)]
Add myself to calendar

Approved by: cognet (mentor)

6 years agoAdjust path to X11 locale files (/usr/X11 has been changed to /usr/local a
se [Tue, 1 Aug 2017 09:34:15 +0000 (09:34 +0000)]
Adjust path to X11 locale files (/usr/X11 has been changed to /usr/local a
long ago) in comment. No functional change.

6 years agoAdd alternate Turkish keyboard layout F. The layout and menu texts have
se [Tue, 1 Aug 2017 09:30:21 +0000 (09:30 +0000)]
Add alternate Turkish keyboard layout F. The layout and menu texts have
been provided by Ufuk Güler, with minor changes for consistency by me.

Submitted by: Ufuk Güler <ufukguler@yahoo.com>
MFC after: 1 week

6 years agoAdd myself to calendar.
tuexen [Tue, 1 Aug 2017 09:26:22 +0000 (09:26 +0000)]
Add myself to calendar.

Reminded by: mckusick

6 years agoAdd explicit check for PCI bus to r321720.
mav [Tue, 1 Aug 2017 09:22:10 +0000 (09:22 +0000)]
Add explicit check for PCI bus to r321720.

Reported by: jhb
MFC after: 6 days

6 years agoAdd myself to the calendar
wulf [Tue, 1 Aug 2017 07:05:29 +0000 (07:05 +0000)]
Add myself to the calendar

Reminded by: mckusick
Approved by: gonzo (mentor)

6 years agoFix up r321849
ngie [Tue, 1 Aug 2017 06:51:03 +0000 (06:51 +0000)]
Fix up r321849

pager_output should return 0 if no more output needs to be paged; non-zero
otherwise.

MFC after: 1 week
MFC with: r321849
Reported by: avg

6 years agoStandardize paths on SRCTOP instead of .CURDIR-relative paths
ngie [Tue, 1 Aug 2017 05:39:40 +0000 (05:39 +0000)]
Standardize paths on SRCTOP instead of .CURDIR-relative paths

MFC after: 1 week

6 years agoMakefile cleanup
ngie [Tue, 1 Aug 2017 05:34:04 +0000 (05:34 +0000)]
Makefile cleanup

- Standardize on SRCTOP instead of .CURDIR-relative paths
- Use LIBADD instead of a mix of specifying -lgeom via DPADD/LDADD/LDFLAGS.
  Specifying -lgeom via LDFLAGS is an especially unnecessary and odd
  pattern.

MFC after: 1 week

6 years agoFix the return type for pager_output(..) in bootparttest and zfsboottest
ngie [Tue, 1 Aug 2017 05:29:36 +0000 (05:29 +0000)]
Fix the return type for pager_output(..) in bootparttest and zfsboottest

pager_output(..) has always returned int. For some reason (probably the
clang 5.0 update), this mismatch now results in an error with CC=clang.

MFC after: 1 week

6 years agoChase r315408 with the fourth parameter being removed from disk_open(..)
ngie [Tue, 1 Aug 2017 05:26:45 +0000 (05:26 +0000)]
Chase r315408 with the fourth parameter being removed from disk_open(..)

This fixes one part of the build.

6 years agoBatch updates to v_wire_count when freeing page table pages on x86.
markj [Tue, 1 Aug 2017 05:26:30 +0000 (05:26 +0000)]
Batch updates to v_wire_count when freeing page table pages on x86.

The removed release stores are not needed since stores are totally
ordered on i386 and amd64.

Reviewed by: alc, kib (previous revision)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D11790

6 years agoLog when we have finished pushing users and groups.
araujo [Tue, 1 Aug 2017 05:26:20 +0000 (05:26 +0000)]
Log when we have finished pushing users and groups.

Obtained from: OpenBSD (rev 1.4)
MFC after: 3 weeks.

6 years agoStandardize on SRCTOP instead of .CURDIR-relative paths
ngie [Tue, 1 Aug 2017 05:23:49 +0000 (05:23 +0000)]
Standardize on SRCTOP instead of .CURDIR-relative paths

MFC after: 3 days

6 years agoClean up style in print_state(..) and pager_printf(..)
ngie [Tue, 1 Aug 2017 05:16:14 +0000 (05:16 +0000)]
Clean up style in print_state(..) and pager_printf(..)

No functional change intended.

MFC after: 3 days

6 years agoRemove local variables missed in r321842.
markj [Tue, 1 Aug 2017 04:52:03 +0000 (04:52 +0000)]
Remove local variables missed in r321842.

X-MFC with: r321842

6 years agoLet lockstat use ksyms(4)'s mmap interface.
markj [Tue, 1 Aug 2017 04:49:54 +0000 (04:49 +0000)]
Let lockstat use ksyms(4)'s mmap interface.

The workaround described in the deleted comment is no longer needed.

MFC after: 1 week

6 years agoAdd a driver for the Intersil ISL12xx family of i2c RTC chips.
ian [Tue, 1 Aug 2017 04:16:52 +0000 (04:16 +0000)]
Add a driver for the Intersil ISL12xx family of i2c RTC chips.

Supports ISL1209, ISL1218, ISL1219, ISL1220, ISL1221 (just basic RTC
functionality, not all the other fancy stuff the chips can do).

6 years agoThe blist_meta_* routines that process a subtree take arguments 'radix' and
alc [Tue, 1 Aug 2017 03:51:26 +0000 (03:51 +0000)]
The blist_meta_* routines that process a subtree take arguments 'radix' and
'skip', which denote, respectively, the largest number of blocks that can be
managed by a subtree of that height, and one less than the number of nodes
in a subtree of that height.  This change removes the 'skip' argument from
those functions because 'skip' can be trivially computed from 'radius'.
This change also redefines 'skip' so that it denotes the number of nodes in
the subtree, and so changes loop upper bound tests from '<= skip' to '<
skip' to account for the change.

The 'skip' field is also removed from the blist struct.

The self-test program is changed so that the print command includes the
cursor value in the output.

Submitted by: Doug Moore <dougm@rice.edu>
MFC after: 1 week

6 years agoImplement proper Linux /dev/fd and /proc/self/fd behavior by adding
dchagin [Tue, 1 Aug 2017 03:40:19 +0000 (03:40 +0000)]
Implement proper Linux /dev/fd and /proc/self/fd behavior by adding
Linux specific things to the native fdescfs file system.

Unlike FreeBSD, the Linux fdescfs is a directory containing a symbolic
links to the actual files, which the process has open.
A readlink(2) call on this file returns a full path in case of regular file
or a string in a special format (type:[inode], anon_inode:<file-type>, etc..).
As well as in a FreeBSD, opening the file in the Linux fdescfs directory is
equivalent to duplicating the corresponding file descriptor.

Here we have mutually exclusive requirements:
- in case of readlink(2) call fdescfs lookup() method should return VLNK
vnode otherwise our kern_readlink() fail with EINVAL error;
- in the other calls fdescfs lookup() method should return non VLNK vnode.

For what new vnode v_flag VV_READLINK was added, which is set if fdescfs has beed
mounted with linrdlnk option an modified kern_readlinkat() to properly handle it.

For now For Linux ABI compatibility mount fdescfs volume with linrdlnk option:

    mount -t fdescfs -o linrdlnk null /compat/linux/dev/fd

Reviewed by: kib@
MFC after: 1 week
Relnotes: yes

6 years agosys/net8021: Add missing braces in setcurchan().
pfg [Tue, 1 Aug 2017 03:13:43 +0000 (03:13 +0000)]
sys/net8021: Add missing braces in setcurchan().

Obtained from: DragonFlyBSD (git c69e37d6)
MFC after: 3 days

6 years agohyperv/hn: Add comment about ether_ifattach event subscription.
sephe [Tue, 1 Aug 2017 02:55:43 +0000 (02:55 +0000)]
hyperv/hn: Add comment about ether_ifattach event subscription.

MFC after: 3 days
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D11710

6 years agohyperv/hn: Renaming and minor cleanup
sephe [Tue, 1 Aug 2017 02:45:54 +0000 (02:45 +0000)]
hyperv/hn: Renaming and minor cleanup

This prepares for the upcoming transparent VF support.

MFC after: 3 days
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D11708

6 years agoAdd myself to FreeBSD calendar
jah [Tue, 1 Aug 2017 01:39:54 +0000 (01:39 +0000)]
Add myself to FreeBSD calendar

Requested by: mckusick

6 years agoBring my aging self to calendar.freebsd.
pfg [Tue, 1 Aug 2017 01:35:23 +0000 (01:35 +0000)]
Bring my aging self to calendar.freebsd.

Requested by: mckusick

6 years agoBuild iicbus/{ds1307,ds3231,nxprtc} as modules.
ian [Mon, 31 Jul 2017 22:32:11 +0000 (22:32 +0000)]
Build iicbus/{ds1307,ds3231,nxprtc} as modules.

6 years agoRestructure the SUBDIR list as 1-per-line and alphabetize, so it will be
ian [Mon, 31 Jul 2017 22:26:30 +0000 (22:26 +0000)]
Restructure the SUBDIR list as 1-per-line and alphabetize, so it will be
easier to add new things (and see what changed) in the future.

6 years agoAllow changing the test PORT at compile-time.
bdrewery [Mon, 31 Jul 2017 22:00:27 +0000 (22:00 +0000)]
Allow changing the test PORT at compile-time.

Sponsored by: Dell EMC Isilon

6 years agoBugfixes and enhancements...
ian [Mon, 31 Jul 2017 22:00:00 +0000 (22:00 +0000)]
Bugfixes and enhancements...

Don't enable the oscillator when it is found to be stopped at init time,
just let the first setting of valid time start it.  But still report a dead
battery if it's stopped at init time.

Don't force the chip into 24hr mode, just cope with whatever mode it is
already in.

Schedule the clock_settime() callbacks to align the RTC clock to top of
second when setting it.

6 years agoNo need to call getnanotime() now that the waiting is done by the central
ian [Mon, 31 Jul 2017 21:53:00 +0000 (21:53 +0000)]
No need to call getnanotime() now that the waiting is done by the central
subr_rtc code, switch from CLOCKF_SETTIME_NO_TS to CLOCKF_SETTIME_NO_ADJ
so that we get fed a timestamp, but it's not adjusted to compensate for
inaccuracy in setting time.

6 years agoAdd myself to the calendar.freebsd
tcberner [Mon, 31 Jul 2017 21:08:31 +0000 (21:08 +0000)]
Add myself to the calendar.freebsd

Reported by:    mckusick

6 years agoAdd myself to the calendar.freebsd
pawel [Mon, 31 Jul 2017 20:54:23 +0000 (20:54 +0000)]
Add myself to the calendar.freebsd

Reported by: mckusick

6 years agoAvoid reading a snapshot block when it is already in the cache.
mckusick [Mon, 31 Jul 2017 20:41:45 +0000 (20:41 +0000)]
Avoid reading a snapshot block when it is already in the cache.
Update the use of the B_CACHE flag (since the May 1999 commit
that made it the correct test here).

Reported by: Andreas Longwitz <longwitz@incore.de>
Reviewed by: kib
Tested by: Peter Holm
MFC after: 1 week

6 years agoAdd myself to the calendar.
mjg [Mon, 31 Jul 2017 20:15:11 +0000 (20:15 +0000)]
Add myself to the calendar.

Prodded by: invisible peer pressure

6 years agoUpdate pci_vendors to 2017.07.27
bapt [Mon, 31 Jul 2017 19:51:36 +0000 (19:51 +0000)]
Update pci_vendors to 2017.07.27

MFC after: 2 days

6 years agoUpdate mandoc to 1.14.2
bapt [Mon, 31 Jul 2017 19:34:38 +0000 (19:34 +0000)]
Update mandoc to 1.14.2

6 years agoImport mandoc 1.14.2
bapt [Mon, 31 Jul 2017 19:17:54 +0000 (19:17 +0000)]
Import mandoc 1.14.2

6 years agoRemove redundant include directories which expand to a noop,
cy [Mon, 31 Jul 2017 19:07:45 +0000 (19:07 +0000)]
Remove redundant include directories which expand to a noop,
"-I/lib/krb5 -I -I".

Reviewed by: ngie@, markm@
MFC after: 1 month
Differential Revision: D11769

6 years agoBatch v_wire_count decrements in vm_hold_free_pages().
markj [Mon, 31 Jul 2017 18:48:58 +0000 (18:48 +0000)]
Batch v_wire_count decrements in vm_hold_free_pages().

Atomic updates to v_wire_count are a significant source of contention, so
combine multiple updates into one in this easy case. Also remove an old
printf that gets executed if the page is shared-busied, which is a case
that will lead to a panic anyway.

Reviewed by: alc, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D11791

6 years agoAdd myself to the calendar.
mjoras [Mon, 31 Jul 2017 18:10:10 +0000 (18:10 +0000)]
Add myself to the calendar.

Reported by: mckusick
Approved by: rstone (mentor)
Differential Revision: https://reviews.freebsd.org/D11797

6 years agoDon't trace running threads that have interrupts disabled.
markj [Mon, 31 Jul 2017 17:57:54 +0000 (17:57 +0000)]
Don't trace running threads that have interrupts disabled.

In this case we shouldn't assume that the thread has a valid frame pointer.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D11787

6 years agoAdd myself to calendar.freebsd
erj [Mon, 31 Jul 2017 17:57:44 +0000 (17:57 +0000)]
Add myself to calendar.freebsd

Reported by: mckusick

6 years agoAdd myself to calendar.
dru [Mon, 31 Jul 2017 17:49:47 +0000 (17:49 +0000)]
Add myself to calendar.

6 years ago[wlanwds] allow for a DWDS AP VAP to be not be the first VAP on a NIC.
adrian [Mon, 31 Jul 2017 17:33:57 +0000 (17:33 +0000)]
[wlanwds] allow for a DWDS AP VAP to be not be the first VAP on a NIC.

The wlanwds code was just creating a clone VAP without specifying the MAC
address to use for said clone VAP.  This meant that if an interface
was cloned from an AP interface that wasn't the first created VAP
(which shares the same MAC as the parent physical interface by default)
then the cloned interface would have the wrong MAC and traffic wouldn't work.

Besides chip bugs (ha!) this isn't a requirement.

So, teach wlanwds to:

* look up the link layer address for a given interface (which really should
  be a library interface, and will likely quickly become one);
* use this when creating a cloned interface for a DWDS peer;
* (net80211 already has the infrastructure to do this, it just needed to be
  used);
* add some extra logging to see what MAC addresses, parent interfaces, etc
  are being created.

Whilst here, add a reminder that I should extend this to include monitoring
a specific VAP for DWDS updates rather than just the parent interface.

This is the first step in allowing for multiple DWDS hops, which is a
pre-requisite for adrian's house having wifi in the single upstairs room.

Tested:

* AR9380, DWDS AP + AP mode - with DWDS AP being the second VAP created
  with a different MAC address;
* AR9331 (Carambola2), AP + DWDS STA;
* passing traffic

TODO:

* fix 802.11s so this DWDS stuff is no longer required!

6 years agoFix a logic bug in the split PCI interrupt code that slipped through
scottl [Mon, 31 Jul 2017 16:55:56 +0000 (16:55 +0000)]
Fix a logic bug in the split PCI interrupt code that slipped through

Reported by: Harry Schmalzbauer

6 years agoRestore a few rather important lines of code that got fumbled in r321746.
ian [Mon, 31 Jul 2017 16:46:16 +0000 (16:46 +0000)]
Restore a few rather important lines of code that got fumbled in r321746.

6 years agoAdd an entry to the freebsd calendar for myself.
scottl [Mon, 31 Jul 2017 15:50:58 +0000 (15:50 +0000)]
Add an entry to the freebsd calendar for myself.

Reported by: kirk

6 years agoAdd myself to the birthday calendar.
jamie [Mon, 31 Jul 2017 15:29:44 +0000 (15:29 +0000)]
Add myself to the birthday calendar.

Reminded by: mckusick

6 years agoCheck the clock-halted flag every time the clock is read, not just once
ian [Mon, 31 Jul 2017 15:24:40 +0000 (15:24 +0000)]
Check the clock-halted flag every time the clock is read, not just once
at startup.  The flag stays set until the clock is loaded with good time,
so we need to keep saying the time is invalid until that happens.

6 years agoImprove FHA locality control for NFS read/write requests.
mav [Mon, 31 Jul 2017 15:23:19 +0000 (15:23 +0000)]
Improve FHA locality control for NFS read/write requests.

This change adds two new tunables, allowing to control serialization for
read and write NFS requests separately.  It does not change the default
behavior since there are too many factors to consider, but gives additional
space for further experiments and tuning.

The main motivation for this change is very low write speed in case of ZFS
with sync=always or when NFS clients requests sychronous operation, when
every separate request has to be written/flushed to ZIL, and requests are
processed one at a time.  Setting vfs.nfsd.fha.write=0 in that case allows
to increase ZIL throughput by several times by coalescing writes and cache
flushes.  There is a worry that doing it may increase data fragmentation
on disks, but I suppose it should not happen for pool with SLOG.

MFC after: 1 week
Sponsored by: iXsystems, Inc.

6 years agospellcheck jhale's calendar entry
asomers [Mon, 31 Jul 2017 15:21:26 +0000 (15:21 +0000)]
spellcheck jhale's calendar entry

6 years agoAdd a detach() method.
ian [Mon, 31 Jul 2017 14:58:01 +0000 (14:58 +0000)]
Add a detach() method.

6 years agoSwitch from using iic_transfer() to iicdev_readfrom/writeto(), mostly so
ian [Mon, 31 Jul 2017 14:57:02 +0000 (14:57 +0000)]
Switch from using iic_transfer() to iicdev_readfrom/writeto(), mostly so
that transfers will be done with proper ownership of the bus. No
behavioral changes.  Also add a detach() method.

6 years agoDon't request CTLTYPE_OPAQUE if we can't print them.
gallatin [Mon, 31 Jul 2017 14:56:35 +0000 (14:56 +0000)]
Don't request CTLTYPE_OPAQUE if we can't print them.

The intent is to skip expensive opaque sysctls like tcp_pcblist unless
they are explicitly requested. Sysctl nodes like this don't show up in
sysctl -a, but they do generate output that winds up being dropped,
unless the user specifically requested  binary/hex output or opaques.

This reduces the runtime of sysctl in many circumstances on a loaded
system.  It also reduces the likelihood that simply gathering
diagnostics on a sick machine (stuck lock, etc) via sysctl -a might
push it over the edge into a total lockup.

Reviewed by: jtl
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D11461

6 years agoAdd myself.
nyan [Mon, 31 Jul 2017 14:53:03 +0000 (14:53 +0000)]
Add myself.

Reminded by: mckusick

6 years agoAdd myself to the calendar
asomers [Mon, 31 Jul 2017 14:50:42 +0000 (14:50 +0000)]
Add myself to the calendar

Reported by: mckusick

6 years agoAdd myself to the calendar
mm [Mon, 31 Jul 2017 14:49:44 +0000 (14:49 +0000)]
Add myself to the calendar

Reminded by: mckusick

6 years agoAdd my birthday to the FreeBSD calendar
rpokala [Mon, 31 Jul 2017 14:42:38 +0000 (14:42 +0000)]
Add my birthday to the FreeBSD calendar

Requested by: mckusick

6 years agoAdd myself to the calendar
jhibbits [Mon, 31 Jul 2017 14:16:35 +0000 (14:16 +0000)]
Add myself to the calendar

Reminded by: mckusick

6 years agoadd myself to calendar.freebsd
wen [Mon, 31 Jul 2017 13:32:35 +0000 (13:32 +0000)]
add myself to calendar.freebsd

6 years agoadd myself to calendar.freebsd
lifanov [Mon, 31 Jul 2017 13:08:47 +0000 (13:08 +0000)]
add myself to calendar.freebsd

6 years agoRemove some dead statistics related code and a structure field from the
hselasky [Mon, 31 Jul 2017 12:09:24 +0000 (12:09 +0000)]
Remove some dead statistics related code and a structure field from the
mlx4en driver which is used by its Linux counterpart, but not under
FreeBSD.

Sponsored by: Mellanox Technologies
MFC after: 1 week

6 years agoMake sure on-stack buffer is properly aligned.
hselasky [Mon, 31 Jul 2017 12:03:45 +0000 (12:03 +0000)]
Make sure on-stack buffer is properly aligned.

Sponsored by: Mellanox Technologies
MFC after: 1 week

6 years agoAdd inpcb pointer to struct ipsec_ctx_data and pass it to the pfil hook
ae [Mon, 31 Jul 2017 11:04:35 +0000 (11:04 +0000)]
Add inpcb pointer to struct ipsec_ctx_data and pass it to the pfil hook
from enc_hhook().

This should solve the problem when pf is used with if_enc(4) interface,
and outbound packet with existing PCB checked by pf, and this leads to
deadlock due to pf does its own PCB lookup and tries to take rlock when
wlock is already held.

Now we pass PCB pointer if it is known to the pfil hook, this helps to
avoid extra PCB lookup and thus rlock acquiring is not needed.
For inbound packets it is safe to pass NULL, because we do not held any
PCB locks yet.

PR: 220217
MFC after: 3 weeks
Sponsored by: Yandex LLC

6 years agoAdd myself to calendar
sgalabov [Mon, 31 Jul 2017 09:46:48 +0000 (09:46 +0000)]
Add myself to calendar

Reminded by: mckusick

6 years agoAdd myself.
eugen [Mon, 31 Jul 2017 09:18:53 +0000 (09:18 +0000)]
Add myself.

Reminded by:    mckusick
Approved by: vsevolod (mentor)

6 years agoRemove cycle_t type from the LinuxKPI similar to Linux upstream.
hselasky [Mon, 31 Jul 2017 09:17:54 +0000 (09:17 +0000)]
Remove cycle_t type from the LinuxKPI similar to Linux upstream.

MFC after: 1 week
Sponsored by: Mellanox Technologies

6 years agoFix broken usage of the mlx4_read_clock() function:
hselasky [Mon, 31 Jul 2017 09:15:15 +0000 (09:15 +0000)]
Fix broken usage of the mlx4_read_clock() function:
 - return value has too small width
 - cycle_t is unsigned and cannot be less than zero

Sponsored by: Mellanox Technologies
MFC after: 1 week

6 years agoAdd myself to calendar
kp [Mon, 31 Jul 2017 09:13:18 +0000 (09:13 +0000)]
Add myself to calendar

Reminded by:  mckusick

6 years agoAdd my birthday entry to the calendar file.
n_hibma [Mon, 31 Jul 2017 08:16:12 +0000 (08:16 +0000)]
Add my birthday entry to the calendar file.

6 years agoAdd myself
romain [Mon, 31 Jul 2017 08:11:58 +0000 (08:11 +0000)]
Add myself

Reminded by: mckusick

6 years agoAdd myself to calendar
tsoome [Mon, 31 Jul 2017 08:11:05 +0000 (08:11 +0000)]
Add myself to calendar

Reminded by:  mckusick

6 years agoAdd my birthday.
br [Mon, 31 Jul 2017 08:10:02 +0000 (08:10 +0000)]
Add my birthday.

6 years agoAdd myself to calendar
manu [Mon, 31 Jul 2017 07:58:29 +0000 (07:58 +0000)]
Add myself to calendar

Reminded by:  mckusick

6 years agocalendar: Add myself.
sephe [Mon, 31 Jul 2017 07:48:08 +0000 (07:48 +0000)]
calendar: Add myself.

Reminded by: mckusick

6 years agohyperv: Add VF bringup scripts and devd rules.
sephe [Mon, 31 Jul 2017 07:18:15 +0000 (07:18 +0000)]
hyperv: Add VF bringup scripts and devd rules.

How network VF works with hn(4) on Hyper-V in non-transparent mode:

- Each network VF has a cooresponding hn(4).
- The network VF and the it's cooresponding hn(4) have the same hardware
  address.
- Once the network VF is up, e.g. ifconfig VF up:
  o  All of the transmission should go through the network VF.
  o  Most of the reception goes through the network VF.
  o  Small amount of reception may go through the cooresponding hn(4).
     This reception will happen, even if the the cooresponding hn(4) is
     down.  The cooresponding hn(4) will change the reception interface
     to the network VF, so that network layer and application layer will
     be tricked into thinking that these packets were received by the
     network VF.
  o  The cooresponding hn(4) pretends the physical link is down.
- Once the network VF is down or detached:
  o  All of the transmission should go through the cooresponding hn(4).
  o  All of the reception goes through the cooresponding hn(4).
  o  The cooresponding hn(4) fallbacks to the original physical link
     detection logic.

All these features are mainly used to help live migration, during which
the network VF will be detached, while the network communication to the
VM must not be cut off.  In order to reach this level of live migration
transparency, we use failover mode lagg(4) with the network VF and the
cooresponding hn(4) attached to it.

To ease user configuration for both network VF and non-network VF, the
lagg(4) will be created by the following rules, and the configuration
of the cooresponding hn(4) will be applied to the lagg(4) automatically.

Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D11635

6 years agoRemove now-unused variable.
ian [Mon, 31 Jul 2017 03:19:16 +0000 (03:19 +0000)]
Remove now-unused variable.

6 years agoUse the new clock_schedule() to arrange for clock_settime() to be called
ian [Mon, 31 Jul 2017 01:36:51 +0000 (01:36 +0000)]
Use the new clock_schedule() to arrange for clock_settime() to be called
at the right time to keep the RTC hardware time in sync, instead of using
pause_sbt() to sleep until the right time.

6 years agoAdd clock_schedule(), a feature that allows realtime clock drivers to
ian [Mon, 31 Jul 2017 01:18:21 +0000 (01:18 +0000)]
Add clock_schedule(), a feature that allows realtime clock drivers to
request that their clock_settime() methods be called at a given offset
from top-of-second.  This adds a timeout_task to the rtc_instance so that
each clock can be separately added to taskqueue_thread with the scheduling
it prefers, instead of looping through all the clocks at once with a
single task on taskqueue_thread.  If a driver doesn't call clock_schedule()
the default is the old behavior: clock_settime() is queued immediately.

The motivation behind this is that I was on the path of adding identical
code to a third RTC driver to figure out a delta to top-of-second and
sleep for that amount of time because writing the the RTC registers resets
the hardware's concept of top-of-second.  (Sometimes it's not top-of-second,
some RTC clocks tick over a half second after you set their time registers.)
Worst-case would be to sleep for almost a full second, which is a rude thing
to do on a shared task queue thread.

6 years agoCorrect the predicates on which lockstat:::{thread,spin}-spin fire.
markj [Mon, 31 Jul 2017 00:59:28 +0000 (00:59 +0000)]
Correct the predicates on which lockstat:::{thread,spin}-spin fire.

In particular, they should fire only if the lock was owned by another
thread when we first attempted to acquire that lock.

MFC after: 1 week