Displaying 1 50 of 278,044 commits (0.439s)

FreeBSD — user/dchagin/lemul ObsoleteFiles.inc Makefile.inc1, user/dchagin/lemul/bin/cp utils.c

Merge from head (r280782).

FreeBSD — 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.
Delta File
+74 -0 head/sys/kern/subr_vmem.c
+74 -0 1 file

FreeBSD — 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.

FreeBSD — 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.

FreeBSD — 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.
Delta File
+5 -1 head/sys/dev/ath/if_ath.c
+5 -1 1 file

FreeBSD — 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
Delta File
+6 -4 head/sys/sys/cdefs.h
+6 -4 1 file

FreeBSD — 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.
Delta File
+23 -3 head/sys/mips/conf/TL-WDR4300.hints
+23 -3 1 file

FreeBSD — 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.
Delta File
+58 -2 head/sys/dev/ath/if_ath.c
+58 -2 1 file

FreeBSD — head/sys/mips/atheros ar71xx_machdep.c if_arge.c

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.


    [44 lines not shown]

FreeBSD — 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
Delta File
+1 -1 head/sys/kern/subr_vmem.c
+1 -1 1 file

FreeBSD — 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.

FreeBSD — head/sys/mips/conf AR933X_BASE

Remove the second MODULES_OVERRIDE; add if_vlan to the list.
Delta File
+1 -2 head/sys/mips/conf/AR933X_BASE
+1 -2 1 file

FreeBSD — 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
Delta File
+4 -0 head/sys/powerpc/booke/pmap.c
+4 -0 1 file

FreeBSD — head/usr.sbin/pmcstat pmcstat.8 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

FreeBSD — 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
Delta File
+10 -14 head/sys/kern/kern_umtx.c
+10 -14 1 file

FreeBSD — head/sys/mips/conf CARAMBOLA2.hints

Add the MAC address hints for arge0/arge1 on the CARAMBOLA2.

Obtained from:        Linux OpenWRT

FreeBSD — 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

FreeBSD — 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

FreeBSD — head/sys/netinet ip_id.c

VNETalize random IP ID engine.

Sponsored by:        Nginx, Inc.
Delta File
+64 -41 head/sys/netinet/ip_id.c
+64 -41 1 file

FreeBSD — 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.
Delta File
+34 -55 head/sys/netinet/ip_id.c
+34 -55 1 file

FreeBSD — head/sys/kern kern_timeout.c

Try to unbreak !SMP kernels  broken in r280785 by using the proper macros
to access cc_cpu.
Delta File
+2 -2 head/sys/kern/kern_timeout.c
+2 -2 1 file

FreeBSD — head/sys/kern kern_timeout.c, head/sys/netgraph/atm/sscop ng_sscop_cust.h

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.

FreeBSD — 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
Delta File
+2 -0 head/share/mk/bsd.sys.mk
+2 -0 1 file

FreeBSD — head/sys/dev/sfxge sfxge_rx.c 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

FreeBSD — 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
Delta File
+1 -0 head/lib/libc/net/Symbol.map
+1 -0 1 file

FreeBSD — 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
Delta File
+1 -0 head/sys/amd64/amd64/machdep.c
+1 -0 1 file

FreeBSD — 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
Delta File
+0 -2 head/sys/amd64/amd64/trap.c
+0 -2 1 file

FreeBSD — 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
Delta File
+3 -0 head/sys/mips/conf/AR91XX_BASE
+3 -0 1 file

FreeBSD — projects stable-10-opts-mk

Prune project branch
Delta File
+0 -0 projects/stable-10-opts-mk/
+0 -0 1 file

FreeBSD — stable/10/release/arm BEAGLEBONE.conf PANDABOARD.conf

MFC r280640:
  Crochet sources moved to a new home; update accordingly.

Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/lua-bootloader/sys/boot/lua config.lua

Add support for var=num in loader.conf.

Submitted by:        Pedro Souza

FreeBSD — 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 at nyanisore.net)
MFC after:        1 week
Delta File
+41 -6 head/sys/amd64/vmm/io/vrtc.c
+41 -6 1 file

FreeBSD — 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
Delta File
+10 -13 head/sys/vm/vm_pageout.c
+10 -13 1 file

FreeBSD — head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip tst.ipv4localtcp.ksh tst.ipv4remotetcp.ksh

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

FreeBSD — head/sys/conf files.powerpc, head/sys/dev/fdt simplebus.c simplebus.h

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

FreeBSD — head/share/mk bsd.mkopt.mk

Revert the __ALWAYS_NO stuff. It had already been committed as BROKEN.
Delta File
+0 -9 head/share/mk/bsd.mkopt.mk
+0 -9 1 file

FreeBSD — 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

FreeBSD — head/usr.sbin/crunch/crunchide Makefile

crunchide: arm64 support

Submitted by:        andrew@
Sponsored by:        The FreeBSD Foundation

FreeBSD — 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

FreeBSD — head/sbin/md5 md5.c Makefile

Fix remaining warnings.

MFC after:        2 weeks
Delta File
+2 -2 head/sbin/md5/md5.c
+0 -3 head/sbin/md5/Makefile
+2 -5 2 files

FreeBSD — 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.
Delta File
+4 -38 head/sys/conf/kern.opts.mk
+4 -38 1 file

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

Mention support for 16h family processors, added in r263169.

PR:                198933
Submitted by:        isoa at kapsi.fi
MFC after:        1 week
Delta File
+3 -3 head/share/man/man4/amdtemp.4
+3 -3 1 file

FreeBSD — head/sys/ofed/include/linux completion.h linux_compat.c

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

FreeBSD — head/sys/ufs/ffs ffs_softdep.c

Fix build (with gcc).

Reported by:        bz, ian
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks
Delta File
+1 -0 head/sys/ufs/ffs/ffs_softdep.c
+1 -0 1 file

FreeBSD — projects/ifnet/sys/net if_var.h if.c

Rename if_addr_lock to if_lock, since it already protects not only address
lists, and is going to protect even more.

FreeBSD — head/sys/sys kerneldump.h

Remove ALPHA leftover
Delta File
+0 -1 head/sys/sys/kerneldump.h
+0 -1 1 file

FreeBSD — head/sys/ufs/ffs ffs_softdep.c 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

    [20 lines not shown]

FreeBSD — head/sys/netinet ip_var.h ip_output.c

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 at stormshield.eu
MFC after:        1 week
Sponsored by:        Stormshield

FreeBSD — head/sys/geom/mirror g_mirror.c

Remove extra semicolon.

MFC after:        1 week
Delta File
+1 -1 head/sys/geom/mirror/g_mirror.c
+1 -1 1 file

FreeBSD — 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