Displaying 1 50 of 297,786 commits (0.052s)

FreeBSD — head/sys/dev/ral rt2560.c rt2860.c

ral: switch to ieee80211_add_channel_list_*()

- Use device's channel list instead of default one (from
- Add ic_getradiocaps() method.

Added channels:
- 2GHz (all): 12, 13, 14.
- 5GHz:
 * rt2661: 165
 * rt2860: 38, 46, 54, 62, 102, 110, 118, 126, 134, 151, 159, 165, 167,
169, 171, 173.

Differential Revision:        https://reviews.freebsd.org/D6182

FreeBSD — head/sys/dev/usb/wlan if_zyd.c if_zydreg.h

zyd: switch to ieee80211_add_channel_list_*()

- Use device's channel list instead of default one (adds 12, 13 and 14
2GHz channels).
- Add ic_getradiocaps() method.

Differential Revision:        https://reviews.freebsd.org/D6171

FreeBSD — head/sys/dev/extres/regulator regulator_fixed.c, head/sys/dev/gpio gpiobus.c ofw_gpiobus.c

Rename gpiobus_map_pin() to gpiobus_acquire_pin(), to better reflect the
fact that the caller is requesting exclusive use of the pin, and also to
better match the inverse operation which is named gpiobus_release_pin().

FreeBSD — head/sys/dev/usb/wlan if_ural.c

ural: switch to ieee80211_add_channel_list_*()

- Use device's channel list instead of default one (+ 12, 13 and 14
2GHz channels).
- Add ic_getradiocaps() method.

Differential Revision:        https://reviews.freebsd.org/D6170
Delta File
+33 -7 head/sys/dev/usb/wlan/if_ural.c
+33 -7 1 file

FreeBSD — head/sys/dev/usb/wlan if_run.c if_runreg.h

run: switch to ieee80211_add_channel_list_*()

- Use device's channel list instead of default one (from
- Add ic_getradiocaps() method.

Differential Revision:        https://reviews.freebsd.org/D6144

FreeBSD — head/usr.sbin/extattr rmextattr.8

rmextattr(8) man page clarifications regarding -qq

Reviewed by:        ngie
MFC after:        6 days
X-MFC-With:        299085
Sponsored by:        Spectra Logic Corp
Differential Revision:        https://reviews.freebsd.org/D6422
Delta File
+2 -1 head/usr.sbin/extattr/rmextattr.8
+2 -1 1 file

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

Do libxo cleanup even in case of errors.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+3 -2 head/usr.bin/iscsictl/iscsictl.c
+3 -2 1 file

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

Make iscsictl(8) actually report non-zero status on errors.  The "failed"
is negative, because the error returned from calls to ioctl(2) is negative.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 head/usr.bin/iscsictl/iscsictl.c
+1 -1 1 file

FreeBSD — head/sys/dev/rtwn if_rtwn.c if_rtwnreg.h

rtwn: replace hardcoded rate indices with their names (similar to r289758).

- Use macros to define rate indices; don't hardcode them in code.
- Add method for 'rate' -> 'rate index' conversion
(and array for the opposite).
- Determine if rate is CCK / OFDM via appropriate macro.

Reviewed by:        adrian
Differential Revision:        https://reviews.freebsd.org/D4837

FreeBSD — projects/vnet/sys/net if.c

Rather than just protecting the removal from the list, also protect
the check even if it means we may lock and unlock without doing any
work, plugging possible race condition in a rarely exercised path of

Sponsored by:        The FreeBSD Foundation
Delta File
+3 -2 projects/vnet/sys/net/if.c
+3 -2 1 file

FreeBSD — projects/vnet/sys/net if.c

Revert the movement of if_afdata_initialized to after we do the actual
work and keep it before under the same lock.  The possible race condition
exists one way or antoher due to unlocking but in if_detach_internal() we
do check for if_afdata[] to not be NULL before trying to free, so not
extra harm is done.

Sponsored by:        The FreeBSD Foundation
Delta File
+1 -4 projects/vnet/sys/net/if.c
+1 -4 1 file

FreeBSD — head/usr.bin/ar write.c

Make code compile when basename() is POSIX compliant.

In addition to the previous change I made to ar.c, pull in another
basename() related fix. This change is similar to the one made to the
ELF Toolchain version of ar, with the difference that the ELF Toolchain
version lacks error handling for the strdup() call.

Reviewed by:        emaste
Differential Revision:        https://reviews.freebsd.org/D6467
Delta File
+6 -1 head/usr.bin/ar/write.c
+6 -1 1 file

FreeBSD — projects/vnet Makefile.inc1 UPDATING, projects/vnet/bin/ed io.c cbc.c

MfH @rr300739

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/dev/sfxge/common ef10_filter.c

sfxge(4): correct parenthesis location in if coundition

Found by lint on illumos.

Submitted by:   Garrett D'Amore <garrett at damore.org>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

FreeBSD — head/sbin/ifconfig ifieee80211.c, head/sys/net80211 ieee80211_regdomain.c

ifconfig: set by default FCC regulatory domain for wireless interfaces.

Change default regulatory domain from DEBUG (no limitations;
exposes all device channels) to FCC; as a result, newly created wireless
interface with default settings will have less chances to violate
country-specific regulations.

This change will not affect drivers with pre-initialized regdomain
structure (currentry ath(4) and mwl(4)); in that case, the default
channel list must correspond to the default regdomain / country setting.

You can switch to another regdomain / country via corresponding
ifconfig(8) options; the driver must implement ic_getradiocaps()
method to restore full channel list.

Full country / regdomain list may be obtained via
'ifconfig <iface> list countries' command.

Example: change country to Germany:
ifconfig wlan0 down        # all wlans on the device must be down
ifconfig wlan0 country DE
ifconfig wlan0 up
# wpa_supplicant(8), dhclient(8) etc

At the creation time:

    [12 lines not shown]

FreeBSD — head/sys/dev/iscsi iscsi.c

Add a special case for iSER data tranfers.

Obtained from:        Mellanox Technologies
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+17 -0 head/sys/dev/iscsi/iscsi.c
+17 -0 1 file

FreeBSD — stable/10/sys/dev/mrsas mrsas.c mrsas_cam.c

MFC r299666 - r299672

r299666: Takes care of any firmware command timeout scenarios by initiating OCR.
r299667: Similar to RAID map for Logical Drives, now JBOD map has been introduced
r299668: This patch implements driver support for 1MB IO size.
r299669: Implemented interrupt Config Hook in mrsas(4) to defer some of the tasks, like:
registering AEN, creating cdev.
r299670: Added support for Avago Intruder controller.
r299671: bugs fixed as part of this patch in kdump and some NULL pointer dereference
r299672: Version update patch.

Sponsored by:   AVAGO Technologies/ Broadcom Limited

FreeBSD — head/usr.sbin/bsdinstall/scripts netconfig_ipv4

bsdinstall: unbreak static address assignment for wired networks.

This fixes regression introduced in r298946 (fixes static address
assignment for wireless networks).

Reported & submitted by:        allanjude

FreeBSD — head/sys/dev/iser icl_iser.c

Fix crash on removal of an unconnected iSER session.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+3 -0 head/sys/dev/iser/icl_iser.c
+3 -0 1 file

FreeBSD — head/sys/netinet sctp_usrreq.c sctp_uio.h

Make struct sctp_paddrthlds compliant to RFC 7829.

FreeBSD — head/sys/dev/iwn if_iwn.c if_iwnvar.h

iwn: add watchdog for scanning.

Restart device if scanning was not done in time.

Tested by:        david at catwhisker.org

PR:                209198
Differential Revision:        https://reviews.freebsd.org/D6176

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

Use optimised complexity safe sorting routine instead of the kernel's

The kernel's "qsort()" routine can in worst case spend O(N*N) amount of
comparisons before the input array is sorted. It can also recurse a
significant amount of times using up the kernel's interrupt thread

The custom sorting routine takes advantage of that the sorting key is
only 64 bits. Based on set and cleared bits in the sorting key it
partitions the array until it is sorted. This process has a recursion
limit of 64 times, due to the number of set and cleared bits which can
occur. Compiled with -O2 the sorting routine was measured to use
64-bytes of stack. Multiplying this by 64 gives a maximum stack
consumption of 4096 bytes for AMD64. The same applies to the execution
time, that the array to be sorted will not be traversed more than 64

When serving roughly 80Gb/s with 80K TCP connections, the old method
consisting of "qsort()" and "tcp_lro_mbuf_compare_header()" used 1.4%
CPU, while the new "tcp_lro_sort()" used 1.1% for LRO related sorting
as measured by Intel Vtune. The testing was done using a sysctl to
toggle between "qsort()" and "tcp_lro_sort()".

Differential Revision:        https://reviews.freebsd.org/D6472

    [3 lines not shown]

FreeBSD — stable/10/sys/dev/mrsas mrsas.c mrsas.h

MFC r284872 - 284873

r284872: Kernel panic may be observed by user, if MR controller is under Chip reset (OCR)

r284873: Counter part of mfi driver commit in mrsas  gracefully fail,
         if the /dev/megaraid_sas_ioctl_node symlink already exists

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

wpi: refresh manpage.

Reflect all recent changes in the manpage:
- add adhoc-demo and hostap into list of supported modes;
add few examples for them;
- mention encryption/decryption offload for CCMP cipher;
- extend list of driver messages in the DIAGNOSTICS;
- document hostap mode limitations / powersave instability
in the CAVEATS section.

Differential Revision:        https://reviews.freebsd.org/D5149
Delta File
+87 -13 head/share/man/man4/wpi.4
+87 -13 1 file

FreeBSD — head/sys/arm/allwinner aw_usbphy.c a10_ehci.c, head/sys/dev/usb/controller generic_ohci.c

Enable USB PHY regulators when requested by the host controller driver.

Previously the USB PHY driver would enable all regulators at attach time.
This prevented boards from booting when powered by the USB OTG port, as
it didn't take VBUS presence into consideration.

FreeBSD — head/sys/dev/iser icl_iser.c iser_initiator.c

Make iser(4) buildable again by adjusting it for the recent changes
in ICL interface.

 - the ordering of parameters to icl_conn_task_setup is different, so that
   the "cookie" is last.
 - the icl_conn_connected() method is gone, replaced by much simpler mechanism.
   I'd rather keep the ICL interface as small as possible.
 - I don't really like the s/offload/driver/g.  The "tcp" is not a driver;
   "iser" is not really a driver either.  I'd prefer to leave it as it is.
 - the check for ic_session_type_discovery() in iser_conn_handoff() is gone,
   as handoff cannot happen for discovery sessions.
 - ic_session_login_phase() and ic_session_type_discovery() are gone.  If you
   had your handoff method called - you're no longer in either of those.
 - the way maxtags is passed is different; now it's simply ic->ic_maxtags.
   It's cleaner, and the old way would cause weird things to happen if
   fail_on_disconnection=1 and the user changed the maxtags sysctl before
   reconnecting (basically the CAM idea of maxtags would be different from
   iSER one).
 - icl_hba_misc() is gone; declare support for PIM_UNMAPPED by setting
   ic->ic_unmapped flag.
 - the way we find the "iser" ICL module is rewritten - we have a flag
   for icl_register() that says if the module is iSER-capable or not.
 - icl_conn_release() is gone; iser_conn_release() is called from
   iser_conn_free() (no functional change in this case) and at the beginning
   of icl_conn_connect(), to handle reconnection.

    [3 lines not shown]

FreeBSD — head/sys/riscv/include setjmp.h

Increase the size and alignment of the setjmp buffer.
This is required for future CPU extentions.

Reviewed by:        brooks
Sponsored by:        DARPA, AFRL
Sponsored by:        HEIF5
Delta File
+3 -3 head/sys/riscv/include/setjmp.h
+3 -3 1 file

FreeBSD — head/sys/compat/linuxkpi/common/include/asm atomic-long.h

Define ATOMIC_LONG_INIT() in the LinuxKPI.

Obtained from:        kmacy @
MFC after:        1 week
Sponsored by:        Mellanox Technologies

FreeBSD — head/sys/dev/iser iser_verbs.c

The taskqueue_enqueue_fast() was removed in r296272.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 head/sys/dev/iser/iser_verbs.c
+1 -1 1 file

FreeBSD — head/sys/dev iser, head/sys/dev/iser iser_verbs.c icl_iser.c

Bring in the Mellanox implementation of iSER (iSCSI over RDMA) initiator,
written by Sagi Grimberg <sagig at mellanox.com> and Max Gurtovoy
<maxg at mellanox.com>.

This code comes from https://github.com/sagigrimberg/iser-freebsd, branch
iser-rebase-11-current-r291993.  It's not connected to the build just yet;
it still needs some tweaks to adapt to my changes to iSCSI infrastructure.

Big thanks to Mellanox for their support for FreeBSD!

Obtained from:        Mellanox Technologies
MFC after:        1 month
Relnotes:        yes

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

Only calibrate ICR read loop when not in x2APIC mode.  Run-time
switching between LAPIC modes is not supported, and there is no need
to wait for IPI ack in x2APIC mode.  So the calibrated delay is only
needed for !x2APIC.

This saves around a second of boot time on the real hardware for

Sponsored by:        The FreeBSD Foundation
Delta File
+15 -13 head/sys/x86/x86/local_apic.c
+15 -13 1 file

FreeBSD — head/sys/compat/linuxkpi/common/include/linux moduleparam.h

Add support for runtime modifiable module parameters in the LinuxKPI.

Linux module parameters have a permissions value. If any write bits
are set we are allowed to modify the module parameter runtime. Reflect
this when creating the static SYSCTL nodes.

Sponsored by:        Mellanox Technologies
MFC after:        1 week

FreeBSD — head/sys/compat/linuxkpi/common/include/linux moduleparam.h

Add more module parameter macros to the LinuxKPI.

Obtained from:        kmacy @
Sponsored by:        Mellanox Technologies

FreeBSD — head/sys/compat/linuxkpi/common/include/linux moduleparam.h

Add support for boolean module parameters in the LinuxKPI.

Requested by:        kmacy @
Sponsored by:        Mellanox Technologies

FreeBSD — head/sys/kern kern_sysctl.c, head/sys/sys sysctl.h

Add support for boolean sysctl's.

Because the size of bool can be implementation defined, make a bool
sysctl handler which handle bools. Userspace sees the bools like
unsigned 8-bit integers. Values are filtered to either 1 or 0 upon
read and write, similar to what a compiler would do.

Requested by:        kmacy @
Sponsored by:        Mellanox Technologies

FreeBSD — user/pho/stress2/misc core3.sh

Added comment about problem found.

Sponsored by:        EMC / Isilon Storage Division
Delta File
+3 -0 user/pho/stress2/misc/core3.sh
+3 -0 1 file

FreeBSD — user/pho/stress2/misc pthread6.sh

Note that "SIGABRT" is to be expected. Remove redundant rm(1).

Sponsored by:        EMC / Isilon Storage Division
Delta File
+1 -1 user/pho/stress2/misc/pthread6.sh
+1 -1 1 file

FreeBSD — head/sys/conf files, head/sys/dev/gpio gpiospi.c

[gpiospi] add initial gpio SPI bit bang driver.

Submitted by:        ray
Obtained from:        zrouter
Delta File
+402 -0 head/sys/dev/gpio/gpiospi.c
+41 -0 head/sys/modules/gpio/gpiospi/Makefile
+1 -0 head/sys/conf/files
+0 -0 head/sys/modules/gpio/gpiospi/
+444 -0 4 files

FreeBSD — head/contrib/top FREEBSD-upgrade

The readme provides a high-level overview of how to upgrade top(1).

Differential Revision: https://reviews.freebsd.org/D6493
MFC after: 1 week
Reviewed By: ngie
Submitted by: Randy Westlund <rwestlun at gmail.com>
Sponsored by: EMC / Isilon Storage Division
Delta File
+22 -0 head/contrib/top/FREEBSD-upgrade
+22 -0 1 file

FreeBSD — head/sys/conf files, head/sys/dev/spibus spigen.c spi.h

[spigen] add initial spigen driver from green@

This is a simple ioctl and mmap API to issue SPI transactions from
userland.  It's useful for simple devices (eg spi temperature sensors,
etc) for experimentation.


* Write some documentation!

Submitted by:        green

FreeBSD — head/sys/dev/spibus ofw_spibus.c

[spibus] implement maximum clock frequency lookup from ofw.

Obtained from:        loos
Delta File
+10 -1 head/sys/dev/spibus/ofw_spibus.c
+10 -1 1 file

FreeBSD — head/sys/dev/spibus spibus.c

[spibus] add missing break.

Pointy hat to: me
Delta File
+1 -0 head/sys/dev/spibus/spibus.c
+1 -0 1 file

FreeBSD — head/sys/dev/spibus spibusvar.h spibus.c

[spibus] add initial placeholders for transfer mode and frequency.

This doesn't yet implement it in the controllers or the transfer
calls, but it's a start.

Obtained from:        loos (frequency), ray/zrouter (transfer mode)

FreeBSD — head/sys/arm/freescale/imx imx_sdhci.c

Another round of changes to add compatibility with the older ESHDC variety
of hardware.  Mostly this focuses on the big changes needed for setting the
bus clock, because ESDHC is SDHCI v2.0 and USDHC is 3.0, and the number,
location, and interpretation of clock divisor bits is vastly different
between the two.  This doesn't get the device all the way to functioning
on ESDHC hardware yet, but it's much closer, now getting through all the
card detection and negotiation of capabilties and speed (but it eventually
hangs on what appears to be a missing interrupt).

Another missing chunk of code for handling ESDHC's 32 bit command-and-mode
register using sdhci's pair of 16 bit writes is added.

This also does some leading whitespace cleanups and sorts some softc
struct members by size, and adds some comments (because when do I ever
touch code without adding comments?).
Delta File
+160 -82 head/sys/arm/freescale/imx/imx_sdhci.c
+160 -82 1 file

FreeBSD — head/sys/dev/hyperv/vmbus hv_hv.c hyperv_reg.h

hyperv: Rework guest id settings according to Hyper-V spec

MFC after:        1 week
Sponsored by:        Microsoft OSTC
Differential Revision:        https://reviews.freebsd.org/D6553

FreeBSD — head/sys/dev/sdhci sdhci.h

Add a convenience macro that masks all the bits related to clock divisors
in all versions of the sdhci spec (the HI bits are just unused reserved
bits in earlier versions).
Delta File
+3 -0 head/sys/dev/sdhci/sdhci.h
+3 -0 1 file

FreeBSD — head/usr.sbin/tzsetup tzsetup.c

Avoid buffer overflow or truncation when constructing path_zoneinfo_file.

Reported by:        Coverity
CID:                1011160
MFC after:        1 week
Delta File
+3 -1 head/usr.sbin/tzsetup/tzsetup.c
+3 -1 1 file

FreeBSD — head/usr.bin/fortune/unstr unstr.c

Avoid buffer overflow when copying the input file name and appending .dat.

Check the return value from fread() to be sure that it was successful.

Reported by:        Coverity
CID:                1006709, 1009452
MFC after:        1 week

FreeBSD — head/sys/dev/flash mx25l.c

[mx25l] add Winbond w25x64 support.

PR:                https://github.com/freebsd/freebsd/pull/16
Submitted by:        https://github.com/epipenau
Delta File
+1 -0 head/sys/dev/flash/mx25l.c
+1 -0 1 file

FreeBSD — head/sys/dev/bhnd/cores/chipc chipcvar.h chipc.c

[bhnd] Fix release of uninitialized SPROM shadow in chipc detach.

This was triggering a panic on detach; the SPROM shadow is now
maintained by the bhnd_sprom_chipc driver, and should be removed
from chipc.

Submitted by:        Landon Fuller <landonf at landonf.org>
Differential Revision:        https://reviews.freebsd.org/D6548