]>
CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
Mark Johnston [Wed, 2 Sep 2020 18:12:47 +0000 (18:12 +0000)]
Add the MEM_EXTRACT_PADDR ioctl to /dev/mem.
This allows privileged userspace processes to find information about the
physical page backing a given mapping. It is useful in applications
such as DPDK which perform some of their own memory management.
Reviewed by: kib, jhb (previous version)
MFC after: 2 weeks
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara Inc.
Differential Revision: https://reviews.freebsd.org/D26237
Niclas Zeising [Wed, 2 Sep 2020 18:04:49 +0000 (18:04 +0000)]
drm2: Further improve deprecation message
Further improve the drm2 deprecation message, only displaying information
about the port for relevant architectures, and skipping the message
completely from arm, which uses some parts of drm2 still.
This is mostly intended to be merged to 12, since the base bits of drm2 on
FreeBSD 13 are only really used on arm.
Reviewed by: manu, mmel
Approved by: manu
MFC after: 3 days
X-MFC-with: r364737
Differential Revision: https://reviews.freebsd.org/D26275
Alan Somers [Wed, 2 Sep 2020 17:36:30 +0000 (17:36 +0000)]
Fix output of nfsstat -cE in json or xml mode
Due to a copy/paste error, the "getacl" field was duplicated, but only in
XML or JSON mode, not in txt mode.
Discussed with: rmacklem
MFC after: 1 week
Sponsored by: Axcient
Ryan Moeller [Wed, 2 Sep 2020 16:03:33 +0000 (16:03 +0000)]
Correct and expand on OpenZFS cache file and auto import
Reported by: avg
Sponsored by: iXsystems, Inc.
Konstantin Belousov [Wed, 2 Sep 2020 15:55:16 +0000 (15:55 +0000)]
Fix a page table pages leak after LA57.
If the call to _pmap_allocpte() is not sleepable, it is possible that
allocation of PML4 or PDP page is successful but either PDP or PD page
is not. Restructured code in _pmap_allocpte() leaves zero-referenced
page in the paging structure.
Handle it by checking refcount of the page one level above failed
alloc and free that page if its reference count is zero.
Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D26293
Ryan Moeller [Wed, 2 Sep 2020 15:20:10 +0000 (15:20 +0000)]
Use MLINKS where appropriate for zfs/zpool subcommand pages
Reported by: Julian H. Stacey
Sponsored by: iXsystems, Inc.
Warner Losh [Wed, 2 Sep 2020 14:28:54 +0000 (14:28 +0000)]
Add note about needing to manually import the zfs pools or update
/etc/rc.d due to the cache file moving to /etc.
Kyle Evans [Wed, 2 Sep 2020 12:57:34 +0000 (12:57 +0000)]
caroot: properly remove old distrusted roots
The proper procedure was not followed in r364943; all of these that were
deleted should have instead been moved over to the blacklist so that certctl
can DTRT.
Users must still `certctl rehash` after this, but this should generally be
done by one of mergemaster/etcupdate/freebsd-update/pkgbase already; note
that freebsd-update doesn't come into play for this particular update, as
these have not yet made it into a release.
Future work (after svn -> git) will likely change the script that updatecert
invokes to facilitate the process, rather than trusting that kevans or
whomever updates in the future will remember.
Reported by: Helge Oldach <freebsd oldach net>
MFC after: 3 days
Andrew Turner [Wed, 2 Sep 2020 11:53:26 +0000 (11:53 +0000)]
When CPUTYPE is an architecture name use -march
Allow architecture names to be passed in to the build system via CPUTYPE.
This allows the user to use values such as armv8.1-a or armv8-a+crc as
the CPUTYPE.
Sponsored by: Innovate UK
Kristof Provost [Wed, 2 Sep 2020 11:49:22 +0000 (11:49 +0000)]
ng_ether: Enter NET_EPOCH where required
We must enter NET_EPOCH before calling ether_output_frame(). Several of the
functions it calls (pfil_run_hooks, if_transmit) expect to be running in the
NET_EPOCH.
While here remove an unneeded EPOCH entry (which wasn't wide enough to cover
BRIDGE_INPUT).
PR: 248958
Reviewed by: glebius, bz (previous version), melifaro (previous version)
Tested by: manu
Differential Revision: https://reviews.freebsd.org/D26226
Kristof Provost [Wed, 2 Sep 2020 11:33:31 +0000 (11:33 +0000)]
riscv: very large dma mappings can cause integer overflow
Fix the return type for _bus_dmamap_addseg().
Based on the same fix done for arm64 in r348571.
Sponsored by: Axiado
Hans Petter Selasky [Wed, 2 Sep 2020 11:18:21 +0000 (11:18 +0000)]
Fix build fallout after r365054 .
Make sure that building dev/sdhci/sdhci_fsl_fdt.c has all the right
dependencies until a proper fix can be made.
Sponsored by: Mellanox Technologies // NVIDIA Networking
Hans Petter Selasky [Wed, 2 Sep 2020 10:00:30 +0000 (10:00 +0000)]
Assert that cc_exec_drain(cc, direct) is NULL before assigning a new value.
Suggested by: markj@
Tested by: callout_test
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
Hans Petter Selasky [Wed, 2 Sep 2020 09:44:00 +0000 (09:44 +0000)]
Micro optimise _callout_stop_safe() by removing dead code.
The CS_DRAIN flag cannot be set at the same time like the async-drain function
pointer is set. These are orthogonal features. Assert this at the beginning
of the function.
Before:
if (flags & CS_DRAIN) {
/* FALLTHROUGH */
} else if (xxx) {
return yyy;
}
if (drain) {
zzz = drain;
}
After:
if (flags & CS_DRAIN) {
/* FALLTHROUGH */
} else if (xxx) {
return yyy;
} else {
if (drain) {
zzz = drain;
}
}
Reviewed by: markj@
Tested by: callout_test
Differential Revision: https://reviews.freebsd.org/D26285
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
Hans Petter Selasky [Wed, 2 Sep 2020 09:20:40 +0000 (09:20 +0000)]
Add small tool to invoke kernel test framework tests.
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
Hans Petter Selasky [Wed, 2 Sep 2020 09:17:29 +0000 (09:17 +0000)]
Fix build of epoch_test module.
While at it add missing epoch_free() call.
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
Andrew Turner [Wed, 2 Sep 2020 09:04:08 +0000 (09:04 +0000)]
Partially revert r365069.
This whitespace was intentionally added to help differentiate the different
register groups within this file.
While here add missing whitespace from earlier in the file,
Sponsored by: Innovate UK
Rick Macklem [Wed, 2 Sep 2020 01:29:33 +0000 (01:29 +0000)]
Fix the standalone build of the nfscl and nfsd modules.
Reported by: jhs@berklix.com
Eric Joyner [Tue, 1 Sep 2020 23:16:38 +0000 (23:16 +0000)]
ixl(4): Add support for X710-T*L devices
Add support for new devices which are capable of 2.5 and 5G speeds, as well as
Energy Efficient Ethernet (EEE):
- introduce new device ids
- add ability to select 2.5 and 5G speeds on devices which support it
- add sysctls to enable EEE and read related statistics
Submitted by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Reviewed by: #IntelNetworking
MFC after: 3 days
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D25549
Mateusz Guzik [Tue, 1 Sep 2020 22:15:02 +0000 (22:15 +0000)]
kgssapi: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:14:52 +0000 (22:14 +0000)]
nlm: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:14:30 +0000 (22:14 +0000)]
ddb: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:14:09 +0000 (22:14 +0000)]
geom: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:13:48 +0000 (22:13 +0000)]
cam: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:13:28 +0000 (22:13 +0000)]
xdr: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:12:58 +0000 (22:12 +0000)]
sys: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:12:32 +0000 (22:12 +0000)]
kern: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:11:48 +0000 (22:11 +0000)]
cpufreq: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:11:22 +0000 (22:11 +0000)]
cpuctl: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:11:05 +0000 (22:11 +0000)]
cmx: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:10:55 +0000 (22:10 +0000)]
ciss: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:10:34 +0000 (22:10 +0000)]
cfi: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:10:24 +0000 (22:10 +0000)]
cfe: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:10:11 +0000 (22:10 +0000)]
cesa: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:10:00 +0000 (22:10 +0000)]
ce: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:09:41 +0000 (22:09 +0000)]
cardbus: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:09:26 +0000 (22:09 +0000)]
cadence: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:08:52 +0000 (22:08 +0000)]
md: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:08:39 +0000 (22:08 +0000)]
mem: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:08:26 +0000 (22:08 +0000)]
mfi: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:08:14 +0000 (22:08 +0000)]
mgb: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:07:59 +0000 (22:07 +0000)]
mii: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:07:37 +0000 (22:07 +0000)]
mly: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:07:26 +0000 (22:07 +0000)]
mmc: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:07:12 +0000 (22:07 +0000)]
mpr: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:07:00 +0000 (22:07 +0000)]
mps: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:06:41 +0000 (22:06 +0000)]
mpt: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:06:23 +0000 (22:06 +0000)]
mrsas: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:06:07 +0000 (22:06 +0000)]
mthca: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:05:53 +0000 (22:05 +0000)]
mvs: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:05:39 +0000 (22:05 +0000)]
mwl: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:05:21 +0000 (22:05 +0000)]
my: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:05:00 +0000 (22:05 +0000)]
mxge: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:04:37 +0000 (22:04 +0000)]
nfe: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:04:24 +0000 (22:04 +0000)]
nfsmb: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:04:10 +0000 (22:04 +0000)]
nge: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:03:55 +0000 (22:03 +0000)]
ntb: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:03:46 +0000 (22:03 +0000)]
null: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:03:32 +0000 (22:03 +0000)]
nvd: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:03:10 +0000 (22:03 +0000)]
nvme: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:02:55 +0000 (22:02 +0000)]
nvram2env: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:02:32 +0000 (22:02 +0000)]
oce: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:02:12 +0000 (22:02 +0000)]
ocs_fc: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:01:53 +0000 (22:01 +0000)]
ofw: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:01:41 +0000 (22:01 +0000)]
otus: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:01:32 +0000 (22:01 +0000)]
ow: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:01:17 +0000 (22:01 +0000)]
pbio: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:01:04 +0000 (22:01 +0000)]
pccard: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:00:48 +0000 (22:00 +0000)]
pccbb: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:00:30 +0000 (22:00 +0000)]
pcf: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 22:00:07 +0000 (22:00 +0000)]
pci: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:59:31 +0000 (21:59 +0000)]
powermac_nvram: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:59:11 +0000 (21:59 +0000)]
ppbus: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:58:56 +0000 (21:58 +0000)]
ppc: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:58:40 +0000 (21:58 +0000)]
proto: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:58:29 +0000 (21:58 +0000)]
psci: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:58:12 +0000 (21:58 +0000)]
pst: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:58:04 +0000 (21:58 +0000)]
puc: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:57:50 +0000 (21:57 +0000)]
pwm: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:57:33 +0000 (21:57 +0000)]
qlnx: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:57:15 +0000 (21:57 +0000)]
qlxgb: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:56:55 +0000 (21:56 +0000)]
qlxgbe: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:56:30 +0000 (21:56 +0000)]
qlxge: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:56:10 +0000 (21:56 +0000)]
ral: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:56:03 +0000 (21:56 +0000)]
rl: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:55:52 +0000 (21:55 +0000)]
rndtest: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:55:37 +0000 (21:55 +0000)]
rt: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:55:23 +0000 (21:55 +0000)]
safe: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:54:58 +0000 (21:54 +0000)]
safexcel: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:54:35 +0000 (21:54 +0000)]
sbni: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:54:16 +0000 (21:54 +0000)]
sdhci: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:53:58 +0000 (21:53 +0000)]
sdio: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:53:44 +0000 (21:53 +0000)]
sec: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:53:37 +0000 (21:53 +0000)]
sk: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:53:21 +0000 (21:53 +0000)]
smartpqi: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:53:00 +0000 (21:53 +0000)]
smbus: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:52:46 +0000 (21:52 +0000)]
smc: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:52:35 +0000 (21:52 +0000)]
spibus: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:52:20 +0000 (21:52 +0000)]
stge: clean up empty lines in .c and .h files
Mateusz Guzik [Tue, 1 Sep 2020 21:52:05 +0000 (21:52 +0000)]
superio: clean up empty lines in .c and .h files