Commit Graph

257359 Commits

Author SHA1 Message Date
wiz dc9706d87a Improve wording. Fix a Cm argument. 2018-03-16 10:42:20 +00:00
mrg 654940c20e remove obsolete ovbcopy(). it may be the very slightly bit
faster for larger copies, but slower for smaller ones.
i don't see any major benefit in keeping this code.

this is the final ovbcopy() reference in src.  you're welcome :-)
2018-03-16 09:29:24 +00:00
maxv f917d855c9 Rename "handle_" -> "Xhandle_", and add the function names (introduced by
SVS) in db_machdep.c.

Should fix the DDB part of PR/53060.
2018-03-16 08:48:34 +00:00
msaitoh 2cb161c9d1 Regen. 2018-03-16 08:40:25 +00:00
msaitoh 96e781dda4 Intel 0x15c4 is SFI based and 0x15ce is KR based. 2018-03-16 08:40:06 +00:00
maxv f4df18fbb6 Add one more page for the stack, to compensate for the fact that SVS's
stack switching mechanism consumes approximately one page.
2018-03-16 08:21:56 +00:00
ozaki-r efe8344c49 Get rid of a redundant output 2018-03-16 08:21:45 +00:00
ryo e55e7ad672 use memmove.S 2018-03-16 07:56:50 +00:00
msaitoh 4c4fb7612a - Check offset correctly in ixgbe_get_oem_prod_version(). Note that this
function is not used.
- Set PHY correctly in ixgbe_setup_mac_link_sfp_x550a() if a device is a
  C3000 KR SFP+.
2018-03-16 07:54:08 +00:00
ozaki-r c1510da660 x86: avoid accessing invalid addresses in ddb like arm32
This avoids that a command stops in the middle of an execution if
a fault occurs due to an access to an invalid address.
2018-03-16 04:48:19 +00:00
ozaki-r 5e1f20377c Don't pass a unset address to lockdebug_lock_print 2018-03-16 04:45:20 +00:00
ozaki-r e611636f76 Add a new command, show all locks, which shows information of active locks
The command shows information of all active (i.e., being held) locks that are
tracked through either of LWPs or CPUs by the LOCKDEBUG facility.  The /t
modifier additionally shows a backtrace for each LWP additionally.  This
feature is useful for debugging especially to analyze deadlocks.

The command is useful only if LOCKDEBUG is enabled.
2018-03-16 04:44:51 +00:00
ozaki-r 1d919413b1 Add a new command, show lockstat, which shows statistics of locks
Currently the command shows the number of allocated locks.

The command is useful only if LOCKDEBUG is enabled.
2018-03-16 04:37:55 +00:00
sevan 753e9171b0 Forgot the pseudo devices in the previous commit. 2018-03-16 03:19:38 +00:00
sevan 881967fd6b Add the default locations firmload is set to search for firmaware files. 2018-03-16 02:35:56 +00:00
sevan 842cda659d regen 2018-03-16 01:58:42 +00:00
sevan 2c814d8971 Add 3Com Wireless Bluetooth PC Card (version 3.0) 3CRWB6096B 2018-03-16 01:49:15 +00:00
sevan 1f69207a5e macppc Bluetooth 2018-03-16 01:16:28 +00:00
sevan 8f23fa8b77 Add bluetooth support by default. most hardware G4 onwards (e.g aluminium
PowerBooks) have Bluetooth installed as standard.
2018-03-16 01:12:46 +00:00
sevan 8721565795 typo 2018-03-16 00:56:28 +00:00
maya 262b8c7f1c Provide a default case also when building imc as builtin.
Fixes ALL kernel build. ok pgoyette.
2018-03-15 23:57:17 +00:00
christos 222f47901a use the OpenSSL version of des_modes.7 since it is newer. 2018-03-15 18:40:16 +00:00
christos 21dde3b595 Don't barf if the ctf tools are not installed.
[perhaps warn?]
2018-03-15 13:44:45 +00:00
maxv 5011db990a Remove #ifdef XEN (Xen has its own cpu.c), and add a comment. 2018-03-15 09:17:31 +00:00
maxv 93a9237893 Add the PR_LASTHDR flag on the PFsync and CARP entries. Otherwise a
"require" IPsec policy is not enforced on them, and unauthenticated
packets will be accepted.

Tested with a require-AH configuration. Sent on tech-net@, no comment.
2018-03-15 08:15:21 +00:00
msaitoh 92ac5028d0 Add some changes from ix-3.2.17.tar.gz and r328265. Not fully synchronized.
Some others (e.g. sfp cage interrupt and bypass adapter  stuff) will be merged
later:
- Initialize firmware command buffer correctly in ixgbe_read_ee_hostif_X550()
  and ixgbe_read_ee_hostif_buffer_X550(). These functions are used when reading
  NVM.
- Fix a bug that ixgbe_mng_present() misunderstand management capability on
  X550 and newer on some environment. X550 changed FWSM bit definition.
  See X540 document and X550's document and compare them.
- Fix checksum calculation in ixgbe_set_fw_drv_ver_generic(). This function is
  not used in NetBSD.
- Add some unused funtions.
- Whitespace fix.
2018-03-15 06:48:51 +00:00
ozaki-r 79888c1003 Use db_printf instead of printf in ddb 2018-03-15 03:45:05 +00:00
christos 1ea57b9a78 tidy up 2018-03-15 03:22:23 +00:00
christos f31ca13583 finish moving the compat code out. 2018-03-15 03:21:58 +00:00
christos cf6b63b172 add uvm swap compat code. 2018-03-15 03:13:51 +00:00
ginsbach 617ab226ea Initialize ypbind_resp before first possible error return condition. 2018-03-15 02:25:31 +00:00
uwe 613a287d51 Start adding more gaudy markup. Use .Li or .Dv when referring to
parameters.  Use more .Ic and .Ar when defining syntax.

The manual is still rather inconsistent e.g. when referring to
parameters where it randomly uses both $0 and 0 or $@ and @ - but I'm
not shaving that yak at least for now.
2018-03-15 01:20:43 +00:00
christos 33ff5e3b54 Untangle the swapctl compat code mess. Welcome to lucky 13. 2018-03-15 00:48:13 +00:00
mrg 5ae6500fa6 complete the switch to xorgproto over *proto split packages
- remove old package makefiles
- update makekeys for Xfuncproto.h being a real file now
- clean up deleted package X11SRCDIR.pkg settings

this should be functionally equivalent.
2018-03-14 23:41:05 +00:00
maya 832f757f9d Don't left shift a negative, use unsigned for bit masks.
Appeases GCC 6 in some build configuration (ALL kernel)

ok uwe
2018-03-14 18:58:32 +00:00
maxv a28f31b51d Spectre V2 mitigation for certain families of AMD CPUs.
A new sysctl is added, machdep.spectreV2.mitigated, that controls whether
Spectre V2 is mitigated. For now it defaults to "false".

The code is written in such a way that there can be several methods. For
now only one method is supported, on AMD Families 10h, 12h and 16h, where
an MSR is available to disable branch prediction entirely.

Compile-tested on Intel, AMD will be tested soon.
2018-03-14 17:40:41 +00:00
maxv 98c836a82d ... and also add IBPB ... 2018-03-14 15:03:16 +00:00
maxv 1268fc173f Add the IBRS and STIBP MSRs. 2018-03-14 14:44:25 +00:00
maxv 029685e1dc Add IC_CFG.DIS_IND: "Disable Indirect Branch Predictor". Available (at
least) on AMD Families 10h, 12h and 16h.
2018-03-14 14:15:02 +00:00
rin 1a43a2d6aa Restore shlib version accidentally bumped in the previous commit.
Fix debug build for i386.
2018-03-14 13:23:31 +00:00
uwe abdb117cdc Compute tag width for the list of options in Argument List Processing,
mandoc *is* up to that.  Remove the part of the comment before the
list that was wondering about that.
2018-03-14 10:38:52 +00:00
uwe db273842a9 Small markup tweaks in Argument List Processing 2018-03-14 10:30:40 +00:00
uwe 7a8dcc3884 Instead of .Oo/.Oc use .Op directly where possible. 2018-03-14 09:46:45 +00:00
uwe 484f53204c Revert previous. Fix the real problem properly. 2018-03-14 09:42:37 +00:00
mrg 34d45f496e Xfuncproto.h is a normal file now. 2018-03-14 09:38:33 +00:00
maxv 9e585af820 Fix the "return-rst" rule on IPv6 packets.
The scopes needed to be set on the addresses before invoking ip6_output,
because ip6_output needs them. The reason they are not here already is
because pfil_run_hooks (in ip6_input) is called _before_ the kernel
initializes the scopes.

Until now ip6_output was always failing, and the IPv6-TCP-RST packet was
never actually sent.

Perhaps it would be better to have the kernel initialize the scopes
before invoking pfil_run_hooks, but several things will need to be fixed
in several places.

Tested with a simple TCPv6 server. Until now the client would block
waiting for an answer that never came; now it receives an RST right away
and closes the connection, as expected.

I believe that the same problem exists in the "return-icmp" rules, but I
can't investigate this right now (some problems with wireshark).
2018-03-14 09:32:04 +00:00
mrg 5b6e3f750b obsolete fontcacheproto.
prepare for xorgproto - split the non replaced list out.
2018-03-14 09:09:46 +00:00
mrg 4bb54eb227 reacharound framework for xorgproto. functionally identical
to the split *proto packages except we're dropping the long
obsolete fontcacheproto.

not used yet.
2018-03-14 08:55:35 +00:00
knakahara 38db08c668 Fix error checking in in6_gif_ctlinput().
if_gif.c:r1.133 introduces gif_update_variant() which ensure ifp->if_flags
is set IFF_RUNNING when gif_softc->gif_var->gv_{psrc,pdst} are not null.
So, in6_gif_ctlinput() is not required IFF_RUNNING checking. In contrast,
it is required gv_{psrc,pdst} NULL checking.
2018-03-14 07:56:32 +00:00
wiz b30e74889c Remove Ic macro without effect. 2018-03-14 07:53:14 +00:00