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 - 03 - 31   (today)
05:29:44 - r280892
(1 hour 6 minutes ago)
by jhibbits
Affects:  /head/sys/powerpc/booke/machdep.c
CCSRBAR_VA is mpc85xx-specific, so add guards, and include the proper header
file for it.

MFC after:      1 month
05:26:30 - r280891
(1 hour 10 minutes ago)
by jhibbits
Affects:  /head/sys/dev/nand/nfc_fsl.c
machine/fdt.h no longer exists for powerpc.

MFC after:      1 month
04:44:46 - r280890
(1 hour 51 minutes ago)
by amdmi3
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
- Remove more files when MK_ZONEINFO == no

MFC after:      1 week
Reviewed by:    ngie
Approved by:    ngie
Differential Revision:  D1600
04:43:25 - r280889
(1 hour 53 minutes ago)
by amdmi3
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
- Remove more files when MK_TESTS_SUPPORT == no

MFC after:      1 week
Reviewed by:    ngie
Approved by:    ngie
Differential Revision:  D1600
04:42:00 - r280888
(1 hour 54 minutes ago)
by amdmi3
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
- Remove more files when MK_LEGACY_CONSOLE == no

MFC after:      1 week
Reviewed by:    ngie
Approved by:    ngie
Differential Revision:  D1600
04:39:59 - r280887
(1 hour 56 minutes ago)
by amdmi3
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
- Remove more files when MK_KERBEROS_SUPPORT == no

MFC after:      1 week
Reviewed by:    ngie
Approved by:    ngie
Differential Revision:  D1600
04:37:57 - r280886
(1 hour 58 minutes ago)
by amdmi3
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
- Remove more files when MK_KDUMP == no

MFC after:      1 week
Reviewed by:    ngie
Approved by:    ngie
Differential Revision:  D1600
04:36:51 - r280885
(1 hour 59 minutes ago)
by amdmi3
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
- Remove more files when MK_JAIL == no

MFC after:      1 week
Reviewed by:    ngie
Approved by:    ngie
Differential Revision:  D1600
04:35:35 - r280884
(2 hours 1 minute ago)
by cperciva
Affects:  /head/release/tools/ec2.conf
It would help if I committed the right patch...
04:31:42 - r280883
(2 hours 4 minutes ago)
by amdmi3
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
- Remove more files when MK_CASPER == no

MFC after:      1 week
Reviewed by:    ngie
Approved by:    ngie
Differential Revision:  D1600
02:49:05 - r280882
(3 hours 47 minutes ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c
Fix a misparenthesization that could cause a crash if TERM is not set.

Reported by:    Coverity (internal)
MFC after:      3 days
Sponsored by:   EMC / Isilon Storage Division
01:44:29 - r280881
(4 hours 52 minutes ago)
by cperciva
Affects:  /head/release/tools/gce.conf
Partially revert r278118 now that the required logic for deciding whether
freebsd-update can be useful has moved into the firstboot_freebsd_update
script.
01:44:07 - r280880
(4 hours 52 minutes ago)
by kib
Affects:  /head/sys/amd64/amd64/pmap.c
Provide workaround for a performance issue with the popcnt instruction
on Intel processors.  Clear spurious dependency by explicitely xoring
the destination register of popcnt.

Use bitcount64() instead of re-implementing SWAR locally, for
processors without popcnt instruction.

Reviewed by:    jhb
Discussed with: jilles (previous version)
Sponsored by:   The FreeBSD Foundation
01:28:33 - r280879
(5 hours 8 minutes ago)
by cperciva
Affects:  /head/release/Makefile.vm
/head/release/tools/ec2.conf
Add bits for building EC2 disk images.  Make logic for uploading these
to create EC2 AMIs will come in a later commit.
01:22:20 - r280878
(5 hours 14 minutes ago)
by np
Affects:  /head/sys/dev/cxgbe/tom/t4_cpl_io.c
cxgbe/tom: return rx credits promptly if the socket buffer's low water
mark cannot be reached because the window advertised to the peer isn't
wide enough.  While here, tweak the normal credit return too.

MFC after:      1 month
01:08:51 - r280877
(5 hours 27 minutes ago)
by kib
Affects: 
(2 files)
/stable/9/sys/amd64/amd64/trap.c
MFC r280780:
The #ss fault handler erronously does not check for the fault
originated from the return to usermode. #ss must be handled same as
#np.
01:05:34 - r280876
(5 hours 31 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/amd64/amd64/machdep.c
MFC r280781:
Make it possible for the signal handler to act on #ss.  Load the
canonical user data segment' selector into %ss when calling the
handler.
00:59:30 - r280875
(5 hours 37 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/amd64/amd64/trap.c
MFC r280780:
The #ss fault handler erronously does not check for the fault
originated from the return to usermode. #ss must be handled same as
#np.
00:57:25 - r280874
(5 hours 39 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/x86/iommu/intel_gas.c
MFC r280435:
When mapping an allocated entry, use the entry size, instead of the
requested size.  If tag restrictions caused split entry, its size is
less then requsted.
00:55:12 - r280873
(5 hours 41 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/x86/iommu/intel_idpgtbl.c
MFC r280434:
Assert that the mapping loop makes progress.
00:18:00 - r280872
(6 hours 18 minutes ago)
by rrs
Affects:  /head/sys/kern/kern_timeout.c
/head/sys/sys/callout.h
Adopt jhb's suggested changes, updated comments and callout_migration() moving
to kern/kern_timeout.c

This does *not* address his -1 -> NOCPU comment.

Sponsored by:   Netflix Inc.
00:15:27 - r280871
(6 hours 21 minutes ago)
by rrs
Affects:  /head/sys/sys/_callout.h
Change the c_iflags and c_flags fields to short rather then int. This
allows us to keep the KPI the same.

Discussed and brain-stormed with imp (thanks for the help Warner!)
Sponsored by:   Netflix Inc.
00:00:47 - r280870
(6 hours 35 minutes ago)
by bdrewery
Affects:  /head/contrib/libarchive/libarchive/archive_read_disk_posix.c
Fix --one-file-system to include the directory encountered rather than
excluding it.  This was broken in 3.0.4 (r238856).

Obtained from:  https://github.com/libarchive/libarchive/commit/fa9e61
MFC after:      3 days
Sponsored by:   EMC / Isilon Storage Division
2015 - 03 - 30   (yesterday)
22:49:26 - r280869
(7 hours 47 minutes ago)
by glebius
Affects:  /head/sys/kern/vnode_if.src
/head/sys/vm/vnode_pager.c
Catch up on r271387 and remove unused parameter from
VOP_GETPAGES_ASYNC().
20:44:08 - r280868
(9 hours 52 minutes ago)
by andrew
Affects:  /head/sys/arm/arm/cpufunc.c
Restore setting cpufuncs on arm1176, it was removed by accident with the
arm1136 code.

Reviewed by:    ian
20:23:06 - r280867
(10 hours 13 minutes ago)
by dim
Affects:  /head/contrib/llvm/patches/patch-11-llvm-r231227-aarch64-tls-relocs.diff
Add llvm patch corresponding to r280865.
20:13:22 - r280866
(10 hours 23 minutes ago)
by jhb
Affects:  /head/sys/amd64/amd64/mp_machdep.c
/head/sys/i386/i386/mp_machdep.c
Wait 100 microseconds for a local APIC to dispatch each startup-related IPI
rather than 20.  The MP 1.4 specification states in Appendix B.2:

  "A period of 20 microseconds should be sufficient for IPI dispatch to
   complete under normal operating conditions".

(Note that this appears to be separate from the 10 millisecond (INIT) and
200 microsecond (STARTUP) waits after the IPIs are dispatched.)  The
Intel SDM is silent on this issue as far as I can tell.

At least some hardware requires 60 microseconds as noted in the PR, so
bump this to 100 to be on the safe side.

PR:             197756
Reported by:    zaphod@berentweb.com
MFC after:      1 week
20:01:41 - r280865
(10 hours 34 minutes ago)
by emaste
Affects: 
(7 files)
/head/contrib/llvm/lib/Target/AArch64/*
llvm: Backport upstream r229195 to fix arm64 TLS relocations

  As is described at http://llvm.org/bugs/show_bug.cgi?id=22408, the GNU
  linkers ld.bfd and ld.gold currently only support a subset of the
  whole range of AArch64 ELF TLS relocations. Furthermore, they assume
  that some of the code sequences to access thread-local variables are
  produced in a very specific sequence.  When the sequence is not as the
  linker expects, it can silently mis-relaxe/mis-optimize the
  instructions.
  Even if that wouldn't be the case, it's good to produce the exact
  sequence, as that ensures that linkers can perform optimizing
  relaxations.

  This patch:

  * implements support for 16MiB TLS area size instead of 4GiB TLS area
    size. Ideally clang would grow an -mtls-size option to allow support
    for both, but that's not part of this patch.
  * by default doesn't produce local dynamic access patterns, as even
    modern ld.bfd and ld.gold linkers do not support the associated
    relocations. An option (-aarch64-elf-ldtls-generation) is added to
    enable generation of local dynamic code sequence, but is off by
    default.
  * makes sure that the exact expected code sequence for local dynamic
    and general dynamic accesses is produced, by making use of a new
    pseudo instruction. The patch also removes two
    (AArch64ISD::TLSDESC_BLR, AArch64ISD::TLSDESC_CALL) pre-existing
    AArch64-specific pseudo SDNode instructions that are superseded by
    the new one (TLSDESC_CALLSEQ).

Submitted by:   Kristof Beyls
Differential Revision:  https://reviews.freebsd.org/D2175
19:36:33 - r280864
(11 hours ago)
by dim
Affects:  /head/contrib/libc++/include/type_traits
Pull in r233552 from upstream libc++ trunk (by Eric Fiselier):

  [libcxx] Fix PR22771 - Support access control SFINAE in the library
  version of is_convertible.

  Summary:
  Currently the conversion check does not take place in a context where
  access control SFINAE is applied. This patch changes the context of
  the test expression so that SFINAE occurs if access control does not
  permit the conversion.

  Related bug: https://llvm.org/bugs/show_bug.cgi?id=22771

  Reviewers: mclow.lists, rsmith, dim

  Reviewed By: dim

  Subscribers: dim, rodrigc, emaste, cfe-commits

  Differential Revision: http://reviews.llvm.org/D8461

This fixes building clang, and other programs using libc++, with newer
versions of gcc (specifically, gcc 4.8 and higher).

Reported by:    rodrigc
MFC after:      1 week
19:15:43 - r280863
(11 hours 20 minutes ago)
by sbruno
Affects: 
(7 files)
/projects/em_mq/share/man/man4/em.4
/projects/em_mq/sys/conf/*
/projects/em_mq/sys/dev/*
Capture the current state of Phabricator Review D1994.

em(4) has multiqueue support, toggle the right compile bits
to enable the support. Update man page with instructions and flush
out missing hw.em tuneables.

Increase the number of MSI-X vectors to 5 for 82574L when used in MQ
mode. (erj@)

Add RSS logic and turn it on in h/w. Inspired and taken from DragonFly emx(4)
driver.

Break up the RX and TX queues into seperate configuration entities.  It
is desireable in some cases to have these as seperate knobs.  It may be
required on certain adapters for this functionality to work.
19:10:09 - r280862
(11 hours 26 minutes ago)
by andrew
Affects: 
(2 files)
/head/lib/libthr/arch/aarch64/include/pthread_md.h
Add pthread_md.h for arm64.

Differential Revision:  https://reviews.freebsd.org/D2137
Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
19:08:37 - r280861
(11 hours 28 minutes ago)
by gjb
Affects: 
(5 files)
/head/release/tools/arm/*
Sigh.  s/AutoSize/Growfs/ following upstream commit r761.

MFH:            3 days
Sponsored by:   The FreeBSD Foundation
18:35:40 - r280860
(12 hours ago)
by sbruno
Affects:  /projects/em_mq
Branch head for work on Intel em(4) MultiQueue work as it is requiring some
structural revisiting of the driver.
17:38:25 - r280859
(12 hours 58 minutes ago)
by emaste
Affects:  /head/gnu/usr.bin/binutils/Makefile
/head/usr.bin/Makefile
Switch to ELF toolchain readelf(1)

ELF toolchain readelf lacked some functionality at the time other tools
(like size, strip, nm, etc.) were switched over to the ELF toolchain
versions. That has been addressed as of the last update, so we can add
it to the list.

PR:             198950 [exp-run]
Reviewed by:    bapt, imp, rpaulo
Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D2156
17:15:48 - r280858
(13 hours 20 minutes ago)
by emaste
Affects:  /head/sys/sys/elf_common.h
Fill out arm64 dynamic relocation #defines

Sponsored by:   The FreeBSD Foundation
16:42:08 - r280857
(13 hours 54 minutes ago)
by emaste
Affects:  /head/lib/msun/aarch64/fenv.h
Correct mrs_fpcr and mrs_fpsr macros in arm64 fenv.h

Submitted by:   andrew
Sponsored by:   The FreeBSD Foundation
16:28:04 - r280856
(14 hours 8 minutes ago)
by jhb
Affects:  /stable/10/sys/amd64/conf/GENERIC
Revert accidental(?) change in r280455 and do not compile hwpmc statically
into GENERIC by default.  This change is not present in HEAD and was not
made in the two commits to HEAD that r280455 merged.
15:29:06 - r280855
(15 hours 7 minutes ago)
by glebius
Affects:  /projects/sendfile/sys/kern/uipc_syscalls.c
This shouldn't have leaked into svn.
15:24:23 - r280854
(15 hours 12 minutes ago)
by glebius
Affects:  /projects/sendfile/sys/kern/uipc_syscalls.c
nios should be volatile.
14:28:31 - r280853
(16 hours 8 minutes ago)
by emaste
Affects:  /head/lib/libcompiler_rt/Makefile
compiler-rt: Build additional quad precision floating point builtins

These are needed for arm64

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D2160
14:13:01 - r280852
(16 hours 23 minutes ago)
by amdmi3
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
- Remove more files when MK_INET6 == no

MFC after:      1 week
Reviewed by:    ngie
Approved by:    ngie
Differential Revision:  D1600
14:00:17 - r280851
(16 hours 36 minutes ago)
by amdmi3
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
- Remove more files when MK_FORTH == no

MFC after:      1 week
Reviewed by:    ngie
Approved by:    ngie
Differential Revision:  D1600
13:30:53 - r280850
(17 hours 5 minutes ago)
by mav
Affects:  /head/sys/kern/subr_vmem.c
Periodically wake up threads waiting for vmem(9) resources, so they could
ask for resource reclamation again.

This is kind of dirty hack, but as last resort this is better then stuck
indefinitely because of KVA fragmentation, waiting until some random event
free something sufficient.  OpenSolaris also has this hack in its vmem(9).

MFC after:      2 weeks
13:30:15 - r280849
(17 hours 6 minutes ago)
by cy
Affects: 
(1262 files)
/head/*
MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)

Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:    roberto
09:49:54 - r280848
(20 hours 46 minutes ago)
by zbb
Affects:  /head/sys/dev/ofw/openfirm.c
Fix bug in xrefinfo_find() for 64-bit platforms

uintptr_t may be 64-bit on some platforms, therefore when
finding xrefinfo by pointer to device the high word is being
cut off due to cast to phandle_t which is 32-bit long by definition.
Due to that we loose the high word of the address to compare with
xi->dev's address.
To fix that, first argument of xrefinfo_find() is extended to
uintptr_t and is being cast to appropriate type (phandle_t)
when compared.

Submitted by:  Zbigniew Bodek <zbb@semihalf.com>
Reviewed by:   nwhitehorn
Obtained from: Semihalf
09:29:45 - r280847
(21 hours 6 minutes ago)
by andrew
Affects: 
(5 files)
/head/sys/arm/arm/*
/head/sys/arm/include/*
/head/sys/conf/files.arm
Remove support for CPU_XSCALE_80200. None of our configs support it, and
there wasn;t an option to enable it.

While here remove a check for CPU_ARM10 being defined as it has also been
removed.
09:08:24 - r280846
(21 hours 28 minutes ago)
by cperciva
Affects:  /head/release/tools/vmimage.subr
Improve check for whether ${DESTDIR}/dev is mounted.

Submitted by:   gcooper
09:05:20 - r280845
(21 hours 31 minutes ago)
by eadler
Affects:  /head/sys/cam/ata/ata_da.c
Add some additional quirks for various Western Digital Caviar MHDDs

Submitted by:   Jeremy Chadwick
PR:             188685
MFC After:      1 month
08:54:59 - r280844
(21 hours 41 minutes ago)
by eadler
Affects:  /head/sys/dev/uart/uart_bus_pci.c
And it turns out someone beat me to it....

PR:             199013
08:48:35 - r280843
(21 hours 48 minutes ago)
by eadler
Affects:  /head/sys/dev/uart/uart_bus_pci.c
Add support for "MosChip MCS9922 PCIe to Peripheral Controller" to uart

Submitted by:   <mlsemon35@gmail.com>
PR:             199013
MFC After:      1 month
08:38:18 - r280842
(21 hours 58 minutes ago)
by andrew
Affects: 
(5 files)
/head/sys/arm/arm/*
/head/sys/arm/include/*
/head/sys/conf/options.arm
Remove support for CPU_FA626TE. It's unused by any of our kernel configs.
08:37:03 - r280841
(21 hours 59 minutes ago)
by andrew
Affects:  /head/sys/conf/files.arm
Only build cpufunc_asm_armv4.S when needed.
08:33:19 - r280840
(22 hours 3 minutes ago)
by cperciva
Affects:  /head/release/tools/vmimage.subr
Clean up filesystem unmounting in vmimage builds:
* Remove vm_umount_base function which is currently unused.
* Add umount_loop function which loops attempting to unmount one filesystem.
* Replace calls to umount with calls to umount_loop.
* Don't attempt to unmount ${DESTDIR}/dev if it isn't mounted.

The looping is necessary because sometimes umount fails due to filesystems
being busy.  The most common cause of such busyness is periodic(8) jobs
running `find / ...`.

Reviewed by:    gjb
07:11:49 - r280839
(23 hours 24 minutes ago)
by mav
Affects: 
(2 files)
/stable/10/sys/amd64/vmm/x86.c
MFC r280134:
Report ARAT (APIC-Timer-always-running) feature for virtual CPU.

This makes FreeBSD guest to not avoid using LAPIC timer, preferring HPET
due to worries about non-existing for virtual CPUs deep sleep states.

Benchmarks of usleep(1) on guest and host show such extra latencies:
 - 51us for virtual HPET,
 - 22us for virtual LAPIC timer,
 - 22us for host HPET and
 - 3us for host LAPIC timer.
07:09:07 - r280838
(23 hours 27 minutes ago)
by royger
Affects: 
(3 files)
/head/sys/conf/files
/head/sys/dev/xen/debug/debug.c
xen: add a handler for the debug interrupt

Handle the VIRQ_DEBUG signal and print a stack trace of each vCPU on the Xen
console. This is only used for debug purposes and is triggered by the
administrator of the Xen host.

Sponsored by: Citrix Systems R&D
MFC after: 1 week
04:06:36 - r280837
(1 day 2 hours ago)
by markj
Affects: 
(4 files)
/head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/*
Fix ping(8) and ping6(8) usage in a couple of ip provider tests, and
update expected test output to reflect differences in default TTL and
payload length.

MFC after:      1 week
04:03:01 - r280836
(1 day 2 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/tst.system.d
/head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/tst.system.d.out
Fix ping(8) usage in funcs/tst.system.d so that the test actually completes.

MFC after:      1 week
04:01:49 - r280835
(1 day 2 hours ago)
by markj
Affects: 
(4 files)
/head/cddl/usr.sbin/dtrace/tests/Makefile
/head/cddl/usr.sbin/dtrace/tests/Makefile.inc1
/head/cddl/usr.sbin/dtrace/tests/tools/*
Replace dtest.pl, the upstream DTrace test suite harness, with a shell
script. This reimplementation is much simpler than dtest.pl and is more
amenable to being run under Kyua - dtest.pl writes error output to a
temporary directory that is deleted when the run finishes, making it hard
to debug test failures. This change also removes the test suite's dependency
on perl.
03:55:51 - r280834
(1 day 2 hours ago)
by markj
Affects:  /head/sys/cddl/dev/dtrace/amd64/dtrace_isa.c
/head/sys/cddl/dev/dtrace/i386/dtrace_isa.c
Import a missing piece of commit b8fac8e162eda7e98d from illumos-gate.

This adds an upper bound, dtrace_ustackdepth_max, to the number of frames
traversed when computing the userland stack depth. Some programs - notably
firefox - are otherwise able to trigger an infinite loop in
dtrace_getustack_common(), causing a panic.

MFC after:      1 week
2015 - 03 - 29   (2 days ago)
22:46:07 - r280833
(1 day 7 hours ago)
by andrew
Affects:  /head/sys/arm/arm/cpufunc_asm_arm11.S
arm11_sleep is no longer needed, remove it.
22:45:33 - r280832
(1 day 7 hours ago)
by andrew
Affects:  /head/sys/arm/include/cpufunc.h
pj4b_config and pj4bv7_setup are only used when CPU_MV_PJ4B is defined.
22:43:39 - r280831
(1 day 7 hours ago)
by andrew
Affects: 
(26 files)
/head/sys/arm/*
/head/sys/conf/files.arm
Build the cpufunc_asm_* files based on the cpu type, not which config file
we happen to be building.
22:00:24 - r280830
(1 day 8 hours ago)
by jilles
Affects:  /head/tools/regression/lib/libc/gen/test-wordexp.c
wordexp(): Add testcase for non-default IFS in environment.

The non-default IFS is expected to be used.

MFC after:      1 week
21:53:08 - r280829
(1 day 8 hours ago)
by adrian
Affects: 
(4 files)
/head/sys/contrib/dev/ath/ath_hal/ar9300/*
Add initial support for the HAL channel survey support to the AR9300 HAL.

This is used by the 'athsurvey' command to print out channel survey
statistics - % busy times transmit, receive and airtime.

It's as buggy and incomplete as the rest of the HAL survey support -
notably, tying into the ANI code to read channel stats and occasionally
getting garbage counters isn't very nice.  It also doesn't (yet!) get
channel survey information during a scan.  But it's good enough for
basic air-time debugging, which is why I'm committing it in this state.

Tested:

* AR9380, STA mode
21:50:21 - r280828
(1 day 8 hours ago)
by adrian
Affects: 
(8 files)
/head/sys/dev/ath/ath_hal/*
Move the HAL channel survey support out to be in the top-level HAL,
rathe than private in each HAL module.

Whilst here, modify ath_hal_private to always have the per-channel
noisefloor stats, rather than conditionally.  This just makes
life easier in general (no strange ABI differences between different
HAL compile options.)

Add a couple of methods (clear/reset, add) rather than using
hand-rolled versions of things.
21:45:48 - r280827
(1 day 8 hours ago)
by adrian
Affects:  /head/sys/dev/ath/ath_hal/ah.h
Add a new field to HAL_ANISTATS - the extension channel busy count.

This is only used by the AR9300 HAL for now - but just be careful if
you decide to recompile the kernel with NO_CLEAN=1.
21:45:28 - r280826
(1 day 8 hours ago)
by andrew
Affects: 
(11 files)
/head/sys/arm/*
Remove cpufunc_asm_arm11.S from the ARMv7 configs, it's not used.
21:41:05 - r280825
(1 day 8 hours ago)
by adrian
Affects:  /head/sys/dev/ath/if_ath.c
Fix more ticks wrapping bugs exposed by the ticks wrapping bug check.

This symptom is "calibrations don't ever run", which may cause some
pretty spectacularly bad behaviour in noisy environments or with longer
uptimes.

Thanks to dtrace to make it easy to check if specific non-inlined functions
are getting called by things like the ANI and calibration HAL methods.
Grr.

Tested:

* AR9380, STA mode
21:12:59 - r280824
(1 day 9 hours ago)
by andrew
Affects: 
(6 files)
/head/sys/arm/arm/*
/head/sys/arm/include/*
/head/sys/conf/options.arm
Remove arm1136 support. We don't have any configs that use it, and I don't
expect us to add support for any more arm11 SoCs.
20:37:28 - r280823
(1 day 9 hours ago)
by andrew
Affects: 
(16 files)
/head/ObsoleteFiles.inc
/head/sys/arm/*
/head/sys/conf/files.arm
Remove the bootconfig parsing. We never used it and always passed either an
empty string or NULL to the setup functions that called into it.
20:28:18 - r280822
(1 day 10 hours ago)
by mav
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
Some cosmetic polishing.  No functional change.

MFC after:      1 week
20:21:59 - r280821
(1 day 10 hours ago)
by andrew
Affects:  /head/sys/arm/broadcom/bcm2835/files.bcm2835
/head/sys/arm/broadcom/bcm2835/files.bcm283x
We only need cpufunc_asm_arm11.S on bcm2835, not bcm2836
20:20:45 - r280820
(1 day 10 hours ago)
by pfg
Affects:  /head/include/pthread.h
Clean some spaces vs tabs.

No, this file doesn't conform with KNF at all.
19:37:41 - r280819
(1 day 10 hours ago)
by kib
Affects:  /head/share/man/man3/pthread_testcancel.3
Formatting changes to the pthread_testcancel(3).

Use list for the cancellation points enumeration.  Move notes about
functions into the list inline.

The discussion of the idiomatic use of cancellation facilities does
not belong to RETURN VALUES section, move it to NOTES.

Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
19:14:41 - r280818
(1 day 11 hours ago)
by kib
Affects: 
(7 files)
/head/lib/libc/*
/head/lib/libthr/thread/thr_syscalls.c
/head/share/man/man3/pthread_testcancel.3
Make kevent(2) a cancellation point.

Note that to cancel blocked kevent(2) call, changelist must be empty,
since we cannot cancel a call which already made changes to the
process state.  And in reverse, call which only makes changes to the
kqueue state, without waiting for an event, is not cancellable.  This
makes a natural usage model to migrate kqueue loop to support
cancellation, where existing single kevent(2) call must be split into
two: first uncancellable update of kqueue, then cancellable wait for
events.

Note that this is ABI-incompatible change, but it is believed that
there is no cancel-safe code that relies on kevent(2) not being a
cancellation point.  Option to preserve the ABI would be to keep
kevent(2) as is, but add new call with flags to specify cancellation
behaviour, which only value seems to add complications.

Suggested and reviewed by:      jilles
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
18:59:04 - r280817
(1 day 11 hours ago)
by andrew
Affects: 
(4 files)
/head/sys/arm/arm/*
/head/sys/arm/include/pmap.h
/head/sys/conf/options.arm
Remove ARM9_CACHE_WRITE_THROUGH, none of our configs define it.
18:53:21 - r280816
(1 day 11 hours ago)
by kib
Affects: 
(12 files)
/head/libexec/rtld-elf/*
Change compiler setting to make default visibility of the symbols for
rtld on x86 to be hidden.  This is a micro-optimization, which allows
intrinsic references inside rtld to be handled without indirection
through PLT.  The visibility of rtld symbols for other objects in the
symbol namespace is controlled by a version script.

Reviewed by:    kan, jilles
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
18:46:12 - r280815
(1 day 11 hours ago)
by andrew
Affects:  /head/sys/arm/arm/cpufunc_asm_armv5.S
Remove the unused armv5 cpufunc code.
18:45:51 - r280814
(1 day 11 hours ago)
by dumbbell
Affects:  /head/sys/dev/drm2/drm_crtc_helper.c
/head/sys/dev/drm2/drm_modes.c
drm: Import Linux commit 9bc3cd5673d84d29272fa7181a4dfca83cbb48c1

Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Fri May 31 12:17:08 2013 +0000

    drm: Sort connector modes based on vrefresh

    Keeping the modes sorted by vrefresh before the pixel clock makes the
    mode list somehow more pleasing to the eye.

    Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>

PR:             198936
Obtained from:  Linux
MFC after:      1 month
MFC with:       r280183
18:44:15 - r280813
(1 day 11 hours ago)
by andrew
Affects:  /head/sys/arm/arm/cpufunc_asm_arm11.S
/head/sys/arm/arm/cpufunc_asm_armv6.S
/head/sys/arm/include/cpufunc.h
Remove unused cpufunc arm11 and armv6 code. While here only define the
remaining functions in the context we use them in.
18:41:43 - r280812
(1 day 11 hours ago)
by andrew
Affects: 
(7 files)
/head/sys/arm/*
We don't use cpufunc_asm_armv5.S in any of these configs, remove it.
17:42:32 - r280811
(1 day 12 hours ago)
by andrew
Affects:  /head/sys/arm/arm/cpufunc_asm_arm10.S
/head/sys/arm/include/cpufunc.h
Remove unused arm10_* functions. The remaining functions are only used in
mv configs.
17:33:03 - r280810
(1 day 13 hours ago)
by andrew
Affects: 
(8 files)
/head/sys/arm/*
Stop building unused cpuvunc_* files, we don't need anything from these.
17:13:44 - r280809
(1 day 13 hours ago)
by andrew
Affects: 
(5 files)
/head/sys/arm/arm/*
/head/sys/arm/include/*
Remove support for CPU_ARM10. No kernel configs could possibly use this as
it's not an available option. Along with this we will never support this
cpu type as very few arm10 chips were made.
15:43:24 - r280808
(1 day 14 hours ago)
by andrew
Affects:  /head/sys/boot/Makefile
/head/sys/boot/Makefile.amd64
Reorder to help with moving the efi loader parts to sys/boot/efi. As these
will depend on ficl having been built, and are set via bsd.arch.inc.mk we
need to place this after ficl.

As Makefile.amd64 is now late enough we can add the i386 directory to this.
15:18:04 - r280807
(1 day 15 hours ago)
by arybchik
Affects:  /head/sys/dev/sfxge/sfxge_tx.c
sfxge: fix bug in TSO when a DMA segment has both header and data

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D2163
12:00:51 - r280806
(1 day 18 hours ago)
by dchagin
Affects: 
(5995 files)
/user/dchagin/lemul/*
Merge from head (r280782).
10:02:29 - r280805
(1 day 20 hours ago)
by mav
Affects:  /head/sys/kern/subr_vmem.c
Add four new DDB commands to display vmem(9) statistics.

In particular, such DDB commands were added:
        show vmem <addr>
        show all vmem
        show vmemdump <addr>
        show all vmemdump

As possible usage, that allows to see KVA usage and fragmentation.
07:48:02 - r280804
(1 day 22 hours ago)
by mav
Affects: 
(4 files)
/stable/9/sys/dev/virtio/pci/virtio_pci.c
MFC r280090: Hide virtio features negotiation messages under bootverbose.

Those messages are noisy, but useless for average user.
07:46:59 - r280803
(1 day 22 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/dev/virtio/pci/virtio_pci.c
MFC r280090: Hide virtio features negotiation messages under bootverbose.

Those messages are noisy, but useless for average user.
06:05:00 - r280802
(2 days ago)
by adrian
Affects:  /head/sys/dev/ath/if_ath.c
Fix a long-standing bug with the early MAC address initialisation path,
which showed up after I started changing addresses this early.

It turns out that there's some other malarky going on behind the scenes
in the HAL and merely setting the net80211/ifp mac address this early
isn't enough.  If the MAC is set from kenv at attach time, the HAL
also needs to be programmed early.

Without this, the VAP wouldn't work enough for finishing association -
probe requests would be fine as they're broadcast, but association
request would fail.
03:16:52 - r280801
(2 days 3 hours ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
cdefs.h: Fix macros for pre-C99 compilers.

Older compilers, and compatibility modes, may not support variadic macros.
I normally wouldn't go out of my way to support those old compilers but
there is a prescendent in other system headers for using the same macro
multiple times, and the solution (although non-elegant IMHO) works.

Requested by:   bde
Solution by:    tijl
2015 - 03 - 28   (3 days ago)
23:42:59 - r280800
(2 days 6 hours ago)
by adrian
Affects:  /head/sys/mips/conf/TL-WDR4300.hints
Add hints to set the board MAC address and derived values for each interface.

This allows the TL-WDR3600 to use the correct MAC address for ath0, ath1
and arge0.  arge1 isn't used; until I disable it entirely it'll just
show up with a randomly generated MAC.
23:41:23 - r280799
(2 days 6 hours ago)
by adrian
Affects:  /head/sys/dev/ath/if_ath.c
Update if_ath(4) to check for "hint.ath.X.macaddr" for an override MAC address.

This is used by the AR71xx platform code to choose a local MAC based on
the "board MAC address", versus whatever potentially invalid/garbage
values are stored in the Atheros calibration data.
23:40:29 - r280798
(2 days 6 hours ago)
by adrian
Affects: 
(4 files)
/head/sys/mips/atheros/*
Begin moving support for board MAC addresses over to being explicitly defined.

A lot of these dinky atheros based MIPS boards don't have a nice, well,
anything consistent defining their MAC addresses for things.

The Atheros reference design boards will happily put MAC addresses
into the wifi module calibration data like they should, and individual
ethernet MAC addresses into the calibration area in flash.
That makes my life easy - "hint.arge.X.eeprommac=<addr>" reads from
that flash address to extract a MAC, and everything works fine.

However, aside from some very well behaved vendors (eg the Carambola 2
board), everyone else does something odd.

eg:

* a MAC address in the environment (eg ubiquiti routerstation/RSPRO)
   that you derive arge0/arge1 MAC addresses from.
* a MAC address in flash that you derive arge0/arge1 MAC addresses from.
* The wifi devices having their own MAC addresses in calibration data,
  like normal.
* The wifi devices having a fixed, default or garbage value for a MAC
  address in calibration data, and it has to be derived from the
  system MAC.

So to support this complete nonsense of a situation, there needs to be
a few hacks:

* The "board" MAC address needs to be derived from somewhere and squirreled
  away.  For now it's either redboot or a MAC address stored in calibration
  flash.

* Then, a "map" set of hints to populate kenv with some MAC addresses
  that are derived/local, based on the board address.  Each board has
  a totally different idea of what you do to derive things, so each
  map entry has an "offset" (+ve or -ve) that's added to the board
  MAC address.

* Then if_arge (and later, if_ath) should check kenv for said hint and
  if it's found, use that rather than the EEPROM MAC address - which may
  be totally garbage and not actually work right.

In order to do this, I've undone some of the custom redboot expecting
hacks in if_arge and the stuff that magically adds one to the MAC
address supplied by the board - instead, as I continue to test this
out on more hardware, I'll update the hints file with a map explaining
(a) where the board MAC should come from, and (b) what offsets to use
for each device.

The aim is to have all of the tplink, dlink and other random hardware
we run on have valid MAC addresses at boot, so (a) people don't get
random B:S:D:x:x:x ethernet MACs, and (b) the wifi MAC is valid
so it works rather than trying to use an invalid address that
actually upsets systems (think: multicast bit set in BSSID.)

Tested:

* TP-Link TL_WDR3600 - subsequent commits will add the hints map
  and the if_ath support.

TODO:

* Since this is -HEAD, and I'm all for debugging, there's a lot of
  printf()s in here.  They'll eventually go under bootverbose.
* I'd like to turn the macaddr routines into something available
  to all drivers - too many places hand-roll random MAC addresses
  and parser stuff.  I'd rather it just be shared code.
  However, that'll require more formal review.
* More boards.
23:30:51 - r280797
(2 days 7 hours ago)
by kib
Affects:  /head/sys/kern/subr_vmem.c
Make debug.vmem_check a tunable.  It is useful to set it early.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
23:20:46 - r280796
(2 days 7 hours ago)
by adrian
Affects:  /head/sys/dev/etherswitch/arswitch/arswitch_vlans.c
Turns out the AR933x looks like the AR7240/AR7241 switch as far as VLAN
configuration is concerned.

So, remove the now-erroneous comment.

Tested:

* AR9331 - Carambola2, with transmitting dot1q tagged packets around.
23:01:59 - r280795
(2 days 7 hours ago)
by adrian
Affects:  /head/sys/mips/conf/AR933X_BASE
Remove the second MODULES_OVERRIDE; add if_vlan to the list.
21:39:42 - r280794
(2 days 8 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/booke/pmap.c
Wrap #ifdef guards around pmap_bootstrap ap.  It's only used in SMP, and
building without SMP causes a build failure.

MFC after:      1 month
21:28:22 - r280793
(2 days 9 hours ago)
by vangyzen
Affects:  /head/usr.sbin/pmcstat/pmcstat.8
/head/usr.sbin/pmcstat/pmcstat.c
pmcstat.8: fix -a flag description; improve -m flag to match

The -a flag reads a file saved by -O, not -o.

The -m flag requires the -R flag.  Copy that paragraph from -a.

Reviewed by:    adrian
Approved by:    kib (mentor)
MFC after:      1 week
Sponsored by:   Dell Inc
21:21:40 - r280792
(2 days 9 hours ago)
by vangyzen
Affects:  /head/sys/kern/kern_umtx.c
Clean up some cosmetic nits in kern_umtx.c, found during recent work
in this area and by the Clang static analyzer.

Remove some dead assignments.

Fix a typo in a panic string.

Use umtx_pi_disown() instead of duplicate code.

Use an existing variable instead of curthread.

Approved by:    kib (mentor)
MFC after:      3 days
Sponsored by:   Dell Inc
19:59:33 - r280791
(2 days 10 hours ago)
by adrian
Affects:  /head/sys/mips/conf/CARAMBOLA2.hints
Add the MAC address hints for arge0/arge1 on the CARAMBOLA2.

Obtained from:  Linux OpenWRT
18:57:13 - r280790
(2 days 11 hours ago)
by bz
Affects:  /head/sys/conf/files.arm
/head/sys/dev/hwpmc/hwpmc_armv7.c
Remove all the handcrafted assembly in hwpmc_armv7.c and use the
common (autogenerated) versions.   Removes extra vertical space,
and makes it easier to grep for usage throughout the tree.
Conditionally compile only for arm6 [1] (yes sounds odd but is right).

Submitted by:   andrew [1]
Reviewed by:    gnn, andrew (ian earlier version I think)
Differential Revision: https://reviews.freebsd.org/D2159
Obtained from:  Cambridge/L41
Sponsored by:   DARPA, AFRL
18:29:13 - r280789
(2 days 12 hours ago)
by emaste
Affects:  /head/contrib/llvm/tools/lldb/source/Core/Mangled.cpp
Import lldb r233478: Fix build failure on Freebsd with gcc 4.9.

llvm.org/pr23051

Submitted by:   rodrigc
16:59:57 - r280788
(2 days 13 hours ago)
by glebius
Affects:  /head/sys/netinet/ip_id.c
VNETalize random IP ID engine.

Sponsored by:   Nginx, Inc.
16:06:46 - r280787
(2 days 14 hours ago)
by glebius
Affects:  /head/sys/netinet/ip_id.c
Initialize random IP ID engine via SYSINIT() instead of doing that on
first packet.  This allow to use M_WAITOK and cut down some error handling.

Sponsored by:   Nginx, Inc.
15:07:19 - r280786
(2 days 15 hours ago)
by bz
Affects:  /head/sys/kern/kern_timeout.c
Try to unbreak !SMP kernels  broken in r280785 by using the proper macros
to access cc_cpu.
12:50:24 - r280785
(2 days 17 hours ago)
by rrs
Affects: 
(5 files)
/head/sys/kern/kern_timeout.c
/head/sys/netgraph/atm/*
/head/sys/sys/*
Change the callout to supply -1 to indicate we are not changing
CPU, also add protection against invalid CPU's as well as
split c_flags and c_iflags so that if a user plays with the active
flag (the one expected to be played with by callers in MPSAFE) without
a lock, it won't adversely affect the callout system by causing a corrupt
list. This also means that all callers need to use the macros and *not*
play with the falgs directly (like netgraph used to).

Differential Revision: htts://reviews.freebsd.org/D1894
Reviewed by: .. timed out but looked at by jhb, imp, adrian hselasky
             tested by hiren and netflix.
Sponsored by:   Netflix Inc.
12:23:15 - r280784
(2 days 18 hours ago)
by dim
Affects:  /head/share/mk/bsd.sys.mk
Re-enable using -mllvm -enable-load-pre=false in CLANG_OPT_SMALL for
clang versions before 3.5.0.  This should enable building head's version
of sys/boot/i386/boot2 on 9.x and 10.x again.

Reported by:    bz
10:20:20 - r280783
(2 days 20 hours ago)
by arybchik
Affects:  /head/sys/dev/sfxge/sfxge_rx.c
/head/sys/dev/sfxge/sfxge_version.h
sfxge: set correct RSS hash type instead of opaque

Reviewed by:    adrian, gnn
Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2124
09:08:57 - r280782
(2 days 21 hours ago)
by tuexen
Affects:  /head/lib/libc/net/Symbol.map
Add an SCTP symbol which was missed in
https://svnweb.freebsd.org/base?view=revision&revision=169622
This fixes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197783
Thanks to Jukka Ukkonen for reporting the bug and providing a fix.

MFC after: 3 days
09:03:54 - r280781
(2 days 21 hours ago)
by kib
Affects:  /head/sys/amd64/amd64/machdep.c
Make it possible for the signal handler to act on #ss.  Load the
canonical user data segment' selector into %ss when calling the
handler.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
09:02:19 - r280780
(2 days 21 hours ago)
by kib
Affects:  /head/sys/amd64/amd64/trap.c
The #ss fault handler erronously does not check for the fault
originated from the return to usermode. #ss must be handled same as
#np.

Reported by:    Andrew Lutomirski through secteam
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
06:54:18 - r280779
(2 days 23 hours ago)
by adrian
Affects:  /head/sys/mips/conf/AR91XX_BASE
Set VM_KMEM_SIZE_SCALE=1 for the AR91xx SoCs.

Without this the autotuning fails for small amounts of RAM (32mb),
which all the AR91xx shipping products seemed to have.

Thanks to gjb for reminding me to re-test this stuff.

Tested:

* AR91xx, TP-Link TL-WR1043nd v1
05:16:52 - r280778
(3 days 1 hour ago)
by ngie
Affects:  /projects/stable-10-opts-mk
Prune project branch
05:11:16 - r280777
(3 days 1 hour ago)
by gjb
Affects: 
(6 files)
/stable/10/release/arm/*
MFC r280640:
  Crochet sources moved to a new home; update accordingly.

Sponsored by:   The FreeBSD Foundation
05:09:09 - r280776
(3 days 1 hour ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/lua/config.lua
Add support for var=num in loader.conf.

Submitted by:   Pedro Souza
02:55:17 - r280775
(3 days 3 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/io/vrtc.c
Fix the RTC device model to operate correctly in 12-hour mode. The following
table documents the values in the RTC 'hour' field in the two modes:

Hour-of-the-day         12-hour mode    24-hour mode
12      AM              12              0
[1-11]  AM              [1-11]          [1-11]
12      PM              0x80 | 12       12
[1-11]  PM              0x80 | [1-11]   [13-23]

Reported by:    Julian Hsiao (madoka@nyanisore.net)
MFC after:      1 week
02:36:49 - r280774
(3 days 3 hours ago)
by jeff
Affects:  /head/sys/vm/vm_pageout.c
 - Eliminate pagequeue locking in the dirty code in vm_pageout_scan().
 - Use a more precise series of tests to see if the page changed while we
   were locking the vnode.

Reviewed by:    alc
Sponsored by:   EMC / Isilon
01:11:18 - r280773
(3 days 5 hours ago)
by markj
Affects: 
(4 files)
/head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/*
tcp provider tests: sleep for a bit after closing the socket so that
libdtrace has a chance to capture the traced data.

MFC after:      1 week
2015 - 03 - 27   (4 days ago)
23:10:15 - r280772
(3 days 7 hours ago)
by ian
Affects: 
(4 files)
/head/sys/conf/files.powerpc
/head/sys/dev/fdt/*
/head/sys/dev/ofw/ofwbus.c
Make simplebus a base class of ofwbus.  This allows the elimination of
duplicated code in the two classes, and also allows devices in FDT-based
systems to declare simplebus as their parent and still work correctly
when the FDT data describes the device at the root of the tree rather
than as a child of a simplebus (which is common for interrupt, clock,
and power controllers).

Differential Revision:  https://reviews.freebsd.org/D1990
Submitted by:   Michal Meloun
21:47:15 - r280771
(3 days 8 hours ago)
by imp
Affects:  /head/share/mk/bsd.mkopt.mk
Revert the __ALWAYS_NO stuff. It had already been committed as BROKEN.
19:42:38 - r280770
(3 days 10 hours ago)
by emaste
Affects:  /head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
lldb: Move debug register output into __amd64__

This debug register diagnostic is really only applicable to amd64 at
present.

Sponsored by:   The FreeBSD Foundation
19:34:24 - r280769
(3 days 11 hours ago)
by emaste
Affects:  /head/usr.sbin/crunch/crunchide/Makefile
crunchide: arm64 support

Submitted by:   andrew@
Sponsored by:   The FreeBSD Foundation
19:08:11 - r280768
(3 days 11 hours ago)
by hselasky
Affects:  /head/sys/ofed/include/linux/jiffies.h
Fix variable casting:
- Jiffies or ticks in FreeBSD have integer type and are not long.

MFC after:      1 week
Sponsored by:   Mellanox Technologies
18:23:06 - r280767
(3 days 12 hours ago)
by delphij
Affects:  /head/sbin/md5/Makefile
/head/sbin/md5/md5.c
Fix remaining warnings.

MFC after:      2 weeks
17:36:22 - r280766
(3 days 13 hours ago)
by imp
Affects:  /head/sys/conf/kern.opts.mk
Add a note of clarification. MK_* variables only control what modules
are built by default. You can still override that with MODULES_EXTRA
for experimental features like ZFS and dtrace on some
architectures. Also note that kernel config files are not affected by
MK_ options listed, though some targets might be.
17:15:17 - r280765
(3 days 13 hours ago)
by brueffer
Affects:  /head/share/man/man4/amdtemp.4
Mention support for 16h family processors, added in r263169.

PR:             198933
Submitted by:   isoa@kapsi.fi
MFC after:      1 week
16:16:23 - r280764
(3 days 14 hours ago)
by hselasky
Affects: 
(4 files)
/head/sys/ofed/include/linux/*
Fixes for the LinuxAPI completion wrappers:
- make sure the timeout computations are always above zero by using
the existing "linux_timer_jiffies_until()" function. Negative timeouts
can result in undefined behaviour.
- declare all completion functions like external symbols and move the
code to the LinuxAPI kernel module.
- add a proper prefix to all LinuxAPI kernel functions to avoid
namespace collision with other parts of the FreeBSD kernel.
- clean up header file inclusions in the linux/completion.h, linux/in.h
and linux/fs.h header files.

MFC after:      1 week
Sponsored by:   Mellanox Technologies
15:49:21 - r280763
(3 days 14 hours ago)
by kib
Affects:  /head/sys/ufs/ffs/ffs_softdep.c
Fix build (with gcc).

Reported by:    bz, ian
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
15:06:31 - r280762
(3 days 15 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/if.c
/projects/ifnet/sys/net/if_var.h
Rename if_addr_lock to if_lock, since it already protects not only address
lists, and is going to protect even more.
14:40:58 - r280761
(3 days 15 hours ago)
by emaste
Affects:  /head/sys/sys/kerneldump.h
Remove ALPHA leftover
13:55:56 - r280760
(3 days 16 hours ago)
by kib
Affects:  /head/sys/ufs/ffs/ffs_softdep.c
/head/sys/ufs/ffs/ffs_vfsops.c
Fix the hand after the immediate reboot when the following command
sequence is performed on UFS SU+J rootfs:
cp -Rp /sbin/init /sbin/init.old
mv -f /sbin/init.old /sbin/init

Hang occurs on the rootfs unmount.  There are two issues:

1. Removed init binary, which is still mapped, creates a reference to
the removed vnode. The inodeblock for such vnode must have active
inodedep, which is (eventually) linked through the unlinked list. This
means that ffs_sync(MNT_SUSPEND) cannot succeed, because number of
softdep workitems for the mp is always > 0.  FFS is suspended during
unmount, so unmount just hangs.

2. As noted above, the inodedep is linked eventually.  It is not
linked until the superblock is written.  But at the vfs_unmountall()
time, when the rootfs is unmounted, the call is made to
ffs_unmount()->ffs_sync() before vflush(), and ffs_sync() only calls
ffs_sbupdate() after all workitems are flushed.  It is masked for
normal system operations, because syncer works in parallel and
eventually flushes superblock.  Syncer is stopped when rootfs
unmounted, so ffs_sync() must do sb update on its own.

Correct the issues listed above. For MNT_SUSPEND, count the number of
linked unlinked inodedeps (this is not a typo) and substract the count
of such workitems from the total. For the second issue, the
ffs_sbupdate() is called right after device sync in ffs_sync() loop.

There is third problem, occuring with both SU and SU+J. The
softdep_waitidle() loop, which waits for softdep_flush() thread to
clear the worklist, only waits 20ms max. It seems that the 1 tick,
specified for msleep(9), was a typo.

Add fsync(devvp, MNT_WAIT) call to softdep_waitidle(), which seems to
significantly help the softdep thread, and change the MNT_LAZY update
at the reboot time to MNT_WAIT for similar reasons.  Note that
userspace cannot create more work while devvp is flushed, since the
mount point is always suspended before the call to softdep_waitidle()
in unmount or remount path.

PR:     195458
In collaboration with:  gjb, pho
Reviewed by:    mckusick
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
13:26:59 - r280759
(3 days 17 hours ago)
by fabient
Affects:  /head/sys/netinet/ip_output.c
/head/sys/netinet/ip_var.h
On multi CPU systems, we may emit successive packets with the same id.
Fix the race by using an atomic operation.

Differential Revision:  https://reviews.freebsd.org/D2141
Obtained from:  emeric.poupon@stormshield.eu
MFC after:      1 week
Sponsored by:   Stormshield
12:45:20 - r280758
(3 days 17 hours ago)
by mav
Affects:  /head/sys/geom/mirror/g_mirror.c
Remove extra semicolon.

MFC after:      1 week
12:44:28 - r280757
(3 days 17 hours ago)
by mav
Affects:  /head/sys/geom/mirror/g_mirror.c
/head/sys/geom/raid/g_raid.c
Remove request sorting from GEOM_MIRROR and GEOM_RAID.

When CPU is not busy, those queues are typically empty.  When CPU is busy,
then one more extra sorting is the last thing it needs.  If specific device
(HDD) really needs sorting, then it will be done later by CAM.

This supposed to fix livelock reported for mirror of two SSDs, when UFS
fires zillion of BIO_DELETE requests, that totally blocks I/O subsystem by
pointless sorting of requests and responses under single mutex lock.

MFC after:      2 weeks
11:14:12 - r280756
(3 days 19 hours ago)
by mav
Affects:  /head/sys/geom/mirror/g_mirror.c
Fix bug on memory allocation error in split method.

While there, use bioq_takefirst() in place where it is convenient.

MFC after:      1 week
09:32:34 - r280755
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/sys/ata.h
MFC r273445 (by imp):
Add defines for various FIRST PARTY DMA SEND subcommands.
09:31:28 - r280754
(3 days 21 hours ago)
by mav
Affects: 
(3 files)
/stable/10/sys/cam/ata/ata_all.c
/stable/10/sys/sys/ata.h
MFC r270832 (by imp):
Add a few defines and packet types for SATA 3.2 and FPDMA (First Party
DMA).
09:28:30 - r280753
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
MFC r279927: Make DIOCGATTR in device mode handle "GEOM::candelete".
09:04:31 - r280752
(3 days 21 hours ago)
by mav
Affects: 
(4 files)
/stable/9/usr.sbin/powerd/powerd.c
MFC r280286: Add comment explaining existing powerd behavior on SMP systems.
09:01:25 - r280751
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/powerd/powerd.c
MFC r280286: Add comment explaining existing powerd behavior on SMP systems.
08:59:21 - r280750
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_virtio_block.c
MFC r280154:
Report that we may have write cache, and that we do support FLUSH.
08:58:30 - r280749
(3 days 21 hours ago)
by mav
Affects: 
(3 files)
/stable/10/usr.sbin/bhyve/block_if.h
/stable/10/usr.sbin/bhyve/pci_virtio_block.c
MFC r280133: Increase S/G list size of 32 to 33 entries.

32 entries are not enough for the worst case of misaligned 128KB request,
that made FreeBSD to chunk large quests in odd pieces.
08:57:38 - r280748
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/block_if.c
MFC r280126: Pre-allocate one extra request per processing thread.

Processing threads call callbacks before freeing requests.  As result,
new requests may arrive before old ones are freed.
08:56:44 - r280747
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_virtio_block.c
MFC r280044:
According to Linux and QEMU, s/n equal to buffer is not zero-terminated.

This makes same s/n reported for both virtio and AHCI drivers.
08:55:54 - r280746
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/block_if.c
MFC r280042: Close potential race on blockif_close().

Reported by:    vangyzen
08:54:55 - r280745
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r280040:
Give AHCI disk serial based on backing file path same as for virtio block.

It is still not good that they may intersect on different hosts, but that
is better then intersecting on the same host.
08:53:59 - r280744
(3 days 21 hours ago)
by mav
Affects: 
(3 files)
/stable/10/usr.sbin/bhyve/block_if.c
/stable/10/usr.sbin/bhyve/pci_virtio_block.c
MFC r280037:
Rewrite virtio block device driver to work asynchronously and use the block
I/O interface.

Asynchronous operation, based on r280026 change, allows to not block virtual
CPU during I/O processing, that on slow/busy storage can take seconds.
Use of recently improved block I/O interface allows to process multiple
requests same time, that improves random I/O performance on wide storages.

Benchmarks of virtual disk, backed by ZVOL on RAID10 pool of 4 HDDs, show
~3.5 times random read performance improvements, while no degradation on
linear I/O.  Guest CPU usage during test dropped from 100% to almost zero.
08:52:57 - r280743
(3 days 21 hours ago)
by mav
Affects: 
(6 files)
/stable/10/usr.sbin/bhyve/*
MFC r280026, r280041:
Modify virtqueue helpers added in r253440 to allow queuing.

Original virtqueue design allows queued and out-of-order processing, but
helpers added in r253440 suppose only direct blocking in-order one.
It could be fine for network, etc., but it is a huge limitation for storage
devices.
08:51:20 - r280742
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/block_if.c
MFC r280004: Give block I/O interface multiple (8) execution threads.

On parallel random I/O this allows better utilize wide storage pools.
To not confuse prefetcher on linear I/O, consecutive requests are executed
sequentially, following the same logic as was earlier implemented in CTL.

Benchmarks of virtual AHCI disk, backed by ZVOL on RAID10 pool of 4 HDDs,
show ~3.5 times random read performance improvements, while no degradation
on linear I/O.
08:50:26 - r280741
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279987: Add checksums to identify data and NCQ command error log.
08:49:33 - r280740
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279979: Slightly polish virtual AHCI CD reporting.
08:48:44 - r280739
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279977: Fix NOP and IDLE commands for virtual AHCI disks.
08:47:54 - r280738
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279976: Add support for NCQ variant of DSM TRIM for virtual AHCI disks.

The code is not really tested yet due to lack of initiator support.
08:47:16 - r280737
(3 days 21 hours ago)
by bz
Affects:  /head/sys/arm/include/pmc_mdep.h
/head/sys/dev/hwpmc/hwpmc_arm.c
Rather than defining our own magic checks here use INKERNEL() for
the PMC_IN_KERNEL() macro definition.

Add missing macros to extract the return address (LR) from the trapframe.

Discussed with: andrew
Obtained from:  Cambridge/L41
Sponsored by:   DARPA, AFRL
MFC after:      2 weeks
08:47:02 - r280736
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279975: Improve NCQ errors reporting for virtual AHCI disks.

While this implementation is still not perfect, previous was just broken.
08:46:12 - r280735
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279968: Remove incorrect SERR register setting.

At this point we have nothing to report through that register.
08:44:58 - r280734
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279967: Change prdbc value reporting.
08:43:45 - r280733
(3 days 21 hours ago)
by mav
Affects: 
(3 files)
/stable/10/usr.sbin/bhyve/ahci.h
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279965: Polish AHCI disk identify data and fix speed negotiation.
08:42:55 - r280732
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279960:
Add support for PIO variants of READ/WRITE commands for AHCI disks.

AHCI API hides all PIO specifics, so this functionality is almost free.
08:41:49 - r280731
(3 days 21 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/pci_ahci.c
MFC r279975: Use ahci_write_fis_d2h() for commands completion.
03:55:04 - r280730
(4 days 2 hours ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/liblua/Makefile
/projects/lua-bootloader/sys/boot/liblua/lstd.c
liblua: BOOT_LUA is unnecessary.
02:35:33 - r280729
(4 days 4 hours ago)
by imp
Affects:  /head/sys/modules/Makefile
sym and cxgb build on arm, add them to the build.

Differential Revision: https://reviews.freebsd.org/D514
02:35:25 - r280728
(4 days 4 hours ago)
by imp
Affects:  /head/sys/conf/kern.opts.mk
Categorize certain kernel builds as being broken in certain places.

Differential Revision: https://reviews.freebsd.org/D2011
02:35:11 - r280727
(4 days 4 hours ago)
by imp
Affects:  /head/share/mk/bsd.mkopt.mk
/head/sys/conf/kern.opts.mk
Add support for specifying unsupported / broken options that override
any defaults or user specified actions on the command line. This would
be useful for specifying features that are always broken or that
cannot make sense on a specific architecture, like ACPI on pc98 or
EISA on !i386 (!x86 usage of EISA is broken and there's no supported
hardware that could have it in any event). Any items in
__ALWAYS_NO_OPTIONS are forced to "no" regardless of other settings.

Differential Revision: https://reviews.freebsd.org/D2011
02:01:22 - r280726
(4 days 4 hours ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
Fix __size_alloc()

Use underscore for the attributes name: this should fix the use of the
attributes in macros for lint(1).

Suggested by:   bde

X-MFC with:     r280700
01:58:44 - r280725
(4 days 4 hours ago)
by grehan
Affects:  /head/usr.sbin/bhyve/pci_virtio_block.c
/head/usr.sbin/bhyve/pci_virtio_net.c
/head/usr.sbin/bhyve/virtio.c
Move legacy interrupt allocation for virtio devices to common code.
There are a number of assumptions about legacy interrupts always
being available in virtio so don't allow back-ends to make the
decision to support them.

This fixes the issue seen with virtio-rnd on OpenBSD. MSI-x vectors
were not being used, and the virtio-rnd backend wasn't allocating a
legacy interrupt resulting in a bhyve assert and guest exit.

Reported by:    Julian Hsiao, madoka at nyanisore dot net
Reviewed by:    neel
MFC after:      1 week
01:48:54 - r280724
(4 days 4 hours ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/liblua/lstd.c
/projects/lua-bootloader/sys/boot/liblua/lstd.h
My previous attempt at implementing lua_writestring() didn't work
because write(1, ...) isn't correctly handled by libstand.

Rework the code to use luai_writestring
01:48:05 - r280723
(4 days 4 hours ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/common/interp_lua.c
Improve the debugging printfs.
00:42:51 - r280722
(4 days 5 hours ago)
by ken
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl.c
MFC revision 280463

  ------------------------------------------------------------------------
  r280463 | ken | 2015-03-24 15:42:28 -0600 (Tue, 24 Mar 2015) | 5 lines

  Remove some #if 0'ed code that apparently confuses cscope.

  Requested by: Peter Xu <xzpeter@gmail.com>
  MFC after:    3 days

  ------------------------------------------------------------------------

Sponsored by:   Spectra Logic
00:37:41 - r280721
(4 days 5 hours ago)
by jhb
Affects:  /head/etc/defaults/periodic.conf
/head/etc/periodic/daily/420.status-network
/head/share/man/man5/periodic.conf.5
Allow additional flags to be passed to netstat -i in the daily status check.
In particular, this allows an administrator to specify "-h" for human
readable output if that is preferred.

The default setting passes "-d", so that can be excluded by using a custom
setting.

Differential Revision:  https://reviews.freebsd.org/D2034
Submitted by:   Lystopad Aleksandr <laa@laa.zp.ua>
                (patch to add option for -h)
Reviewed by:    bz
MFC after:      1 week
2015 - 03 - 26   (5 days ago)
23:40:22 - r280720
(4 days 6 hours ago)
by ae
Affects:  /head/sys/net/if_lagg.c
Fix a possible mbuf leak on interface departure.

Reported by:    Alexandre Martins
23:37:03 - r280719
(4 days 6 hours ago)
by rodrigc
Affects:  /head/Makefile.inc1
Add --sysroot to the compiler flags for clang or gcc external toolchains

Before this fix, --sysroot was only added to the compiler flags if a clang
external toolchain was used.

Reviewed by:   imp
22:50:35 - r280718
(4 days 7 hours ago)
by dim
Affects:  /projects/lld-import/usr.bin/clang/lld/Makefile
Link lld to ld.lld, so you can use -fuse-ld=lld with clang.
22:35:56 - r280717
(4 days 8 hours ago)
by dim
Affects: 
(104 files)
/projects/lld-import/*
Merge ^/head r280459 through r280715.
22:34:27 - r280716
(4 days 8 hours ago)
by delphij
Affects:  /head/sbin/md5/md5.c
 - Correct type for checkAgainst.
 - Staticify flags that are not used outside the file scope.

PR:             bin/193471
Submitted by:   Robert Sprowson <webpages sprow.co.uk>
MFC after:      2 weeks
22:31:55 - r280715
(4 days 8 hours ago)
by dim
Affects: 
(4 files)
/projects/lld-import/*
Add src.opts.mk option WITH_LLD, to connect lld to the build.
22:05:31 - r280714
(4 days 8 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_output.c
/head/sys/netinet/sctp_structs.h
Improve the selection of the destination address of SACK chunks.
This fixes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196755
and is joint work with rrs@.

MFC after: 1 week
21:58:06 - r280713
(4 days 8 hours ago)
by jilles
Affects:  /head/lib/libc/gen/setmode.c
setmode(): Use sysctl kern.proc.umask instead of umask() if possible.

The kern.proc.umask.<pid> sysctl allows querying the umask without
temporarily modifying it.
21:13:53 - r280712
(4 days 9 hours ago)
by ian
Affects: 
(20 files)
/head/sys/arm/*
/head/sys/conf/*
New pmap code for armv6. Disabled by default, option ARM_NEW_PMAP enables it.

This is pretty much a complete rewrite based on the existing i386 code.  The
patches have been circulating for a couple years and have been looked at by
plenty of people, but I'm not putting anybody on the hook as having reviewed
this in any formal sense except myself.

After this has gotten wider testing from the user community, ARM_NEW_PMAP
will become the default and various dregs of the old pmap code will be
removed.

Submitted by:   Svatopluk Kraus <onwahe@gmail.com>,
                Michal Meloun <meloun@miracle.cz>
21:10:42 - r280711
(4 days 9 hours ago)
by andrew
Affects: 
(4 files)
/head/sys/arm64/include/*
Add more arm64 machine dependent headers. With this we now have the minimum
set of machine headers needed to build the userland toolchain.

Differential Revision:  https://reviews.freebsd.org/D2148
Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
20:08:25 - r280710
(4 days 10 hours ago)
by rrs
Affects:  /head/ObsoleteFiles.inc
Per Gleb, add the pmcstudy.1.gz which was moved to pmcstudy.8.gz
19:33:07 - r280709
(4 days 11 hours ago)
by ian
Affects:  /head/sys/arm/mv/armadaxp/armadaxp_mp.c
Use pmap_mapdev()/unmapdev() to temporarily map on-chip sram while copying
the startup trampoline code.  The old code allocated a kva page, mapped it
using using pmap_kenter_nocache(), then freed the kva without destroying
the mapping.  This is the only use of pmap_kenter_nocache() in the system,
so redoing this one use of allows it to be garbage collected in the
near future.
19:13:54 - r280708
(4 days 11 hours ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/i386/loader/Makefile
i386/loader: add the necessary glue for lua.
18:51:00 - r280707
(4 days 11 hours ago)
by ae
Affects: 
(2 files)
/stable/9/sys/netinet6/nd6_nbr.c
MFC r280236:
  To avoid a possible race, release the reference to ifa after return
  from nd6_dad_na_input().
18:45:51 - r280706
(4 days 11 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/t4_sge.c
cxgbe(4): provide the exact RSS hash type instead of a catch-all value
to the upper layers.
18:44:59 - r280705
(4 days 11 hours ago)
by ae
Affects: 
(2 files)
/stable/10/sys/netinet6/nd6_nbr.c
MFC r280236:
  To avoid a possible race, release the reference to ifa after return
  from nd6_dad_na_input().
18:25:53 - r280704
(4 days 12 hours ago)
by andrew
Affects:  /head/contrib/gcc/config/aarch64/aarch64.h
Also define DWARF_FRAME_REGISTERS. This is used to size arrays, without
this exceptions could write over the stack.

Sponsored by:   The FreeBSD Foundation
17:51:11 - r280703
(4 days 12 hours ago)
by emaste
Affects: 
(2 files)
/stable/10/sys/modules/drm2/Makefile
MFC r270572: drm/i915: Disable the build of i915 on PC98

  This module is of no use on this platform.
17:21:12 - r280702
(4 days 13 hours ago)
by mav
Affects:  /head/sys/vm/swap_pager.c
Make swapper release orphaned (lost) GEOM provider.

Swap device is still reported as enabled, and system still may crash later
if some swapped-out kernel pages were lost with the device, but at least
GEOM and CAM can now release the lost disk, allowing it to be reconnected.

MFC after:      2 weeks
Sponsored by:   iXsystems, Inc.
17:13:11 - r280701
(4 days 13 hours ago)
by kp
Affects:  /head/usr.bin/ministat/ministat.1
Clarify the ministat default width

The man page states that:
'-w width    Width of ASCII-art plot in characters, default is 74.'

This is not entirely correct. The mini-help is more accurate:
'-w : width of graph/test output (default 74 or terminal width)'

In other words: the man page fails to explain that ministat will default
to the terminal width, not 74. It will only fall back to 74 if stdout is
not a TTY.

Submitted by:   Ben Hutchings <ben@decadent.org.uk>
Approved by:    philip (mentor)
16:00:35 - r280700
(4 days 14 hours ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
Introduce some allocation function attributes.

Bring support for two gcc function attributes that are likely to be used
in our system headers:

__alloc_size
The alloc_size attribute is used to tell the compiler that the function
return value points to memory, where the size is given by one or two of
the functions parameters.

__result_use_check
Causes a warning to be emitted if a caller of the function with this
attribute does not use its return value. This is known in gcc as
"warn_unused_result" but we considered the original naming unsuitable
for an attribute.

The __alloc_size attribute required some workarounds for lint(1).
Both attributes are supported by clang.

Also see: D2107

MFC after:      3 days
15:54:54 - r280699
(4 days 14 hours ago)
by brueffer
Affects:  /head/usr.sbin/pmcstudy/pmcstudy.8
Rough first mdoc, spelling and grammar cleanup pass.
15:43:57 - r280698
(4 days 14 hours ago)
by rrs
Affects:  /head/usr.sbin/pmcstudy/pmcstudy.8
Opps its section 8 not 1 silly.
MFC after:      3 days
Sponsored by:   Netflix
15:40:47 - r280697
(4 days 14 hours ago)
by rrs
Affects: 
(4 files)
/head/usr.sbin/pmcstudy/*
Update the manual page to be a bit more sane. It still
may need some work, but at least now it will read properly.
(gnn you are still on the hook to help out with this
like you committed).

Sponsored by:   Netflix.
15:27:38 - r280696
(4 days 15 hours ago)
by kp
Affects:  /head/share/misc/committers-src.dot
Add myself (kp) to committers-src.dot

Approved by:    philip (mentor)
15:25:01 - r280695
(4 days 15 hours ago)
by glebius
Affects: 
(7 files)
/projects/ifnet/sys/dev/cxgbe/*
Convert cxgbe(4) to new ifnet KPI. For this moment only compile tested.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
15:20:09 - r280694
(4 days 15 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/if.c
In SIOCSIFCAP case provide the logic that will enforce dependency
of TSO on hardware checksum offloading.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
15:19:03 - r280693
(4 days 15 hours ago)
by glebius
Affects:  /projects/ifnet/sys/dev/bge/if_bge.c
Remove extraneous casts.
14:55:22 - r280692
(4 days 15 hours ago)
by jhibbits
Affects:  /head/sys/modules/Makefile
Make several modules unconditionally built, there's no need for them to be
hidden.

These modules pass a tinderbox build.
Discussed with: ian and others
MFC after:      1 month
14:51:24 - r280691
(4 days 15 hours ago)
by br
Affects: 
(4 files)
/head/sys/mips/include/*
/head/sys/mips/mips/*
Add 64 byte linesize cache flushing routines for L1 instruction, L1 data
and L2 data caches.

Sponsored by:   HEIF5
13:31:04 - r280690
(4 days 17 hours ago)
by pluknet
Affects:  /head/sys/netpfil/pf/pf_norm.c
Static'ize pf_fillup_fragment body to match its declaration.

Missed in 278925.
12:58:30 - r280689
(4 days 17 hours ago)
by gjb
Affects:  /head/sys/mips/conf/AR91XX_BASE
Remove duplicate AH_DEBUG_ALQ option.

Sponsored by:   The FreeBSD Foundation
12:52:21 - r280688
(4 days 17 hours ago)
by ru
Affects:  /head/share/man/man4/icmp.4
Corrected descriptions of net.inet.icmp.icmplim and icmplim_output.

Reviewed by:    pluknet
12:17:47 - r280687
(4 days 18 hours ago)
by mav
Affects:  /head/lib/libgeom/geom_xml2tree.c
/head/sbin/geom/class/part/geom_part.c
/head/sys/geom/part/g_part.c
Make GEOM_PART work in presence of previous withered self.

MFC after:      2 weeks
Sponsored by:   iXsystems, Inc.
11:19:24 - r280686
(4 days 19 hours ago)
by mav
Affects:  /head/sys/geom/geom_dump.c
Report withered providers as such alike to GEOMs.

MFC after:      2 weeks
11:02:29 - r280685
(4 days 19 hours ago)
by mav
Affects:  /head/sys/geom/geom_subr.c
When searching for provider by name, prefer non-withered one.

MFC after:      2 weeks
10:44:16 - r280684
(4 days 19 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/x86/iommu/intel_reg.h
MFC r280254:
Provide definitions for all descriptors types in the DMAR invalidation
queue.
10:27:39 - r280683
(4 days 20 hours ago)
by hselasky
Affects: 
(4 files)
/stable/8/share/man/man4/snd_uaudio.4
MFC r280262 and r280263:
Add more known bugs to the USB audio manual page.
10:26:25 - r280682
(4 days 20 hours ago)
by hselasky
Affects: 
(4 files)
/stable/9/share/man/man4/snd_uaudio.4
MFC r280262 and r280263:
Add more known bugs to the USB audio manual page.
10:25:15 - r280681
(4 days 20 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/share/man/man4/snd_uaudio.4
MFC r280262 and r280263:
Add more known bugs to the USB audio manual page.
09:13:16 - r280680
(4 days 21 hours ago)
by kevlo
Affects:  /head/usr.bin/top/machine.c
Print size_t's with %zu rather than "%zd.

Reviewed by:    bde
08:38:53 - r280679
(4 days 21 hours ago)
by mav
Affects: 
(3 files)
/stable/10/sbin/camcontrol/camcontrol.8
/stable/10/sbin/camcontrol/camcontrol.c
MFC r280249: Add camcontrol subcommands to control APM and AAM levels.

Sponsored by:   iXsystems, Inc.
08:36:08 - r280678
(4 days 22 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/geom/mirror/g_mirror.c
MFC r279913: Fix couple BIO_DELETE bugs in geom_mirror.

Do not report GEOM::candelete if none of providers support BIO_DELETE.
If consumer still requests BIO_DELETE, report error instead of hanging.
07:28:32 - r280677
(4 days 23 hours ago)
by rpaulo
Affects: 
(35 files)
/projects/lua-bootloader/sys/contrib/lua/src/*
Port lua to libstand.

Based on Pedro's version.
07:27:38 - r280676
(4 days 23 hours ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/liblua/Makefile
/projects/lua-bootloader/sys/boot/liblua/lstd.c
/projects/lua-bootloader/sys/boot/liblua/lstd.h
Add more compatibility functions for lua 5.3.0.
07:26:28 - r280675
(4 days 23 hours ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/common/interp_lua.c
inter_lua: use stand.h
06:36:34 - r280674
(5 days ago)
by dchagin
Affects:  /user/dchagin/lemul/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.
06:00:42 - r280673
(5 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/i386/loader/Makefile
i386/loader: install lua files.
06:00:22 - r280672
(5 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/userboot/userboot/Makefile
Correctly set LIBSTAND in userboot Makefile.

userboot doesn't yet have lua support, but this is necessary.
05:50:56 - r280671
(5 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/amd64/efi/Makefile
efi: add rules for lua.
05:48:34 - r280670
(5 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/common/Makefile.inc
Compile interp_simple.c.
05:45:59 - r280669
(5 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/liblua/Makefile
Lua is using floating point arithmetic, but we were trying to compile
with -mno-sse on amd64.  This posed a problem because the compiler was
generating SSE anyway and it crashed later on.  It should be ok to use
SSE at this point, but this needs to be revisited.
05:45:21 - r280668
(5 days ago)
by yongari
Affects: 
(4 files)
/stable/9/sys/dev/mii/rgephy.c
/stable/9/sys/dev/mii/rgephyreg.h
MFC r279903,279941:
  Add RTL8211F gigabit PHY support.

  PR:   197265
05:44:21 - r280667
(5 days ago)
by yongari
Affects: 
(3 files)
/stable/10/sys/dev/mii/rgephy.c
/stable/10/sys/dev/mii/rgephyreg.h
MFC r279903,279941:
  Add RTL8211F gigabit PHY support.

  PR:   197265
05:37:44 - r280666
(5 days ago)
by rpaulo
Affects: 
(5 files)
/projects/lua-bootloader/sys/boot/*
Add a liblua32 to cope with i386/amd64 loaders.
05:20:18 - r280665
(5 days 1 hour ago)
by rpaulo
Affects:  /head/sys/vm/memguard.c
/head/sys/vm/vm_page.c
Add comments about CTLFLAG_RDTUN vs. TUNABLE_INT_FETCH.

Requested by:   julian
05:18:17 - r280664
(5 days 1 hour ago)
by yongari
Affects: 
(3 files)
/stable/9/sys/dev/bce/if_bcereg.h
MFC r279223:
  Correct a typo.
05:17:20 - r280663
(5 days 1 hour ago)
by yongari
Affects: 
(2 files)
/stable/10/sys/dev/bce/if_bcereg.h
MFC r279223:
  Correct a typo.
05:13:03 - r280662
(5 days 1 hour ago)
by yongari
Affects: 
(3 files)
/stable/9/sys/dev/alc/if_alc.c
MFC r277907:
  Correct device description message.
05:12:30 - r280661
(5 days 1 hour ago)
by yongari
Affects: 
(2 files)
/stable/10/sys/dev/alc/if_alc.c
MFC r277907:
  Correct device description message.
05:08:35 - r280660
(5 days 1 hour ago)
by yongari
Affects: 
(3 files)
/stable/9/sys/dev/nge/if_nge.c
MFC r277050:
  Receive filter configuration is done in nge_rxfilter().  Remove
  unnecessary filter configuration code in nge_init_locked().
  While I'm here add a check for driver running state for multicast
  filter handling.  Also remove unnecessary assignment to error
  variable since it is cleared in the function entry.
05:07:18 - r280659
(5 days 1 hour ago)
by yongari
Affects: 
(2 files)
/stable/10/sys/dev/nge/if_nge.c
MFC r277050:
  Receive filter configuration is done in nge_rxfilter().  Remove
  unnecessary filter configuration code in nge_init_locked().
  While I'm here add a check for driver running state for multicast
  filter handling.  Also remove unnecessary assignment to error
  variable since it is cleared in the function entry.
04:58:47 - r280658
(5 days 1 hour ago)
by yongari
Affects: 
(3 files)
/stable/9/sys/dev/sis/if_sis.c
MFC r275816:
  Fix a bug introdiced in r217548.  According to NS DP83815 data
  sheet, RX filter should be disabled before programming.
  Previously it was clearing wrong bits so RX filter was not
  disabled in RX filter configuration.

MFC r277048:
  Enable receive filter in sis_rxfilter().
  While I'm here add a check for driver running state for multicast
  filter handling.
04:55:22 - r280657
(5 days 1 hour ago)
by yongari
Affects: 
(2 files)
/stable/10/sys/dev/sis/if_sis.c
MFC r275816:
  Fix a bug introdiced in r217548.  According to NS DP83815 data
  sheet, RX filter should be disabled before programming.
  Previously it was clearing wrong bits so RX filter was not
  disabled in RX filter configuration.

MFC r277048:
  Enable receive filter in sis_rxfilter().
  While I'm here add a check for driver running state for multicast
  filter handling.
03:43:38 - r280656
(5 days 2 hours ago)
by rpaulo
Affects: 
(4 files)
/projects/lua-bootloader/sys/boot/common/*
Split the interpreter code to make it easy to support Forth, Lua and
the barebones interpreter.

Submitted by:   Pedro Souza
03:05:07 - r280655
(5 days 3 hours ago)
by gjb
Affects: 
(6 files)
/projects/release-arm-redux/release/Makefile.arm
/projects/release-arm-redux/release/arm/*
Attempt to create the final image (though not nearly ready
for it yet).

This is probably very broken and/or wrong, but that's why
we have projects branches.

Sponsored by:   The FreeBSD Foundation
02:33:07 - r280654
(5 days 4 hours ago)
by rpaulo
Affects: 
(7 files)
/projects/lua-bootloader/sys/boot/lua/*
Fix the properties of recently added lua files.
02:31:03 - r280653
(5 days 4 hours ago)
by rpaulo
Affects:  /
Add auto-props for .lua files.
02:19:38 - r280652
(5 days 4 hours ago)
by gjb
Affects:  /projects/release-arm-redux/release/Makefile.arm
Create the md(4) device for the /boot msdosfs GPT partition.

Sponsored by:   The FreeBSD Foundation
02:17:07 - r280651
(5 days 4 hours ago)
by rpaulo
Affects: 
(8 files)
/projects/lua-bootloader/sys/boot/lua/*
Add Lua scripts written by Pedro.
02:02:51 - r280650
(5 days 4 hours ago)
by gjb
Affects:  /projects/release-arm-redux/release/Makefile.arm
Create the md(4) device for the /boot msdosfs GPT partition.

Sponsored by:   The FreeBSD Foundation
01:20:54 - r280649
(5 days 5 hours ago)
by gjb
Affects:  /projects/release-arm-redux/release/Makefile.arm
Specify .OBJDIR for consistency.

Call newfs(8) and mount the md(4) device to the target
directory.

Specify DESTDIR for installworld, distribution, and
installkernel targets.

Sponsored by:   The FreeBSD Foundation
01:06:29 - r280648
(5 days 5 hours ago)
by gjb
Affects:  /projects/release-arm-redux/release/Makefile.arm
Prevent possible duplicate md(4) creation with separate device id.

Sponsored by:   The FreeBSD Foundation
01:03:38 - r280647
(5 days 5 hours ago)
by gjb
Affects:  /projects/release-arm-redux/release/Makefile.arm
Fix 'beforeclean' broken in previous commit.

Sponsored by:   The FreeBSD Foundation
01:00:48 - r280646
(5 days 5 hours ago)
by gjb
Affects:  /projects/release-arm-redux/release/Makefile.arm
Add glue to make the md(4) device for populating the
userland/kernel.

Clean up a few variable names.

Sponsored by:   The FreeBSD Foundation
00:07:40 - r280645
(5 days 6 hours ago)
by gjb
Affects:  /projects/release-arm-redux/release/Makefile.arm
Add targets for world/kernel build, currently only echoed
for debugging purposes.

Add comment to mark the end of the main loop.

Sponsored by:   The FreeBSD Foundation
2015 - 03 - 25   (6 days ago)
23:29:35 - r280644
(5 days 7 hours ago)
by gjb
Affects:  /projects/release-arm-redux/release/Makefile.arm
Reindent.

Sponsored by:   The FreeBSD Foundation
23:24:05 - r280643
(5 days 7 hours ago)
by gjb
Affects:  /projects/release-arm-redux/release/Makefile.arm
Move the 'build-arm-ports${BOARD}' within the for loop
to fix target/variable expansion.

Sponsored by:   The FreeBSD Foundation
22:45:54 - r280642
(5 days 7 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_auth.c
Make sure that we don't free an SCTP shared key too early.
Thanks to Pouyan Sepehrdad from Qualcomm Product Security Initiative
for reporting the issue.
MFC after: 3 days
22:35:08 - r280641
(5 days 8 hours ago)
by gjb
Affects: 
(7953 files)
/projects/release-arm-redux/*
MFH: r278968-r280640

Sponsored by:   The FreeBSD Foundation
22:08:02 - r280640
(5 days 8 hours ago)
by gjb
Affects: 
(5 files)
/head/release/arm/*
Crochet sources moved to a new home; update accordingly.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
21:59:36 - r280639
(5 days 8 hours ago)
by imp
Affects:  /head/Makefile.inc1
Add some more explanation to the different phases of the build.
21:57:03 - r280638
(5 days 8 hours ago)
by glebius
Affects:  /projects/ifnet/sys/dev/cadence/if_cgem.c
Call if_attach() at the very end of cgem_attach() after all possible
failure scenarios.
21:55:13 - r280637
(5 days 8 hours ago)
by glebius
Affects:  /projects/ifnet/sys/dev/cadence/if_cgem.c
In new ifnet world order drivers, not miibus(4) are responsible to update
their baudrate and link state.
21:53:17 - r280636
(5 days 8 hours ago)
by pfg
Affects:  /head/include/pthread.h
/head/include/signal.h
Temporarily revert 280458.

GCC is still carries an old version of cdefs.h which doesn't
accept multiple parameters for the nonnull attribute.

Since this issue probably affects many ports in the tree
we will revert it for now until gcc gets fixed.
21:53:16 - r280635
(5 days 8 hours ago)
by glebius
Affects:  /projects/ifnet/sys/dev/cadence/if_cgem.c
Some minor cleanups:
- No reason to store cgem_hwassist in softc. We need only generate it
  in response to SIOCSIFCAP.
- Simplify SIOCSIFCAP.
- Remove CGEM_DRV_OACTIVE, which is a remembrance about IFF_DRV_OACTIVE,
  which is descendant of IFF_OACTIVE and was a flag to synchronise the
  stack and the driver in the era of giant locked kernels.
- Do not modify cgem_if_flags in any place except SIOCSIFFLAGS.
- Remove unneeded includes.
21:41:20 - r280634
(5 days 8 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_usrreq.c
Use the reference count of the right SCTP inp.
Joint work with rrs@

MFC after: 3 days
21:31:36 - r280633
(5 days 9 hours ago)
by glebius
Affects:  /projects/ifnet/sys/dev/cadence/if_cgem.c
Convert to new ifnet KPI.

Big thanks to Thomas for this submission!

Submitted by:   Thomas Skibo <thomasskibo sbcglobal.net>
20:57:54 - r280632
(5 days 9 hours ago)
by ian
Affects: 
(7 files)
/stable/10/sys/kern/*
/stable/10/sys/sys/jail.h
/stable/10/usr.sbin/jail/jail.8
MFC r279361, r279395, r279396:

  Allow the kern.osrelease and kern.osreldate sysctl values to be set in a
  jail's creation parameters.  This allows the kernel version to be reliably
  spoofed within the jail whether examined directly with sysctl or
  indirectly with the uname -r and -K options.

  Export the new osreldate and osrelease jail parms in jail_get(2).

  Fix line wrap.
20:57:08 - r280631
(5 days 9 hours ago)
by emaste
Affects:  /head/Makefile.inc1
Force MK_INCLUDES for the legacy stage

As legacy executes "make installincludes" we don't want it to be
disabled by a src.conf setting.

Reviewed by:    imp
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D2143
18:56:36 - r280630
(5 days 11 hours ago)
by jkim
Affects: 
(5 files)
/head/lib/libfetch/*
/head/sys/sys/param.h
/head/usr.bin/fetch/*
Remove defunct SSLv2 support from fetch(1) and fetch(3).
18:02:06 - r280629
(5 days 12 hours ago)
by culot
Affects:  /head/share/misc/organization.dot
Update the portmgr members list
17:58:44 - r280628
(5 days 12 hours ago)
by gjb
Affects:  /stable/10/release/doc/share/xml/security.xml
/stable/8/release/doc/share/xml/security.xml
/stable/9/release/doc/share/xml/security.xml
Document SA-15:06.

Sponsored by:   The FreeBSD Foundation
17:20:59 - r280627
(5 days 13 hours ago)
by glebius
Affects:  /projects/ifnet/sys/dev/re/if_re.c
/projects/ifnet/sys/dev/rl/if_rlreg.h
Convert re(4) to new ifnet KPI.

Big thanks to Mikhail for providing the patch of very good quality and
tested. If a hundred people would do the same, then the opaque ifnet
project seems to be an achievable goal. :)

Submitted by:   Mikhail <mp39590 gmail.com>
16:54:37 - r280626
(5 days 13 hours ago)
by pfg
Affects:  /head/include/stdlib.h
Clean sparse spaces.
16:40:08 - r280625
(5 days 13 hours ago)
by glebius
Affects: 
(8 files)
/projects/ifnet/sys/dev/*
/projects/ifnet/sys/net/*
In the new ifnet world order, drivers are responsible to update
their IFCOUNTER_IBYTES.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
16:13:44 - r280624
(5 days 14 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/if_vlan.c
Convert vlan(4) to new ifnet KPI. The vlan(4) still includes if_var.h,
and knows struct ifnet, which is okay for an interface driver integrated
in stack.

The core idea is that if_vlantrunk structure now carries struct ifops,
which are composed of ifops from the parent interface and a couple of
vlan-specific ops. All vlan instances sitting on the same trunk share
the ops.

Another important change is that vlan(4) is more divorced with the
Ethernet layer, than it used to be. It doesn't use ether_ifattach().
However, running on Ethernet interfaces it will implicitly call
ether_input().

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
16:05:59 - r280623
(5 days 14 hours ago)
by glebius
Affects: 
(7 files)
/projects/ifnet/sys/*
Merge head r257698 through r280622.
16:01:46 - r280622
(5 days 14 hours ago)
by glebius
Affects:  /head/sys/net/if_vlan.c
Fix couple of fallouts from r280280. The first one is a simple typo,
where counter was incremented on parent, instead of vlan(4) interface.

The second is more complicated. Historically, in our stack the incoming
packets are accounted in drivers, while incoming bytes for Ethernet
drivers are accounted in ether_input_internal(). Thus, it should be
removed from vlan(4) driver.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
15:51:41 - r280621
(5 days 14 hours ago)
by jhb
Affects:  /head/sys/i386/conf/NOTES
/head/sys/sparc64/conf/NOTES
Apply r276208 to non-amd64 NOTES files as well to fix tinderbox builds
run under a system using vt(4) instead of syscons(4):

Use compiled in default keymaps which are available both in syscons and vt.
14:36:17 - r280620
(5 days 16 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/if.c
/projects/ifnet/sys/net/if_ethersubr.c
/projects/ifnet/sys/net/if_var.h
In the head network stack an interface ifp->if_addrlen always matches
((struct sockaddr_dl *)ifp->if_addr->ifa_addr))->sdl_alen. We can use
either to determine interface address length. In the projects/ifnet,
the if_addrlen moves to ifdrv_addrlen, being the same for all instances
of a certain driver. However, the vlan(4) driver theoretically may
have different address length on different instances. We've got code
in vlan(4) that allows it to run on infiniband.

o Change if_addrlen() to return sdl_alen of hardware address instead
  of ifdrv_addrlen.
o Generalize setup of ifa_addr. Set up sdl->sdl_alen and copy the
  link level address in the if_attach(), instead of doing that in
  ether_ifattach/arc_ifattch/whatever_ifattach.
o Make ifat_lla an optional argument. An interface may not know its
  address at creation time, thus it will have address of all zeroes.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
14:24:04 - r280619
(5 days 16 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/if.c
Remove remnants of vlan_cookie()/vlan_setcookie().
14:23:07 - r280618
(5 days 16 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/if_vlan.c
/projects/ifnet/sys/net/if_vlan_var.h
Remove vlan_cookie()/vlan_setcookie(), they are unused. Note that there
is a plan to provide KPI to assign arbitrary cookies on ifnet(9).
14:20:57 - r280617
(5 days 16 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/ethernet.h
/projects/ifnet/sys/net/if_ethersubr.c
Share etherbroadcastaddr[] with rest of kernel.
14:18:55 - r280616
(5 days 16 hours ago)
by glebius
Affects:  /projects/ifnet/sys/net/if.c
Slightly change macros in ifdriver_bless() that assign ifdrv fields
to default or type-specific values.  Improve comments. No functional
change.
14:10:20 - r280615
(5 days 16 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/sys/dev/sfxge/sfxge_rx.c
/stable/10/sys/dev/sfxge/sfxge_rx.h
/stable/10/sys/modules/sfxge/Makefile
MFC: 279398

sfxge: compile out LRO if kernel is compiled without IPv4 and IPv6

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

MFC: 279411

Unbreak 'make depend' with sfxge by removing debugging code activated in the
INET || INET6 case

X-MFC with: r279398
Pointyhat to: arybchik
14:05:51 - r280614
(5 days 16 hours ago)
by glebius
Affects: 
(166 files)
/projects/ifnet/*
Merge head r257698 through r280575.
13:57:54 - r280613
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 280433

sfxge: cleanup: fix index variable type to match upper boundary type

Sponsored by:   Solarflare Communications, Inc.
13:56:42 - r280612
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge.h
MFC: 280432

sfxge: cleanup: add a blank line before each #if to improve readability

Sponsored by:   Solarflare Communications, Inc.
13:55:36 - r280611
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/modules/sfxge/Makefile
MFC: 280431

sfxge: cleanup: remove trailing whitespaces

Sponsored by:   Solarflare Communications, Inc.
13:54:28 - r280610
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_port.c
MFC: 280380

sfxge: remove unnecessary and wrong prediction

Sponsored by:   Solarflare Communications, Inc.
Original Differential Revision: https://reviews.freebsd.org/D2085
13:53:28 - r280609
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efx_mcdi.c
MFC: 280379

sfxge: do not check MCDI status word

This is a temporary workaround until we determine a reliable sequence
of operations for detecting MC reboots.

Sponsored by:   Solarflare Communications, Inc.
Original Differential Revision: https://reviews.freebsd.org/D2084
13:52:31 - r280608
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efsys.h
MFC: 280378

sfxge: FreeBSD before 10 does not have bus_space_*_8 on amd64

bus_space_*_8() are not always macros, so it is not correct to use
#ifndef.

Sponsored by:   Solarflare Communications, Inc.
Original Differential Revision: https://reviews.freebsd.org/D2083
13:51:39 - r280607
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 280377

sfxge: add statistics for each Tx queue

Sponsored by:   Solarflare Communications, Inc.
Original Differential Revision: https://reviews.freebsd.org/D2082
13:50:38 - r280606
(5 days 16 hours ago)
by arybchik
Affects: 
(6 files)
/stable/10/sys/dev/sfxge/*
MFC: 280376

sfxge: remove obsolete Tx non-multi queue support

Tx multi queue is added in FreeBSD 8.0. So, the changeset drops earlier
versions support.

Sponsored by:   Solarflare Communications, Inc.
Original Differential Revision: https://reviews.freebsd.org/D2081
13:48:54 - r280605
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efsys.h
MFC: 280375

sfxge: add barriers to BAR write macros

In theory the barriers are required to cope with write combining and
reordering. Two barriers are added (sometimes merged to one):
 1. Before the first write to guarantee that previous writes to the region
    have been done
 2. Before the last write to guarantee that write to the last dword/qword is
    done after previous writes
Barriers are inserted before in the assumption that it is better to
postpone barriers as much as it is possible (more chances that the
operation has already been already done and barrier does not stall CPU).

On x86 and amd64 bus space write barriers are just compiler memory barriers
which are definitely required.

Sponsored by:   Solarflare Communications, Inc.
Original Differential Revision: https://reviews.freebsd.org/D2077
13:47:48 - r280604
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 280374

sfxge: assert either kernel or internal copy of interface flags

ioctl to put interface down sets ifp->if_flags which holds the intended
administratively defined state and calls driver callback to apply it.
When everything is done, driver updates internal copy of
interface flags sc->if_flags which holds the operational state.
So, transmit from Rx path is possible when interface is intended to be
administratively down in accordance with ifp->if_flags, but not applied
yet and the operational state is up in accordance with sc->if_flags.

Sponsored by:   Solarflare Communications, Inc.
Original Differential Revision: https://reviews.freebsd.org/D2075
13:46:30 - r280603
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 280164

sfxge: increase default put-list limit to 1024

Drops are observed under multi-stream TCP traffic due to put-list
overflow with limit equal to 64.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:45:20 - r280602
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 280163

sfxge: prefetch txq->common if TxQ is started only

Transmit may be called when TxQ is not started yet (i.e. txq->common is
invalid). TxQ state is checked below when mbuf is processed and dropped
if TxQ is not started.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:44:01 - r280601
(5 days 16 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/sys/dev/sfxge/sfxge.c
/stable/10/sys/dev/sfxge/sfxge_version.h
/stable/10/sys/modules/sfxge/Makefile
MFC: 280162

sfxge: adding version info to device description

The information is required for NIC update and config tools.

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:42:37 - r280600
(5 days 16 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 280161

sfxge: move deferred packet list statistics to dedicated node

It is done to structure sysctl and do not mix with Tx queue statistics
to be added.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:41:26 - r280599
(5 days 16 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/share/man/man4/sfxge.4
/stable/10/sys/dev/sfxge/sfxge_rx.c
MFC: 280160

sfxge: add tunables to control LRO parameters on driver load time

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:32:27 - r280598
(5 days 17 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/usb.h
Add definition of the ISOCHRONOUS endpoint usage bits.
Refer to the USB v2.0 specification for more information.

MFC after:      1 week
13:28:13 - r280597
(5 days 17 hours ago)
by hselasky
Affects:  /head/sys/cam/scsi/scsi_da.c
Add DA_Q_NO_RC16 quirk for USB mass storage device.

PR:             198647
MFC after:      1 week
13:18:51 - r280596
(5 days 17 hours ago)
by arybchik
Affects: 
(6 files)
/stable/10/sys/dev/sfxge/*
MFC: 279351

sfxge: expect required init_state on data path and in periodic calls

With the patch applied the number of instruction events is 1% less and
number of mispredicted branch events is 5% less under multistream TCP
traffic load close to line rate.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:18:36 - r280595
(5 days 17 hours ago)
by hselasky
Affects: 
(7 files)
/stable/8/sys/dev/sound/usb/uaudio.c
/stable/8/sys/dev/sound/usb/uaudio.h
/stable/8/sys/dev/sound/usb/uaudio_pcm.c
MFC r280322 and r280429:
The synchronisation value returned by the so-called feedback endpoint
appears to be too inaccurate that it can be used to synchronize the
playback data stream. If there is a recording endpoint associated with
the playback endpoint, use that instead. That means if the isochronous
OUT endpoint is asynchronus the USB audio driver will automatically
start recording, if possible, to get exact information about the
needed sample rate adjustments. In no recording endpoint is present,
no rate adaption will be done.

While at it fix an issue where the hardware buffer pointers don't get
reset at the first device PCM trigger.

Make some variables 32-bit to avoid problems with multithreading.

Use the feedback value from the synchronization endpoint as fallback
when there is no recording channel.

PR:             198444
13:16:39 - r280594
(5 days 17 hours ago)
by hselasky
Affects: 
(5 files)
/stable/9/sys/dev/sound/usb/uaudio.c
/stable/9/sys/dev/sound/usb/uaudio.h
/stable/9/sys/dev/sound/usb/uaudio_pcm.c
MFC r280322 and r280429:
The synchronisation value returned by the so-called feedback endpoint
appears to be too inaccurate that it can be used to synchronize the
playback data stream. If there is a recording endpoint associated with
the playback endpoint, use that instead. That means if the isochronous
OUT endpoint is asynchronus the USB audio driver will automatically
start recording, if possible, to get exact information about the
needed sample rate adjustments. In no recording endpoint is present,
no rate adaption will be done.

While at it fix an issue where the hardware buffer pointers don't get
reset at the first device PCM trigger.

Make some variables 32-bit to avoid problems with multithreading.

Use the feedback value from the synchronization endpoint as fallback
when there is no recording channel.

PR:             198444
13:15:47 - r280593
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efx_impl.h
MFC: 279266

sfxge: correct limit for number of Rx queues

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:14:50 - r280592
(5 days 17 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 279231

sfxge: add put-list high watermark

It is interesting to know how long put-list grows.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:14:25 - r280591
(5 days 17 hours ago)
by hselasky
Affects: 
(4 files)
/stable/10/sys/dev/sound/usb/uaudio.c
/stable/10/sys/dev/sound/usb/uaudio.h
/stable/10/sys/dev/sound/usb/uaudio_pcm.c
MFC r280322 and r280429:
The synchronisation value returned by the so-called feedback endpoint
appears to be too inaccurate that it can be used to synchronize the
playback data stream. If there is a recording endpoint associated with
the playback endpoint, use that instead. That means if the isochronous
OUT endpoint is asynchronus the USB audio driver will automatically
start recording, if possible, to get exact information about the
needed sample rate adjustments. In no recording endpoint is present,
no rate adaption will be done.

While at it fix an issue where the hardware buffer pointers don't get
reset at the first device PCM trigger.

Make some variables 32-bit to avoid problems with multithreading.

Use the feedback value from the synchronization endpoint as fallback
when there is no recording channel.

PR:             198444
13:13:32 - r280590
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_dma.c
MFC: 279230

sfxge: use goto to cleanup to avoid duplicate cleanup code

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:12:15 - r280589
(5 days 17 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/sys/dev/sfxge/common/efx.h
/stable/10/sys/dev/sfxge/common/efx_regs.h
/stable/10/sys/dev/sfxge/common/efx_tx.c
MFC: 279183

sfxge: add common code support for changing TX queue pace

To delay packets from a particular TX queue by a particular time, write a value
into the TX Pace table s.t. pace time <= TX Pace Clock Period * (2 ^ pace value)
- the TX pace clock is 1/13 of the system clock, so its period should be 104 or
52 ns depending on whether turbo mode is active.

EFX_TX_PACE_CLOCK_BASE added by me.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:11:19 - r280588
(5 days 17 hours ago)
by arybchik
Affects: 
(6 files)
/stable/10/sys/dev/sfxge/common/*
/stable/10/sys/dev/sfxge/sfxge_ev.c
MFC: 279182

sfxge: correct event queue interrupt moderation timer quanta

Submitted by:   Andrew Lee <alee at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:09:46 - r280587
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/share/man/man4/sfxge.4
MFC: 279181

sfxge: add indefinite article and update timestamp

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:08:57 - r280586
(5 days 17 hours ago)
by hselasky
Affects: 
(3 files)
/stable/8/sys/kern/kern_conf.c
MFC r280345:
Fix for out of order device destruction notifications when using the
delist_dev() function. In addition to this change:
- add a proper description of this function
- add a proper witness assert inside this function
- switch a nearby line to use the "cdp" pointer instead of cdev2priv()
13:06:37 - r280585
(5 days 17 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_rx.c
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 279179

sfxge: DMA allocated memory is set to zeros because of BUS_DMA_ZERO flag

It is not required to set it to zeros once again.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:05:33 - r280584
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efsys.h
MFC: 279178

sfxge: do no allow EFSYS_MEM_ALLOC sleep

It solves locking problem when EFSYS_MEM_ALLOC is called in
the context holding a mutex (not allowed to sleep).
E.g. on interface bring up or multicast addresses addition.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:05:17 - r280583
(5 days 17 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/kern/kern_conf.c
MFC r280345:
Fix for out of order device destruction notifications when using the
delist_dev() function. In addition to this change:
- add a proper description of this function
- add a proper witness assert inside this function
- switch a nearby line to use the "cdp" pointer instead of cdev2priv()
13:04:28 - r280582
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_ev.c
MFC: 279177

sfxge: assert event queue lock in event handlers

It is useful to highlight lock context.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:03:36 - r280581
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_dma.c
MFC: 279176

sfxge: pass correct address to free allocated memory in the case of load error

It is one more place missed in the previous fix.
Most likely is was just memory leak on the error handling path since
typically efsys_mem_t is filled in by zeros on allocation.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:02:33 - r280580
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efsys.h
MFC: 279175

sfxge: using bus_space_*_stream_* API for better portability

Host-bus byte order translation is not requred.

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
13:01:51 - r280579
(5 days 17 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/kern/kern_conf.c
MFC r280345:
Fix for out of order device destruction notifications when using the
delist_dev() function. In addition to this change:
- add a proper description of this function
- add a proper witness assert inside this function
- switch a nearby line to use the "cdp" pointer instead of cdev2priv()
13:01:10 - r280578
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/siena_mon.c
MFC: 279174

sfxge: add missing Siena sensors to common code

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
12:59:49 - r280577
(5 days 17 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/common/efx.h
/stable/10/sys/dev/sfxge/common/siena_nvram.c
MFC: 279173

sfxge: add missing common code NVRAM types and map from MCDI

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
12:59:01 - r280576
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/siena_flash.h
MFC: 279172

sfxge: add new identities to Siena static config

Submitted by:   Andrew Jackson <ajackson at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
12:57:43 - r280575
(5 days 17 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 279147

sfxge: TxQ block level should use EFX_TXQ_LIMIT as maximum TxQ size

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
12:46:19 - r280574
(5 days 17 hours ago)
by brueffer
Affects:  /head/share/man/man4/ixl.4
mdoc cleanup; fix spelling; Xref ixlv.4
12:45:29 - r280573
(5 days 17 hours ago)
by brueffer
Affects:  /head/share/man/man4/ixlv.4
Fix a typo and EOL whitespace missed in the previous commit.
12:14:34 - r280572
(5 days 18 hours ago)
by brueffer
Affects:  /head/share/man/man4/ixlv.4
mdoc cleanup; fix spelling.
11:53:52 - r280571
(5 days 18 hours ago)
by andrew
Affects:  /head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
Remove a debug #error from the bcm2835 sdhci driver.
11:14:17 - r280570
(5 days 19 hours ago)
by hselasky
Affects: 
(5 files)
/stable/9/sys/dev/usb/quirk/usb_quirk.c
/stable/9/sys/dev/usb/serial/u3g.c
/stable/9/sys/dev/usb/usbdevs
MFC r279725:
Add more USB IDs.

PR:             197753
11:12:48 - r280569
(5 days 19 hours ago)
by hselasky
Affects: 
(4 files)
/stable/10/sys/dev/usb/quirk/usb_quirk.c
/stable/10/sys/dev/usb/serial/u3g.c
/stable/10/sys/dev/usb/usbdevs
MFC r279725:
Add more USB IDs.

PR:             197753
11:10:56 - r280568
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/siena_mon.c
MFC: 279146

sfxge: use sparse index to retrieve sensor value

Submitted by:   Andrew Jackson <ajackson at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
11:09:35 - r280567
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efsys.h
MFC: 279145

sfxge: use macros to acquire and release BAR locks everywhere

It was the result of invalid merge of the patch from out-of-tree driver.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
11:08:41 - r280566
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 279144

sfxge: packet can't require more than n_dma_seg descriptors plus one

Use remaining number of DMA segment instead of maximum number in mapping
when checking space for one more TSO segment packet.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
11:07:56 - r280565
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efx_mcdi.c
MFC: 279143

sfxge: use common definitions of MC shared memory offsets and PDU length

Submitted by:   Ben Hutchings
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
11:07:10 - r280564
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efx_regs_ef10.h
MFC: 279142

sfxge: synchronize EF10 registers header

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
11:06:16 - r280563
(5 days 19 hours ago)
by arybchik
Affects: 
(10 files)
/stable/10/sys/dev/sfxge/common/*
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 279141

sfxge: style fixes and cleanup

Sync endif comment with conditional.
BOOTROM and SIENA_BOOTROM are the same, but highlight that it is Siena.
Restore commented out assertion.
Sync comments with out-of-tree driver.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
11:04:12 - r280562
(5 days 19 hours ago)
by arybchik
Affects: 
(5 files)
/stable/10/sys/dev/sfxge/common/*
MFC: 279098

sfxge: allow TX and RX queue limits to be changed

Before the common code had hard coded limits on the IDs RXQs and TXQs could
be created with which were suited for the Windows driver with VMQ, and so
would prevent queues with IDs greater than or equal to 259 (for TXQs) or 768
(for RXQs) from being created. This change allows the limits to be set in
efsys.h, so that all 1024 queues can be created during new manftest tests.
Also, the descriptor cache sizes were also hard coded to values suited to
the smaller queue counts, and so it was necessary to make them configurable
as well.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
11:01:58 - r280561
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efx_filter.c
MFC: 279097

sfxge: check allocations are non-NULL before freeing them

Caught when efx_filter_init() failed and called efx_filter_fini() in the
teardown path.

Submitted by:   Andrew Lee <alee at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
11:01:03 - r280560
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efx_phy.c
MFC: 279096

sfxge: keep fw and driver view of autoneg parameters consistent

Previously the driver's view was the expected outcome of any
reconfiguration even if that reconfiguration failed.

Submitted by:   Ben Horgan
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
11:00:09 - r280559
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/siena_nic.c
MFC: 279095

sfxge: never set RX_DESCQ_EN during self-test

We must not enable RX queues with random parameters when they are
mapped into a VF with an untrusted driver.  It's probably not a good
idea to do this anyway, so take this bit out of the table test masks.

Submitted by:   Ben Hutchings
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:59:42 - r280558
(5 days 19 hours ago)
by andrew
Affects: 
(8 files)
/head/sys/arm/broadcom/bcm2835/*
/head/sys/arm/conf/RPI2
Add support for the Raspberry Pi 2. As the chip is based on the bcm2835 in
the Raspberry Pi B we support most of the devices are already supported,
however the base address has changed.

A few items are not working, or missing. The main ones are:
 * DMA doesn't work in the sdhci driver.
 * Enabling vchiq halts the boot, may be interrupt related.
 * There is no U-Boot port yet so the DTB is embedded in the kernel.

The last point will make it difficult to boot FreeBSD, however there is
support for the Raspberry Pi 2 in the U-Boot git repo. As I have not tested
this it is left as an open task to create a port to build.

X-MFC:          When the above issues are fixed
Sponsored by:   ABT Systems Ltd
10:59:24 - r280557
(5 days 19 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 279094

sfxge: more accurate calculation of maximum number of TSO segments

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:58:21 - r280556
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 279080

sfxge: reap Tx descriptors on unblock

Otherwise when processing finally comes to efx_tx_qdesc_post() it could
be insufficient space between reaped and added to post pending
descriptors.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:57:26 - r280555
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efx_ev.c
MFC: 279078

sfxge: add assertions that required event handlers are implemented

efx_ev_mcdi() does not assert or check that all event handlers it
calls are non-null.  Add assertions at the top for all required
event handlers, as some events (in the case of this bug, monitor
events) are rare.

Submitted by:   Ben Hutchings
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:56:53 - r280554
(5 days 19 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/netinet/ip_output.c
MFC r279281:
Fix a special case in ip_fragment() to produce a more sensible chain
of packets. When the data payload length excluding any headers, of an
outgoing IPv4 packet exceeds PAGE_SIZE bytes, a special case in
ip_fragment() can kick in to optimise the outgoing payload(s). The
code which was added in r98849 as part of zero copy socket support
assumes that the beginning of any MTU sized payload is aligned to
where a MBUF's "m_data" pointer points. This is not always the case
and can sometimes cause large IPv4 packets, as part of ping replies,
to be split more than needed.

Instead of iterating the MBUFs to figure out how much data is in the
current chain, use the value already in the "m_pkthdr.len" field of
the first MBUF in the chain.

Reviewed by:            ken @
Differential Revision:  https://reviews.freebsd.org/D1893
Sponsored by:           Mellanox Technologies
10:56:10 - r280553
(5 days 19 hours ago)
by arybchik
Affects: 
(5 files)
/stable/10/sys/dev/sfxge/*
MFC: 279077

sfxge: style fixes

Use nitem() to get number of array elements.
Remove unused define.
Use TAB to indent.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:55:08 - r280552
(5 days 19 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/netinet/ip_output.c
MFC r279281:
Fix a special case in ip_fragment() to produce a more sensible chain
of packets. When the data payload length excluding any headers, of an
outgoing IPv4 packet exceeds PAGE_SIZE bytes, a special case in
ip_fragment() can kick in to optimise the outgoing payload(s). The
code which was added in r98849 as part of zero copy socket support
assumes that the beginning of any MTU sized payload is aligned to
where a MBUF's "m_data" pointer points. This is not always the case
and can sometimes cause large IPv4 packets, as part of ping replies,
to be split more than needed.

Instead of iterating the MBUFs to figure out how much data is in the
current chain, use the value already in the "m_pkthdr.len" field of
the first MBUF in the chain.

Reviewed by:            ken @
Differential Revision:  https://reviews.freebsd.org/D1893
Sponsored by:           Mellanox Technologies
10:54:23 - r280551
(5 days 19 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/common/efx.h
/stable/10/sys/dev/sfxge/common/efx_mon.c
MFC: 279076

sfxge: regenerate sensor map

Add Florence R7 and Modena sensors.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:53:27 - r280550
(5 days 19 hours ago)
by arybchik
Affects: 
(5 files)
/stable/10/sys/dev/sfxge/common/*
MFC: 279048

sfxge: add Florence R7 turbo mode support to common code

Submitted by:   Andrew Lee <alee at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:52:35 - r280549
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efx_regs_mcdi.h
MFC: 279047

sfxge: regenerate MCDI protocol headers

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:51:09 - r280548
(5 days 19 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/contrib/ofed/libibverbs/examples/build/Makefile.inc
/stable/9/contrib/ofed/librdmacm/examples/build/Makefile.inc
MFC r280264:
Define BINDIR for some test utilities.

Sponsored by:   Mellanox Technologies
10:51:08 - r280547
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 279046

sfxge: handle fragmented TCP header in mbuf

TCP header is fragmented in the case of VLAN tagged IPv6 traffic without
HW VLAN tagging.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:50:13 - r280546
(5 days 19 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/contrib/ofed/libibverbs/examples/build/Makefile.inc
/stable/10/contrib/ofed/librdmacm/examples/build/Makefile.inc
MFC r280264:
Define BINDIR for some test utilities.

Sponsored by:   Mellanox Technologies
10:49:45 - r280545
(5 days 19 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/sys/dev/sfxge/common/efx_ev.c
/stable/10/sys/dev/sfxge/common/efx_mcdi.h
/stable/10/sys/dev/sfxge/common/siena_phy.c
MFC: 278942

sfxge: fix broken MCDI_EV_FIELD() macro

Submitted by:   Andrew Lee <alee at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:48:28 - r280544
(5 days 19 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/sys/dev/sfxge/common/efx_regs_mcdi.h
/stable/10/sys/dev/sfxge/common/siena_nic.c
/stable/10/sys/dev/sfxge/common/siena_nvram.c
MFC: 278941

sfxge: support variable-length response to MCDI GET_BOARD_CFG

Allocate the minimum or maximum response length for GET_BOARD_CFG as
appropriate.  When looking up firmware subtypes by partition ID,
check the ID against the actual response length.

Merge of the patch made by Ben Hutchings in 2011.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:46:13 - r280543
(5 days 19 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/ofed/include/linux/linux_compat.c
MFC r280211:
Add missing void pointer argument to SYSINIT() functions.

Sponsored by:   Mellanox Technologies
10:46:04 - r280542
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/modules/sfxge/Makefile
MFC: 279180

sfxge: list header in SRCS

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:44:30 - r280541
(5 days 19 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge.h
/stable/10/sys/dev/sfxge/sfxge_ev.c
MFC: 278940

sfxge: add driver context member with number of event queues

Mainly to unify with similar member for transmit and receive queues.
It will be used in the future for resources allocation processing.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:44:09 - r280540
(5 days 19 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/ofed/include/linux/linux_compat.c
MFC r280211:
Add missing void pointer argument to SYSINIT() functions.

Sponsored by:   Mellanox Technologies
10:43:06 - r280539
(5 days 19 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge.h
/stable/10/sys/dev/sfxge/sfxge_rx.c
MFC: 278939

sfxge: add driver context member with number of receive queues

Mainly to unify with similar member for transmit queues.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:42:19 - r280538
(5 days 19 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/sys/dev/sfxge/sfxge.h
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 278938

sfxge: add driver context member with number of transmit queues

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:41:09 - r280537
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 278937

sfxge: add TCP segment size to sfxge_tso_state

It avoids access to m_pkthdr when TSO packet is started and also makes
tso_start_new_packet() function smaller.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:40:17 - r280536
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 278841

sfxge: flush all Tx queues from if_qflush

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor), glebius
10:39:18 - r280535
(5 days 19 hours ago)
by arybchik
Affects: 
(10 files)
/stable/10/sys/dev/sfxge/common/*
MFC: 278839

sfxge: style fixes

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:38:59 - r280534
(5 days 19 hours ago)
by hselasky
Affects: 
(4 files)
/stable/8/sys/dev/usb/input/uhid.c
MFC r279854:
Lock softc before clearing bits.
10:38:22 - r280533
(5 days 19 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_port.c
MFC: 278838

sfxge: SYSCTL_IN/OUT should not be called with non-sleepable lock held

The problem is found using WITNESS option enabled.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:37:36 - r280532
(5 days 19 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_rx.c
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 278837

sfxge: remove inline specifiers

Now compiler does not need any help.
The patch does not change generated code.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor), glebius
10:37:17 - r280531
(5 days 19 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/sys/dev/usb/input/uhid.c
MFC r279854:
Lock softc before clearing bits.
10:36:37 - r280530
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 278836

sfxge: remove used sfxge_tso_state member dma_seg_i

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:35:54 - r280529
(5 days 20 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/usb/input/uhid.c
MFC r279854:
Lock softc before clearing bits.
10:35:19 - r280528
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 278835

sfxge: remove full_packet_size from sfxge_tso_state

It makes sfxge_tso_state smaller and even makes tso_start_new_packet()
few bytes smaller. Data used to calculate packet size are used nearby,
so it should be no problems with cache etc.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor), glebius
10:34:20 - r280527
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 278833

sfxge: remove unused variable

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor), glebius
10:32:49 - r280526
(5 days 20 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 278255

sfxge: Add statistics for partially dropped TSO packets

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:31:43 - r280525
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efsys.h
MFC: 278254

sfxge: using 64-bit access for x86-64

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:30:45 - r280524
(5 days 20 hours ago)
by arybchik
Affects: 
(9 files)
/stable/10/sys/dev/sfxge/*
MFC: 278250

sfxge: make lock names unique

Lock name should include interface name.
Tx queue and event queue lock name should include queue number.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:29:08 - r280523
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_port.c
MFC: 278248

sfxge: access statistics buffers under port lock

Allow access to statistics data not only from sysctl handlers.

Submitted by:   Boris Misenov <Boris.Misenov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:27:54 - r280522
(5 days 20 hours ago)
by arybchik
Affects: 
(10 files)
/stable/10/sys/dev/sfxge/*
MFC: 278221

sfxge: Add macros to init, destroy, acquire, release and assert locks

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:26:45 - r280521
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efsys.h
MFC: 278220

sfxge: Implement EFSYS_MEM_READ_BARRIER()

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:26:07 - r280520
(5 days 20 hours ago)
by andrew
Affects:  /head/sys/boot/fdt/dts/arm/bcm2836.dtsi
/head/sys/boot/fdt/dts/arm/rpi2.dts
/head/sys/modules/dtb/rpi/Makefile
Add the Raspberry Pi 2 dtb, based on the existing rpi.dts, but with a
different base address for the devces.

MFC after:      1 week
10:25:45 - r280519
(5 days 20 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/share/man/man4/sfxge.4
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 277895

sfxge: Separate software Tx queue limit for non-TCP traffic

Add separate software Tx queue limit for non-TCP traffic to make total
limit higher and avoid local drops of TCP packets because of no
backpressure.
There is no point to make non-TCP limit high since without backpressure
UDP stream easily overflows any sensible limit.

Split early drops statistics since it is better to have separate counter
for each drop reason to make it unabmiguous.

Add software Tx queue high watermark. The information is very useful to
understand how big queues grow under traffic load.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:23:00 - r280518
(5 days 20 hours ago)
by arybchik
Affects: 
(5 files)
/stable/10/share/man/man4/sfxge.4
/stable/10/sys/dev/sfxge/*
MFC: 277894

sfxge: implemented parameter to restrict RSS channels

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:21:42 - r280517
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_ev.c
MFC: 277893

sfxge: Use SFXGE_MODERATION to initialize event moderation

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:20:42 - r280516
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_dma.c
MFC: 277892

sfxge: Pass correct address to free allocated memory in the case of load error

Most likely is was just memory leak on the error handling path since
typically efsys_mem_t is filled in by zeros on allocation.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:19:43 - r280515
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/common/efsys.h
MFC: 277891

sfxge: Remove unused esm_size member of the efsys_mem_t structure

esm_size is not even initialized properly when memory is allocated.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:18:23 - r280514
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_port.c
MFC: 277890

sfxge: Do not bzero() DMA allocated memory once again

sfxge_dma_alloc() calls bus_dmamem_alloc() with BUS_DMA_ZERO flag, so
allocated memory is already filled in by zeros

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:17:24 - r280513
(5 days 20 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/sys/dev/sfxge/sfxge_ev.c
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 277889

sfxge: Add evq argument to sfxge_tx_qcomplete()

It removes necessity to get evq pointer by its index in soft context.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:16:33 - r280512
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 277888

sfxge: fixed TSO code to cope with VLAN headers

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:14:30 - r280511
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge.h
MFC: 277887

sfxge: Remove extra cache-line alignment and reorder sfxge_evq_t

Remove the first member alignment to cacheline since it is nop.
Use __aligned() for the whole structure to make sure that the structure
size is cacheline aligned.
Remove lock alignment to make the structure smaller and fit all members
used on event queue processing into one cacheline (128 bytes) on x86-64.
The lock is obtained as well from different context when event queue
statistics are retrived from sysctl context, but it is infrequent.
Reorder members to avoid padding and go in usage order on event
processing.
As the result all structure members used on event queue processing fit
into exactly one cacheline (128 byte) now.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:13:19 - r280510
(5 days 20 hours ago)
by arybchik
Affects: 
(5 files)
/stable/10/sys/dev/sfxge/common/*
/stable/10/sys/dev/sfxge/sfxge.h
/stable/10/sys/dev/sfxge/sfxge_ev.c
MFC: 277886

sfxge: Make it possible to build without EVQ statistics

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:12:13 - r280509
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 277885

sfxge: Move txq->next pointer to part writable on completion path

In fact the pointer is used only if more than one TXQ is processed in
one interrupt.
It is used (read-write) on completion path only.
Also it makes the first part of the structure smaller and it fits now
into one 128byte cache line. So, TXQ structure becomes 128 bytes
smaller.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:11:17 - r280508
(5 days 20 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/sys/dev/sfxge/sfxge.h
/stable/10/sys/dev/sfxge/sfxge_ev.c
/stable/10/sys/dev/sfxge/sfxge_intr.c
MFC: 277884

sfxge: Change sfxge_ev_qpoll() proto to avoid EVQ pointers array access

It was the only place on data path where sc->evq array is accessed.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)
10:08:28 - r280507
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_dma.c
MFC: 272411

Properly handle a case that should never happen (the bus_dma
callback being called with error set to non-zero).
10:06:26 - r280506
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/share/man/man4/sfxge.4
MFC: 272377

Some cleanup for sfxge.4

Use standard mdoc macros instead of pure roff, fix some other mdoc
usage,
make the style consistent, and fix some grammar issues.

Approved by:    hrs (mentor)
10:05:19 - r280505
(5 days 20 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 272331

Support tunable to control Tx deferred packet list limits

Also increase default for Tx queue get-list limit.
Too small limit results in TCP packets drops especiall when many
streams are running simultaneously.
Put list may be kept small enough since it is just a temporary
location if transmit function can't get Tx queue lock.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
10:03:41 - r280504
(5 days 20 hours ago)
by arybchik
Affects: 
(4 files)
/stable/10/sys/dev/sfxge/sfxge.h
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 272330

The patch allows to check state of the software Tx queues at run time.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
10:02:14 - r280503
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/share/man/man4/sfxge.4
MFC: 272329

Update SolarFlare driver manual page with new tunables.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
10:01:07 - r280502
(5 days 20 hours ago)
by arybchik
Affects: 
(8 files)
/stable/10/sys/dev/sfxge/*
MFC: 272328

Make size of Tx and Rx rings configurable

Required size of event queue is calculated now.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
09:59:38 - r280501
(5 days 20 hours ago)
by arybchik
Affects: 
(12 files)
/stable/10/sys/dev/sfxge/*
MFC: 272325

cleanup: code style fixes

Remove trailing whitespaces and tabs.
Enclose value in return statements in parentheses.
Use tabs after #define.
Do not skip comparison with 0/NULL in boolean expressions.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
09:58:02 - r280500
(5 days 20 hours ago)
by dchagin
Affects: 
(5 files)
/stable/9/share/man/man9/VOP_VPTOCNP.9
MFC r279776:

Add a cred parameter to the VOP_VPTOCNP(9) manpage.
While here fix igor warning about new line.
09:56:48 - r280499
(5 days 20 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 263649

sfxge: limit software Tx queue size.

Previous implementation limits put queue size only (when Tx lock can't
be acquired), but get queue may grow unboundedly which results in mbuf
pools exhaustion and latency growth.

Submitted by:   Andrew Rybchenko <Andrew.Rybchenko at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
09:54:07 - r280498
(5 days 20 hours ago)
by dchagin
Affects: 
(2 files)
/stable/10/share/man/man9/VOP_VPTOCNP.9
MFC r279776:

Add a cred parameter to the VOP_VPTOCNP(9) manpage.
While here fix igor warning about new line.
09:45:07 - r280497
(5 days 20 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
/stable/10/sys/dev/sfxge/sfxge_tx.h
MFC: 263332

Add counter for Tx errors returned from if_transmit.

Submitted by:   Boris Misenov <Boris.Misenov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
09:40:48 - r280496
(5 days 20 hours ago)
by arybchik
Affects: 
(2 files)
/stable/10/sys/dev/sfxge/sfxge_tx.c
MFC: 263297

Return error when packet is dropped because of link down.

Submitted by:   Boris Misenov <Boris.Misenov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
08:55:34 - r280495
(5 days 21 hours ago)
by hselasky
Affects:  /head/sys/kern/kern_sysctl.c
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.

MFC after:  1 week
08:23:08 - r280494
(5 days 22 hours ago)
by kib
Affects: 
(2 files)
/stable/10/tools/regression/sysvshm/shmtest.c
MFC r280232:
Cosmetics.
06:41:08 - r280493
(5 days 23 hours ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/liblua/Makefile
/projects/lua-bootloader/sys/boot/liblua/lutils.c
liblua: include bootstrap.h to get some common prototypes.
06:40:19 - r280492
(5 days 23 hours ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/common/bootstrap.h
/projects/lua-bootloader/sys/boot/common/interp_parse.c
interp_parse: make the parse string a const argument.
06:34:01 - r280491
(6 days ago)
by rpaulo
Affects: 
(5 files)
/projects/lua-bootloader/sys/boot/liblua/*
Fix several parts of lstd/lutils to be WARNS=3 compliant.

Bring a several libc string functions which should probably live in
libstand, but we're keeping everything in liblua for now.
06:10:41 - r280490
(6 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/common/interp_lua.c
interp_lua: improve debugging messages and style.
06:08:41 - r280489
(6 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/Makefile
Build liblua.
06:08:11 - r280488
(6 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/share/mk/src.opts.mk
Add the WITH_LUA option (off for now).
06:05:43 - r280487
(6 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/common/Makefile.inc
/projects/lua-bootloader/sys/boot/common/interp_lua.c
Add Pedro Souza's interp_lua.c.
06:04:39 - r280486
(6 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/boot/i386/loader/Makefile
Add some glue to i386/loader to build with Lua support.
06:03:34 - r280485
(6 days ago)
by rpaulo
Affects: 
(6 files)
/projects/lua-bootloader/sys/boot/liblua/*
Import Pedro Souza's customized lua code that integrates with the boot
loader.
05:59:07 - r280484
(6 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/contrib/lua
Merge lua 5.3.0 from the vendor tree.
05:58:42 - r280483
(6 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/contrib/lua
Remove the lua directory to let svn cp work.
05:54:39 - r280482
(6 days ago)
by rpaulo
Affects:  /projects/lua-bootloader/sys/contrib/lua
Contrib directory for lua.

svn is crashing while trying to merge from the vendor tree.  Hopefully
this commit will work around the crash.
05:37:40 - r280481
(6 days ago)
by rpaulo
Affects:  /projects/lua-bootloader
Create a branch for the Lua bootloader project.

 


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

Page generated in 60 ms, 412 revisions printed. Current time is 2015-03-31 06:36:37. All times are in UTC/GMT.