Displaying 1 50 of 330,506 commits (0.023s)

FreeBSD — head/sbin/kldstat kldstat.c

kldstat: align "Size" to the right

This change also makes alignment and spacing an explicit number rather
than a bunch of spaces.

Reviewed by:        mmacy
Requested by:        Yuri Pankov <yuripv at yuripv.net>
Delta File
+2 -2 head/sbin/kldstat/kldstat.c
+2 -2 1 file

FreeBSD — head/sys/powerpc/aim moea64_native.c, head/sys/powerpc/include hid.h

On POWER9 clear the HID0_RADIX before enabling the page tables

POWER9 supports Radix page tables in addition to Hashed page tables.  When
Radix page tables are in use, the TLB is cut in half, so that half of the
TLB is used for the page walk cache.  This is the default behavior, however
FreeBSD currently does not support Radix tables.  Clear this bit so that we
can use the full TLB.  Do this in the MMU logic so that configuration can be
localized to the specific translation format.  Once we do support Radix
tables, the setup for that will be localized to the Radix MMU kobj.

FreeBSD — head/sys/powerpc/powernv opal_sensor.c

Fix a typo missed in r334232

FreeBSD — head/sys/vm vm_fault.c

Use pmap_enter(..., psind=1) in vm_fault_populate() on amd64.  While
superpage mappings were already being created by automatic promotion in
vm_fault_populate(), this change reduces the cost of creating those
mappings.  Essentially, one pmap_enter(..., psind=1) call takes the place
of 512 pmap_enter(..., psind=0) calls, and that one pmap_enter(...,
psind=1) call eliminates the allocation of a page table page.

Reviewed by:        kib
MFC after:        10 days
Differential Revision:        https://reviews.freebsd.org/D15572
Delta File
+38 -18 head/sys/vm/vm_fault.c
+38 -18 1 file

FreeBSD — head/sys/powerpc/powernv opal_sensor.c

Correct a typo for opal temperature sensor type constant

FreeBSD — head/sys/net iflib.h iflib.c

iflib: Add new shared flag: IFLIB_ADMIN_ALWAYS_RUN

ixl(4)'s nvmupdate utility expects the nvmupdate process to run
while the interface is down; these nvm update commands use the
admin queue, so the admin queue needs to be able to generate
interrupts and be processed while the interface is down.

So add a flag that ixl(4) sets that lets the entire admin task
run even when the interface is marked down/IFF_DRV_RUNNING isn't set.

With this change, nvmupdate should function like it did pre-iflib.

Reviewed by:        gallatin@, sbruno@
MFC after:        1 week
Sponsored by:        Intel Corporation
Differential Revision:        https://reviews.freebsd.org/D15575
Delta File
+4 -1 head/sys/net/iflib.h
+2 -1 head/sys/net/iflib.c
+6 -2 2 files

FreeBSD — head/sys/powerpc/aim moea64_native.c

Only crop the VPN on POWER4 and derivatives for TLBIE operations

PowerISA 2.03 and later require bits 14:65 in the RB register argument,
which is the full value of the vpn argument post-shift.  Only POWER4, POWER4+,
and PPC970* need the upper 16 bits cropped.

With this change FreeBSD can boot to multi-user on POWER9.

Reviewed by:        nwhitehorn
Differential Revision: https://reviews.freebsd.org/D15581
Delta File
+14 -1 head/sys/powerpc/aim/moea64_native.c
+14 -1 1 file

FreeBSD — stable/11/sys/cam cam_iosched.c

MFC r323829
  cam iosched: Add a handler for the quanta sysctl to enforce valid

MFC r323831
    cam iosched: Schedule cam_iosched_ticker() quanta times per second

PR:                221956 221957
Submitted by:        imp
Approved by:        re (marius)
Delta File
+27 -6 stable/11/sys/cam/cam_iosched.c
+27 -6 1 file

FreeBSD — head/lib/libpmcstat Makefile

META_MODE: Fix trying to rebuild jevents due to missing .meta file.

The tool is built separately in buildworld in a subdirectory rather than
how other build-tools are done.  Subdirectory builds in lib/libpmcstat
remain broken since the tool cannot be auto-built from here.
Delta File
+3 -0 head/lib/libpmcstat/Makefile
+3 -0 1 file

FreeBSD — head/lib/libpmcstat Makefile

Use proper BTOOLSPATH for build-tools path.
Delta File
+1 -5 head/lib/libpmcstat/Makefile
+1 -5 1 file

FreeBSD — head/lib/libpmcstat/pmu-events Makefile

Cleanup style

FreeBSD — head Makefile.inc1

Support -DNO_CLEAN builds across r334223+r334224.
Delta File
+2 -1 head/Makefile.inc1
+2 -1 1 file

FreeBSD — head/sys/compat/freebsd32 freebsd32_systrace_args.c freebsd32_syscall.h, head/sys/kern systrace_args.c init_sysent.c

Regen after r334223: make vadvise compat freebsd11.

FreeBSD — head/lib/libc/sys vadvise.c Symbol.map, head/sys/compat/freebsd32 syscalls.master

Make vadvise compat freebsd11.

The vadvise syscall (aka ovadvise) is undocumented and has always been
implmented as returning EINVAL.  Put the syscall under COMPAT11 and
provide a userspace implementation.

Reviewed by:        kib
Sponsored by:        DARPA, AFRL
Differential Revision:        https://reviews.freebsd.org/D15557

FreeBSD — head/sys/net route.c

rtrequest1_fib: we need to always bump the ifaddr refcount when we take a reference from
an rtentry. r334118 introduced a case when this was not done.

While we're here make the intent more obvious by moving the refcount
bump down to when we know we'll actually need it.

Reported by:        markj
Delta File
+3 -5 head/sys/net/route.c
+3 -5 1 file

FreeBSD — head/etc rc.subr

rc.subr: Support loading environmental variables from a file

The current support for setting environment via foo_env="" in rc.conf is
not scalable and does not handle envs with spaces in the value. It seems
a common pattern for some newer software is to skip configuration files
altogether and rely on the env. This is well supported in systemd unit
files and may be the inspiration for this trend.

MFH:                1 week
Differential Revision:        https://reviews.freebsd.org/D14453
Delta File
+10 -1 head/etc/rc.subr
+10 -1 1 file

FreeBSD — stable/11/sys/dev/cpuctl cpuctl.c

MFC r334050, r334051:
Flush caches before initiating a microcode update on Intel CPUs.

Approved by:        re (gjb, kib)
Delta File
+3 -1 stable/11/sys/dev/cpuctl/cpuctl.c
+3 -1 1 file

FreeBSD — head/usr.sbin/bhyve bhyverun.c

We don't need check if str is NULL as free(3) will handle NULL

Reported by:        kib@
Delta File
+1 -2 head/usr.sbin/bhyve/bhyverun.c
+1 -2 1 file

FreeBSD — head/sys/dev/mmc/host dwmmc_rockchip.c

Fix building GENERIC-MMCCAM on arm64

Since GENERIC includes quite a few drivers now, all MMC drivers should have
appropriate MMCCAM-related ifdefs and include opt_mmccam.h so that
those ifdefs are actually processed correctly.

Reviewed by:        manu
Approved by:        imp (mentor)
Differential Revision:        https://reviews.freebsd.org/D15569

FreeBSD — head/sys/dev/cxgbe t4_sge.c

cxgbe(4): Suppress a warning about code that is used only with options

Reported by:        mmacy@
Delta File
+2 -0 head/sys/dev/cxgbe/t4_sge.c
+2 -0 1 file

FreeBSD — head/usr.sbin/bhyve bhyverun.c

After a long discussion about assert(3), we gonna use a HardenedBSD
approach to chek strdup(3) memory allocation.

Submitted by:        Shaw Webb <shawn.webb at hardenedbsd.org>
Reported by:        brooks
Obtained from:        HardenedBSD
Delta File
+5 -2 head/usr.sbin/bhyve/bhyverun.c
+5 -2 1 file

FreeBSD — head/usr.sbin/pmcstat pmcstat.8 pmcstat.c

- Document per thread filtering.

Submitted by:        kbowling
Sponsored by:        Limelight Networks
Differential Revision:        https://reviews.freebsd.org/D15549

FreeBSD — stable/11/sys/x86/x86 cpu_machdep.c

MFC r334064:
Fix UP build.

Approved by:        re (gjb)

FreeBSD — head/sys/dev/usb/net if_muge.c

if_muge: Use lock assertion instead of broken locking in lan78xx_chip_init

Previously lan78xx_chip_init locked the driver's mutex if not already
locked, but unlocked it only in the case of error.  This provided a
fairly clear indication that the function is already called with the
lock held, so just replace it with a lock assertion.

Sponsored by:        The FreeBSD Foundation
Delta File
+1 -7 head/sys/dev/usb/net/if_muge.c
+1 -7 1 file

FreeBSD — head/sys/modules/usb Makefile

if_muge: connect module to the build

Supported Microchip devices:
- LAN7515 USB 2 hub and gigabit Ethernet controller w/ PHY
- LAN7800 USB 3.0 gigabit Ethernet controller w/ PHY

The LAN7515 is the Ethernet controller on the Raspberry Pi 3 B+.

This driver has some TODO items outstanding, but basic functionality

Sponsored by:        The FreeBSD Foundation
Delta File
+1 -0 head/sys/modules/usb/Makefile
+1 -0 1 file

FreeBSD — head/sys/i386/i386 pmap.c, head/sys/i386/include pcpu.h

Optimize i386 pmap_extract_and_hold().

In particular, stop using pmap_pte() to read non-promoted pte while
walking the page table.  pmap_pte() needs to shoot down the kernel
mapping globally which causes IPI broadcast.  Since
pmap_extract_and_hold() is used for slow copyin(9), it is very
significant hit for the 4/4 kernels.

Instead, create single purpose per-processor page frame and use it to
locally map page table page inside the critical section, to avoid
reuse of the frame by other thread if context switched.

Measurement demostrated very significant improvements in any load that
utilizes copyin/copyout.

Found and benchmarked by:        bde
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/i386/i386 swtch.s

Cleanup.  Remove unused instruction and label.

Tested by:        bde
Sponsored by:        The FreeBSD Foundation
Delta File
+0 -4 head/sys/i386/i386/swtch.s
+0 -4 1 file

FreeBSD — head/sys/ddb db_ps.c

Extend show proc with reaper, sigparent, and vmspace information
I have regularly needed the last couple of months.

Sponsored by:        iXsystems, Inc.
Delta File
+11 -0 head/sys/ddb/db_ps.c
+11 -0 1 file

FreeBSD — head/usr.bin/rctl rctl.8

rctl: correct use of "vmem" instead of "vmemoryuse"

Submitted by:        Jamie Landeg-Jones <jamie at catflap.org>
PR:                228482
MFC after:        1 month
Delta File
+3 -3 head/usr.bin/rctl/rctl.8
+3 -3 1 file

FreeBSD — head/include time.h

Add time2posix and posix2time to time.h

These are documented in `time2posix.3` but the symbols are not actually
visible. Since these are not POSIX hide them behind _BSD_VISIBLE.

Reviewed by:                wollman
Differential Revision:        https://reviews.freebsd.org/D15530
Delta File
+2 -0 head/include/time.h
+2 -0 1 file

FreeBSD — head/share/misc committers-ports.dot

Add myself (arrowd) to share/misc/committers-ports.dot

Approved by:        tcberner (mentor)

FreeBSD — head/sys/xen gnttab.h

xen: remove dead code from gnttab.h

This code was left over when it was imported from Linux. The original
committer thought that those functions would be implemented, so the
prototypes where left in place. Delete them at once.

Submitted by:                pratyush
Reviewed by:                royger
Differential Review:        https://reviews.freebsd.org/D15553
Delta File
+0 -42 head/sys/xen/gnttab.h
+0 -42 1 file

FreeBSD — head/sys/amd64/include clock.h, head/sys/dev/acpica acpi.c

re-synchronize TSC-s on SMP systems after resume, if necessary

The TSC-s are checked and synchronized only if they were good
originally.  That is, invariant, synchronized, etc.

This is necessary on an AMD-based system where after a wakeup from STR I
see that BSP clock differs from AP clocks by a count that roughly
corresponds to one second.  The APs are in sync with each other.  Not
sure if this is a hardware quirk or a firmware bug.

This is what I see after a resume with this change:
    SMP: passed TSC synchronization test after adjustment
    acpi_timer0: restoring timecounter, ACPI-fast -> TSC-low

Reviewed by:        kib
MFC after:        3 weeks
Differential Revision: https://reviews.freebsd.org/D15551

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu.c

fix zfs_getpages crash when called from sendfile, followup to r329363

It turns out that sendfile_swapin() has an optimization where it may
insert pointers to bogus_page into the page array that it passes to
VOP_GETPAGES.  That happens to work with buffer cache, because it
extensively uses bogus_page internally, so it has the necessary checks.
However, ZFS did not expect bogus_page as VOP_GETPAGES(9) does not
document such a (ab)use of bogus_page.

So, this commit adds checks and handling of bogus_page.

I expect that use of bogus_page with VOP_GETPAGES will get documented
sooner rather than later.

Reported by:        Andrew Reilly <areilly at bigpond.net.au>, delphij
Tested by:        Andrew Reilly <areilly at bigpond.net.au>
Requested by:        many
MFC after:        1 week

FreeBSD — stable/10/sys/contrib/ipfilter/netinet fil.c ip_dstlist.c

MFC r333392-r333393, r333427

Fix memory leak. (CID 1199373).

Document intentional fallthrough. (CID 976535)

Fix style error introduced in r333393.

Reported by:        jhb, imp, phk

FreeBSD — stable/11/sys/contrib/ipfilter/netinet fil.c ip_dstlist.c

MFC r333392-r333393, r333427

Fix memory leak. (CID 1199373).

Document intentional fallthrough. (CID 976535)

Fix style error introduced in r333393.

Reported by:        jhb, imp, phk

Approved by:        re (delphij)

FreeBSD — head/sys/cam cam_xpt_internal.h cam_xpt.c, head/sys/cam/nvme nvme_xpt.c

Refactor NVMe CAM integration.

 - Remove layering violation, when NVMe SIM code accessed CAM internal
device structures to set pointers on controller and namespace data.
Instead make NVMe XPT probe fetch the data directly from hardware.
 - Cleanup NVMe SIM code, fixing support for multiple namespaces per
controller (reporting them as LUNs) and adding controller detach support
and run-time namespace change notifications.
 - Add initial support for namespace change async events.  So far only
in CAM mode, but it allows run-time namespace arrival and departure.
 - Add missing nvme_notify_fail_consumers() call on controller detach.
Together with previous changes this allows NVMe device detach/unplug.

Non-CAM mode still requires a lot of love to stay on par, but at least
CAM mode code should not stay in the way so much, becoming much more

Reviewed by:        imp
MFC after:        1 month
Sponsored by:        iXsystems, Inc.

FreeBSD — head/usr.sbin/bhyve bhyverun.c

Fix a memory leak on topology_parse().

strdup(3) allocates memory for a copy of the string, does the copy and
returns a pointer to it. If there is no sufficient memory NULL is returned
and the global errno is set to ENOMEM.
We do a sanity check to see if it was possible to allocate enough memory.

Also as we allocate memory, we need to free this memory used. Or it will
going out of scope leaks the storage it points to.

Reviewed by:        rgrimes
MFC after:        3 weeks.
X-MFC:                r332298
Sponsored by:        iXsystems Inc.
Differential Revision:        https://reviews.freebsd.org/D15550
Delta File
+9 -2 head/usr.sbin/bhyve/bhyverun.c
+9 -2 1 file

FreeBSD — head/share/man/man5 src.conf.5, head/tools/build/options WITHOUT_BINUTILS

Remove extra space before parenthesis in src.conf(5)

Reviewed by:        eadler
Differential Revision:        https://reviews.freebsd.org/D15528

FreeBSD — head/sys/contrib/dev/ath/ath_hal/ar9300 ar9300.h, head/sys/dev/ath/ath_hal ah.h

[ath_hal] migrate the shared HAL_RESET_* pieces out into ath_hal.

I'm in the process of reworking how the reset path works with an eye
to better recovery when the chips hang and/or go RF/PHY deaf.
This is the first step in a lot of unification and API changes.

FreeBSD — stable/11/sys/conf newvers.sh

Update stable/11 to BETA3 as part of the 11.2-RELEASE cycle.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 stable/11/sys/conf/newvers.sh
+1 -1 1 file

FreeBSD — head/sys/mips/conf MALTA64EL

MALTA64EL: disable modules until objcopy is fixed
Delta File
+1 -1 head/sys/mips/conf/MALTA64EL
+1 -1 1 file

FreeBSD — head/sys/netipsec key.c

netipsec/!VIMAGE: don't declare/define spdcache_destroy on non-VIMAGE builds
this breaks MIPS compiles in universe
Delta File
+4 -2 head/sys/netipsec/key.c
+4 -2 1 file

FreeBSD — head/sys/dev/hwpmc hwpmc_mod.c, head/sys/net if_lagg.c if_var.h

CK: update consumers to use CK macros across the board

r334189 changed the fields to have names distinct from those in queue.h
in order to expose the oversights as compile time errors

FreeBSD — head/sys/libkern memset.c

Protect bzero call against macro expansion

Shortly, we'll be moving to defining bzero and memset in terms of
__builting_memset. To do that, we can't have macro calls to bzero in
the fallback impelmentation of memset. Normal calls to bzero are fine.
All 4 architectures that use this have their own copies of bzero, so
there's no mutual recursion issue between memset and bcopy.
Delta File
+1 -1 head/sys/libkern/memset.c
+1 -1 1 file

FreeBSD — stable/11/stand/common metadata.c, stable/11/stand/ofw/libofw libofw.h

MFC: r333955

- Unbreak booting sparc64 kernels after the metadata unification in
  r329190 (MFCed to stable/11 in r332150); sparc64 kernels are always
  64-bit but with that revision in place, the loader was treating them
  as 32-bit ones.
- In order to reduce the likelihood of this kind of breakage in the
  future, #ifdef out md_load() on sparc64 and make md_load_dual() -
  which is currently local to metadata.c anyway - static.
- Make md_getboothowto() - also local to metadata.c - static.
- Get rid of the unused DTB pointer on sparc64.

Approved by:        re (kib)

FreeBSD — head/usr.bin/grep zgrep.sh

Fix exit code for mismatches after r333013.

The -c flag still does the wrong thing versus the older version due to
lack of pipefail support.

Reported by:        antoine
Delta File
+5 -3 head/usr.bin/grep/zgrep.sh
+5 -3 1 file

FreeBSD — head/sys/contrib/ck/include ck_queue.h

Import CK as of commit 0f017230ccc86929f56bf44ef2dca93d7df8076b.
This brings us the renaming of fields in ck_queue, so that our own
LIST/SLIST/TAILQ/etc won't accidentally work with them.
Delta File
+101 -101 head/sys/contrib/ck/include/ck_queue.h
+101 -101 1 file

FreeBSD — vendor-sys/ck 20180524

Tag import of CK as of commit 0f017230ccc86929f56bf44ef2dca93d7df8076b.
Delta File
+0 -0 vendor-sys/ck/20180524/
+0 -0 1 file

FreeBSD — vendor-sys/ck/dist/include ck_queue.h

Import CK as of commit 0f017230ccc86929f56bf44ef2dca93d7df8076b.
This brings us the renaming of fields in ck_queue, so that our own
LIST/SLIST/TAILQ/etc won't accidentally work with them.
Delta File
+101 -101 vendor-sys/ck/dist/include/ck_queue.h
+101 -101 1 file