257892 Commits

Author SHA1 Message Date
msaitoh
377872ea64 Add PCH_CNP support (I219 with Intel 300 series chipset).
It's required more test, so it's disabled by default.
2018-04-12 03:25:08 +00:00
msaitoh
9c91c4de43 If the extended configration size in the EXTCNFSIZE register is 0, don't
continue.
2018-04-12 03:13:04 +00:00
msaitoh
78e62023db Our PCH_SPT part of wm_nvm_valid_bank_detect_ich8lan() was based on
FreeBSD r287467. After that, they reverted it and committed the different
code in r287762. r287762's bank detect code didn't work for us because our wm
dirver had a problem in flash access. The problem was fixed in if_wm.c rev.
1.567, so we can use the new way now.
2018-04-12 03:09:24 +00:00
msaitoh
34de81f25d On PCH_SPT (and newer), FLASH access should be done by 32bit.
Especially for ICH_FLASH_HSFCTL register, it's located at 0x0006, so
it should be accessed via ICH_FLASH_HSFSTS(0x0004) and use shift or mask.
2018-04-12 02:48:59 +00:00
msaitoh
3ee56c6786 No binary change:
- Sort registers.
- Lowercase hexadecimal value.
2018-04-12 02:15:07 +00:00
christos
1211273114 fix type confusion on 32 bits 2018-04-11 23:20:15 +00:00
palle
c84ca42d80 sun4v: Update TODO file with current state of sun4v support 2018-04-11 19:44:47 +00:00
palle
a01cdf60ec sun4v: handle MMU-related traps properly when they occur at trap level 1. This fixes issues when user-level LWPs access the user-level stack 2018-04-11 19:41:18 +00:00
palle
912d648341 Fix typo in comment 2018-04-11 19:37:58 +00:00
christos
ea7b28924d kvm_geterr() already contains errno, use errx. 2018-04-11 18:52:29 +00:00
christos
b02b35c97e use EXIT_FAILURE instead of 1 2018-04-11 18:52:05 +00:00
christos
7e6759edb0 Hide ps error about processes not found (we could be more specific...)
It is superfluous, since we print:
    foo not running? (check /var/run/foo/foo.pid).
2018-04-11 18:51:22 +00:00
christos
0c6b6224b4 Add the missing lock. 2018-04-11 18:34:18 +00:00
christos
d0c4b2c3b3 Add the location of the last lock to help debugging. 2018-04-11 18:33:48 +00:00
christos
03fd2bea72 instead of short-circuiting the test, set auto target host on by default. 2018-04-11 18:33:21 +00:00
christos
3ec6e2e2d6 flip the default and enable kernel timestamps. 2018-04-11 15:25:58 +00:00
nonaka
45c29ee2ce efiboot reports parent ppb bus/device/function of booted network inteface. 2018-04-11 10:34:19 +00:00
nonaka
b014c9faab efiboot: Added network boot support. 2018-04-11 10:32:09 +00:00
maxv
81857fe9a5 Remove whitespaces/tabs, and one non-ASCII character. 2018-04-11 08:29:19 +00:00
maxv
db09a739cd Don't pass IP_ALLOWBROADCAST in ipsec4_input. The flag lands in
ipsec_getpolicybyaddr, and only IP_FORWARDING is taken.

In fact it would be good to change the 'flags' argument of ipsec4_input
to be a boolean, same for ipsec_getpolicybyaddr. It would be less
misleading.
2018-04-11 08:11:20 +00:00
maxv
cc670cf1d8 Add comment about IPsec. 2018-04-11 07:55:19 +00:00
maxv
8e7acb22ab Small changes in ip_dooptions: replace bcopy by memcpy, the areas can't
overlap.
2018-04-11 07:52:25 +00:00
maxv
51eb5c20a1 Add 'static', like the prototype. 2018-04-11 07:15:12 +00:00
mrg
28731ff616 if a new map entry doesn't fit, be more verbose about the sizes. 2018-04-11 07:14:23 +00:00
mrg
d144e17dce add information about how to boot from gpt. mostly taken from the wiki. 2018-04-11 07:13:18 +00:00
wiz
ba701a99f9 Update usage. 2018-04-11 06:41:23 +00:00
wiz
a10e00a15c Sort flags in SYNOPSIS. 2018-04-11 06:40:53 +00:00
maxv
db5deb0877 Add one more XXX in the list. 2018-04-11 06:37:32 +00:00
maxv
279f1df60e Add XXX. 2018-04-11 06:26:00 +00:00
maxv
38a4f0c56b Add XXX. 2018-04-11 05:59:42 +00:00
maxv
f439735471 Add XXX. 2018-04-11 05:38:47 +00:00
kamil
8a7b75cec0 Import new C and C++ ATF tests for ASan
Add new tests:
 - tests/usr.bin/cc/t_asan_poison.sh
 - tests/usr.bin/c++/t_asan_poison.sh

These tests verify the following build options:
 - regular
 - profile
 - pic
 - pie
 - compat32
 - (static unsupported)

These tests verify whether ASan code can include compiler and sanitizer
specific header: <sanitizer/asan_interface.h>. The testing code checks
the ASAN_POISON_MEMORY_REGION() functionality, poisoning valid memory and
asserting that it triggers expected failure.

Patch submitted by <Siddharth Muralee>
2018-04-11 03:25:25 +00:00
kamil
ea82fba129 Cover more fork/vfork/vforkdone scenarios in ATF ptrace(2) tests
Use a shared common body for all the tests: fork1..fork8, vfork1..vfork8.

Merge vforkdone1 and vforkdone2 into vfork* tests.

All the (v?)fork[1-8] tests cover:
 - calling either fork(2) or vfork(2)
 - tracking either enabled or disabled FORK, VFORK or VFORK_DONE

All the PTRACE_VFORK tests are marked as expected failure.

Sponsored by <The NetBSD Foundation>
2018-04-11 01:52:59 +00:00
snj
558759d1d7 fix ntp version some more 2018-04-11 00:35:14 +00:00
rin
3bce0be59a Add progress(1) into /rescue.
No objection when proposed on tech-userlevel@.
2018-04-11 00:26:38 +00:00
snj
9a00551080 fix ntp version 2018-04-10 22:58:54 +00:00
kamil
1924131dec ATF t_ptrace_wait* refactoring: vforkdone1 and vforkdone2
Merge vforkdone1 and vforkdone2 into other fork tests and reuse the same
function body fork_test().

There is an implicit enhancement in vforkdone2 that it was skipping
PTRACE_VFORK check. This test is now marked as expected failure.

PR kern/51630

Sponsored by <The NetBSD Foundation>
2018-04-10 22:45:39 +00:00
christos
2fef76cb66 match the linux dmesg flags. 2018-04-10 22:21:52 +00:00
maxv
be6b555629 Remove m_getclr. It is unused, confusing (vs m_clget), and is a weak
implementation (eg you can't request a zeroed pkthdr mbuf).
2018-04-10 16:12:29 +00:00
maxv
e05b029465 Put the "free" functions close to one another. No functional change. 2018-04-10 15:29:46 +00:00
maxv
f7fa0b9fb7 Localify m_ext_free. 2018-04-10 15:27:35 +00:00
rin
91b8b0444c PR bin/53164: Comment why we abort here. 2018-04-10 12:44:41 +00:00
knakahara
8543159a11 Fix previous my mistake and odd unaligned case. Pointed out by maxv@n.o, thanks.
It must be rare case to be required this copy routine...
2018-04-10 11:44:13 +00:00
maxv
64e951a489 Remove unused mbuf argument from arpcreate() and arplookup(). 2018-04-10 08:41:14 +00:00
maxv
9008abb175 Replace comment by KASSERT. 2018-04-10 08:22:35 +00:00
msaitoh
3ad4ae7e57 SW PHY Config Enable bit for ICH8 B0 stepping is not bit 1 but bit 0. 2018-04-10 08:18:38 +00:00
maxv
f412fe9bd5 Improve an XXX of mine, and fix one stat. 2018-04-10 07:53:36 +00:00
ozaki-r
f72ad93267 Add a test case for bridge_rtdelete 2018-04-10 07:09:00 +00:00
ozaki-r
db4bbd8b0e Fix bridge_rtdelete
It removes a rtable entry that belongs to a specified interface, however, its
original behavior was to delete all belonging entries.  Restore the original
behavior.
2018-04-10 07:05:39 +00:00
maxv
9676918a93 add two entries 2018-04-10 06:32:23 +00:00