Bryan Drewery
f0c619b22f
Be more clear about LOCKLEAF being exclusive and add LOCKSHARED.
2016-05-23 21:29:57 +00:00
Alan Somers
1b82e02f4d
Add bit_count to the bitstring(3) api
...
Add a bit_count function, which efficiently counts the number of bits set in
a bitstring.
sys/sys/bitstring.h
tests/sys/sys/bitstring_test.c
share/man/man3/bitstring.3
Add bit_alloc
sys/kern/subr_unit.c
Use bit_count instead of a naive counting loop in check_unrhdr, used
when INVARIANTS are enabled. The userland test runs about 6x faster
in a generic build, or 8.5x faster when built for Nehalem, which has
the POPCNT instruction.
sys/sys/param.h
Bump __FreeBSD_version due to the addition of bit_alloc
UPDATING
Add a note about the ABI incompatibility of the bitstring(3)
changes, as suggested by lidl.
Suggested by: gibbs
Reviewed by: gibbs, ngie
MFC after: 9 days
X-MFC-With: 299090, 300538
Relnotes: yes
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D6255
2016-05-23 20:29:18 +00:00
Alan Somers
fc13dfc8e2
Commit a missing change from 299090
...
tests/sys/kern/Makefile
Reenable a disabled compiler warning, the need for which was
eliminated by r299090.
Reviewed by: ngie
MFC after: 4 weeks
X-MFC-With: 299090
Sponsored by: Spectra Logic Corp
2016-05-23 20:19:07 +00:00
Mark Johnston
65fdf52123
Mark the prefix and default router list sysctl handlers MPSAFE.
...
MFC after: 2 weeks
2016-05-23 20:18:11 +00:00
Mark Johnston
cc51be7b81
Acquire the nd6 lock in the prefix list sysctl handler.
...
The nd6 lock will be used to synchronize access to the NDP prefix list.
MFC after: 2 weeks
Tested by: Jason Wolfe (as part of a larger change)
2016-05-23 20:15:08 +00:00
Ian Lepore
0d66d6d423
Spaces->tab in comment.
2016-05-23 20:13:17 +00:00
Ian Lepore
25926a4b4b
Oops, fix a paste-o commited in r300533.
2016-05-23 20:12:38 +00:00
Ian Lepore
2c96ac7a39
Use the new(-ish) CP15_SCTLR macro to generate system control reg accesses
...
where possible. In the places that doesn't work (multi-line inline asm,
and places where the old armv4 cpufuncs mechanism is used), annotate the
accesses with a comment that includes SCTLR. Now a grep -i sctlr can find
all the system control register manipulations.
No functional changes.
2016-05-23 20:07:17 +00:00
Kenneth D. Merry
3f54ec85e8
Fix ada(4) trim support quirk setting.
...
I broke broke the quirk in the ada(4) driver disabling NCQ trim support
in revision 300207. The support flags were set before the quirks were
loaded.
sys/cam/ata/ata_da.c:
Call adasetflags() after loading quirks, so that we'll set the
flags accurately.
Sponsored by: Spectra Logic
2016-05-23 19:52:08 +00:00
Conrad Meyer
ab7c85b4b9
ntb_hw(4): Only record the first three MSIX vectors
...
Don't overrun the msix_data array by reading the (unused) link state
interrupt information.
Reported by: mav (earlier version)
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D6489
2016-05-23 19:46:58 +00:00
Svatopluk Kraus
f7b9669629
INTRNG - support new interrupt mapping type INTR_MAP_DATA_GPIO
...
introduced in r298738.
Reviewed by: ian
2016-05-23 18:16:21 +00:00
Svatopluk Kraus
e2ff80bcb7
INTRNG - use gpio generic interrupt modes definitions added in r298738.
...
Reviewed by: ian
2016-05-23 18:12:52 +00:00
Bryan Drewery
699f93b956
Properly allow META_MODE to be set from environment.
...
Sponsored by: EMC / Isilon Storage Division
2016-05-23 17:27:42 +00:00
Bryan Drewery
62c63e31e1
Use sed(1) to determine cc version rather than tail(1) since it is already in ITOOLS.
...
This fixes 'tail: not found' warnings in installworld after r300351.
Sponsored by: EMC / Isilon Storage Division
2016-05-23 17:11:32 +00:00
Steven Kreuzer
34ae4f7f92
Document r298998, OpenSSL updated to 1.0.2h.
...
Approved by: gjb@ (implicit with re@ hat on)
2016-05-23 17:06:46 +00:00
Allan Jude
b06bc65e71
Only export and re-import the root pool if installing on MBR
...
This step is required in order to dd the boot2 bits into the ZFS partition
Sponsored by: ScaleEngine Inc.
2016-05-23 17:04:13 +00:00
Alan Cox
10b4196bd0
Correct an error in a comment: One of the conditions for page allocation
...
is actually the opposite of that stated in the comment.
Remove an unnecessary assignment. Use an assertion to document the fact
that no assignment is needed.
Rewrite another comment to clarify that the page is not completely valid.
Reviewed by: kib
2016-05-23 16:59:05 +00:00
Allan Jude
7289f18f78
Fix missing pool name in zfs set command
2016-05-23 16:49:26 +00:00
Bryan Drewery
7e1b3c5e2c
Move binutils handling after src.opts.mk.
...
This fixes the arm64 build after r300348.
Sponsored by: EMC / Isilon Storage Division
2016-05-23 16:24:34 +00:00
Hans Petter Selasky
44701cf732
Implement "atomic_long_add_unless()" in the LinuxKPI and fix the
...
implementation of "atomic_long_inc_not_zero()".
Found by: ngie @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 16:19:51 +00:00
Steven Kreuzer
ff55aa1f44
Document r296190, openresolv updated to 3.7.3.
...
Approved by: gjb@ (implicit with re@ hat on)
2016-05-23 15:44:39 +00:00
Steven Kreuzer
dc5bff7e9f
Document r298161, sqlite3 updated to 3.12.1.
...
Approved by: gjb@ (implicit with re@ hat on)
2016-05-23 15:37:12 +00:00
Steven Kreuzer
7096bfcd43
Document r298192, file(1) updated to 5.26.
...
Approved by: gjb@ (implicit with re@ hat on)
2016-05-23 15:33:56 +00:00
Andrew Turner
df7a2251cc
Add the needed hwpmc hooks to subr_intr.c. This is needed for the correct
...
operation of hwpmc on, for example, arm64 with intrng.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
2016-05-23 15:26:35 +00:00
Allan Jude
dcf362194d
Fix error in bsdinstall where additional filesystems cannot be mounted
...
Do not set canmount=noauto on the boot environment at create time, because
this causes / to not be mounted, and since the chroot is read only, new
mountpoints cannot be created.
The property is set later, when other properties are adjusted
Reported by: HardenedBSD
Sponsored by: ScaleEngine Inc.
2016-05-23 15:11:01 +00:00
Kristof Provost
b599e8dc59
pf: Fix more ICMP mistranslation
...
In the default case fix the substitution of the destination address.
PR: 201519
Submitted by: Max <maximos@als.nnov.ru>
MFC after: 1 week
2016-05-23 13:59:48 +00:00
Hans Petter Selasky
8b68f2509f
A missing definition needed by ktime_to_ms().
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 13:19:20 +00:00
Hans Petter Selasky
425da8eb61
Fix some data types and add "inline" keyword for __reg_op() function.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 13:18:15 +00:00
Andrew Rybchenko
899466f91e
sfxge(4): cleanup: remove unused EFX preempt macros
...
The EFSYS_PREEMPT_DISABLE() and EFSYS_PREEMPT_ENABLE() macros
were used to ensure correct timing of I2C operations. The APIs
for I2C operations have been removed, so these macros have no
callers.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-23 13:17:37 +00:00
Edward Tomasz Napierala
a863d33413
Build iscsid(8) with ICL_KERNEL_PROXY defined by default, as required
...
for iSER.
Obtained from: Mellanox Technologies
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-05-23 12:58:24 +00:00
Hans Petter Selasky
83cfd83419
Implement ror32() in the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 12:53:17 +00:00
Hans Petter Selasky
fb2faed84e
Define more copy to/from userspace functions in the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 12:52:22 +00:00
Kristof Provost
c0c82715b8
pf: Fix ICMP translation
...
Fix ICMP source address rewriting in rdr scenarios.
PR: 201519
Submitted by: Max <maximos@als.nnov.ru>
MFC after: 1 week
2016-05-23 12:41:29 +00:00
Hans Petter Selasky
aef2a67b83
Add more printf() related functions to the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 12:35:07 +00:00
Hans Petter Selasky
3092e0c54c
Set an invalid IRQ number when no PCI IRQ is available in the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 12:13:16 +00:00
Hans Petter Selasky
7dfa8b2c4e
Add more ktime related functions to the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 12:10:28 +00:00
Hans Petter Selasky
08a5e6ec7f
Implement "kref_put_mutex()" for the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 12:06:34 +00:00
Hans Petter Selasky
aad02fb444
Add more list_xxx() functions to the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 12:03:40 +00:00
Hans Petter Selasky
0f8f7f554b
Make header file standalone by including definitions for needed
...
linux_wait_xxx() functions.
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 11:57:23 +00:00
Hans Petter Selasky
94a201be43
Implement "_outb()" to the LinuxKPI for i386 and amd64 only.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 11:53:00 +00:00
Hans Petter Selasky
ed5f781270
Add support for "cdev_add_ext()" to the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 11:50:05 +00:00
Hans Petter Selasky
299f29203a
Add more GFP related defines to the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 11:47:54 +00:00
Hans Petter Selasky
4a0f827906
Add support for atomic_long_inc_not_zero() to the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 11:44:46 +00:00
Hans Petter Selasky
b5c541821a
Add support for atomic_long_inc_not_zero() to the LinuxKPI.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-23 11:41:35 +00:00
Hans Petter Selasky
bc64e52679
Use DELAY() instead of _sleep() when SCHEDULER_STOPPED() is set inside
...
pause_sbt(). This allows pause() to continue working during a panic()
which is not invoking KDB. This is useful when debugging graphics
drivers using the LinuxKPI.
Obtained from: kmacy @
MFC after: 1 week
2016-05-23 10:31:54 +00:00
Sepherosa Ziehau
fc4d679fd7
hyperv/vmbus: Move IDT vector to vmbus_softc
...
Prepare to get rid of the hv_setup_arg.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6449
2016-05-23 07:32:34 +00:00
Sepherosa Ziehau
e2468dfeff
hyperv/vmbus: Get rid of vmbus_devp
...
While I'm here, nuke useless print in vmbus_attach().
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6447
2016-05-23 07:23:19 +00:00
Sepherosa Ziehau
c4b78721e3
hyperv/vmbus: Declare Synic message and event w/ proper types
...
Avoid ugly casts.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6446
2016-05-23 07:14:04 +00:00
Sepherosa Ziehau
ae39ebd8df
hyperv: Move Hypercall setup to an early place.
...
It does not belong to the vmbus.
While I'm here rework the Hypercall setup, e.g. use busdma(9)
and avoid bit fields.
Discussed with: Jun Su <junsu microsoft com>
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6445
2016-05-23 07:06:53 +00:00
Sepherosa Ziehau
a46b3df617
hyperv/hn: Use hyperv busdma(9) helper.
...
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6444
2016-05-23 06:52:42 +00:00