Displaying 1 50 of 322,482 commits (0.026s)

FreeBSD — head/contrib/less funcs.h command.c, head/usr.bin/less defines.h

MFV r326007: less v529.

MFC after:        2 weeks
Delta File
+310 -300 head/contrib/less/funcs.h
+222 -121 head/contrib/less/command.c
+152 -103 head/contrib/less/edit.c
+113 -111 head/contrib/less/cmd.h
+135 -47 head/contrib/less/line.c
+48 -74 head/contrib/less/filename.c
+753 -348 39 files not shown
+1,733 -1,104 45 files

FreeBSD — stable/11/sys/dev/hwpmc hwpmc_logging.c

MFC r325759:
Do not leak PMC_PO_OWNS_LOGFILE on error.

FreeBSD — vendor/less v529

Tag less v529.
Delta File
+0 -0 vendor/less/v529/
+0 -0 1 file

FreeBSD — vendor/less/dist funcs.h command.c

Vendor import of less v529.
Delta File
+310 -300 vendor/less/dist/funcs.h
+222 -121 vendor/less/dist/command.c
+143 -124 vendor/less/dist/less.man
+152 -103 vendor/less/dist/edit.c
+113 -111 vendor/less/dist/cmd.h
+135 -47 vendor/less/dist/line.c
+867 -443 47 files not shown
+1,942 -1,249 53 files

FreeBSD — stable/10/sys/dev/hpt27xx hpt27xx_osm_bsd.c hpt27xx_config.c, stable/10/sys/dev/hptnr hptnr_osm_bsd.c hptnr_config.c

MFC r325383:

Avoid calling get_controller_count() until attaching, this would avoid
costly PCI config space operations that slows down systems without the
hardware.

Many thanks to HighPoint for continued support of FreeBSD!

Submitted by:        Steve Chang
Reported by:        cperciva

FreeBSD — stable/11/sys/dev/hpt27xx hpt27xx_osm_bsd.c hpt27xx_config.c, stable/11/sys/dev/hptnr hptnr_osm_bsd.c hptnr_config.c

MFC r325383:

Avoid calling get_controller_count() until attaching, this would avoid
costly PCI config space operations that slows down systems without the
hardware.

Many thanks to HighPoint for continued support of FreeBSD!

Submitted by:        Steve Chang
Reported by:        cperciva

FreeBSD — head/sys/dev/dpaa if_dtsec_rm.c

Eliminate 1 XX_VirtToPhys() and 2 XX_PhysToVirt() calls from if_dtsec(4)

XX_VirtToPhys(), by way of pmap_kextract(), is an expensive operation.
Profiling via dtrace during a series of iperf tests I found 16111 / 30432
stack frames were located in mmu_booke_kextract(), so eliminating this
expensive call should improve performance slightly.  XX_PhysToVirt() is not
as expensive, but redundant calls in this context is wasteful.
Delta File
+6 -6 head/sys/dev/dpaa/if_dtsec_rm.c
+6 -6 1 file

FreeBSD — user/jeff/numa/sys/vm vm_init.c

Update for r325992

Use a cast so the format specifier works on all architectures.
Delta File
+1 -1 user/jeff/numa/sys/vm/vm_init.c
+1 -1 1 file

FreeBSD — user/jeff/numa/sys/vm vm_init.c vm_kern.c

Update for r325992

Not all files that include vm_phys.h include opt_vm.h, this gives different
definitions for vm_phys_domain().

Add some asserts to guarantee that we're getting the domain we expect in
a few cases that can cause crashes later.

FreeBSD — head/etc network.subr

Reduce code duplication for wlan(4) interface creation in network.subr.

Since wlandebug(8) can accept any (original or changed) interface name
this part may be simplified a bit.
Delta File
+7 -15 head/etc/network.subr
+7 -15 1 file

FreeBSD — head/usr.sbin/wlandebug wlandebug.c

wlandebug(8): allow fallback to old behavior + improve name checks.

- Treat passed interface name as original if ifconfig_get_orig_name() fails.
- Reject interface name if it does not start from "wlan".

FreeBSD — projects/bsd_rdma_4_9/contrib/ofed Makefile

There is no need to depend on libthr.

Suggested by:        bdrewery@
Sponsored by:        Mellanox Technologies

FreeBSD — head/stand libstand32, head/stand/fdt dts

Remove empty directories.
Delta File
+0 -0 head/stand/fdt/dts/
+0 -0 head/stand/libstand32/
+0 -0 head/stand/userboot/ficl/
+0 -0 head/stand/userboot/libstand/
+0 -0 head/stand/userboot/zfs/
+0 -0 5 files

FreeBSD — stable/11/share/man/man4 md.4

MFC r325441:

Extend the synopsis section of md(4) to look more like other manpages
of this kind.  Describe how to compile the driver into the kernel
and how to load it as a module.
This is useful for people using the MINIMAL kernel configuration file.

PR:                        218610
Submitted by:                Harald Schmalzbauer (bugzilla.freebsd at omnilan.de)
Reviewed by:                noone (1 month inactivity)
MFC after:                2 weeks
Differential Revision:        https://reviews.freebsd.org/D12271
Delta File
+14 -2 stable/11/share/man/man4/md.4
+14 -2 1 file

FreeBSD — head/sys/net if_fddisubr.c

Fix build.

Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 head/sys/net/if_fddisubr.c
+1 -1 1 file

FreeBSD — head/sys/fs/nfsclient nfs_clnfsiod.c

Remove unused header.

FreeBSD — head/sys/fs/tmpfs tmpfs_fifoops.c

Remove unused header.
Delta File
+0 -1 head/sys/fs/tmpfs/tmpfs_fifoops.c
+0 -1 1 file

FreeBSD — user/jeff/numa/sys/kern subr_vmem.c, user/jeff/numa/sys/vm vm_kern.c vm_init.c

Use a vmem per-domain kernel vmem to ensure that reservations and domain
specific allocations are honored for kernel memory.

Provide domain iterators for kmem along with domain specific allocation
functions.

FreeBSD — head/sys/arm/allwinner aw_nmi.c

aw_nmi: add support for a31/a83t's r_intc

We currently support the a83t's r_intc in a somewhat hack-ish way; our .dts
describes it as nmi_intc, and uses a subset of the actual register space to
make it line up with a20/a31 nmi offsets.

This breaks with the recent 4.14 update describing r_intc using the full
register space, so update aw_nmi to use the correct register offsets with
the right compat data in a way that doesn't break our current dts with
nmi_intc or upstream with r_intc described.

Reviewed by:        manu
Approved by:        emaste (mentor)
Differential Revision:        https://reviews.freebsd.org/D13122
Delta File
+44 -25 head/sys/arm/allwinner/aw_nmi.c
+44 -25 1 file

FreeBSD — head/release/packages runtime.ucl

Add missing call to services_mkdb to build the services.db

Approved by:        gjb
Delta File
+1 -0 head/release/packages/runtime.ucl
+1 -0 1 file

FreeBSD — stable/11/sys/kern md4c.c

MFC r325444: ANSIfy sys/kern/md4c.c

PR:                223453
Submitted by:        ota at j.email.ne.jp
Delta File
+15 -21 stable/11/sys/kern/md4c.c
+15 -21 1 file

FreeBSD — head/sys/libkern bsearch.c mcount.c

ANSIfy sys/libkern

PR:                223641
Submitted by:        ota at j.email.ne.jp
MFC after:        1 week

FreeBSD — head/sys/dts arm64

dts: arm64: allwinner: Remove unused dts for pine64

Latest u-boot port provide the dts for pine64, remove our custom
and outdated dts for this board.
Delta File
+0 -0 head/sys/dts/arm64/
+0 -0 1 file

FreeBSD — head/share/mk src.sys.obj.mk

Remove unneeded special case for .OBJDIR=.CURDIR.

The else statement is already handling this by ensuring a safe .OBJDIR is used.

Sponsored by:        Dell
Delta File
+0 -7 head/share/mk/src.sys.obj.mk
+0 -7 1 file

FreeBSD — head/sys/arm/allwinner if_awg.c

if_awg: drain tx buffers and clear rx buffers when stopping

Stale packets should not be transmitted when the interface comes up after being down.
Count the successfully transmitted ones for statistics and drop the rest.

Submitted by:        Guy Yur <guyyur at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D12539
Delta File
+36 -0 head/sys/arm/allwinner/if_awg.c
+36 -0 1 file

FreeBSD — head/sys/arm/allwinner if_awg.c

if_awg: avoid hole in the rx ring buffer when mbuf allocation fails

Use a spare dma map when attempting to map a new mbuf on the rx path.
If the mbuf allocation fails or the dma map loading for the new mbuf fails just reuse the 
old mbuf
and increase the drop counter.

Submitted by:        Guy Yur <guyyur at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D12538
Delta File
+88 -71 head/sys/arm/allwinner/if_awg.c
+88 -71 1 file

FreeBSD — head/sys/arm/allwinner if_awg.c

if_awg: rename tx functions to match other drivers and free mbuf on m_collapse failure

- use awg_encap and awg_txeof names to match iflib and other network drivers.
- handle m_collapse failure similarly by freeing the mbuf rather than reenqueuing it where 
it will continue to fail.

Submitted by:        Guy Yur <guyyur at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D13035
Delta File
+35 -20 head/sys/arm/allwinner/if_awg.c
+35 -20 1 file

FreeBSD — head/sys/arm/allwinner if_awg.c

if_awg: don't process transmitted packets on TX_BUF_UA_INT, only on TX_INT

TX_BUF_UA_INT is set when there are no buffers to transmit and can
happen before hw.awg.tx_interval segments have been transmitted.

To reduce load, tx cleanup should be done in hw.awg.tx_interval intervals.

Submitted by:        Guy Yur <guyyur at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D13034
Delta File
+3 -1 head/sys/arm/allwinner/if_awg.c
+3 -1 1 file

FreeBSD — head/sys/arm/allwinner if_awg.c

if_awg: replace multiple calls to if_setdrvflagbits with one call in awg_txintr

Small optimization

Submitted by:        Guy Yur <guyyur at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D13033
Delta File
+8 -3 head/sys/arm/allwinner/if_awg.c
+8 -3 1 file

FreeBSD — head/sys/arm/allwinner if_awg.c

if_awg: only increment IFCOUNTER_OPACKETS when the last segment of a frame has been 
successfully transmitted

A packet may be built from multiple segments, don't increase the count for each segment

Submitted by:        Guy Yur <guyyur at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D13032
Delta File
+8 -2 head/sys/arm/allwinner/if_awg.c
+8 -2 1 file

FreeBSD — head/sys/arm/allwinner if_awg.c

if_awg: store mbuf and dma mapping in the last segment of a tx frame instead of the first

According to the datasheet, TX_DESC_CTL is cleared when whole frame is transmitted or all
data in the current descriptor's buffer are transmitted.
When the mbuf and mapping are stored in the first segment and in a scenario where a tx
completion interrupt arrives for a frame and only the start of the next frame was 
transmitted,
at the time of interrupt processing the mbuf and mapping will be freed when processing the
first segment of the next frame but the other untrasmitted segments still need to use 
them.

Submitted by:        Guy Yur <guyyur at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D13031
Delta File
+13 -8 head/sys/arm/allwinner/if_awg.c
+13 -8 1 file

FreeBSD — head/sys/arm/allwinner if_awg.c

if_awg: mark the first tx descriptor as ready only after all the other tx descriptors are 
set up

In a multi segment frame, if the first tx descriptor is marked with TX_DESC_CTL
but not all tx descriptors for the other segments in the frame are set up,
the TX DMA may transmit an incomplete frame.
To prevent this, set TX_DESC_CTL for the first tx descriptor only when done
with all the other segments.

Also, don't bother cleaning transmitted tx descriptors since TX_DESC_CTL
is cleared for them by the hardware and they will be reprogrammed before
TX_DESC_CTL is reenabled for them.

Submitted by:        Guy Yur <guyyur at gmail.com>
Differential Revision:        https://reviews.freebsd.org/D13030
Delta File
+45 -41 head/sys/arm/allwinner/if_awg.c
+45 -41 1 file

FreeBSD — head/sys/arm/allwinner if_awg.c

if_awg: only request completion interrupt on the last descriptor of a tx frame

The hardware will not issue a completion interrupt for a descriptor
with TX_INT_CTL set if it doesn't also have TX_LAST_DESC set.

Submitted by:         Guy Yur <guyyur_gmail.com>
Differential Revision:        https://reviews.freebsd.org/D13029
Delta File
+12 -3 head/sys/arm/allwinner/if_awg.c
+12 -3 1 file

FreeBSD — head/sys/dev/mlx5/mlx5_core mlx5_fs_tree.c

Remove duplicate static function prototype to fix compilation of
mlx5_fs_tree.c after r325638 when using GCC.

Found by:        kib @
MFC after:        1 week
Sponsored by:        Mellanox Technologies

FreeBSD — head/share/mk src.sys.env.mk

Evaluate options after including src-env.conf and before Makefile.sys.inc.

Fixes top-level breakage in r325974.

Pointyhat to:        bdrewery
Sponsored by:        Dell
Delta File
+2 -0 head/share/mk/src.sys.env.mk
+2 -0 1 file

FreeBSD — head Makefile.sys.inc, head/share/mk src.sys.obj.mk

Fix top-level targets with read-only OBJDIR.

This also makes it so that top-level build targets do not immediately create
the OBJDIR.  Only sub-make targets will do so.  This avoids creating object
directories for targets like 'make check-old' or creating unneeded
MACHINE.MACHINE_ARCH directories during 'make tinderbox'.

Reported by:        npn, lifanov
Tested by:        npn, Mark Millard
Sponsored by:        Dell

FreeBSD — head Makefile.sys.inc Makefile

Move top-level AUTO_OBJ logic to Makefile.sys.inc.

Sponsored by:        Dell
Delta File
+39 -0 head/Makefile.sys.inc
+1 -28 head/Makefile
+40 -28 2 files

FreeBSD — head/share/mk src.sys.env.mk

Include Makefile.sys.inc if possible for top-level only.

This will allow disabling some things like AUTO_OBJ early if not needed for the
directory/targets, without putting special logic into share/mk/*.sys.mk.

Sponsored by:        Dell
Delta File
+3 -0 head/share/mk/src.sys.env.mk
+3 -0 1 file

FreeBSD — head/sys/conf kern.post.mk

Fix PORTS_MODULES+'make reinstallkernel' trying to run bogus 'make redeinstall'.

Also fix 'make installkernel' running 'make deinstall' twice.

PR:                201779
MFC after:        2 weeks
Sponsored by:        Dell
Delta File
+1 -1 head/sys/conf/kern.post.mk
+1 -1 1 file

FreeBSD — head Makefile.inc1

Fix 'make -n' for {reinstall,distribute}kernel.

PR:                201779
Sponsored by:        Dell
Delta File
+4 -4 head/Makefile.inc1
+4 -4 1 file

FreeBSD — head/sys/dts/arm sun8i-a83t.dtsi a83t.dtsi, head/sys/modules/dtb/allwinner Makefile

dts: Allwinner: Remove our last custom DTS

All Allwinner boards should use the upstream DTS so remove our
remaining custom ones.

FreeBSD — head/sys/gnu/dts/arm dra74x-mmc-iodelay.dtsi at91-sama5d27_som1_ek.dts, head/sys/gnu/dts/include/dt-bindings mips

Update our copy of DTS from the ones from Linux 4.14

FreeBSD — head ObsoleteFiles.inc, head/etc Makefile casper

Remove unused Casper configurations files.

This is a reaming of Casper daemon.
Delta File
+7 -0 head/ObsoleteFiles.inc
+0 -3 head/etc/Makefile
+0 -0 head/etc/casper/
+7 -3 3 files

FreeBSD — head/lib/libc/arm/gen fabs.c, head/lib/libc/locale euc.c

spdx: initial adoption of licensing ID tags.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.

Initially, only tag files that use BSD 4-Clause "Original" license.

RelNotes:        yes
Differential Revision:        https://reviews.freebsd.org/D13133

FreeBSD — head/libexec/rtld-elf malloc.c

Increase rtld initial memory pool size from 32kB to 128kB.

The old value was probably fine back in 1998, when that code was imported
(although the comments still mention VAX, which was quite obsolete by then);
now, however, it's too small to handle our libc, which results in some
additional calls to munmap/mmap later on.  Asking for more virtual address
space is virtually free, and syscalls are not, thus the change.

It was suggested by kib@ that this might be a symptom of a deeper problem.
It doesn't only affect libc, though - the change also improves rtld memory
management for eg KDE libraries.  I guess it's just a natural bloat.

MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Differential Revision:        https://reviews.freebsd.org/D12834
Delta File
+1 -1 head/libexec/rtld-elf/malloc.c
+1 -1 1 file

FreeBSD — head/share/man/man4 lagg.4

Remove leftover in lagg(4) manpage forgotten in r271733

Reviewed by:        bcr
Differential Revision:        https://reviews.freebsd.org/D13061
Delta File
+1 -3 head/share/man/man4/lagg.4
+1 -3 1 file

FreeBSD — head/sys/kern kern_mutex.c kern_sx.c

locks: fix compilation issues without SMP or KDTRACE_HOOKS

FreeBSD — head/sys/netpfil/ipfw ip_fw2.c

Add comment for accidentally committed unrelated change in r325960.

Do not invoke IPv4 NAT handler for non IPv4 packets. Libalias expects
a packet is IPv4. And in case when it is IPv6, it just translates them
as IPv4. This leads to corruption and in some cases to panics.
In particular a panic can happen when value of ip6_plen modified to
something that leads to IP fragmentation, but actual packet length does
not match the IP length.

Packets that are not IPv4 will be dropped by NAT rule.

Reported by:        Viktor Dukhovni <freebsd at dukhovni dot org>
MFC after:        1 week
Delta File
+4 -0 head/sys/netpfil/ipfw/ip_fw2.c
+4 -0 1 file

FreeBSD — head/sys/dev/cxgbe t4_main.c, head/sys/dev/cxgbe/common common.h

cxgbe(4): Add core Vdd to the sysctl MIB.

Sponsored by:        Chelsio Communications