Displaying 1 50 of 306,345 commits (0.026s)

FreeBSD — head/share/mk bsd.incs.mk bsd.confs.mk

DIRDEPS_BUILD: Fix '/' in group names creating a bad cookie.

This is reworking the change in r296585 but to still properly install
the files.  This limits the change to only the DIRDEPS_BUILD logic
for what it considers the name of the staging set, which is what the
cookie name is based off of.

Sponsored by:        Dell EMC Isilon
MFC after:        1 week

FreeBSD — head/share/mk bsd.confs.mk bsd.files.mk

Revert r296585.

This broke installing dtrace test files.  It was poorly tested.

Reported by:        markj
Pointyhat to:        bdrewery
MFC after:        1 week

FreeBSD — head/include Makefile

Create the /usr/lib/include symlink as relative.

This ugly code is done to avoid assuming LIBDIR is 2 components
deep.

Reported by:        jhb
Delta File
+1 -1 head/include/Makefile
+1 -1 1 file

FreeBSD — stable/11/contrib/netbsd-tests/lib/libc/gen t_vis.c

MFC r309474:

Don't build :strvis_locale if VIS_NOLOCALE is undefined

The copy of contrib/libc-vis on ^/stable/10 doesn't contain all of the features
in the ^/stable/11 // ^/head version, including VIS_NOLOCALE. The risk is lower
in conditionally running the test instead of backporting the newer version of
libc-vis

FreeBSD — head/contrib/netbsd-tests/lib/libc/gen t_vis.c

Don't build :strvis_locale if VIS_NOLOCALE is undefined

The copy of contrib/libc-vis on ^/stable/10 doesn't contain all of the features
in the ^/stable/11 // ^/head version, including VIS_NOLOCALE. The risk is lower
in conditionally running the test instead of backporting the newer version of
libc-vis

MFC after:        now

FreeBSD — stable/11/contrib/netbsd-tests/games t_factor.sh

MFC r309472:

Restore pathing for factor(1), which unnecessarily diverged in r278616

factor lives in /usr/games/, not /usr/bin, in NetBSD.

The correct way to handle this is do on-the-fly manipulation of the test
script via ATF_TESTS_SH_SED_<foo>, not by modify the pathing directly in
the test script.

This is being done to resolve an unnecessary conflict made when pulling
back ^/head at r309469 (contrib/netbsd-tests update) to ^/stable/10.

No functional change

FreeBSD — head/contrib/netbsd-tests/games t_factor.sh

Restore pathing for factor(1), which unnecessarily diverged in r278616

factor lives in /usr/games/, not /usr/bin, in NetBSD.

The correct way to handle this is do on-the-fly manipulation of the test
script via ATF_TESTS_SH_SED_<foo>, not by modify the pathing directly in
the test script.

This is being done to resolve an unnecessary conflict made when pulling
back ^/head at r309469 (contrib/netbsd-tests update) to ^/stable/10.

No functional change

MFC after:        now

FreeBSD — stable/11/lib/libc/tests/db Makefile

MFC r305449:

Install h_db to unbreak some of the lib/libc/db testcases after
r305358

FreeBSD — stable/11/contrib/netbsd-tests/lib/libc/rpc t_rpc.c

MFC r305451:

Fix lib/libc/rpc test assumptions added in r305358

- Require root in the tcp/udp subtests (it's needed on FreeBSD when
  registering services).
- Skip the tests if service registration fails.

FreeBSD — stable/11 ObsoleteFiles.inc, stable/11/contrib/netbsd-tests/kernel/kqueue t_sig.c t_proc1.c

MFC r304797,r305467,r305468,r305483:

r304797 (by jmmv):

Make use of Kyua's work directories.

Change the vnode tests to use the current directory when creating temporary
files, which we can assume is a volatile work directory, and then make the
kqueue_test.sh driver _not_ abandon the directory created by Kyua.

This makes the various kqueue tests independent of each other, and ensures
the temporary file is cleaned up on failure.

Problem spotted by asomers@ when reviewing D4254.

r305467:

Move tests/sys/kqueue/... to tests/sys/kqueue/libkqueue/...

This is being done to clearly distinguish the libkqueue tests
from the (soon to be imported) NetBSD tests.

r305468:

Port contrib/netbsd-tests/kernel/kqueue/... as tests/sys/kqueue/...

    [10 lines not shown]

FreeBSD — stable/11/lib/libc/tests/stdio open_memstream2_test.c open_wmemstream_test.c

MFC r305921:

Similar to r305920, remove spurious newlines from ATF_REQUIRE_MSG calls

FreeBSD — head/sys/dev/ath if_ath_tx_ht.c

[ath] use the correct AMPDU frame limit for the given node, rather than the global config.

This is important in hostap, ibss, (11s at some magical future date, etc)
where different nodes may have smaller limits.

Oops!

MFC after:        1 week
Relnotes:        Yes
Delta File
+30 -15 head/sys/dev/ath/if_ath_tx_ht.c
+30 -15 1 file

FreeBSD — stable/11/bin/cat/tests Makefile, stable/11/contrib/netbsd-tests h_macros.h

MFC r305358:

Update contrib/netbsd-tests with new content from NetBSD

This updates the snapshot from 09/30/2014 to 08/11/2016

This brings in a number of new testcases from upstream, most
notably:

- bin/cat
- lib/libc
- lib/msun
- lib/libthr
- usr.bin/sort

lib/libc/tests/stdio/open_memstream_test.c was moved to
lib/libc/tests/stdio/open_memstream2_test.c to accomodate
the new open_memstream test from NetBSD.

Tested on:        amd64 (VMware fusion VM; various bare metal platforms); i386 (VMware 
fusion VM); make tinderbox

FreeBSD — head/sys/net80211 ieee80211.c ieee80211_var.h

[net80211] prepare for 11ac aware NICs that want to know per-vdev channel and centre 
frequencies.

* ic_freq is the centre of the primary channel, not the centre of the
  HT40/HT80/etc channel.  Add a method to access that.
* Add a method to access the centre of the primary channel, including
  knowing the centre of the 5/10/20/40/80, versus the primary channel.
  Ie, it's the centre of the 40, 80, 160MHz channel.
* Add a method to access the centre frequency of the secondary 80MHz
  channel - we don't support VHT yet, but when we do.
* Add methods to access the current channel and the per-dev desired
  channel.  Ideally drivers that do full offload with a per-vap channel
  configuration should use the vap channel, NOT ic_curchan.
  Non-offload drivers that require net80211 to change the channel should
  be accessing ic_curchan.

FreeBSD — head/tests/sys/acl 01.sh

Expect 01:main to fail

Changes were made to ZFS in the past year with respect to how ACLs
are handled, causing failures in this test. Mark it TODO so (hopefully)
someone more knowledgeable (like mav or trasz) will fix the code or the
test.

PR:        212323
Delta File
+1 -1 head/tests/sys/acl/01.sh
+1 -1 1 file

FreeBSD — head/tests/sys/kern coredump_phnum_test.sh

Expect :coredump_phnum to fail

The number of program headers on my system (GENERIC-NODEBUG) don't match the
expected (hardcoded) number in the test

PR:        215019

FreeBSD — head/tests/sys/kern coredump_phnum_test.sh

Fix test coredump_phnum_test:coredump_phnum require.config specification

The requirement is set via `atf_set "require.config" "allow_sysctl_side_effects"',
not `atf_set "require.config" "allow_sysctl_side_effects"'

X-MFC with: r308177
Pointyhat to: cmeyer

FreeBSD — head/sys/dev/etherswitch etherswitch.c

Allow simultaneous access to switch device, there is no reason to prevent
it.

Remove bogus wrappers and use the kernel defaults.

While here, use DEVMETHOD_END.

Obtained from:        pfSense
MFC after:        2 weeks
Sponsored by:        Rubicon Communications, LLC (Netgate)

FreeBSD — head/lib/libc/sys thr_set_name.2, head/share/man/man3 pthread_set_name_np.3

thr_set_name(): silently truncate the given name as needed

Instead of failing with ENAMETOOLONG, which is swallowed by
pthread_set_name_np() anyway, truncate the given name to MAXCOMLEN+1
bytes.  This is more likely what the user wants, and saves the
caller from truncating it before the call (which was the only
recourse).

Polish pthread_set_name_np(3) and add a .Xr to thr_set_name(2)
so the user might find the documentation for this behavior.

Reviewed by:        jilles
MFC after:        3 days
Sponsored by:        Dell EMC

FreeBSD — stable/10/sys/dev/cxgbe t4_main.c, stable/11/sys/dev/cxgbe t4_main.c

MFC 303348:
cxgbe(4): Initialize the adapter queues (fwq and mgmtq) instead of
returning EAGAIN if they aren't available when the user tries to program
a filter.  Do this after validating the filter so that the driver
doesn't bring up the queues if it doesn't have to.

FreeBSD — stable/10/sys/dev/cxgbe t4_main.c t4_sge.c, stable/10/sys/dev/cxgbe/common t4_hw.c common.h

MFC 302440,304873,305704,305985,306787,307531: Fixes for sysctls.

302440:
cxgbe(4): Add sysctl to display the RSS indirection table size for an
interface.

dev.cxl.<n>.rss_size
dev.vcxl.<n>.rss_size

304873:
cxgbe(4): Provide more details about the card in the sysctl MIB.

dev.t5nex.0.%desc: Chelsio T580-CR
dev.t5nex.0.hw_revision: 1
dev.t5nex.0.sn: PT13140042
dev.t5nex.0.pn: 110117150A0
dev.t5nex.0.ec: 0000000000000000
dev.t5nex.0.na: 0007432AF490
dev.t5nex.0.vpd_version: 3
dev.t5nex.0.scfg_version: 53255
dev.t5nex.0.bs_version: 1.1.0.0
dev.t5nex.0.er_version: 1.0.0.68
dev.t5nex.0.tp_version: 0.1.4.9
dev.t5nex.0.firmware_version: 1.16.2.0


    [18 lines not shown]

FreeBSD — stable/9/sys/fs/ext2fs ext2_vfsops.c

MFC r309179:
ext2fs: avoid possible overflow when calculating malloc size.

This is inspired on r308064 for the case of mounting UFS.

FreeBSD — stable/10/sys/fs/ext2fs ext2_vfsops.c

MFC r309179:
ext2fs: avoid possible overflow when calculating malloc size.

This is inspired on r308064 for the case of mounting UFS.

FreeBSD — stable/11/sys/fs/ext2fs ext2_vfsops.c

MFC r309179:
ext2fs: avoid possible overflow when calculating malloc size.

This is inspired on r308064 for the case of mounting UFS.

FreeBSD — stable/10/lib/libc/tests Makefile

MFstable/11 r309453:

MFC r307700:

Only build lib/libc/tests/iconv if MK_ICONV != no
Delta File
+4 -0 stable/10/lib/libc/tests/Makefile
+4 -0 1 file

FreeBSD — stable/11/lib/libc/tests Makefile

MFC r307700:

Only build lib/libc/tests/iconv if MK_ICONV != no
Delta File
+4 -1 stable/11/lib/libc/tests/Makefile
+4 -1 1 file

FreeBSD — stable/11/tools/build/mk OptionalObsoleteFiles.inc

MFC r307713:

Remove /usr/libexec/bsdinstall/hardening if MK_BSDINSTALL == no

FreeBSD — head/usr.bin/indent indent.1

Document undocumented indent(1) options badp/nbadp, bs/nbs, and lc.

Submitted by:         Piotr Stefaniak
Differential Revision:        https://reviews.freebsd.org/D8690
Delta File
+19 -1 head/usr.bin/indent/indent.1
+19 -1 1 file

FreeBSD — stable/10/contrib/ofed/libcxgb4/src qp.c, stable/10/sys/dev/cxgbe/iw_cxgbe cm.c qp.c

MFC 304854: cxgbe/iw_cxgbe: Various fixes to the iWARP driver.

- Return appropriate error code instead of ENOMEM when sosend() fails in
  send_mpa_req.
- Fix for problematic race during destroy_qp.
- Abortive close in the failure of send_mpa_reject() instead of normal close.
- Remove the unnecessary doorbell flowcontrol logic.

Sponsored by:        Chelsio Communications

FreeBSD — stable/10/sys/dev/cxgbe t4_vf.c t4_sge.c

MFC 303859,305851: Fix a typo and some whitespace nits.

FreeBSD — stable/10/sys/dev/cxgbe t4_sge.c

MFC 303454: Mark spg_len and fl_pktshift static.

These variables are no longer exported to t4_netmap.c after r296478.
Delta File
+2 -2 stable/10/sys/dev/cxgbe/t4_sge.c
+2 -2 1 file

FreeBSD — stable/10/share/man/man4 cxgbev.4 Makefile, stable/10/sys/arm/conf NOTES

MFC 303522,303647,303860,303880,304168-304170,304479,304482,304485,305548,
305549:
Chelsio T4/T5 VF driver.

303522:
Various fixes to the t4/5nex character device.

- Remove null open/close methods.
- Don't set d_flags to 0 explicitly.
- Remove t5_cdevsw as the .d_name member isn't really used and doesn't
  warrant a separate cdevsw just for the name.
- Use ENOTTY as the error value for an unknown ioctl request.
- Use make_dev_s() to close race with setting si_drv1.

303647:
Store the offset of the KDOORBELL and GTS registers in the softc.

VF devices use a different register layout than PF devices.  Storing
the offset in a value in the softc allows code to be shared between the
PF and VF drivers.

303860:
Reserve an adapter flag IS_VF to mark VF devices vs PF devices.

303880:

    [110 lines not shown]

FreeBSD — stable/10/sys/kern sched_4bsd.c, stable/11/sys/kern sched_4bsd.c

MFC 308564: Don't place threads on the run queue after waking up other CPUs.

The other CPU might resume and see a still-empty runq and go back to
sleep before sched_add() adds the thread to the runq.  This results
in a lost wakeup and a potential hang if the system is otherwise
completely idle.

The race originated due to a micro-optimization (my fault) in 4BSD in
that it avoided putting a thread on the run queue if the scheduler was
going to preempt to the new thread.  To avoid complexity while fixing
this race, just drop this optimization.  4BSD now always sets the
"owepreempt" flag when a preemption is warranted and defers the actual
preemption to the thread_unlock of the caller the same as ULE.

FreeBSD — stable/10/sys/dev/cxgbe/tom t4_cpl_io.c t4_tom.c

Fix build without INVARIANTS.

This is a direct commit to stable/10.

FreeBSD — stable/10/sys/dev/cxgbe t4_sge.c

MFC 303204: Install a handler for firmware work request error messages.

If a driver sends an malformed or disallowed work request, the firmware
responds with a work request error.  Previously the driver treated this is
as an unexpected message and panicked.  Now it decodes the error message
to aid in debugging.
Delta File
+67 -0 stable/10/sys/dev/cxgbe/t4_sge.c
+67 -0 1 file

FreeBSD — stable/10/sys/x86/cpufreq hwpstate.c, stable/11/sys/x86/cpufreq hwpstate.c

MFC 308005: Add powerd(8) support for several families of AMD CPUs.

Use the same logic to calculate the nominal CPU frequency from the P-state
MSRs on family 0x12, 0x15, and 0x16 CPUs as is used for family 0x10.
Family 0x14 was included in the original patch in the PR but I left that
out as the BIOS writer's guide for family 0x14 CPUs show a different layout
for the relevant MSR and include a different formulate for calculating the
frequency.

While here, simplify a few expressions and print out the family of
unsupported CPUs in hex rather than decimal.

PR:                212020

FreeBSD — stable/10/sys/dev/cxgbe t4_main.c t4_sge.c, stable/10/sys/dev/cxgbe/iw_cxgbe cm.c iw_cxgbe.h

MFC 302339:
cxgbe(4): Changes to the CPL-handler registration mechanism and code
related to "shared" CPLs.

a) Combine t4_set_tcb_field and t4_set_tcb_field_rpl into a single
function.  Allow callers to direct the response to any iq.  Tidy up
set_ulp_mode_iscsi while there to use names from t4_tcb.h instead of
magic constants.

b) Remove all CPL handler tables from struct adapter.  This reduces its
size by around 2KB.  All handlers are now registered at MOD_LOAD instead
of attach or some kind of initialization/activation.  The registration
functions do not need an adapter parameter any more.

c) Add per-iq handlers to deal with CPLs whose destination cannot be
determined solely from the opcode.  There are 2 such CPLs in use right
now: SET_TCB_RPL and L2T_WRITE_RPL.  The base driver continues to send
filter and L2T_WRITEs over the mgmtq and solicits the reply on fwq.
t4_tom (including the DDP code) now uses the port's ctrlq to send
L2T_WRITEs and SET_TCB_FIELDs and solicits the reply on an ofld_rxq.
fwq and ofld_rxq have different handlers that know what kind of tid to
expect in the reply.  Update t4_write_l2e and callers to to support any
wrq/iq combination.

Sponsored by:        Chelsio Communications

FreeBSD — projects/clang391-import/contrib/compiler-rt/lib/builtins unwind-ehabi-helpers.h gcc_personality_v0.c, projects/clang391-import/lib/libcompiler_rt Makefile

Update compiler-rt to release_39 branch r288513.  Since this contains a
rather unfortunate upstream workaround for an unwind header problem that
does not exist on FreeBSD, but which causes an unnecessary warning for
us, add some flags to the compiler-rt Makefile to suppress the warning.

FreeBSD — stable/10/sys/dev/cxgbe t4_main.c offload.h, stable/10/sys/dev/cxgbe/tom t4_cpl_io.c t4_tom.h

MFC 292736:
cxgbe(4): Updates to the base NIC driver and t4_tom to support the iSCSI
offload driver.  These changes come from projects/cxl_iscsi.

Note that these changes make use of the mbufq API from 11.0, but that
API is not present in 10.x in the same form.  Borrow an implementation
from the CAM CTL ha code that uses m_nextpkt to implement mbufq for use
in 10.

FreeBSD — head/sys/fs/ext2fs inode.h ext2_balloc.c

ext2fs: renumber the license clauses to avoid skipping #3.

This is to keep consistency with other files, and help license-checking
utilities determine the number of clauses that apply.

No functional change.

FreeBSD — projects/clang391-import/lib/clang/headers Makefile, projects/clang391-import/lib/clang/include/clang/Basic Version.inc

Update build glue for clang 3.9.1 r288513.

FreeBSD — vendor/lldb lldb-release_39-r288513

Tag lldb release_39 branch r288513.
Delta File
+0 -0 vendor/lldb/lldb-release_39-r288513/
+0 -0 1 file

FreeBSD — vendor/lld lld-release_39-r288513

Tag lld release_39 branch r288513.
Delta File
+0 -0 vendor/lld/lld-release_39-r288513/
+0 -0 1 file

FreeBSD — vendor/lld/dist/COFF CMakeLists.txt

FreeBSD — vendor/libc++ libc++-release_39-r288513

Tag libc++ release_39 branch r288513.
Delta File
+0 -0 vendor/libc++/libc++-release_39-r288513/
+0 -0 1 file

FreeBSD — vendor/compiler-rt compiler-rt-release_39-r288513

Tag compiler-rt release_39 branch r288513.
Delta File
+0 -0 vendor/compiler-rt/compiler-rt-release_39-r288513/
+0 -0 1 file

FreeBSD — vendor/compiler-rt/dist/test/sanitizer_common/TestCases/Linux sem_init_glibc.cc

FreeBSD — vendor/clang clang-release_39-r288513

Tag clang release_39 branch r288513.
Delta File
+0 -0 vendor/clang/clang-release_39-r288513/
+0 -0 1 file

FreeBSD — vendor/clang/dist/include/clang/Basic DiagnosticSemaKinds.td, vendor/clang/dist/include/clang/Sema Sema.h