arybchik
a611340d6c
sfxge(4): add new Emerald board sensors to common code
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6292
2016-05-11 06:19:53 +00:00
arybchik
9d61d72978
sfxge(4): simplify efx_mac_select
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6291
2016-05-11 06:19:05 +00:00
arybchik
0a1bf85720
sfxge(4): remove Falcon specific EV_GLOBAL support
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6290
2016-05-11 06:18:15 +00:00
arybchik
7ca4dd6896
sfxge(4): remove Falcon-specific code paths from common code
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6289
2016-05-11 06:16:53 +00:00
arybchik
8e30d77ca4
sfxge(4): add TLV format buffer manipulation functions for V3 licensing
...
The licensing partition for V3 licensing will use the standard TLV format,
so Medford licensing operations on the staging buffer are implemented using
the TLV functions.
Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6288
2016-05-11 06:15:07 +00:00
sephe
effd024064
hyperv/hn: Extract RSS hash value and type.
...
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6287
2016-05-11 03:31:25 +00:00
jhibbits
a7ed172cbf
Don't mark the initial portal registers as fully mapped.
...
BMan and QMan will do this at attach time. Even though the registers are mapped
now, dpaa_portal_map_registers() will be called at BMan and QMan attach time,
updating the mappings to be private, and in the case of cache-enabled registers,
marked as coherent memory mappings.
2016-05-11 00:41:40 +00:00
gonzo
d51ad091d9
Use DEVMETHOD_END instead of its value to indicate end of methods table
2016-05-11 00:34:43 +00:00
gonzo
938b33653f
Use GPIO pin management API in gpiobacklight
...
- Get rid of hack with re-parenting gpio-leds node to gpiobus
- Use gpio_pin_set_active to enable/disable backlight, it automatically
takes care of active-low pins
2016-05-11 00:26:52 +00:00
adrian
d089d0b662
Rename siba -> siba_s5, to specifically reference that it's for the
...
legacy siba sentry5 cpu glue.
The siba_cc code is the hard-coded chipcommon bits for the sentry s5,
which will eventually be replaced with the more flexible bhnd sipa/cc
code.
bwn, etc uses siba_bwn, which doesn't use siba or siba_cc to do anything.
2016-05-10 22:38:39 +00:00
bz
10195fa2e4
Allow orm(4) to be disabled from probing/attaching by a hints entry:
...
hint.orm.0.disabled=1
Suggested by: jhb
Reviewed by: jhb
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D6307
2016-05-10 22:28:06 +00:00
jhb
a5584a6547
Move vm_domain_rr_selectdomain() under #ifdef VM_NUMA_ALLOC.
...
The function had a null function body in the !VM_NUMA_ALLOC case but
also wasn't called in the !VM_NUMA_ALLOC case.
Suggested by: ngie
2016-05-10 22:25:55 +00:00
cem
1a6ffca118
netipsec: Fix minor style nit
...
Coverity points out that 'continue' is equivalent to 'break' in a do {}
while(false) loop.
Reported by: Coverity
CID: 1354983
Sponsored by: EMC / Isilon Storage Division
2016-05-10 20:14:11 +00:00
gonzo
b05aea41fa
Pass device tree node as a part of gpio_pin_get_by_ofw_XXX API
...
Current API assumes that "gpios" property belongs to the device's node but for
some binding it's not true: gpiokeys has set of child nodes with this property.
Patch adds new argument instead of replacing device_t because device_t will be
used to track ownership for allocated pins
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D6277
2016-05-10 20:02:03 +00:00
manu
bcdd9068f7
When PLATFORM_SMP is enabled, check if tunable hw.ncpu is set and valid
...
(>= 1 and <= real ncores) and set mp_ncpus to it.
Approved by: andrew (mentor)
Differential Revision: https://reviews.freebsd.org/D6151
2016-05-10 19:11:25 +00:00
hselasky
7819d210e6
Ensure waiting loops terminate during cold boot. This fixes boot with
...
MacBookPro and i915kms_load="YES" in /boot/loader.conf.
A lowlevel timeout in one of the display ports caused an infinite wait
because a ticks/jiffies comparison was constant. The clock subsystem
which makes ticks/jiffies increment is started after the initial
driver probing is done. Refer to sys/kernel.h and SI_SUB_DRIVERS vs
SI_SUB_CLOCKS .
Discussed with: kmacy @
2016-05-10 18:18:29 +00:00
manu
7adfd9bb61
Merge a20_mp_start_ap and a31_mp_start_ap into one function.
...
This function works with all smp non-multicluster allwinner SoC (A20, A31, A31S and H3).
Approved by: cognet (mentor)
Differential Revision: https://reviews.freebsd.org/D6269
2016-05-10 18:00:37 +00:00
hselasky
5a2349cebd
Implement ioremap_wt() and use that in the MEMREMAP_WT case for i386
...
and amd64.
Suggested by: cem @
Discussed with: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-10 17:51:17 +00:00
pfg
c1f320fca0
aic7xxx: minor spelling fixes.
...
Affects mostly comments but also a visible text string,
Differential Revision: https://reviews.freebsd.org/D6270
2016-05-10 16:40:19 +00:00
hselasky
5193043705
Fix kernel LINT build after r299363.
...
Define shadowing macros the same way to avoid macro redefinition
compile error(s) for now.
Approved by: np @
2016-05-10 16:31:18 +00:00
mav
939929ecf0
Allow sleepable allocations in enclosure daemon threads.
...
There were at least two places where M_NOWAIT was used without NULL check.
This change should fix NULL-dereference panic there and possibly improve
operation in other ways under memory pressure.
MFC after: 2 weeks
2016-05-10 16:20:36 +00:00
trasz
111d1f560e
Add "camcontrol reprobe" subcommand, and implement it for da(4).
...
This makes it possible to manually force updating capacity data
after the disk got resized. Without it it might be neccessary to
reboot before FreeBSD notices updated disk size under eg VMWare.
Discussed with: imp@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6108
2016-05-10 15:46:33 +00:00
andrew
e08747edd2
Push the logic to talk with the MSI/MSI-X interrupt controller to the FDT
...
attachment. This is where it will live when we import intrng as it will
need to look at either the msi-parent or msi-map FDT properties.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
2016-05-10 15:45:59 +00:00
trasz
462ab9427b
Remove NULL checks after M_WAITOK allocations from mpr(4).
...
Reviewed by: asomers@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6297
2016-05-10 15:04:24 +00:00
bz
48100c001d
siba depends on bhndbus; add the device to the kernel config.
...
This gets us past compiling and now only linking is failing on builtins.
2016-05-10 14:59:48 +00:00
trasz
d05434d7bf
Remove NULL checks after M_WAITOK allocations from mps(4).
...
Reviewed by: asomers@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6296
2016-05-10 14:57:14 +00:00
hselasky
60669b68d6
Add more LinuxKPI I/O functions.
...
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-10 12:04:57 +00:00
hselasky
df7f8b3938
Use function macros when possible to avoid stray substitutions.
...
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-10 11:39:36 +00:00
hselasky
d08b8ba7c0
Add missing semicolon and properly wrap macro argument.
...
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-10 11:34:22 +00:00
hselasky
b92ade246e
Allow the argument for the cpu_to_xxxp() and xxx_to_cpup() macros to
...
point to a constant.
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2016-05-10 11:31:00 +00:00
trasz
94bd76e619
Remove misc NULL checks after M_WAITOK allocations.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-05-10 10:26:07 +00:00
trasz
ada488c048
Remove NULL check after M_WAITOK allocations from mfi(4).
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-05-10 10:24:35 +00:00
trasz
af62ad8b46
Remove NULL checks after M_WAITOK allocations from firewire.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-05-10 10:21:03 +00:00
kib
05241d701e
Add locking annotations to amd64 struct md_page members.
...
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
2016-05-10 09:58:51 +00:00
mav
afb02a35fa
Fix previous commit to report proper error code.
...
MFC after: 2 weeks
2016-05-10 08:37:41 +00:00
mav
f1e921c13f
Validate XCOPY range offsets and lengths.
...
MFC after: 2 weeks
2016-05-10 08:28:16 +00:00
mav
3cb5aa8147
More XCOPY parameters validation.
...
MFC after: 2 weeks
2016-05-10 08:08:39 +00:00
arybchik
beca065cf4
sfxge(4): cleanup: fix typo
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 08:00:40 +00:00
arybchik
09d1c92b56
sfxge(4): cleanup: remove unneeded include files
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:59:23 +00:00
arybchik
9929cf424c
sfxge(4): cleanup: remove unused efx_infer_family()
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:42:18 +00:00
arybchik
5e6d4edc76
sfxge(4): cleanup: remove obsolete common code module
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:40:03 +00:00
arybchik
e917cffc72
sfxge(4): cleanup: fix typos
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:38:23 +00:00
arybchik
aeb833134e
sfxge(4): cleanup efx_check.h comments and error messages
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:22:19 +00:00
arybchik
bae02d583e
sfxge(4): remove EFSYS_OPT_PHY_TXC43128
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:21:14 +00:00
arybchik
15108d3edc
sfxge(4): remove EFSYS_OPT_PHY_SFX7101
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:20:18 +00:00
arybchik
4afb0149b1
sfxge(4): remove EFSYS_OPT_PHY_SFT9001
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:19:15 +00:00
arybchik
b2e45fd4df
sfxge(4): remove EFSYS_OPT_PHY_QT2025C
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:18:18 +00:00
arybchik
3c5d7e81d3
sfxge(4): remove EFSYS_OPT_PHY_QT2022C2
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:17:08 +00:00
arybchik
c459816487
sfxge(4): remove EFSYS_OPT_PHY_NULL
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:15:57 +00:00
arybchik
aa6936fa58
sfxge(4): remove EFSYS_OPT_NVRAM_SFX7101
...
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
2016-05-10 07:15:09 +00:00