]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoRevert r362772. The proper fix is to merge format change commit from the HEAD
Oleksandr Tymoshenko [Mon, 29 Jun 2020 08:12:01 +0000 (08:12 +0000)]
Revert r362772. The proper fix is to merge format change commit from the HEAD

3 years agoMFC r362495:
Piotr Pawel Stefaniak [Mon, 29 Jun 2020 06:28:01 +0000 (06:28 +0000)]
MFC r362495:
strtok(3): make it easier to find the RETURN VALUES section

3 years agoFix test breakage after r362767
Oleksandr Tymoshenko [Mon, 29 Jun 2020 06:19:39 +0000 (06:19 +0000)]
Fix test breakage after r362767

tests in stable/12 use different format for the reference images: .gz.uu
instead of .hex

Reported by: Li-Wen Hsu <lwhsu@freebsd.org>

3 years agoMFC r361935:
Oleksandr Tymoshenko [Mon, 29 Jun 2020 00:34:11 +0000 (00:34 +0000)]
MFC r361935:

Add VHDX support to mkimg(1)

VHDX is the successor of Microsoft's VHD file format. It increases
maximum capacity of the virtual drive to 64TB and introduces features
to better handle power/system failures.

VHDX is the required format for 2nd generation Hyper-V VMs.

Reviewed by: marcel
Differential Revision: https://reviews.freebsd.org/D25184

3 years agoMFC r362029-r362030
Oleksandr Tymoshenko [Mon, 29 Jun 2020 00:28:11 +0000 (00:28 +0000)]
MFC r362029-r362030

r362029:
Fix reading EDID on TVs/monitors without E-DCC support

Writing segment id to I2C device 0x30 only required if the segment is
non-zero. On the devices without E-DCC support writing to that address
fails and whole transaction then fails too. To avoid this do
not attempt write to the segment selection device unless required.

r362030:
Add mode selection to iMX6 IPU driver

- Configure ipu1_di0 tob e sourced from the VIDEO_PLL(PLL5) and hardcode
  frequency to (455000000/3)Mhz. This value, further divided, can yield
  frequencies close enough to support 1080p, 720p, 1024x768, and 640x480
  modes. This is not ideal but it's an improvement comparing to the only
  hardcoded 1024x768 mode.

- Fix memory leaks if attach method failed
- Print EDID when -v passed to the kernel

3 years agoMFC r354259:
Mitchell Horne [Sun, 28 Jun 2020 17:51:17 +0000 (17:51 +0000)]
MFC r354259:

RISC-V: Remove EARLY_AP_STARTUP from GENERIC

3 years agoMFC r362546:
Mitchell Horne [Sun, 28 Jun 2020 17:49:41 +0000 (17:49 +0000)]
MFC r362546:

arch(7): small corrections for RISC-V

3 years agoMFC r361754:
Mitchell Horne [Sun, 28 Jun 2020 17:47:41 +0000 (17:47 +0000)]
MFC r361754:

gptboot.efi: align secbuf to 4K

3 years agoMFC r361402:
Mitchell Horne [Sun, 28 Jun 2020 17:45:13 +0000 (17:45 +0000)]
MFC r361402:

Simplify the RISC-V kernel linker invocation

3 years agoMFC r360826:
Mitchell Horne [Sun, 28 Jun 2020 17:43:48 +0000 (17:43 +0000)]
MFC r360826:

Sync relocation definitions

3 years agoMFC r360604: Add references for the most important man7 pages
Gordon Bergling [Sun, 28 Jun 2020 14:40:48 +0000 (14:40 +0000)]
MFC r360604: Add references for the most important man7 pages
worth reading to intro(7).

Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D24649

3 years agoMFC r359633, r359656, r360190: Add a manpage for smbios(4).
Gordon Bergling [Sun, 28 Jun 2020 14:36:56 +0000 (14:36 +0000)]
MFC r359633, r359656, r360190: Add a manpage for smbios(4).

PR: 240252, 163830
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D23714

3 years agoMFC r360493: Add a new manual page for unionfs(5)
Gordon Bergling [Sun, 28 Jun 2020 14:22:57 +0000 (14:22 +0000)]
MFC r360493: Add a new manual page for unionfs(5)

Approved by: bcr
Differential Revision: https://reviews.freebsd.org/D24589

3 years agoMFC r360459: Add a HISTORY section to domain(9).
Gordon Bergling [Sun, 28 Jun 2020 14:02:49 +0000 (14:02 +0000)]
MFC r360459: Add a HISTORY section to domain(9).

Approved by: bcr
Differential Revision: https://reviews.freebsd.org/D24150

3 years agoMFC r362568:
Cy Schubert [Sun, 28 Jun 2020 03:28:28 +0000 (03:28 +0000)]
MFC r362568:

MFV r362565:

Update 4.2.8p14 --> 4.2.8p15

Summary: Systems that use a CMAC algorithm in ntp.keys will not release
a bit of memory on each packet that uses a CMAC keyid, eventually causing
ntpd to run out of memory and fail. The CMAC cleanup from
https://bugs.ntp.org/3447, part of ntp-4.2.8p11, introduced a bug whereby
the CMAC data structure was no longer completely removed.

Security: NTP Bug 3661

3 years agoMFC r361884: sed: attempt to learn about hex escapes (e.g. \x27)
Kyle Evans [Sun, 28 Jun 2020 02:38:07 +0000 (02:38 +0000)]
MFC r361884: sed: attempt to learn about hex escapes (e.g. \x27)

Somewhat predictably, software often wants to use \x27/\x24 among others so
that they can decline worrying about ugly escaping, if said escaping is even
possible. Right now, this software is using these and getting the wrong
results, as we'll interpret those as x27 and x24 respectively. Some examples
of this, when an exp-run was ran, were science/octopus and misc/vifm.

Go ahead and process these at all times.  We allow either one or two digits,
and the tests account for both.  If extra digits are specified, e.g. \x2727,
then the third and fourth digits are interpreted literally as one might
expect.

3 years agoFix mismerge from r362687
Kyle Evans [Sun, 28 Jun 2020 02:29:53 +0000 (02:29 +0000)]
Fix mismerge from r362687

Hex substitutions and the corresponding test case have not yet been
merged back to this branch, but a mismerge added in the atf_add_test_case.

Back out that line, it'll get re-added with the test shortly.

3 years agoMFC: r361854
Rick Macklem [Sun, 28 Jun 2020 01:29:14 +0000 (01:29 +0000)]
MFC: r361854
Fix mountd so that it will not lose SIGHUPs that indicate "reload exports".

Without this patch, if a SIGHUP is handled while the process is executing
get_exportlist(), that SIGHUP is essentially ignored because the got_sighup
variable is reset to 0 after get_exportlist().
This results in the exports file(s) not being reloaded until another SIGHUP
signal is sent to mountd.
This patch fixes this by resetting got_sighup to zero before the
get_exportlist() call while SIGHUP is blocked.
It also defines a delay time of 250msec before doing another exports reload
if there are RPC request(s) to process. This prevents repeated exports reloads
from delaying handling of RPC requests significantly.

PR: 246597

3 years agoMFC r339956 r362170: Add HISTORY sections to ZFS and dtrace manpages
Gordon Bergling [Sat, 27 Jun 2020 17:39:13 +0000 (17:39 +0000)]
MFC r339956 r362170: Add HISTORY sections to ZFS and dtrace manpages

r362170
Add HISTORY sections to ZFS and dtrace manpages

Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D23833

r339956:
dtrace(1): remove reference to dtruss that was removed from base
system in r300226.

PR: 211618
Reviewed by: gnn, markj, 0mp
Approved by: kib (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D17762

3 years agoMFC 362348:
Mateusz Piotrowski [Sat, 27 Jun 2020 14:48:10 +0000 (14:48 +0000)]
MFC 362348:

Document that umount -A does not unmount /dev

Reported by: kaktus
Reviewed by: kaktus
Differential Revision: https://reviews.freebsd.org/D25351

3 years agoMFC 362290:
Mateusz Piotrowski [Sat, 27 Jun 2020 14:36:44 +0000 (14:36 +0000)]
MFC 362290:

Clean up fstat.1

- Sort options in the list & indent for readability.
- Pet linters
  - Use "\(em" instead of "--"
  - Remove Tn macros
- Use Ql instead of Dq Li
- Add arguments to the -M, -N, -p, and -u options in their descriptions.
- Use Sy instead of Li for field names. Li is deprecated, and Ql makes no
  sense here.
- Replace a literal block with a list for the table of special names
  related to FD.
- Use Ql instead of ``X''.
- Add a dot after etc.
- Reference fuser(1).

3 years agoMFC 362017, 362039, 362071:
Mateusz Piotrowski [Sat, 27 Jun 2020 14:27:37 +0000 (14:27 +0000)]
MFC 362017, 362039, 362071:

Read commands from stdin when -f - is passed to sed(1)

This patch teaches sed to interpret a "-" in a special way when given
as an argument to the -f flag.

This behavior is also present in GNU sed.

PR: 244872
Tested by: antoine (exp-run)
Reviewed by: pfg, tobik (older version)
Approved by: pfg (src)
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D24079

Remove duplicate lines from sed tests

Reported by: yuripv
Approved by: pfg (src)

Remove some more duplicate test cases I accidentally committed

Reported by: markj, yuripv

3 years agoMFC 362336:
Mateusz Piotrowski [Sat, 27 Jun 2020 14:14:00 +0000 (14:14 +0000)]
MFC 362336:

Fix a typo in cpuset_getdomain.2

PR: 247385
Reported by: Paul Floyd <paulf free.fr>

3 years agoMFC r362326: fgetln(3): Add a Caveats Section
Gordon Bergling [Sat, 27 Jun 2020 13:55:38 +0000 (13:55 +0000)]
MFC r362326: fgetln(3): Add a Caveats Section

Reviewed by: yuripv, bcr (mentor)
Approved by: bcr (mentror)
Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D24916

3 years agoMFC r362327: Add HISTORY sections to banner(6), basename(1), limits(1) and vmstat(8)
Gordon Bergling [Sat, 27 Jun 2020 13:18:21 +0000 (13:18 +0000)]
MFC r362327: Add HISTORY sections to banner(6), basename(1), limits(1) and vmstat(8)

Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D25019

3 years agoMFC r362171: libc manpages: various improvements from NetBSD
Gordon Bergling [Sat, 27 Jun 2020 12:12:47 +0000 (12:12 +0000)]
MFC r362171: libc manpages: various improvements from NetBSD

- Add STANDARDS and HISTORY sections within the appropriate manpages
- Mention two USENIX papers within kqueue(2) and strlcpy(3)

Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
Obtained from: NetBSD
Differential Revision: https://reviews.freebsd.org/D24650

3 years agoMFC r362429 and r362430:
Piotr Pawel Stefaniak [Sat, 27 Jun 2020 09:01:30 +0000 (09:01 +0000)]
MFC r362429 and r362430:
libutil: remove extraneous ": " from error messages
Make vipw error message less cryptic

3 years agoMFC r362169: libutil: Document function HISTORY within the manpages
Gordon Bergling [Fri, 26 Jun 2020 20:44:10 +0000 (20:44 +0000)]
MFC r362169: libutil: Document function HISTORY within the manpages

Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D24795

3 years agoMFC r362165: Add a HISTORY section to ctime(3)
Gordon Bergling [Fri, 26 Jun 2020 18:57:01 +0000 (18:57 +0000)]
MFC r362165: Add a HISTORY section to ctime(3)

Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D24635

3 years agoMFC r362656:
Li-Wen Hsu [Fri, 26 Jun 2020 18:01:35 +0000 (18:01 +0000)]
MFC r362656:

Temporarily skip flakey sys.kern.sysv_test.msg in CI

PR: 233649

3 years agoMFC r362646:
Li-Wen Hsu [Fri, 26 Jun 2020 17:35:09 +0000 (17:35 +0000)]
MFC r362646:

Temporarily skip flakey bin.sh.execution.functional_test.bg12 in CI

PR: 247559
Sponsored by: The FreeBSD Foundation

3 years agoMFC r362361, r362363:
Mark Johnston [Fri, 26 Jun 2020 16:16:25 +0000 (16:16 +0000)]
MFC r362361, r362363:
Add a helper function for validating VA ranges.

3 years agoMFC r360345:
Kristof Provost [Fri, 26 Jun 2020 12:11:22 +0000 (12:11 +0000)]
MFC r360345:

bridge: epoch-ification

Run the bridge datapath under epoch, rather than under the
BRIDGE_LOCK().

We still take the BRIDGE_LOCK() whenever we insert or delete items in
the relevant lists, but we use epoch callbacks to free items so that
it's safe to iterate the lists without the BRIDGE_LOCK.

Tests on mercat5/6 shows this increases bridge throughput significantly,
from 3.7Mpps to 18.6Mpps.

MFC after: The FreeBSD Foundation

3 years agoMFC r359641:
Kristof Provost [Fri, 26 Jun 2020 10:08:57 +0000 (10:08 +0000)]
MFC r359641:

bridge: Change lists to CK_LIST as a peparation for epochification

Prepare the ground for a rework of the bridge locking approach. We will
use an epoch-based approach in the datapath and making it safe to
iterate over the interface, span and rtnode lists without holding the
BRIDGE_LOCK. Replace the relevant lists by their ConcurrencyKit
equivalents.

No functional change in this commit.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r358325:
Kristof Provost [Fri, 26 Jun 2020 09:52:43 +0000 (09:52 +0000)]
MFC r358325:

bridge: Move locking defines into if_bridge.c

The locking defines for if_bridge used to live in if_bridgevar.h, but
they're only ever used by the bridge implementation itself (in
if_bridge.c). Moving them into the .c file.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r362544:
Ryan Moeller [Fri, 26 Jun 2020 00:58:59 +0000 (00:58 +0000)]
MFC r362544:

libdevdctl: Force full match of "timestamp" field name

OpenZFS generates events with a "zio_timestamp" field, which gets mistaken for
"timestamp" by libdevdctl due to imprecise string matching.  Then later it is
assumed a "timestamp" field exists when it doesn't and an exception is thrown.

Add a space to the search string so we match exactly "timestamp" rather than
anything with that as a suffix.

Approved by:    mav (mentor)
Sponsored by:   iXsystems, Inc.

3 years agoMFC r362342:
Konstantin Belousov [Thu, 25 Jun 2020 05:24:35 +0000 (05:24 +0000)]
MFC r362342:
Fix execution of linux binary from multithreaded non-Linux process.

3 years agoMFC r362347:
Konstantin Belousov [Thu, 25 Jun 2020 05:20:00 +0000 (05:20 +0000)]
MFC r362347:
rtld: Apply relro to itself.

3 years agoMFC r362346:
Konstantin Belousov [Thu, 25 Jun 2020 05:17:36 +0000 (05:17 +0000)]
MFC r362346:
rtld: Parse own phdr and notes.

3 years agoMFC: r361780, r361956
Rick Macklem [Thu, 25 Jun 2020 02:45:49 +0000 (02:45 +0000)]
MFC: r361780, r361956
Fix mountd to handle getgrouplist() not returning groups[0] == groups[1].

Prior to r174547, getgrouplist(3) always returned a groups list with
element 0 and 1 set to the basegid argument, so long as ngroups was > 1.
Post-r174547 this is not the case. r328304 disabled the deduplication that
removed the duplicate, but the duplicate still does not occur unless the
group for a user in the password database is also entered in the group
database.
This patch fixes mountd so that it handles the case where a user specified
with the -maproot or -mapall exports option has a getgrouplist(3) groups
list where groups[0] != groups[1].

Relnotes: yes

3 years agoMFC r362260:
Vladimir Kondratyev [Thu, 25 Jun 2020 00:00:04 +0000 (00:00 +0000)]
MFC r362260:

evdev: Add AT translated set1 scancodes for 'Eisu' & 'Kana' keys.

PR: 247292
Submitted by: Yuichiro NAITO <naito.yuichiro@gmail.com>

3 years agoMFC r361347: With RFC3168 ECN, CWR SHOULD only be sent with new data
Richard Scheffenegger [Wed, 24 Jun 2020 16:17:58 +0000 (16:17 +0000)]
MFC r361347: With RFC3168 ECN, CWR SHOULD only be sent with new data

Overly conservative data receivers may ignore the CWR flag on other
packets, and keep ECE latched. This can result in continous reduction
of the congestion window, and very poor performance when ECN is
enabled.

PR: 243590
Reviewed by: rgrimes (mentor), rrs
Approved by: rgrimes (mentor, blanket)
MFC after: 3 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D23364

3 years agoMFC r362337: Make polled request timeout less invasive.
Alexander Motin [Wed, 24 Jun 2020 13:49:30 +0000 (13:49 +0000)]
MFC r362337: Make polled request timeout less invasive.

Instead of panic after one second of polling, make the normal timeout
handler to activate, reset the controller and abort the outstanding
requests.  If all of it won't happen within 10 seconds then something
in the driver is likely stuck bad and panic is the only way out.

In particular this fixed device hot unplug during execution of those
polled commands, allowing clean device detach instead of panic.

3 years agoMFC r362282: Fix admin qpair leak if detached during initial reset.
Alexander Motin [Wed, 24 Jun 2020 13:48:16 +0000 (13:48 +0000)]
MFC r362282: Fix admin qpair leak if detached during initial reset.

3 years agoMFC r362031, r362065, r362075:
Konstantin Belousov [Wed, 24 Jun 2020 06:35:50 +0000 (06:35 +0000)]
MFC r362031, r362065, r362075:
amd64 pmap: reorder IPI send and local TLB flush in TLB invalidations.

3 years agoMFC r362271:
Hans Petter Selasky [Wed, 24 Jun 2020 05:10:41 +0000 (05:10 +0000)]
MFC r362271:
Allow multicast packets to be received in promiscious mode, in mlx4en(4).

Make sure we disable the multicast filter in promiscious mode aswell as when
the all multicast flag is set.

Found by: Tycho Nightingale <tychon@freebsd.org>
Sponsored by: Mellanox Technologies

3 years agoMFC r361982
Vincenzo Maffione [Tue, 23 Jun 2020 20:48:43 +0000 (20:48 +0000)]
MFC r361982

iflib: netmap: honor netmap_irx_irq return values

In the receive interrupt routine, always call netmap_rx_irq().
The latter function will return != NM_IRQ_PASS if netmap is not
active on that specific receive queue, so that the driver can go
on with iflib_rxeof(). Note that netmap supports partial opening,
where only a subset of the RX or TX rings can be open in netmap mode.
Checking the IFCAP_NETMAP flag is not enough to make sure that the
queue is indeed in netmap mode.
Moreover, in case netmap_rx_irq() returns NM_IRQ_RESCHED, it means
that netmap expects the driver to call netmap_rx_irq() again as soon
as possible. Currently, this may happen when the device is attached
to a VALE switch.

Reviewed by:    gallatin
Differential Revision:  https://reviews.freebsd.org/D25167

3 years agoMFC r362185
Vincenzo Maffione [Tue, 23 Jun 2020 20:44:05 +0000 (20:44 +0000)]
MFC r362185

iflib: netmap: enter/exit netmap mode after device stops

Avoid possible race conditions by calling nm_set_native_flags()
and nm_clear_native_flags() only after the device has been
stopped.

3 years agoMFC r362183
Vincenzo Maffione [Tue, 23 Jun 2020 20:41:10 +0000 (20:41 +0000)]
MFC r362183

netmap: vtnet: fix races in vtnet_netmap_reg()

The nm_register callback needs to call nm_set_native_flags()
or nm_clear_native_flags() once the device has been stopped.
However, in the current implementation this is not true,
as the device is stopped by vtnet_init_locked(). This causes
race conditions where the driver crashes as soon as it
dequeues netmap buffers assuming they are mbufs (or the other
way around).
To fix the issue, we extend vtnet_init_locked() with a second
argument that, if not zero, will set/clear the netmap flags.
This results in a huge simplification of the nm_register
callback itself.
Also, use netmap_reset() to check if a ring is going to be
re-initialized in netmap mode.

3 years agoMFC r362251:
Konstantin Belousov [Tue, 23 Jun 2020 03:18:57 +0000 (03:18 +0000)]
MFC r362251:
rtld: Allow to load ET_DYN && DF_1_PIE when tracing.

3 years agoMFC r362250:
Konstantin Belousov [Tue, 23 Jun 2020 03:18:07 +0000 (03:18 +0000)]
MFC r362250:
rtld: Add debug line for dlopen_object().

3 years agoMFC r362249:
Konstantin Belousov [Tue, 23 Jun 2020 03:17:14 +0000 (03:17 +0000)]
MFC r362249:
Systematically pass RTLD_LO_TRACE to load_needed_objects().

3 years agoMFC r362201:
Ryan Moeller [Mon, 22 Jun 2020 21:28:51 +0000 (21:28 +0000)]
MFC r362201:

Avoid trying to toggle TSO twice

Remove TSO from the toggle mask when automatically disabled by TXCKSUM* in
various NIC drivers.

Reviewed by:    hselasky, np, gallatin, jpaetzel
Approved by:    mav (mentor)
Sponsored by:   iXsystems, Inc.
Differential Revision:  https://reviews.freebsd.org/D25120

3 years agoMFC r358405 (by hrs):
Piotr Pawel Stefaniak [Mon, 22 Jun 2020 19:15:50 +0000 (19:15 +0000)]
MFC r358405 (by hrs):
Fix poor performance of ftp(1) due to small SO_SNDBUF and SO_RCVBUF.

3 years agoMFC r357186 (by imp): Remove old device list
Piotr Pawel Stefaniak [Mon, 22 Jun 2020 19:09:17 +0000 (19:09 +0000)]
MFC r357186 (by imp): Remove old device list

3 years agoMFC r362472:
Bjoern A. Zeeb [Mon, 22 Jun 2020 10:52:30 +0000 (10:52 +0000)]
MFC r362472:

  Rather than zeroing MAXVIFS times size of pointer [r362289] (still better than
  sizeof pointer before [r354857]), we need to zero MAXVIFS times the size of
  the struct.  All good things come in threes; I hope this is it on this one.

PR: 246629, 206583
Reported by: kib

3 years agoMFC r349235 (by allanjude):
Piotr Pawel Stefaniak [Sun, 21 Jun 2020 20:23:39 +0000 (20:23 +0000)]
MFC r349235 (by allanjude):
top(1): Don't show the swap line when there are no swap devices

3 years agoMFC r362182: sh/tests: Add tests for SIGINT in non-jobc background commands
Jilles Tjoelker [Sun, 21 Jun 2020 16:06:01 +0000 (16:06 +0000)]
MFC r362182: sh/tests: Add tests for SIGINT in non-jobc background commands

If job control is not enabled, background commands shall ignore SIGINT and
SIGQUIT, and it shall be possible to override that ignore in the same shell.

3 years agoMFC r362289:
Bjoern A. Zeeb [Sun, 21 Jun 2020 11:48:55 +0000 (11:48 +0000)]
MFC r362289:

  When converting the static arrays to mallocarray() in r356621 I missed
  one place where we now need to multiply the size of the struct with the
  number of entries.  This lead to problems when restarting user space
  daemons, as the cleanup was never properly done, resulting in MRT_ADD_VIF
  EADDRINUSE.
  Properly zero all array elements to avoid this problem.

PR: 246629, 206583

3 years agoMFC r362341:
Dimitry Andric [Sun, 21 Jun 2020 09:24:47 +0000 (09:24 +0000)]
MFC r362341:

Merge commit 0cecafd647cc from llvm git (by Alina Sbirlea):

  [BasicAA] Make BasicAA a cfg pass.

  Summary:
  Part of the changes in D44564 made BasicAA not CFG only due to it
  using PhiAnalysisValues which may have values invalidated. Subsequent
  patches (rL340613) appear to have addressed this limitation.

  BasicAA should not be invalidated by non-CFG-altering passes. A
  concrete example is MemCpyOpt which preserves CFG, but we are testing
  it invalidates BasicAA.

  llvm-dev RFC:
  https://groups.google.com/forum/#!topic/llvm-dev/eSPXuWnNfzM

  Reviewers: john.brawn, sebpop, hfinkel, brzycki

  Subscribers: hiraditya, llvm-commits

  Tags: #llvm

  Differential Revision: https://reviews.llvm.org/D74353

This fixes an issue with clang's -fintegrated-cc1 feature, which could
make it output slightly different assembly code, depending on the way it
was invoked.

In r361755 we attempted to work around it by disabling the integrated
cc1 stage, but it did not solve the root cause for all situations.

Extensive testing and bisecting showed that the above change finally
makes the output deterministic, even if -fintegrated-cc1 is on.

Reported by: Fabian Keil <fk@fabiankeil.de>
PR: 246630

3 years agoAllow TCP to reuse local port with different destinations
Mike Karels [Sat, 20 Jun 2020 20:10:42 +0000 (20:10 +0000)]
Allow TCP to reuse local port with different destinations

MFC r361228, r361231:

Previously, tcp_connect() would bind a local port before connecting,
forcing the local port to be unique across all outgoing TCP connections
for the address family. Instead, choose a local port after selecting
the destination and the local address, requiring only that the tuple
is unique and does not match a wildcard binding.

Note that in_pcb_lport and in_pcb_lport_dest can be called with a NULL
local address for IPv6 sockets; handle it.

Sponsored by: Forcepoint LLC

3 years agoMFC r362151:
Konstantin Belousov [Sat, 20 Jun 2020 04:27:38 +0000 (04:27 +0000)]
MFC r362151:
procctl(2): document PROC_KPTI

3 years agoMFC r362150:
Konstantin Belousov [Sat, 20 Jun 2020 04:26:05 +0000 (04:26 +0000)]
MFC r362150:
procctl(2): consistently refer to the data pointer as 'data'.

3 years agoMFC r362152:
Konstantin Belousov [Sat, 20 Jun 2020 04:23:57 +0000 (04:23 +0000)]
MFC r362152:
Fix ldd for PIE binaries after rtld stopped accepting binaries for dlopen.

3 years agoMFC r361964:
Emmanuel Vadot [Fri, 19 Jun 2020 19:33:19 +0000 (19:33 +0000)]
MFC r361964:

coufreq_dt: Rename DEBUG to DPRINTF

DEBUG is a kernel configuration flag and if used cpufreq_dt.c will fail the
build of kernel.

PR: 246867
Submitted by: Oskar Holmund (oskar.holmlund@ohdata.se)
Differential Revision: https://reviews.freebsd.org/D25080

3 years agoMFC r361980, r362010
Emmanuel Vadot [Fri, 19 Jun 2020 19:25:47 +0000 (19:25 +0000)]
MFC r361980, r362010

r361980:
release: amd64 efi boot name is bootx64

efi_boot_name is just used for arm image so no harm done.

Reported by: gonzo

r362010:
release: Fix arm GPT image

msdosfs labels are capitalized, use EFI instead of efi.

3 years agoMFC r360271-r360272, r360321
Emmanuel Vadot [Fri, 19 Jun 2020 19:24:36 +0000 (19:24 +0000)]
MFC r360271-r360272, r360321

r360271:
Add support for generating release images using GPT for ARM

Submitted by: Daniel Engberg (Original version)
Differential Revision: https://reviews.freebsd.org/D22537

r360272:
Add PINE64 ROCKPro64 config for generation of release images

Submitted by: Daniel Engberg
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D22538

r360321:
release: arm64: rockpro64: Set hw.ncpu to 4

Since there is known issue with big.LITTLE set the number of CPU to 4
which is the number present in the LITTLE cluster.

3 years agoMFC r360311:
Emmanuel Vadot [Fri, 19 Jun 2020 18:54:55 +0000 (18:54 +0000)]
MFC r360311:

arm64: rockchip: rk805: Use a tailq for the attached regulator

Store the attached regulator in a tailq to later find them in ofw_map.
While here, do not attempt to attach a regulator without a name, a node
might exists but if it doesn't have a name the regulator is unused.

3 years agoMFC r360228:
Emmanuel Vadot [Fri, 19 Jun 2020 18:53:32 +0000 (18:53 +0000)]
MFC r360228:

arm64: rockchip: Fix TSADC on RK3328

The TSADC familiy is a little bit more complex than V2 and V3.
Early revision do not use syscon and do not use qsel (RK3288).
Next revision still do not use syscon but uses qsel (RK3328).
Final revision use both.

Submitted by: peterj

3 years agoMFC r358430, r359934-r359936, r359939, r359969, r360093
Emmanuel Vadot [Fri, 19 Jun 2020 18:43:02 +0000 (18:43 +0000)]
MFC r358430, r359934-r359936, r359939, r359969, r360093

r358430:
dts: Update our copy for arm, arm64 and riscv dts to Linux 5.5

r359934:
dts: Import DTS from Linux 5.6

r359935:
allwinner: aw_thermal: Cope with DTS changes

The upstream DTS now include the thermal device node and the SID
calibration entry.
Update our driver to cope with this change and remove the DTB
overlays that aren't needed anymore.

X-MFC-With: r359934

r359936:
modules: dtb: allwinner: Remove non existant files

Those files have been removed in r359935.

X-MFC-With: r359935

r359939:
modules: dtb: allwinner: Remove sun50i-a64-sid.dtso

File was removed in r359935

X-MFC-With: r359935

r359969:
arm: allwinner: aw_sid: Fix thermal calibration size for A64

This fixes the aw_thermal driver on A64 SoC.

X-MFC-With: r359935

r360093:
release: arm64: Remove DTSO for Allwinner boards

Both SID and THS dts node are now in the main dts and the DTSO have
been removed in r359935

X-MFC-With: r359935

3 years agoMFC r360013, r360018, r360021
Emmanuel Vadot [Fri, 19 Jun 2020 18:27:22 +0000 (18:27 +0000)]
MFC r360013, r360018, r360021

r360013:
arm: Fix duplicate ehci DRIVER_MODULE

Name each ehci driver uniquely.
This remove the warning printed at each arm boot :
module_register: cannot register simplebus/ehci from kernel; already loaded from kernel

A similar fix was done in r333074 but imx_ehci wasn't renamed and generic_ehci wasn't
present at that time.

r360018:
arm: Fix duplicate pcib DRIVER_MODULE

Name each pcib driver uniquely.
This remove the warning printed at each arm boot :
module_register: cannot register simplebus/pcib from kernel; already loaded from kernel

r360021:
arm: nvidia: pcie: Rename class name to pcib

Reported by: jhb

3 years agoMFC r350166:
Emmanuel Vadot [Fri, 19 Jun 2020 18:25:27 +0000 (18:25 +0000)]
MFC r350166:

arm64: Implement HWCAP

Add HWCAP support for arm64.
defines are the same as in Linux and a userland program can use
elf_aux_info to get the data.
We only save the common denominator for all cores in case the
big and little cluster have different support (this is known to
exists even if we don't support those SoCs in FreeBSD)

3 years agoMFC r360007:
Emmanuel Vadot [Fri, 19 Jun 2020 18:14:45 +0000 (18:14 +0000)]
MFC r360007:

Revert r359965

This cause board without a cd-gpio to not schedule a card detection.

3 years agoMFC r360008-r360009, r360011
Emmanuel Vadot [Fri, 19 Jun 2020 18:10:39 +0000 (18:10 +0000)]
MFC r360008-r360009, r360011

r360008:
mmc_fdt_helpers: Always init the timout

We use the taskqueue to schedule card detection so always init it.
This is a proper solution instead of r359965.

MFH: r359924

r360009:
mmc_fdt_helpers: Drain the cd pin taskqueue in mmc_fdt_gpio_teardown

We have no use for it now.

r360011:
arm: allwinner: aw_mmc: Make it possible to unload the module

While here, add a makefile in sys/modules/allwinner so it is built.
Also add the PNP info so devmatch will load this module automatically.

3 years agoMFC r359924-r359925, r359927, r359932, r359965
Emmanuel Vadot [Fri, 19 Jun 2020 18:05:14 +0000 (18:05 +0000)]
MFC r359924-r359925, r359927, r359932, r359965

r359924:
Those functions are here to help fdt mmc controller drivers to parse
the dts to find the supported speeds and the regulators.
Not all DTS have every settings properly defined so host controller
will still have to add some caps themselves.
It also add a mmc_fdt_gpio_setup function which will read the cd-gpios
property and register it as the CD pin.
If the pin support interrupts one will be registered and the cd_helper
function will be called.
If the pin doesn't support interrupts the internal taskqueue will poll
for change and call the same cd_helper function.
mmc_fdt_gpio_setup will also parse the wp-gpio property and MMC drivers
can know the write-protect pin value by calling the
mmc_fdt_gpio_get_readonly function.

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

r359925:
arm: allwinner: aw_mmc: Use the mmc_fdt_helper

The fdt properties are now parsed via the help of mmc_fdt_helper functions.
This also adds card detection.
Note that on some boards (like the Pine64) card detection is broken due to
a missing resistor on the cd pin.

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

r359927:
arm: dwmmc: Use mmc_fdt_helpers

Use the mmc_fdt_parse function instead of parsing everything in the
driver.

r359932:
files: Add mmc_fdt_helpers for mmccam enabled config

X-MFC-With: r359924

r359965:
mmc_fdt_helpers: Do not schedule a card detection is there is no cd gpio

If the fdt node doesn't have a cd-gpios properties or if the node is set
as non-removable we do not init the card detection timeout task as it is
useless so don't schedule it too.

X-MFC-With: r359924

3 years agoMFC r359806:
Emmanuel Vadot [Fri, 19 Jun 2020 18:02:29 +0000 (18:02 +0000)]
MFC r359806:

arm: am335x: Honor pmic option ti,pmic-shutdown-controller

Honor ti,pmic-shutdown-controller option in DTS

Tested on stable r359316 @ Sleep mode on custom hw, Power off on BBB and PB

OFF bit [1] in status register control the pmic behaviour when PWR_EN pin
is pulled low.
On most AM335x hardware [beaglebone *] the desired behaviour are in fact
power off due to some hardware designs - read more in the comments around
pmic in sys/gnu/dts/arm/am335x-bone-common.dtsi

This patch let the device-tree decide with ti,pmic-shutdown-controller[2]
the state of off bit in status register.

[1] 8.6.12 table 12 http://www.ti.com/lit/ds/symlink/tps65217.pdf

[2] Documentation/devicetree/bindings/regulator/tps65217.txt

PR: 245159
Submitted by: Oskar Holmlund <oskar.holmlund@ohdata.se>

3 years agoMFC r359805:
Emmanuel Vadot [Fri, 19 Jun 2020 17:56:05 +0000 (17:56 +0000)]
MFC r359805:

gpioctl: Print interrupts capabilities

GPIO drivers who supports interrupts report them in the caps
(obtain via the getcaps method) but gpioctl doesn't know
how to interpret this and print "UNKNOWN" for each one of them.
Even if we don't have userland gpio interrupts support for now
let gpioctl print the supported caps.

3 years agoMFC r358450, r358635
Emmanuel Vadot [Fri, 19 Jun 2020 17:52:48 +0000 (17:52 +0000)]
MFC r358450, r358635

r358450:
mmc: dwmmc: Fix off by one error

The IVAR_MAX_DATA is supposed to have the number of descriptor X the mmc
block size and desc_count contain all this information + 1.

Reported by: phk

r358635:
dwmmc: Rework the DMA engine

Each segment can be up to 4096 bytes in chain structure according to the
RK3399 TRM Part 2.
Set the buffers in full ring where the last one point to the first one.
Correctly reports the MMC_IVAR_MAX_DATA.
Use CACHE_LINE_SIZE for bus_dma alignment.

3 years agoMFC r356803:
Emmanuel Vadot [Fri, 19 Jun 2020 17:49:49 +0000 (17:49 +0000)]
MFC r356803:

regulator_fixed: Add a get_voltage method

Some consumer cannot know the voltage of the regulator without it.
While here, refuse to attach is min_voltage != max_voltage, it
shouldn't happens anyway.

3 years agoMFC r362130:
Konstantin Belousov [Fri, 19 Jun 2020 11:47:40 +0000 (11:47 +0000)]
MFC r362130:
Control for Special Register Buffer Data Sampling mitigation.

3 years agoMFC r362252:
Ryan Moeller [Fri, 19 Jun 2020 11:45:12 +0000 (11:45 +0000)]
MFC r362252:

Apply default security flavor in vfs_export

Reported by:    npn
Reviewed by:    rmacklem
Approved by:    mav (mentor)
Sponsored by:   iXsystems, Inc.
Differential Revision:  https://reviews.freebsd.org/D25300

3 years agoMFC r362129:
Konstantin Belousov [Fri, 19 Jun 2020 11:32:42 +0000 (11:32 +0000)]
MFC r362129:
x86: add bits definitions for SRBDS mitigation control.

3 years agoMFC r340716 (by bwidawsk):
Konstantin Belousov [Fri, 19 Jun 2020 11:24:30 +0000 (11:24 +0000)]
MFC r340716 (by bwidawsk):
Add definitions for Intel Speed Shift.

3 years agoMFC r348130 (by cem):
Konstantin Belousov [Fri, 19 Jun 2020 11:11:52 +0000 (11:11 +0000)]
MFC r348130 (by cem):
Decode and name additional x86 feature bits.

3 years agoMFC r362128:
Konstantin Belousov [Fri, 19 Jun 2020 10:33:45 +0000 (10:33 +0000)]
MFC r362128:
rtld: set osrel when in the direct exec mode.

3 years agoMFC r362078:
Ravi Pokala [Fri, 19 Jun 2020 05:54:15 +0000 (05:54 +0000)]
MFC r362078:

Decode the "LACP Fast Timeout" LAGG option flag

r286700 added the "lacp_fast_timeout" option to `ifconfig', but we forgot to
include the new option in the string used to decode the option bits. Add
"LACP_FAST_TIMO" to LAGG_OPT_BITS.

Also, s/LAGG_OPT_LACP_TIMEOUT/LAGG_OPT_LACP_FAST_TIMO/g , to be clearer that
the flag indicates "Fast Timeout" mode.

3 years agoMFC r362100: Fix config_intrhook leak on initial reset failure.
Alexander Motin [Fri, 19 Jun 2020 00:45:29 +0000 (00:45 +0000)]
MFC r362100: Fix config_intrhook leak on initial reset failure.

3 years agoMFC r361835: Add bunch of HDA controller and codec IDs.
Alexander Motin [Fri, 19 Jun 2020 00:44:35 +0000 (00:44 +0000)]
MFC r361835: Add bunch of HDA controller and codec IDs.

3 years agoMFC r361816: Limit AHCI to only one MSI if more is not needed.
Alexander Motin [Fri, 19 Jun 2020 00:43:44 +0000 (00:43 +0000)]
MFC r361816: Limit AHCI to only one MSI if more is not needed.

My AMD Ryzen system has 4 AHCI controllers, each supporting 16 MSI vectors.
Since two of the controllers have only one SATA port, limit to single MSI
saves system 30 interrupt vectors for free.

It may be possible to also limit number of MSI vectors to 4 and 8 for the
other two controllers, but according to the AHCI specification after that
controllers may revert to only one vector, that would be a bigger loss to
risk.

3 years agoMFC r358555, r358799-r358800
Emmanuel Vadot [Thu, 18 Jun 2020 23:31:56 +0000 (23:31 +0000)]
MFC r358555, r358799-r358800

r358555:
cpufreq_dt: Improve multiple opp support

When looking for cpu with the same OPP starts from the root /cpus node
so each instance of cpufreq_dt will now each cpu with the same operating
point.
Also test that the node we are testing have the property "device_type" set
to be equal to "cpu".
While here add more debug printfs (off by defaults).

r358799:
cpufreq_dt: Fix r358555

Before skipping the current cpu when trying to find the ones that
have the same opp, record that this one have this opp.

Reported by: mmel
X-MFC-With: r358555

r358800:
cpufreq: Unbreak build.

3 years agoMFC r356888, r356891
Emmanuel Vadot [Thu, 18 Jun 2020 23:23:21 +0000 (23:23 +0000)]
MFC r356888, r356891

r356888:
arm: allwinner: Fix padconf for interrupts information

Add a eint_bank member to the allwinner_pins structure.
On Allwinner SoCs not all pins can do interrupt.
Older SoC (A10/A13 and A20) there is a maximum number of interrupts
set to 32 and all the configuration is done in the same registers.
While on "newer" SoCs (>=A31) interrupts registers are splitted per
pin bank (i.e. all interrupts available in bank B will be configured
with a sets of registers and the one in bank G in another set).
While here set the names to all interrupts function to
pX_eintY where X is the bank name and Y the interrupt number.

To whom ever in the future look at the H5 manual and notice that the bank F
have interrupts support : This isn't true, trust me.

r356891:
arm: allwinner: Add GPIO Interrupt support

Not all pins in Allwinner have interrupts support so we rely
on the padconf data to add the proper caps when pin_getcaps is called.
The pin is switch to the specific "eint" function during setup_intr and
switched back to its old function in teardown_intr.
Only INTR_MAP_DATA_GPIO is supported for now.

3 years agoMFC r356276, r356609-r356610, r356637, r356798-r356800, r356802
Emmanuel Vadot [Thu, 18 Jun 2020 23:21:12 +0000 (23:21 +0000)]
MFC r356276, r356609-r356610, r356637, r356798-r356800, r356802

r356276:
arm: allwinner: aw_spi: Call bus_generic_attach

This is needed when the driver is compiled into the kernel.
When compiled as a module this will be called from another
code path as we also depend on ofw_spibus.

r356609:
twsi: Rework how we handle the i2c messages

We use to handle each message separately in i2c_transfer but that cannot
work with message with NOSTOP as it confuses the controller that we disable
the interrupts and start a new message.
Handle every message in the interrupt handler and fire a new start condition
if the previous message have NOSTOP, the controller understand this as a
repeated start.
This fixes booting on Allwinner A10/A20 platform where before the i2c controller
used to write 0 to the PMIC register that control the regulators as it though that
this was the continuation of the write message.

Tested on:   A20 BananaPi, Cubieboard 1 (kevans)
Reported by: kevans

r356610:
arm: allwinner: axp209: Add regnode_status method

This allow consumers to check if the regulator is enable or not.

r356637:
arm64: allwinner: dtso: Add spi0 spigen DTSO

This overlays can be used on A64 board to use spigen and spi(8)
on the spi0 pins.

Tested On:  Pine64-LTS, A64-Olinuxino

Submitted by: Gary Otten <gdotten@gmail.com>

r356798:
axp8xx: Add missing voltage regulators offset

This lead to writing the desired voltage value to the wrong register.

r356799:
axp8xx: Add a regnode_init method

This method will set the desired voltaged based on values in the DTS.
It will not enable the regulator, this is the job of either a consumer
or regnode_set_constraint SYSINIT if the regulator is boot_on or always_on.

r356800:
arm: allwinner: Add support for bank supply

Each GPIO bank is powered by a different pin and so can be powered at different
voltage from different regulators.
Add a new config that now hold the pinmux data and the banks available on each
SoCs.
Since the aw_gpio driver being also the pinmux one it's attached before the PMIC
so add a config_intrhook_oneshot function that will enable the needed regulators
when the system is fully functional.

r356802:
arm: allwinner: ahci: target-supply is optional

The target-supply regulator is optional so don't fail if it's not present.
While here disable the clock on detach.

X-MFC-With: 356600

3 years agoMFC r353528-r353529
Emmanuel Vadot [Thu, 18 Jun 2020 23:18:47 +0000 (23:18 +0000)]
MFC r353528-r353529

r353528:
arm64: allwinner: Add Allwinner H6 Support

This adds support for H6 SoC.
Add a CCU driver for H6 that support all PLLs and most of the clocks
that we are intersted in for now (i2c, mmc, usb, etc ...)

r353529:
arm64: allwinner: Add H6 GPIO/Pinctrl driver

This adds support for Allwinner H6 GPIO and pinctrl driver for
both the main pinctrl unit and the 'r_' one.

3 years agoservices: Add SSDP to service database
Pedro F. Giffuni [Thu, 18 Jun 2020 22:10:06 +0000 (22:10 +0000)]
services: Add SSDP to service database

This is used for UPnP and is registered in the IANA database.

PR: 241573

3 years agoMFC r349584, r349728, r349731, r350440, r350443, r351185, r353493, r353575, r355625...
Emmanuel Vadot [Thu, 18 Jun 2020 21:44:49 +0000 (21:44 +0000)]
MFC r349584, r349728, r349731, r350440, r350443, r351185, r353493, r353575, r355625, r355627, r355629, r356813

r349584:
Since r349571 we need all the accessor to be present for set or get
otherwise we panic.
dwmmc don't handle VCCQ (voltage for the IO line of the SD/eMMC) or
TIMING.
Add the needed accessor in the {read,write}_ivar functions.

Reviewed by: imp (previous version)

r349728 by imp:
Implement missing MMCBR ivars

All MMCBR bridges have to implement all the MMCBR variables. This
implements them for everybody that currently doesn't.

A common routine for this should be written.

r349731 by imp:
Fix cut-and-pasto that slipped through my testing.

r350440 by br:
Add support for the SD/MMC controller found in Terasic DE10-Pro
(an Intel Stratix 10 GX/SX FPGA Development Kit).

Set the bus speed manually due to lack of clock management support.

Sponsored by: DARPA, AFRL

r350443 by br:
Fix MMCCAM kernel build.

Sponsored by: DARPA, AFRL

r351185 by mmel:
Enhance support of extres in dwmmc driver.
Handle all clocks, regulators and resets defined by dwmmc bindings.

r353493 by br:
Fix the driver attachment in cases when the external resource devices
(resets, regulators, clocks) are not available.

Rely on a system initialization done by a bootloader in that cases.

This fixes operation on Terasic DE10-Pro (an Intel Stratix 10
development kit).

Sponsored by: DARPA, AFRL

r353575 by br:
Fix dwmmc(4) driver attachment when ext_resources are not present.

Ignore only ENOENT (no DTS properties found) and ENODEV (driver not
present) non-zero return values from ext_resources.

Reviewed by: manu
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D22043

r355625:
dwmmc: Add a detach method

This method will disable the regulators, clocks and assert the reset of
the module. It will also detach it's children (the mmc device) and release
it's resources.
While here enable the regulators on attach as we need them to power up
the sdcard or emmc.

r355627:
dwmmc: Handle the card detect interrupt

The driver used to always add the mmc device as it's child even
it no card was detected. Add a function that will detect if the
card is present or not and that will attach/detach the mmc device.
The function is either call on attach (as we won't have the interrupt
fired) or from two taskqueues. The first taskqueue will directly call
the function when the sdcard was present and is now removed and the other
one will delay a bit the attach when we didn't had a card and now have one.
This is mostly based on comments from the sdhci driver where it describe
a situation when the CD pin is detected before the others pins are connected.

r355629:
dwmmc: Use device_delete_children

Instead of first detaching the children(s) and then delete them,
use the device_delete_children function that does all of that.

Suggested by: ian

r356813:
dwmmc: Remove max_hz from the softc

We never use it so directly set the value to the mmc host structure.

3 years agoMFC r360504 (by imp): Style(9) nit: put function name at start of line.
Alexander Motin [Thu, 18 Jun 2020 20:25:42 +0000 (20:25 +0000)]
MFC r360504 (by imp): Style(9) nit: put function name at start of line.

3 years agoMFC r360503 (by imp): Move / reword a comment.
Alexander Motin [Thu, 18 Jun 2020 20:23:46 +0000 (20:23 +0000)]
MFC r360503 (by imp): Move / reword a comment.

Explain what we're doing with mapping CAM's notion of a LUN to NVMe's
notion of a namespace.

3 years agoMFC r352925: xen/ctrl: acknowledge all control requests
Roger Pau Monné [Thu, 18 Jun 2020 15:15:04 +0000 (15:15 +0000)]
MFC r352925: xen/ctrl: acknowledge all control requests
MFC r357616: xen/console: fix priority of Xen console
MFC r361274: dev/xenstore: fix return with locks held
Note this should be dev/evtchn not dev/xenstore.
MFC r361578: xenpv: do not use low 1MB for Xen mappings on i386
MFC r361580: xen/control: short circuit xctrl_on_watch_event on spurious event

Those are all Xen related fixes or minor improvements that have been sitting on
current for a reasonable time without complaints.

Sponsored by: Citrix Systems R&D

3 years agoMFC r361828:
Hans Petter Selasky [Thu, 18 Jun 2020 10:53:40 +0000 (10:53 +0000)]
MFC r361828:
Ensure pci_channel_offline() actually queries the PCI register space,
and not only the software cache of that register.  Else
pci_channel_offline() won't detect that the PCI device is gone when
using the LinuxKPI.

Sponsored by: Mellanox Technologies

3 years agoMFC r361724:
Hans Petter Selasky [Thu, 18 Jun 2020 10:49:49 +0000 (10:49 +0000)]
MFC r361724:
Implement __is_constexpr() function macro in the LinuxKPI.
Bump the FreeBSD version.

Sponsored by: Mellanox Technologies