Displaying 1 50 of 266,847 commits (0.040s)

FreeBSD — head/cddl/contrib/opensolaris/cmd/ztest ztest.c

MFV r269426:

Double test device size for ztest(1).

Illumos issue:
    5039 ztest should default to larger device sizes
    Author: Matthew Ahrens <mahrens at delphix.com>

MFC after:        2 weeks

FreeBSD — stable/10/sys/cam/ctl ctl_backend_block.c

MFC r269123:
Implement separate I/O dispatch method for ZVOLs in "dev" mode.

Unlike disk devices ZVOLs process all requests synchronously.  That makes
impossible sending multiple requests to them from single thread.  From the
other side ZVOLs have real d_read/d_write methods, which unlike d_strategy
can handle uio scatter/gather and have no strict I/O size limitations.

So, if ZVOL in "dev" mode is detected, use of d_read/d_write methods instead
of d_strategy allows to avoid pointless splitting of large requests into
MAXPHYS (128K) sized chunks.

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

cxgbe(4):  some optimizations in freelist handling.

MFC after:        2 weeks.
Delta File
+139 -95 head/sys/dev/cxgbe/t4_sge.c
+38 -26 head/sys/dev/cxgbe/adapter.h
+177 -121 2 files

FreeBSD — vendor-sys/illumos/dist/uts/common/fs/zfs dnode.c, vendor-sys/illumos/dist/uts/common/fs/zfs/sys dnode.h

Author: Justin T. Gibbs <justing at spectralogic.com>
Date:   Fri Aug 1 17:55:38 2014 -0800

    5038 Remove "old-style" flexible array usage in ZFS.
    Reviewed by: Matthew Ahrens <mahrens at delphix.com>
    Reviewed by: Josef 'Jeff' Sipek <jeffpc at josefsipek.net>
    Approved by: Richard Lowe <richlowe at richlowe.net>

illumos/illumos-gate at 7f18da4c54210b682e105b0e7be5195c60f98d20

FreeBSD — vendor/illumos/dist/cmd/ztest ztest.c

Author: Matthew Ahrens <mahrens at delphix.com>
Date:   Fri Aug 1 11:09:46 2014 -0800

    5039 ztest should default to larger device sizes
    Reviewed by: George Wilson <george.wilson at delphix.com>
    Reviewed by: Max Grossman <max.grossman at delphix.com>
    Reviewed by: Christopher Siden <christopher.siden at delphix.com>
    Reviewed by: Saso Kiselkov <skiselkov.ml at gmail.com>
    Approved by: Richard Lowe <richlowe at richlowe.net>

illumos/illumos-gate at 539eed8a409366837ae95576ca22df010f901134

FreeBSD — head/tools/tools/nanobsd nanobsd.sh

Sort switch statements.

FreeBSD — head/tools/tools/nanobsd nanobsd.sh

Sort usage options.

FreeBSD — head/tools/tools/nanobsd nanobsd.sh

Add a new -K to suppress installing the kernel. Useful for creating
chroots that may never boot (such as build environments), or for
platforms that don't really need the kernel installed into the
Delta File
+13 -3 head/tools/tools/nanobsd/nanobsd.sh
+13 -3 1 file

FreeBSD — head/sys/fs/nandfs nandfs_vfsops.c

Set the erase block size properly in the case the underlying media
doesn't advertise an erase block size.

Submitted by: bjg@
Pointy hat to: imp@

FreeBSD — head/sys/fs/nandfs nandfs_vnops.c

Follow the ufs practice for disallowing permission changes as well as
writes to files for read-only file systems. Since there are already
checks in nandfs_setattr that return an error, this moves detection of
the error earlier.
Delta File
+1 -1 head/sys/fs/nandfs/nandfs_vnops.c
+1 -1 1 file

FreeBSD — head/sys/fs/nandfs nandfs_subr.c

Fix a minor style(9) issue.
Delta File
+2 -4 head/sys/fs/nandfs/nandfs_subr.c
+2 -4 1 file

FreeBSD — stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs rrwlock.c zfs_vfsops.c, stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys rrwlock.h zfs_znode.h

MFC r268865: MFV r268852:

Reduce lock contention on the z_teardown_lock under heavily cached
read workload by splitting the single teardown rrw lock into
RRM_NUM_LOCKS (17) of them.

Read acquisitions are randomly distributed among these locks based
on curthread pointer.  Write acquisitions are going to all the
locks, which for the usage of this type of lock should be rare.

Illumos issue:
    5008 lock contention (rrw_exit) while running a read only load

FreeBSD — stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs txg.c vdev_queue.c, stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys txg.h spa.h

MFC r268859: MFV r268851:

When a sync task is waiting for a txg to complete, we should hurry it along
by increasing the number of outstanding async writes (i.e. make
vdev_queue_max_async_writes() return a larger number).

Illumos issue:
    4753 increase number of outstanding async writes when sync task is waiting

FreeBSD — stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs arc.c dbuf.c, stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys arc.h

MFC r268858: MFV r268850:

Change the interaction between the DMU and ARC so that when the DMU is
shutting down an objset, we do not evict the data from the ARC.  Instead
we simply coordinate the destruction of the DMU's data with the ARC.

The only case where we actually need to explicitly evict from the ARC is
when dbuf_rele_and_unlock() determines that the administrator has requested
that it not be kept in memory, via the primarycache/secondarycache properties.
In this case, we evict the data from the ARC by its blkptr_t, the same way
as when a block is freed we explicitly evict it from the ARC.

Illumos issue:
    4631 zvol_get_stats triggering too many reads

FreeBSD — stable/10/cddl/contrib/opensolaris/cmd/ztest ztest.c, stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs metaslab.c zio.c

MFC r268855: MFV r268848:

Instead of asserting all zio's be properly aligned, only assert
on the logical ones.

Cap uberblocks at 8k, otherwise with ashift=17, there would be
only one uberblock.

This fixes a problem that zdb would trip assert on pools with
ashift >= 0xe (8k).

While there, also change the code so it only attempt to condense
space map unless the uncondensed size consumes greater than
zfs_metaslab_condense_block_threshold blocks.

Illumos issue:
  4958 zdb trips assert on pools with ashift >= 0xe

FreeBSD — head/sys/conf files.sparc64, head/sys/sparc64/conf GENERIC

Add vt(4) support to sparc64. The only driver currently present (ofwfb)
provides support for a variety of low-end graphics hardware (SBus adapters,
Mach64, QEMU's framebuffer, XVR-100). A driver for at least the Creator3D
cards will have to be present before this can become the default console

To test vt(4) on sparc64, set kern.vty=vt at the loader prompt.

FreeBSD — head/sys/arm/include atomic.h, head/sys/cddl/compat/opensolaris/kern opensolaris_atomic.c

When arm 64-bit atomic ops are available, define ARM_HAVE_ATOMIC64.  Use
that symbol (which will be correct in both kernel and userland contexts)
rather than just __arm__ to decide whether to use a local implementation.

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

cxgbe(4):  Fix an off by one error when looking for the BAR2 doorbell
address of an egress queue.

MFC after:        2 weeks

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

cxgbe(4): minor optimizations in ingress queue processing.

Reorganize struct sge_iq.  Make the iq entry size a compile time
constant.  While here, eliminate RX_FL_ESIZE and use EQ_ESIZE directly.

MFC after:        2 weeks

FreeBSD — head/sys/cddl/compat/opensolaris/sys atomic.h

Use the 64-bit atomics now provided by arm machine/atomic.h instead of
(conflicting) local versions.

FreeBSD — head/sys/kern uipc_shm.c

In the shm_open() and shm_unlink() syscalls, export the path to KTR.

MFC after:        1 week
Delta File
+12 -2 head/sys/kern/uipc_shm.c
+12 -2 1 file

FreeBSD — head/usr.bin/kdump kdump.c

Add kdump support for shm_open().

MFC after:        1 week
Delta File
+8 -0 head/usr.bin/kdump/kdump.c
+8 -0 1 file

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zio.c vdev_geom.c, head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys zio.h

Don't return ZIO_PIPELINE_CONTINUE from vdev_op_io_start methods

This prevents recursion of vdev_queue_io_done as per r265321 but
using a different method as recommended on the openzfs list.

We now use zio_interrupt(zio) and return ZIO_PIPELINE_STOP instead
of returning ZIO_PIPELINE_CONTINUE from vdev_*_io_start methods.

zio_vdev_io_start now ASSERTS the that vdev_op_io_start returns
ZIO_PIPELINE_STOP to ensure future changes don't reintroduce

Cleanup flow in vdev_geom_io_start while I'm here.

Also fix some cases not using SET_ERROR(..)

MFC after:        2 weeks
X-MFC-With:        r265321

FreeBSD — head/sys/arm/include counter.h

Use atomic_load/store_64() in the arm implementation of counter(9), and
remove the XXX comments about non-atomic access to the counters.
Delta File
+7 -6 head/sys/arm/include/counter.h
+7 -6 1 file

FreeBSD — head/sys/arm/include atomic.h

Add 64-bit atomic ops for armv4, only for kernel code, mostly so that we
don't need any #ifdef stuff to use atomic_load/store_64() elsewhere in
the kernel.  For armv4 the atomics are trivial to implement for kernel
code (just disable interrupts), less so for user mode, so this only has
the kernel mode implementations for now.
Delta File
+69 -0 head/sys/arm/include/atomic.h
+69 -0 1 file

FreeBSD — head/sys/cddl/compat/opensolaris/sys time.h

Split gethrtime() and gethrtime_waitfree() and make the former use
nanouptime() instead of getnanouptime().  nanouptime(9) provides more
precise result at expense of being slower.

In r269223, gethrtime() is used as creation time of dbuf, which in turn
acts as portion of lookup key to maintain AVL invariant where there can
not be duplicate items.  Before this change, gethrtime() have preferred
better execution time by sacrificing precision, which may lead to panic
on busy systems with:

        panic: avl_find() succeeded inside avl_add()

Reported by:        allanjude, mav
PR:                kern/192284
MFC after:        11 days
X-MFC-with:        r269223

FreeBSD — head/sys/arm/include atomic.h

Add 64-bit atomic ops for armv6.  The only safe way to access a 64-bit
value shared across multiple cores is with atomic_load_64() and
atomic_store_64(), because the normal 64-bit load/store instructions
are not atomic on 32-bit arm.  Luckily the ldrexd/strexd instructions
that are atomic are fairly cheap on armv6.  Because it's fairly simple
to do, this implements all the ops for 64-bit, not just load/store.

Reviewed by:        andrew, cognet
Delta File
+248 -0 head/sys/arm/include/atomic.h
+248 -0 1 file

FreeBSD — stable/10/sys/amd64/amd64 machdep.c

MFC r258436: Refactor amd64 startup SMAP parsing

  Extracted from the projects/uefi branch, this change is a reasonable
  cleanup and will reduce the diffs to review when bringing in the
  UEFI work.
Delta File
+44 -33 stable/10/sys/amd64/amd64/machdep.c
+44 -33 1 file

FreeBSD — stable/10 UPDATING

Add an UPDATING entry for the __FreeBSD_version bump related
to r269398.
Delta File
+5 -0 stable/10/UPDATING
+5 -0 1 file

FreeBSD — stable/10/sys/sys param.h

Bump __FreeBSD_version for r269398, since it changes the
internal interfaces between the NFS related modules.
This is a direct commit to stable/10.
Delta File
+1 -1 stable/10/sys/sys/param.h
+1 -1 1 file

FreeBSD — stable/10/etc/mtree BSD.usr.dist

MFC r266902: Add missing libexec/bsdconfig subdirectories
Delta File
+4 -0 stable/10/etc/mtree/BSD.usr.dist
+4 -0 1 file

FreeBSD — stable/10/sys/conf files, stable/10/sys/fs/nfs nfs.h nfsproto.h

MFC: r268115
Merge the NFSv4.1 server code in projects/nfsv4.1-server over
into head. The code is not believed to have any effect
on the semantics of non-NFSv4.1 server behaviour.
It is a rather large merge, but I am hoping that there will
not be any regressions for the NFS server.

FreeBSD — stable/10/share/examples/bhyve vmrun.sh

MFC 256657,257423,264837,267559:
Sync vmrun.sh with HEAD:
- Add -e option to vmrun.sh passed to bhyveload(8) to set loader
  environment variables.
- Stop passing unused -I option to bhyve(8).
- Reformat the usage to fit in 80 colums and other cleanups.
- Add -C option to specify the console device.
- Add -H option to pass a host path to bhyveload(8).
- Support for multiple disk and tap devices.
Delta File
+94 -34 stable/10/share/examples/bhyve/vmrun.sh
+94 -34 1 file

FreeBSD — head/sys/netinet sctp_sysctl.h sctp_sysctl.c

Remove the asconf_auth_nochk sysctl. This was off by default and only
existed to be able to test with non-compliant peers a long time ago.

FreeBSD — head/sys/arm/ti ti_smc.S

Tell the assembler we're building for armv7a with security extensions,
so that the 'smc' (secure monitor call) opcode is valid.

Submitted by:        Stepan Dyatkovskiy <stpworld at narod.ru>
Delta File
+2 -1 head/sys/arm/ti/ti_smc.S
+2 -1 1 file

FreeBSD — head/contrib/binutils/gas/config tc-arm.c

Teach as(1) to handle the arm .arch_extension pseudo-op, which accepts
the same values as the -march= command line option.  Add support for the
"sec" extension (security extensions).

We've been getting away without support for the sec extension because
it's bogusly enabled even on arches where its presence is optional.  This
support for .arch_extension is being added mainly so that we can use the
right directives in our source code, and that helps folks using external
toolchains (and will help us when we finally update our toolchain).

FreeBSD — head/contrib/binutils/gas/config tc-arm.c

Fix an bug in as(1) parsing of arm -march=arch+ext options.  Compare the
arch name to just the characters before the '+' in 'arch+ext'.

FreeBSD — head/etc/defaults rc.conf

Like with /usr/lib + /usr/lib/compat, add the optional /usr/lib32/compat
to the ldconfig32 default path.  /usr/lib32 is the 32 bit versions of
*current* libraries, while old versions should be able to be in
/usr/lib32/compat, like with /usr/lib/compat.  The separation is meant to
keep the compile time default search paths cleaner.
Delta File
+2 -1 head/etc/defaults/rc.conf
+2 -1 1 file

FreeBSD — head/sys/netinet in_rss.c

Fix byte ordering in default RSS key.

The rss_key[] array in netinet/in_rss.c has the bytes in incorrect
order. This results in the RSS test vectors in the Microsft RSS spec
and Intel NIC specs giving incorrect results, and making it difficult
to verify correct hash operation when RSS functionality is added to
new NICs.

CR:                https://phabric.freebsd.org/D516
Reviewed by:        adrian
Delta File
+5 -5 head/sys/netinet/in_rss.c
+5 -5 1 file

FreeBSD — head/sys/arm/arm cpufunc_asm_xscale.S cpufunc_asm_xscale_c3.S, head/sys/arm/include asm.h

Fix unwind-info errors in our hand-written arm assembler code.

We have functions nested within functions, and places where we start a
function then never end it, we just jump to the middle of something else.
We tried to express this with nested ENTRY()/END() macros (which result
in .fnstart and .fnend directives), but it turns out there's no way to
express that nesting in ARM EHABI unwind info, and newer tools treat
multiple .fnstart directives without an intervening .fnend as an error.

These changes introduce two new macros, EENTRY() and EEND().  EENTRY()
creates a global label you can call/jump to just like ENTRY(), but it
doesn't emit a .fnstart.  EEND() is a no-op that just documents the
conceptual endpoint that matches up with the same-named EENTRY().

This is based on patches submitted by Stepan Dyatkovskiy, but I made some
changes and added the EEND() stuff, so blame any problems on me.

Submitted by:        Stepan Dyatkovskiy <stpworld at narod.ru>

FreeBSD — projects/pciehp Makefile.inc1 ObsoleteFiles.inc, projects/pciehp/bin/chio chio.1

merge @269363

FreeBSD — head/sys/powerpc/aim mmu_oea.c mmu_oea64.c

Simplify the selection of the pvo_head and pvo allocation zone in
moea_enter_locked() and moea64_enter().

Eliminate an unused variable from moea64_enter().

FreeBSD — head/contrib/llvm/tools/clang/lib/Driver ToolChain.cpp Tools.cpp

Update the ARMv6 core clang targets to be an arm1176jzf-s. This brings us
in line with gcc in base as this makes llvm generate code for the armv6k
variant of the instruction set.

FreeBSD — projects/ipfw/sbin/ipfw tables.c ipfw2.c, projects/ipfw/sys/netinet ip_fw.h

* Permit limiting number of items in table.

Kernel changes:
* Add TEI_FLAGS_DONTADD entry flag to indicate that insert is not possible
* Support given flag in all algorithms
* Add "limit" field to ipfw_xtable_info
* Add actual limiting code into add_table_entry()

Userland changes:
* Add "limit" option as "create" table sub-option. Limit modification
  is currently impossible.
* Print human-readable errors in table enry addition/deletion code.

FreeBSD — head/sys/arm/conf CHROMEBOOK-SPRING CHROMEBOOK-SNOW, head/sys/boot/fdt/dts/arm exynos5250-chromebook-snow.dts exynos5250-snow.dts

Rename files: keep codename only to make it shorter.

FreeBSD — stable/9/share/man/man9 rman.9, stable/9/sys/kern subr_rman.c

MFC r268780

Nuke the never-used RF_TIMESHARE feature, reducing the complexity of the
code.  The consensus on arch@ is that this feature might have been useful
in the distant past, but is now just unnecessary bloat.

The int_rman_activate_resource() and int_rman_deactivate_resource()
functions become trivial, so manually inline them.

The special deferred handling of RF_ACTIVE is no longer needed in
reserve_resource_bound(), so eliminate the associated code at the
end of the function.

These changes reduce the object file size by more than 500 bytes on i386.

Update the rman.9 man page to reflect the removal of the RF_TIMESHARE

FreeBSD — stable/10/share/man/man9 rman.9, stable/10/sys/kern subr_rman.c

MFC r268780

Nuke the never-used RF_TIMESHARE feature, reducing the complexity of the
code.  The consensus on arch@ is that this feature might have been useful
in the distant past, but is now just unnecessary bloat.

The int_rman_activate_resource() and int_rman_deactivate_resource()
functions become trivial, so manually inline them.

The special deferred handling of RF_ACTIVE is no longer needed in
reserve_resource_bound(), so eliminate the associated code at the
end of the function.

These changes reduce the object file size by more than 500 bytes on i386.

Update the rman.9 man page to reflect the removal of the RF_TIMESHARE

FreeBSD — projects/arm64/sys/arm/arm gic.c, projects/arm64/sys/conf files.arm64

Alos use the GICv2 driver on arm64. No interrupts are working yet as we
are still missing the code to handle the correct exception.

FreeBSD — projects/arm64/sys/arm64/conf GENERIC

Add FDT to the kernel now it's supported.

FreeBSD — projects/arm64/sys/arm64/arm64 nexus.c

Use the memmap_bus tag in nexus