Commit Graph

280139 Commits

Author SHA1 Message Date
rillig
477445d9e7 make(1): add test for variable assignment using the '=' operator 2020-08-25 16:07:39 +00:00
ryoon
3ea17bd477 Sort correctly, pointed by wiz@. Thank you 2020-08-25 15:31:24 +00:00
skrll
dfbf68d1af More debug 2020-08-25 15:03:48 +00:00
christos
0f41c159c4 RR/54971: scole_mail: sockstat command output incorrect for normal
user As the PR hints, it is not enough to have kern.expose_address=1
to see kernel addresses, we also need to have the PK_KMEM bit set
which we achieve by installing sockstat setgid kmem and opening
and closing /dev/mem. (/usr/src/sys/kern/kern_proc.c:311). It is
unfortunate that we need to give the program more privilege, to
prove to the kernel that we have the privilege to see the data.
2020-08-25 14:05:17 +00:00
skrll
f6e3e63266 KNF 2020-08-25 13:42:09 +00:00
gson
9d42296eb9 Only expect the fmod test case to fail when using qemu's TCG CPU emulation,
and not under hardware virtualization such as qemu -accel nvmm.
2020-08-25 13:39:16 +00:00
skrll
deb70e3954 Style on config_finalize_register arguments - make consistent will all
other callers of config_finalize_register
2020-08-25 13:36:41 +00:00
skrll
8efa41a803 Protect tegra124_cpu_init_cpufreq against being run more than once.
config_finalize will call all config_finalize_register functions until
all registered functions return 0.  rf_autoconfig currently returns 1
which means tegra124_cpu_init_cpufreq would get called multiple times.
2020-08-25 13:33:43 +00:00
riastradh
c9aa4f445f Fix getrandom() tests.
Use sigaction() without SA_RESTART -- signal() implies SA_RESTART so
we never got the EINTR.

While here, reduce the timeout to something more reasonable so we
don't waste 20min of testbed time if anything goes wrong and the
one-second alarm doesn't fire.
2020-08-25 01:37:38 +00:00
rillig
fa70c4fdc5 make(1): in debug mode, print GNode details in symbols
A string like OP_DEPENDS|OP_OPTIONAL|OP_PRECIOUS is much easier to read
and understand than the bit pattern 00000089.

The implementation in enum.h looks really bloated and ugly, but using
this API is as simple and natural as possible.  That's the trade-off.

In enum.h, I thought about choosing the numbers in the macros such that
it is always possible to combine two of them in order to reach an
arbitrary number, because of the "part1, part2" in the ENUM__SPEC macro.
The powers of 2 are not these numbers, as 7 cannot be expressed as the
sum of two of them.  Neither are the fibonacci numbers since 12 cannot
be expressed as the sum of 2 fibonacci numbers.  I tried to find a
general pattern to generate these minimal 2-sum numbers, but failed.
2020-08-24 20:15:51 +00:00
ryoon
c0e80e46cf Do not split for AUTHORS
And bump date.
2020-08-24 19:36:32 +00:00
ryoon
2906f3a5f1 Add a missing comma
And bump date
2020-08-24 19:32:33 +00:00
ryoon
2f676885a3 Add COMPAT_90
And bump date.
2020-08-24 19:30:00 +00:00
ryoon
1a756d3f9b Add a missing comma
And bump date.
2020-08-24 19:27:36 +00:00
ryoon
ffc2b60eb2 Markup authors
And bump date.
2020-08-24 19:25:57 +00:00
ryoon
061048509a Link to i386/spic(4) instead of spic(4)
And bump date.
2020-08-24 19:22:06 +00:00
ryoon
c48880b9cf Link to i386/pnpbios(4) instead of pnpbios(4)
And bump date.
2020-08-24 19:16:42 +00:00
msaitoh
d2f3f61773 Fix handling of IXGBE_REQUEST_TASK_NEED_ACKINTR again... 2020-08-24 19:03:27 +00:00
msaitoh
d39d2fa1df The admin workqueue can be used even if the interface is not up.
OK'd by thorpej@. Will fixes PR#55534 reported by Shinichi Doyashiki
2020-08-24 18:42:17 +00:00
riastradh
e96b516f47 Restore obsolete entries for make's modorder tests.
These tests were removed a week ago, but their set list entries were
removed rather than marked obsolete.
2020-08-24 18:41:22 +00:00
msaitoh
5dc3df36d2 Fix ixgbe_sfp_cage_full() on X550EM_A.
In ixgbe_handle_mod():

		switch (hw->mac.type) {
		case ixgbe_mac_82599EB:
			cage_full = IXGBE_READ_REG(hw, IXGBE_ESDP) &
			    IXGBE_ESDP_SDP2;
			break;
		case ixgbe_mac_X550EM_x:
		case ixgbe_mac_X550EM_a:
			cage_full = IXGBE_READ_REG(hw, IXGBE_ESDP) &
			    IXGBE_ESDP_SDP0;
			break;
		default:
			break;
		}

so I had thought that IXGBE_ESDP_SDP0 bit is 1 on cage is full.
In reality, at least, X550EM_A's SFP+ cage is 0 on cage is full.
So invert the logic of ixgbe_sfp_cage_full() on X550EM_A
2020-08-24 18:31:14 +00:00
martin
dec88ece21 Backout previous, commiter was dazed and confused 2020-08-24 18:22:30 +00:00
msaitoh
97adabe45f Fix race in ixgbe_detach() to prevent panic on shutdown. 2020-08-24 18:21:59 +00:00
martin
1247dfe5c0 Add modorder* make unit test files 2020-08-24 18:18:51 +00:00
msaitoh
09ff13da8d Fix handling of IXGBE_REQUEST_TASK_NEED_ACKINTR in ixgbe_handle_admin(). 2020-08-24 18:16:04 +00:00
nia
e0214d24d5 afterboot.8: If it needs a disclaimer that most people shouldn't do it... 2020-08-24 12:58:16 +00:00
nia
452f8ae6e8 uname -p, pointed out by various 2020-08-24 12:46:57 +00:00
kardel
634cbaafea Keep the change check invariant intact. The previous code could miss
status updates by picking up a new status different from the tested
status. This left addresses in the DETACHED state although the
link status is already UP again.

addresses PR/kern 55538
2020-08-24 12:46:04 +00:00
nia
cc5aa5b8ac afterboot.8: uname -p, pointed out by various people 2020-08-24 12:45:48 +00:00
nia
5312d4af65 afterboot.8: Start the daemons after configuring wpa_supplicant. 2020-08-24 12:35:48 +00:00
nia
2143acc357 afterboot.8: Use wpa_* for everything WiFi, update links
reasoning: ifconfig scan is unreliable while wpa_supplicant is running
2020-08-24 12:29:30 +00:00
skrll
8ec954daa2 Appease gcc when building with KASAN which gave this error before
error: stack usage might be unbounded [-Werror=stack-usage=]
2020-08-24 07:42:02 +00:00
gson
59b669221c Expect a failure to trap unaligned acesses only when running under
qemu's TCG CPU emulation, not when running under hardware virtualization
such as qemu -accel nvmm.
2020-08-24 06:55:16 +00:00
msaitoh
615712693e s/ressource/resource/. No functional change. 2020-08-24 05:37:40 +00:00
msaitoh
a5d01d1024 s/ressource/resource/. Found by knakahara. 2020-08-24 05:34:00 +00:00
msaitoh
1d6d3e383e Remove extra PHY_RESET(sc) in the MII_TICK path because it's not requierd
to just restart autonego.
2020-08-24 04:49:05 +00:00
msaitoh
600be1acda Don't do full initialization for autonego when just restarting autonego
because it's not required.

 This change reduce extra initialization which include PHY_RESET() which
caused long delay(max 500ms).
2020-08-24 04:23:41 +00:00
rillig
064ff068ec make(1): remove redundant range restriction
re.re_nsub is at least 0, and (at least 0) + 1 cannot be 0.
2020-08-23 22:49:45 +00:00
riastradh
284084a72c Nix trailing whitespace. 2020-08-23 22:34:29 +00:00
rillig
bf98478ac8 make(1): restructure code of the :ts modifier
Now there is one paragraph per case, as opposed to the highly condensed
code from before.

In the cases of :ts\n and :ts\t, the variables for number parsing are no
longer in the code path, which makes the code easier to understand for
humans.  Not sure what the compilers made out of it.

The assignment "base = 0" has gone since it was redundant.  An integer
that starts with 0 is always interpreted as octal by strtol, no matter
if the base is 8 or 0.
2020-08-23 22:13:38 +00:00
rillig
b50b25a022 make(1): extend the documentation on the ApplyModifier functions 2020-08-23 21:40:30 +00:00
rillig
2e0cd2713e make(1): split code for parsing the :U modifier into digestible parts
The comment about "unescaped $'s that aren't before the delimiter" was
wrong, as the code didn't contain the "aren't before the delimiter"
part.  By splitting the code into paragraphs, the larger structure
becomes easily visible.  Having a few short comments in the right place
is more helpful than a big block of text.
2020-08-23 20:57:02 +00:00
rillig
09cef4d90b make(1): add test for :U modifier 2020-08-23 20:49:33 +00:00
tpaul
0a69e03611 Man page typo fix. 2020-08-23 20:23:56 +00:00
rillig
22ada376b6 make(1): move test for .undef into separate file 2020-08-23 19:30:13 +00:00
rillig
bb7e3dd932 make(1): make compat.c ready for WARNS=6 2020-08-23 19:00:19 +00:00
rillig
d3f44ff49c make(1): make ArchFindMember ready for WARNS=6 2020-08-23 18:59:01 +00:00
rillig
0d4e62dd97 make(1): make ArchStatMember ready for WARNS=6 2020-08-23 18:57:32 +00:00
rillig
174f1c2ffa make(1): make Arch_MemMTime ready for WARNS=6 2020-08-23 18:53:13 +00:00
riastradh
1830cb4bb2 Initialize peers early on for error branch. 2020-08-23 18:52:53 +00:00