Displaying 1 50 of 478,685 commits (0.069s)

PC-BSD — sys/cam/ctl ctl.c

Change ctl_free_lun() locking.

This fixes potential callout_drain() sleep under non-sleepable lock.

PR:                218167
MFC after:        2 weeks

(cherry picked from commit e1a3c2a40871a5b1a48ff3f4caa089fa70d7edfb)
Delta File
+9 -18 sys/cam/ctl/ctl.c
+9 -18 1 file

PC-BSD — sys/dev/isp isp.c

Switch isp_reset to scratchpad not requiring ISP_MBOXDMASETUP.

MFC after:        1 week

(cherry picked from commit 4c48cc65f55ac6cafd129b902cde6fa2d0af0e9d)
Delta File
+2 -2 sys/dev/isp/isp.c
+2 -2 1 file

PC-BSD — sys/dev/ntb ntb_transport.c ntb.c, sys/dev/ntb/if_ntb if_ntb.c

Report NTB link speed to console and interface.

MFC after:        2 weeks

(cherry picked from commit 5042d4adb639a2e2e280d32c570f2069c4b4570c)

PC-BSD — sys/net if_lagg.c

Remove unneeded conditions.

MFC after:        2 weeks

(cherry picked from commit e3b5ab75e59648426b5f561ce1497e4cc870e8bf)
Delta File
+4 -8 sys/net/if_lagg.c
+4 -8 1 file

PC-BSD — etc/rc.d nfsd mountd

    Comment out force_depends from mountd and nfsd rc scripts to not confuse FreeNAS 
middleware.
Delta File
+3 -2 etc/rc.d/nfsd
+2 -1 etc/rc.d/mountd
+5 -3 2 files

PC-BSD — etc/rc.d nfsd mountd

    Comment out force_depends from mountd and nfsd rc scripts to not confuse FreeNAS 
middleware.
Delta File
+3 -2 etc/rc.d/nfsd
+2 -1 etc/rc.d/mountd
+5 -3 2 files

PC-BSD — sys/net if_lagg.c

Add interface reference counting to if_lagg.

Using plain ifunit() looks like request for troubles.

MFC after:        2 weeks

(cherry picked from commit dfb79d43607ded4ec7114eeb9fa039d763737692)
Delta File
+13 -3 sys/net/if_lagg.c
+13 -3 1 file

PC-BSD — sys/geom/eli g_eli.h

Dump md_iterations as signed, which it really is.

PR:                208305
PR:                196834
MFC after:        2 weeks

(cherry picked from commit dcf10e53ab3a64d02d71fb01d598fb18fe5883a4)
Delta File
+1 -1 sys/geom/eli/g_eli.h
+1 -1 1 file

PC-BSD — sbin/geom/class/eli geom_eli.c, sys/geom/eli g_eli_ctl.c

Always allow setting number of iterations for the first time.

Before this change it was impossible to set number of PKCS#5v2 iterations,
required to set passphrase, if it has two keys and never had any passphrase.
Due to present metadata format limitations there are still cases when number
of iterations can not be changed, but now it works in cases when it can.

PR:                218512
MFC after:        2 weeks
Sponsored by:        iXsystems, Inc.
Differential Revision:        https://reviews.freebsd.org/D10338

(cherry picked from commit 1fbe8b4c28a7aacc43ccb204ac2e9fb17485c490)

Ticket:        #22961

PC-BSD — sys/dev/nvdimm nvdimm.c

Include sys/vmmeter.h into nvdimm.c.
Delta File
+1 -0 sys/dev/nvdimm/nvdimm.c
+1 -0 1 file

PC-BSD — . ObsoleteFiles.inc, etc/mtree BSD.usr.dist

Merge branch 'svn_head' of https://github.com/freebsd/freebsd into freenas/svn_head
∈ bapt - 631ba4f5 - 2017-04-20 18:21:50
    Readd Big5: some large databases setup are still requiring it.
    
    Reported by:        "張君天(Chun-Tien Chang)" <tcs at kitty.2y.idv.tw>
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 317204 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — lib/libthread_db libpthread_db.c

    libpthread_db: undo the memset size change.
    
    I inadvertedly soubled the size of the memset without noticing the
    start address had changed. The size for the memset in pt_map_thread()
    shouldn't actually match the reallocarray() so undo that part of r317200.
    
    This is a re-commit of r317201 to clarify the log.
    
    X-MFC with:        r317200
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 317203 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -1 lib/libthread_db/libpthread_db.c
+1 -1 1 file

PC-BSD — lib/libthread_db libpthread_db.c

    Revert r317201 to fix the log.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 317202 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -1 lib/libthread_db/libpthread_db.c
+1 -1 1 file

PC-BSD — lib/libthread_db libpthread_db.c

    libpthread_db: leave the memset size from unchanged.
    
    The size for the memset in pt_map_thread() shouldn't actually match the
    reallocarray() so undo that part of r317200.
    
    X-MFC with:        r317200
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 317201 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -1 lib/libthread_db/libpthread_db.c
+1 -1 1 file

PC-BSD — lib/libthread_db libpthread_db.c libpthread_db.h

    libthread_db: unsign map_len and use reallocarray(3).
    
    Lengths are not negative, so map_len should be unsigned. Unsign the
    corresponding indexes too and bring a small use of reallocarray(3).
    
    Reorder the memset to be consistent with the realloc: it appears we
    were only clearing half the memory in pt_map_thread().
    
    MFC after:        2 weeks
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 317200 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/dev/syscons scvgarndr.c

    Eliminate the ega renderer switch.  It did nothing useful except hold
    a pointer to the main ega drawing method which is misoptimized be in
    a different function than the main vga planar mode drawing method.
    Vga initialization handles everything with no extra code except for
    selecting the different function.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 317199 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+5 -14 sys/dev/syscons/scvgarndr.c
+5 -14 1 file

PC-BSD — sys/dev/syscons scvgarndr.c syscons.h

    When the character width is 9, remove vertical lines in the mouse cursor
    corresponding to the gaps between characters.  This fixes distortion
    of the cursor due to expanding it across the gaps.
    
    Again for character width 9, when the cursor characters are not in the
    graphics range (0xb0-0xdf), the gaps were always there (filled in the
    background color for the previous char).  They still look strange, but
    don't cause distortion.  When the cursor characters are in the graphics
    range, the gaps are filled by repeating the previous line.  This gives
    distortion with cilia.  Removing vertical lines reduces the distortion
    to vertical cilia.
    
    Move the default for the cursor characters out of the graphics range.
    With character width 9, this gives gaps instead of distortion and
    other problems.  With character width 8, it just fixes a smaller set
    of other problems.  Some distortion and other problems can be recovered
    using vidcontrol -M.  Presumably the default was to fill the gaps
    intentionally, but it is much better to leave gaps.  The gaps can even
    be considered as a feature for text processing -- they give sub-pointers
    to character boundaries.  The other problems are: (1) with character
    width 9, characters near the cursor are moved into the graphics range
    and thus distorted if any of their 8th bits is set; (2) conflicts with
    national characters in the graphics range.
    
    The default range for the graphics cursor characters is now 8-11.  This

    [26 lines not shown]

PC-BSD — sys/arm64/arm64 trap.c

    Restrict the arm64 supervisor all instructions to only allow a zero
    immediate value for system calls. We may wish to use other values in the
    future for other purposes.
    
    MFC after:        1 week
    Sponsored by:        DARPA, AFRL
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 317197 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+7 -2 sys/arm64/arm64/trap.c
+7 -2 1 file

PC-BSD — sys/dev/fb vesa.c

    Write-combine framebuffer writes through user-space mappings, if possible.
    
    Note that KVA mapping of the framebuffer already uses write-combining
    mode, so the change, besides improving speed of user mode writes, also
    satisfies requirement of the IA32 architecture of using consistent
    caching modes for multiple mappings of the same page.
    
    Reported and tested by:        bde
    Sponsored by:        The FreeBSD Foundation
    MFC after:         1 week
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 317196 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+3 -0 sys/dev/fb/vesa.c
+3 -0 1 file

PC-BSD — sys/dev/ofw ofw_cpu.c

    Update comment ot reflect realilty, we know also take care of CPUs that
    provide a enable-method.
    
    Suggested by:        jhibbits
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 317195 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+2 -1 sys/dev/ofw/ofw_cpu.c
+2 -1 1 file

PC-BSD — sys/dev/watchdog watchdog.c

Some cosmetic polishing for pre-timeouts.

MFC after:        1 week

(cherry picked from commit e19bbf0589d11bb36bf7fdf1a5909e447082289b)
Delta File
+3 -4 sys/dev/watchdog/watchdog.c
+3 -4 1 file

PC-BSD — sys/conf kmod.mk

Merge remote-tracking branch 'freebsd/stable/11' into freenas/11-stable
∈ bdrewery - da81fb1e - 2017-04-19 17:32:32
MFC r316533:

  Support assym.s in DPSRCS to depend on it but not link it in.
Delta File
+1 -1 sys/conf/kmod.mk
+1 -1 1 file

PC-BSD — sys/modules/dtrace/dtrace Makefile

MFC r316534:

  Stop building assym.o into the module.

PC-BSD — sys/conf files.amd64 files.i386, sys/libkern crc32.c

MFC r313006 (by cem), r315983 (by bde):
Add an SSE4.2 implementation of crc32 for x86.

PC-BSD — sys/arm64/arm64 swtch.S

MFC 313772:

Load the new sp_el0 with interrupts disabled in fork_trampoline. If an
interrupt arrives in fork_trampoline after sp_el0 was written we may then
switch to a new thread, enter userland so change this stack pointer, then
return to this code with the wrong value. This fixes this case by moving
the load of sp_el0 until after interrupts have been disabled.
Delta File
+6 -7 sys/arm64/arm64/swtch.S
+6 -7 1 file

PC-BSD — sys/conf ldscript.arm64

MFC 305355:

Explicitly include all .rodata.* sections in the kernel .rodata. This
helps link the kernel with lld as it will then put all these into a single
.rodata section.
Delta File
+1 -1 sys/conf/ldscript.arm64
+1 -1 1 file

PC-BSD — sys/boot/mips/uboot ldscript.mips, sys/conf ldscript.sparc64 ldscript.amd64

MFC r303442, r305343: remove CONSTRUCTORS from linker scripts

r303442: remove CONSTRUCTORS from kernel linker scripts

r305343: remove CONSTRUCTORS from MIPS uboot linker script

The linker script CONSTRUCTORS keyword is only meaningful "when linking
object file formats which do not support arbitrary sections, such as
ECOFF and XCOFF"[1] and is ignored for other object file formats.

LLVM's lld does not yet accept (and ignore) CONSTRUCTORS, so just remove
CONSTRUCTORS from the linker script as it has no effect.

[1] https://sourceware.org/binutils/docs/ld/Output-Section-Keywords.html

Reported by:        andrew
Sponsored by:        The FreeBSD Foundation

PC-BSD — share/mk bsd.stand.mk, sys/boot/efi Makefile.inc

Fix the arm64 userland building with lld:

MFC 308124:
 On arm64 build the efi loader with -fPIC. Without this clang 3.9 will
 generate relocation in the self relocation code.

MFC 316608:
 Add -fPIC to the standalone build flags on arm64. This is needed as
 loader.efi is position independend, however we were not building it as
 such causing a build failure when building with lld.

MFC 315452:
 Mark the EFI PE header as allocated. While ld.bfd doesn't seem to care
 about not having this flag ld.lld fails to link without it.

PC-BSD — sys/fs/nfsclient nfs_clbio.c

MFC r316532:
Make nfs pageout coherent with the dirty state of the buffers.
Delta File
+9 -28 sys/fs/nfsclient/nfs_clbio.c
+9 -28 1 file

PC-BSD — sys/fs/nfsclient nfs_clbio.c

MFC r316531:
Handle nfs IO_ASYNC write requests asynchronously.
Delta File
+1 -1 sys/fs/nfsclient/nfs_clbio.c
+1 -1 1 file

PC-BSD — sys/fs/nfsclient nfs_clvnops.c nfs_clbio.c

MFC r316529:
Handle possible vnode reclamation after ncl_vinvalbuf() call.

PC-BSD — lib/libc/gen sysconf.c

MFC r316739:
Fix reporting of _SC_SEM_NSEMS_MAX and _SC_SEM_VALUE_MAX.
Delta File
+3 -6 lib/libc/gen/sysconf.c
+3 -6 1 file

PC-BSD — sys/dev/hyperv/storvsc hv_storvsc_drv_freebsd.c, sys/dev/hyperv/utilities hv_kvp.c

MFC 316813,316815

316813
    hyperv/storvsc: Use ULL for 64bits value shift.

    Reported by:    PVS
    Sponsored by:   Microsoft

316815
    hyperv/kvp: Remove always false condition.

    Reported by:    PVS
    Sponsored by:   Microsoft

PC-BSD — sys/conf files.amd64, sys/dev/hyperv/input hv_kbd.c hv_kbdc.c

MFC 316515,316812

316515
    hyperv/kbd: Add support for synthetic keyboard.

    Synthetic keyboard is the only supported keyboard on GEN2 Hyper-V.

    Submitted by:   Hongjiang Zhang <honzhan microsoft com>
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D10196

316812
    hyperv/kbd: Remove unnecessary assignment.

    Reported by:    PVS
    Sponsored by:   Microsoft

PC-BSD — sys/dev/qlnx/qlnxe qlnx_os.c

MFC r316747
Fix rss_ind_table entry for num_funcs > 1
Delta File
+1 -1 sys/dev/qlnx/qlnxe/qlnx_os.c
+1 -1 1 file

PC-BSD — sys/dev/qlnx/qlnxe qlnx_os.c bcm_osal.h

MFC r316720
Fix defects reported by Coverity
  1. Deadcode in ecore_init_cache_line_size(), qlnx_ioctl() and
          qlnx_clean_filters()
  2. ARRAY_VS_SINGLETON issue in qlnx_remove_all_mcast_mac() and
          qlnx_update_rx_prod()

PC-BSD — share/man/man4 qlnxe.4 Makefile, sys/conf files.amd64

MFC r316485
  Add 25/40/100Gigabit Ethernet Driver version v1.3.0 for Cavium Inc's.
  Qlogic 45000 Series Adapters

PC-BSD — share/man/man4 qlxgbe.4

MFC r316310
Update man page for commit r316309 "Add support for optional Soft LRO".
The driver provides the ability to select either HW or Software LRO, when
LRO is enabled (default HW LRO).
Delta File
+2 -1 share/man/man4/qlxgbe.4
+2 -1 1 file

PC-BSD — sys/dev/qlxgbe ql_hw.c ql_isr.c

MFC r316309
Add support for optional Soft LRO

PC-BSD — sys/dev/hyperv/vmbus hyperv.c

MFC 317107
    hyperv: Use kmem_malloc for hypercall memory due to NX bit change.

    Reported by:    dexuan@
    Sponsored by:   Microsoft
Delta File
+19 -12 sys/dev/hyperv/vmbus/hyperv.c
+19 -12 1 file

PC-BSD — sys/netinet ip_input.c in.h

MFC r316715:
  Make sysctl identifiers for direct netisr queue unique.
  Introduce IPCTL_INTRDQMAXLEN and IPCTL_INTRDQDROPS macros for this purpose.

  Reviewed by:        gnn
  Differential Revision:        https://reviews.freebsd.org/D10358
Delta File
+4 -4 sys/netinet/ip_input.c
+2 -0 sys/netinet/in.h
+6 -4 2 files

PC-BSD — sys/net if_vlan.c

MFC r316716:
  Inherit IPv6 checksum offloading flags to vlan interfaces.

  if_vlan(4) interfaces inherit IPv4 checksum offloading flags from the
  parent when VLAN_HWCSUM and VLAN_HWTAGGING flags are present on the
  parent interface. Do the same for IPv6 checksum offloading flags.

  Reported by:        Harry Schmalzbauer
  Reviewed by:        np, gnn
  Differential Revision:        https://reviews.freebsd.org/D10356
Delta File
+6 -3 sys/net/if_vlan.c
+6 -3 1 file

PC-BSD — sys/dev/ahci ahci_pci.c ahci.c

Block FPDMA TRIM for ASMedia HBAs.

Experiments show FPDMA TRIM command timeouts on ASMedia HBAs, while the
same SSDs working fine on Intel HBAs.

(cherry picked from commit 1384f37b768f0b9971a49238eb7cea0c1acecc6c)

Ticket:        #22331

PC-BSD — lib/libc/gen telldir.c

add mav's change reviewed here:
Fixes telldir()'s n^2 runtime vs.  very large directories.
References:
https://bugs.freenas.org/issues/20820#change-124206
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218622
https://reviews.freebsd.org/D10408

(cherry picked from commit d3d580240fd3fb908860bc542b0c827b6e64ec60)
Delta File
+14 -4 lib/libc/gen/telldir.c
+14 -4 1 file

PC-BSD — lib/libc/gen telldir.c

add mav's change reviewed here:
Fixes telldir()'s n^2 runtime vs.  very large directories.
References:
https://bugs.freenas.org/issues/20820#change-124206
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218622
https://reviews.freebsd.org/D10408
Delta File
+14 -4 lib/libc/gen/telldir.c
+14 -4 1 file

PC-BSD — lib/libc/gen telldir.c

add mav's change reviewed here:
Fixes telldir()'s n^2 runtime vs.  very large directories.
References:
https://bugs.freenas.org/issues/20820#change-124206
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218622
https://reviews.freebsd.org/D10408
Delta File
+14 -4 lib/libc/gen/telldir.c
+14 -4 1 file

PC-BSD — usr.sbin/arp arp.c arp.8

Merge branch 'stable/11' of https://github.com/freebsd/freebsd into freenas/11-stable
∈ garga - 1b553f0b - 2017-04-17 13:01:42
MFC r316592:

Introduce libxo support to arp(8)

Reviewed by:        wblock, gnn, allanjude, phil
Approved by:        allanjude
Sponsored by:        Rubicon Communications (Netgate)
Differential Revision:        https://reviews.freebsd.org/D9563
Delta File
+88 -52 usr.sbin/arp/arp.c
+12 -1 usr.sbin/arp/arp.8
+2 -0 usr.sbin/arp/Makefile
+102 -53 3 files

PC-BSD — lib/libc/gen telldir.c

mavi uses list in a way that does not incur n^2
Delta File
+14 -4 lib/libc/gen/telldir.c
+14 -4 1 file

PC-BSD — lib/libc/gen telldir.c

Revert "It builds; wow."
Better solution provided, standbuy.

This reverts commit 92873f3190c830302143d759411b23bd719b0ba2.
Delta File
+1 -22 lib/libc/gen/telldir.c
+1 -22 1 file

PC-BSD — lib/libc/gen telldir.c

It builds; wow.
 I owe an explanation  about why I'm reverting this posix libc change.
Delta File
+22 -1 lib/libc/gen/telldir.c
+22 -1 1 file