Displaying 1 50 of 288,525 commits (0.028s)

FreeBSD — head/sys/x86/x86 identcpu.c

Correct the number of DTLB entries reported for the CPUID Leaf 2
descriptor 0x6c.

Confirmed by:        Intel
MFC after:        3 days
Delta File
+1 -1 head/sys/x86/x86/identcpu.c
+1 -1 1 file

FreeBSD — head/sys/dev/isp isp.c isp_target.c


New name better repsents its meaning for modern chips.

FreeBSD — head/sys/dev/usb/wlan if_urtwn.c if_urtwnvar.h

urtwn(4): rework ROM reading.

- Add error handling for urtwn_(r88e_)read_rom() and
urtwn_efuse_*() functions.
- Remove code duplication between urtwn_efuse_read() and
- Merge r88e_rom and (r92c_)rom structures
(only one of them can be used at the same time).
- Other minor fixes / improvements.

Tested with RTL8188EU, STA mode
(URTWN_DEBUG + USB_DEBUG, hw.usb.urtwn.debug=3, no visual differences).

Reviewed by:        kevlo
Approved by:        adrian (mentor)
Differential Revision:        https://reviews.freebsd.org/D4253

FreeBSD — head/sys/dev/ntb/ntb_hw ntb_hw.c

ntb: Add MW tunable for MMR Xeon errata workaround

Adds a new tunable, ntb.hw.b2b_mw_idx, which specifies the offset (from the
total number of memory windows) to use for register access on hardware with
the SDOORBELL_LOCKUP errata.  The default is -1, i.e., the last memory

We map BARs before the b2b_mw_idx is selected, so map them all as memory
windows initially.  The register memory window should not be write-combined,
so we explicitly disable WC on the selected MW later.

This introduces a layer of abstraction between consumer memory window
indices, which exclude any exclusive errata-workaround BARs, and internal
memory window indices, which include such BARs.  An internal routine,
ntb_user_mw_to_idx(), converts the former to the latter.  Public APIs have
been updated to use this instead of assuming the exclusive workaround BAR is
the last available MW.

Sponsored by:        EMC / Isilon Storage Division
Delta File
+57 -29 head/sys/dev/ntb/ntb_hw/ntb_hw.c
+57 -29 1 file

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

Use what we really mean (powerpc_lwsync()) rather than the Linux-compat
mb() here and provide some more documentation on what, exactly, makes this
code safe.

Requested by and discussed with:        kib, alc
Delta File
+8 -2 head/sys/powerpc/aim/slb.c
+8 -2 1 file

FreeBSD — head/crypto/openssh session.c

Revert inadvertent commit of an incorrect patch
Delta File
+1 -2 head/crypto/openssh/session.c
+1 -2 1 file

FreeBSD — head/crypto/openssh session.c sshd_config

Remove description of the now-defunct NoneEnabled option.

FreeBSD — head/usr.bin/netstat inet.c

Correct alignment of the addresses in the `netstat -aW' output.
Delta File
+21 -12 head/usr.bin/netstat/inet.c
+21 -12 1 file

FreeBSD — head/sys/arm/arm pmap-v6-new.c, head/sys/arm/include sf_buf.h

Flush all kernel mappings from TLB(s) in time when they are cleared.
Replace tlb_flush_local() by tlb_flush() as even not global mappings
could be fetched to TLB(s) on other cores by speculative table walk.

From OS point of view, it was not a problem as either such mappings
were not used anymore or they were flushed from TLB(s) when reused.
However, from hardware point of view, it was a problem. Not flushed
mappings could be a target for speculative reads or prefetches (which
might be quite aggresive on ARM cores). As speculative read can fill
cacheline, it can cause a real problem, when physical page is reused,
but mapped with different memory attributes.

Anyhow, it's good to have only valid mappings in TLB(s).

Approved by:        kib (mentor)

FreeBSD — head/usr.bin/calendar/calendars calendar.freebsd

Add myself (lidl) to the calendar.freebsd file.

Approved by:        rpaulo (mentor)
Differential Revision:        https://reviews.freebsd.org/D4264

FreeBSD — stable/8/sys/dev/usb/input ukbd.c

MFC r291146:
Add support for Kana and Eisu keys to the USB keyboard driver.

PR:                204709
Delta File
+8 -2 stable/8/sys/dev/usb/input/ukbd.c
+8 -2 1 file

FreeBSD — stable/9/sys/dev/usb/input ukbd.c

MFC r291146:
Add support for Kana and Eisu keys to the USB keyboard driver.

PR:                204709
Delta File
+8 -2 stable/9/sys/dev/usb/input/ukbd.c
+8 -2 1 file

FreeBSD — stable/10/sys/dev/usb/input ukbd.c

MFC r291146:
Add support for Kana and Eisu keys to the USB keyboard driver.

PR:                204709

FreeBSD — stable/10/usr.sbin/bluetooth/bthidd kbd.c

MFC r291145:
Fix scancodes for Kana and Eisu keys.

PR:                204709

FreeBSD — stable/8/sys/dev/usb usb_busdma.c

MFC r290326:
Relax the BUS_DMA_KEEP_PG_OFFSET requirement to allow optimising
allocation of DMA bounce buffers.

Discussed with:        ian @
Delta File
+6 -2 stable/8/sys/dev/usb/usb_busdma.c
+6 -2 1 file

FreeBSD — stable/9/sys/dev/usb usb_busdma.c

MFC r290326:
Relax the BUS_DMA_KEEP_PG_OFFSET requirement to allow optimising
allocation of DMA bounce buffers.

Discussed with:        ian @
Delta File
+6 -2 stable/9/sys/dev/usb/usb_busdma.c
+6 -2 1 file

FreeBSD — stable/10/sys/dev/usb usb_busdma.c

MFC r290326:
Relax the BUS_DMA_KEEP_PG_OFFSET requirement to allow optimising
allocation of DMA bounce buffers.

Discussed with:        ian @

FreeBSD — head/sys/ofed/include/rdma ib_pma.h

Add some defines needed by the coming mlx5 infiniband support.

Sponsored by:        Mellanox Technologies
MFC after:        1 week
Delta File
+19 -0 head/sys/ofed/include/rdma/ib_pma.h
+19 -0 1 file

FreeBSD — stable/10/sys/dev/ixl i40e_common.c i40e_nvm.c

MFC r277082:

Update to the shared code for Intel I40E drivers (by jfv)

Sponsored by:        Multiplay

FreeBSD — head/usr.bin/netstat main.c

Add missing error check after xo_parse_args() in netstat(8).

Submitted by:        Oliver Pinter
Differential Revision:        https://reviews.freebsd.org/D4233
Delta File
+2 -0 head/usr.bin/netstat/main.c
+2 -0 1 file

FreeBSD — head/sys/arm64/arm64 pmap.c, head/sys/arm64/include vmparam.h

Add support for moving the DMAP range. This is needed as some AMD SoCs
place physical memory at an address outside the old DMAP range. This is an
issue as we rely on being able to move from PA -> VA using this range.

Obtained from:        Patrick Wildt <patrick at bitrig.org> (earlier version)
Sponsored by:        ABT Systems Ltd
Differential Revision:        https://reviews.freebsd.org/D3885

FreeBSD — user/ngie/more-tests2/sbin/geom/class/tests/eli Makefile

Increase the timeout for onetime_test and onetime_a_test to 10 minutes

FreeBSD — head/sys/kern vfs_subr.c

Rework the vnode cache recycling to meet free and unused vnodes
targets.  See the comment above wantfreevnodes variable for the
description of the algorithm.

The vfs.vlru_alloc_cache_src sysctl is removed.  New code frees
namecache sources as the last chance to satisfy the highest watermark,
instead of selecting the source vnodes randomly. This provides good
enough behaviour to keep vn_fullpath() working in most situations.
The filesystem layout with deep trees, where the removed knob was
required, is thus handled automatically.

Submitted by:        bde
Discussed with:        mckusick
Tested by:        pho
MFC after:        1 month
Delta File
+233 -83 head/sys/kern/vfs_subr.c
+233 -83 1 file

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

Belatedly bump __FreeBSD_version after r291215

Due to the change in args for g_dev_setdumpdev by r291215 belatedly bump
__FreeBSD_version to allow any potential consumers to check for this, as
requested by delphij.

This is a direct commit to stable/10

Approved by:        so (delphij)
Sponsored by:        Multiplay
Delta File
+1 -1 stable/10/sys/sys/param.h
+1 -1 1 file

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

On PowerPC 64bit, the linux-compat mb() definition is implemented with
lwsync instruction, which does not provide Store/Load barrier.  Fix
this by using "full" sync barrier for mb().

atomic_store_rel() does not need full barrier, change mb() call there
to the lwsync instruction if not hitting the known CPU erratas
(i.e. on 32bit).  Provide powerpc_lwsync() helper to isolate the
lwsync/sync compile time selection, and use it in atomic_store_rel()
and several other places which duplicate the code.

Noted by:        alc
Reviewed and tested by:        nwhitehorn
Sponsored by:        The FreeBSD Foundation
Delta File
+17 -18 head/sys/powerpc/include/atomic.h
+17 -18 1 file

FreeBSD — user/ngie/more-tests2/sbin/geom/core/tests run_test.sh

Do some incremental work trying to improve the test script

Unfortunately it seems that phk broke how labels/partitions were created
in r113434 and the gap was never completed, so these testcases are broken.

Exit early

FreeBSD — user/ngie/more-tests2/sbin/geom/core/tests/MdLoad MdLoad.c

Catch relevant errors

FreeBSD — stable/10/sys/dev/xen/blkfront blkfront.c, stable/10/sys/dev/xen/netfront netfront.c

MFC r286999:

xen: allow disabling PV disks and nics

Sponsored by: Citrix Systems R&D

FreeBSD — head/share/man/man4 cdce.4 kue.4, head/sys/conf files NOTES

Add dependency to uether.

Reviewed by:        hselasky

FreeBSD — user/ngie/more-tests2/sbin/geom/core/tests/Ref disk.msdos.ext.xml disk.typo.ad0.xml

- Account for stripesize/stripeoffset in diskinfo output
- Remove c partitions from output (/dev/md32c was an alias for
  /dev/md32 that was deprecated in 8.x)

FreeBSD — user/ngie/more-tests2 ObsoleteFiles.inc, user/ngie/more-tests2/bin/rmail Makefile.depend

MFhead @ r291235

FreeBSD — head/bin/rmail Makefile.depend, head/contrib/sendmail/include/sm conf.h

Remove unneeded libutil dependency for sendmail.

It included libutil.h for setproctitle(3), which was moved from libutil to libc
in r65353 in 2000.

Reviewed by:        gshapiro [sendmail change]
Sponsored by:        EMC / Isilon Storage Division
Differential Revision:        https://reviews.freebsd.org/D4261

FreeBSD — head/usr.bin/bc bc.y

bc(1): Fix memory corruption issues

Fix crashes and hangs found by AFL.
Improve handling of non-ascii chars.

Obtained from:        OpenBSD (CVS rev 1.49)
Delta File
+14 -9 head/usr.bin/bc/bc.y
+14 -9 1 file

FreeBSD — head/sys/conf files, head/sys/dev/ath if_ath.c if_ath_descdma.c

[ath] migrate ioctl and busdma memory operations out into separate source files.

This should be a big no-op pass; and reduces the size of if_ath.c.

I'm hopefully soon going to take a whack at the USB support for ath(4)
and this'll require some reuse of the busdma memory code.

FreeBSD — projects/cxl_iscsi/sys/dev/cxgbe/cxgbei cxgbei.c icl_cxgbei.c, projects/cxl_iscsi/sys/dev/cxgbe/tom t4_tom.h

cxgbe/cxgbei: Various changes in the rx path.

- In the iSCSI CPL handlers, do not rely on the ulpcb/icl_conn when in
  the middle of assembling a PDU.  This is so we don't have to grab
  various locks and evaluate the kernel state of the connection multiple
  times.  Instead, the state is evaluated once after the entire PDU is
  received.  This requires another ULP specific item in toepcb (ulpcb2).

- If there is data in the so_rcv sockbuf of a connection in iSCSI ULP
  mode it must be from before the connection got promoted to ULP mode.
  Convert the contents of the sockbuf to PDUs and deliver them to ICL.
  Do this before delivering the PDUs received on the "normal" ULP path.

- The receive path within ICL is allowed to sleep so it's not
  appropriate to deliver PDUs to ICL from the driver's ithread, or from
  any other thread with any mutex held.  Use worker threads (created
  back in r285650 but unused till now) to dispatch received PDUs to ICL.
  Assign a worker thread to each connection.  For now everything goes to
  the first thread.

- Prevent various bad races that are possible when more than one of
  a) rx ithread, b) worker thread, and c) icl_conn_close are active at
  the same time.

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

Compute the median of the data set as the midpoint between the two middle
values when the data set has an even number of elements.

PR:                201582
Submitted by:        Marcus Reid <marcus at blazingdot.com>
Reviewed by:        imp
Approved by:        bapt (mentor)
Delta File
+4 -2 head/usr.bin/ministat/ministat.c
+4 -2 1 file

FreeBSD — head/usr.sbin Makefile

Connect ypldap(8) to the build.

Approved by:        bapt (mentor)
Delta File
+1 -0 head/usr.sbin/Makefile
+1 -0 1 file

FreeBSD — projects/cxl_iscsi/sys/dev/cxgbe/cxgbei icl_cxgbei.c cxgbei.c

Allow an icl_cxgbei_pdu to be allocated without being associated
with an icl_conn right at the time of allocation.

FreeBSD — projects/cxl_iscsi/sys/dev/iscsi iscsi.c

Do not generate PDUs with payload greater than max_data_segment_length.

It is perhaps preferable to have a separate limit for send instead of
reusing the receive limit.  I'll discuss with trasz@ and mav@ before
pulling this into head.

FreeBSD — projects/cxl_iscsi/sys/dev/iscsi iscsi.c

s/is->is_conn/ic to shorten things a bit.

FreeBSD — head/gnu/usr.bin/binutils/ld Makefile

Fix ld not respecting --sysroot.

ld(1) uses the /usr/libdata/ldscripts when linking. These scripts add in the
default search paths of /lib and /usr/lib via 'SEARCH_DIR("DIR")'. These
need to be prefixed by '=' so that the --sysroot flag is respected. This
is not a problem with buildworld since the TOOLS_PREFIX is baked into the
cross-ld. However it is a problem when trying to use ld(1) with --sysroot
anywhere else as it ends up still reading /lib and /usr/lib despite --sysroot.

The default --sysroot (TARGET_SYSTEM_ROOT) is '/' for /usr/bin/ld.

I found this while building with META MODE with uses only --sysroot with
/usr/bin/ld, and found that libraries that I had not built in its sysroot
directory were leaking in. This didn't happen with ports binutils either.  This
would also impact external compiler support.

Reviewed by:        bapt, brooks
MFC after:        2 weeks
Sponsored by:        EMC / Isilon Storage Division
Differential Revision:        https://reviews.freebsd.org/D4262

FreeBSD — head/sys/dev/pci pcireg.h pcivar.h, head/usr.sbin/pciconf pciconf.c pciconf.8

Add a new -B flag for use with list mode (-l) that lists details about
bridges.  Currently this includes information about what resources a
bridge decodes on the upstream side for use by downstream devices including
bus numbers, I/O port resources, and memory resources.  Windows and bus
ranges are enumerated for both PCI-PCI bridges and PCI-CardBus bridges.

To simplify the implementation, all enumeration is done by reading the
appropriate config space registers directly rather than querying the
bridge driver in the kernel via new ioctls.  This does result in a few

First, an unimplemented window in a PCI-PCI bridge cannot be accurately
detected as accurate detection requires writing to the window base
register.  That is not safe for pciconf(8).  Instead, this assumes that
any window where both the base and limit read as all zeroes is

Second, the PCI-PCI bridge driver in a tree has a few quirks for
PCI-PCI bridges that use subtractive decoding but do not indicate that
via the progif config register.  The list of quirks is duplicated in
pciconf's source.

Reviewed by:        imp
MFC after:        2 weeks
Differential Revision:        https://reviews.freebsd.org/D4171

FreeBSD — head ObsoleteFiles.inc

colldef(1) and mklocale(1) reappeared in r291115.
Delta File
+0 -4 head/ObsoleteFiles.inc
+0 -4 1 file

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

There seems to be no reason to duplicate CANONICALOBJDIR logic from bsd.obj.mk,
which is included for crunchgen builds.

No change in build output occurred with this change.

Sponsored by:        EMC / Isilon Storage Division
Delta File
+0 -7 head/share/mk/bsd.crunchgen.mk
+0 -7 1 file

FreeBSD — head/sys/netpfil/ipfw ip_fw_private.h ip_fw_sockopt.c

Add destroy_object callback to object rewriting framework.
It is called when last reference to named object is going to be released
and allows to do additional cleanup for implementation of named objects.

Obtained from:        Yandex LLC
Sponsored by:        Yandex LLC

FreeBSD — head/share/man/man4 isp.4, head/sys/dev/isp isp_pci.c isp_sbus.c

Remove "disable" hint, which duplicates system-wide "disabled".

FreeBSD — head/share/man/man4 Makefile

Revert r291170

The mlx5* driver(s) are built [*]/installed separate from the OFED stack thanks
to recent refactoring done in the linuxkpi(4) module.

Always install the manpages instead of conditionally installing them if
MK_OFED != no

* Further refactoring of sys/ofed and linuxkpi(4) is pending to fully divorce
  mlx5* from ofed headers

MFC after: never
Requested by: hps
Delta File
+2 -6 head/share/man/man4/Makefile
+2 -6 1 file

FreeBSD — head/sbin/newfs_msdos mkfs_msdos.c newfs_msdos.c

newfs_msdos: rework error handling for eventual use in makefs

Return -1 on errors from mkfs_msdos() instead of err()/errx(), to
allow different consumers to handle errors as appropriate.

Obtained from:        NetBSD
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sbin/newfs_msdos mkfs_msdos.h

Update $NetBSD$ ID

NetBSD mkfs_msdos.h rev 1.3 removed the no-endorsement clause from the
license block, which had already been done in the source I imported in

FreeBSD — head/sys/kern subr_witness.c

The buffer passed to an sbuf drain callback is not necessarily
null-terminated, so don't assume that it is.

Reported by:        pho
X-MFC-With:        r291059
Delta File
+1 -1 head/sys/kern/subr_witness.c
+1 -1 1 file