Commit Graph

271573 Commits

Author SHA1 Message Date
martin
d690403a01 Pass the set suffix (either .tgz or .tar.xz) from the makefile.
Document the rescue set.
2019-11-21 19:23:16 +00:00
ad
19a5f3bbac alpha_ipi_ast: use ci_data.cpu_onproc, not ci_curlwp. 2019-11-21 19:02:43 +00:00
ad
faff59d5f7 Sleep queues & turnstiles:
- Avoid false sharing.
- Make the turnstile hash function more suitable.
- Increase turnstile hash table size.
- Make amends by having only one set of system wide sleep queue hash locks.
2019-11-21 18:56:55 +00:00
martin
60689e2f59 Add missing .bullet) and replace some versions (more todo later) 2019-11-21 18:46:40 +00:00
ad
f15dda4bcb lwp_create:
- Don't need to check for PK_SYSTEM when inheriting an affinity mask.
- Inherit processor set ID under proc_lock, to sync with pset syscalls.
2019-11-21 18:22:05 +00:00
ad
e57dd2ba56 - lwp_need_userret(): only do it if ONPROC and !curlwp, and explain why.
- Use signotify() in a couple more places.
2019-11-21 18:17:36 +00:00
ad
298a9247c2 Break the slow path for callout_halt() out into its own routine.
No functional change.
2019-11-21 17:57:40 +00:00
ad
bec282a611 Simplify pset locking, making it easier to sync with LWP creation, etc. 2019-11-21 17:54:04 +00:00
ad
b2d41f4afd calcru: ignore running softints, unless softint_timing is on.
Fixes crazy times reported for proc0.
2019-11-21 17:50:49 +00:00
ad
5b83f9471b Use lwp_changepri(). 2019-11-21 17:47:53 +00:00
ad
61c7646b6e If attach fails, don't panic on detach. 2019-11-21 17:47:23 +00:00
tkusumi
13d532c277 autofs: Change autounmountd(8) to use time_t for duration instead of double
The commit log from FreeBSD.
--
autounmountd(8) uses doubles to handle mount time durations.  However,
it must convert to integer types, time_t in particular, to do anything
meaningful.  Additionally, even though it's a floating-point value in
seconds, the sub-seconds component is never used, so it's unnecessary.

Switching type to time_t fixes an assertion on powerpc64, which checks
that a sleep value that's not -1.0 is greater than 0.  On powerpc64, it
happens that the value of -1.0 gets loaded as a float (perhaps a bug in
gcc), but gets compared to a double.  This compares as false, so follows
through the 'sleep != -1.0' path, and fails the assert.  Since the
sub-second component isn't used in the double, just drop it and deal
with whole-integer seconds.
--

Taken-from: FreeBSD and DragonFlyBSD
2019-11-21 16:45:05 +00:00
tkusumi
b94e44675e autofs: Change my email address in man pages to netbsd.org 2019-11-21 15:24:17 +00:00
martin
4a792bdb00 Bump image size for gcc8 2019-11-21 13:01:51 +00:00
msaitoh
a0db6e738a Whitespace. 2019-11-21 09:48:57 +00:00
msaitoh
faeea1f558 Remove accidentally committed debug code. Sorry. 2019-11-21 09:18:16 +00:00
msaitoh
ac1069da8f Fix a bug that IFF_ALLMULTI is almost always set.
OpenBSD's ac_multirangecnt is not NetBSD's ec_multicnt.
2019-11-21 09:12:30 +00:00
mrg
540580a78d switch riscv32/64 to GCC 8. 2019-11-21 07:56:58 +00:00
mrg
9631f22ff2 from the new comment:
* XXX Hack alert.  GCC 8.3 mis-compiles this function and calls
 * strncmp() with the wrong second pointer, as seen in PR#54703.
 *
 * Until the real cause is located, work around it by using -O1
 * for this function.

this hack is restricted to i386.
2019-11-21 07:34:39 +00:00
msaitoh
0d8a80dc2d Fix multicast handling. All Atheros controllers use big-endian form
when computing multicast hash. Same as OpenBSD.
2019-11-21 06:22:09 +00:00
msaitoh
4a70ff44ab Add missing NetBSD RCS Id. Reported by Andrius V. 2019-11-21 03:04:21 +00:00
msaitoh
a0feb71507 - Set duplex correctly when user setting is not IFM_AUTO.
- When the link is up, set VGE_DIAGCTL not from user media setting but from
  the current active link status.
2019-11-21 02:59:43 +00:00
wiz
b6ec8480de Sort options and SEE ALSO. Improve a sentence. 2019-11-20 21:56:19 +00:00
ad
c8b094aa25 - Put back a microoptimisation that was accidentally removed.
- Comments.
2019-11-20 21:49:00 +00:00
pgoyette
1d577fe379 Move all non-emulation-specific coredump code into the coredump module,
and remove all #ifdef COREDUMP conditional compilation.  Now, the
coredump module is completely separated from the emulation modules, and
they can all be independently loaded and unloaded.

Welcome to 9.99.18 !
2019-11-20 19:37:51 +00:00
tkusumi
764206462f mount_autofs: Sync man page with DragonFlyBSD
Taken-from: DragonFlyBSD
2019-11-20 17:29:51 +00:00
tkusumi
b35c5f0b43 mount_autofs: Remove blank line with trailing whitespace 2019-11-20 17:18:35 +00:00
rin
41d6c85aa3 Fix netbsd32_process_write_dbregs() for amd64:
- Zero-clear regs64 so that random values are not written into the
  preserved registers.
- Cast 32-bit registers (int) to u_int, in order to avoid undesired
  sign extension when filled into 64-bit registers (long).

XXX
pullup to netbsd-9
2019-11-20 10:57:08 +00:00
maxv
2e57769833 Hide XSAVES-specific stuff and the masked extended states. 2019-11-20 10:26:56 +00:00
hikaru
87bee1d028 Add opencrypto driver for Intel QuickAssist. 2019-11-20 09:37:44 +00:00
msaitoh
89dc313cfe Fix a bug that atphy(4) can't negotiate correctly when the media setting is
neither auto nor 1000baseT. Use correct index for mii_media_table[].

 History: mii_anar() is first added in OpenBSD and ported to NetBSD. On NetBSD,
only atphy(4) use this function. mii_physubr.c rev. 1.75 changed mii_anar()
for simplify. It changed the argument from the ifmedia word to ifm_data used
in our MII API, but the caller have not been changed. And then, PR kern/50206
was reported and the caller was modified by me to prevent panic but it was not
correct fix.
2019-11-20 08:50:59 +00:00
knakahara
47b4370a6e "rss_symmetric_key" iniitalizer is too short. Pointed out by ryo@n.o, thanks.
It is not used yet.
2019-11-20 08:17:01 +00:00
martin
5238e8fd7e Restrict -Wl,-z,defs to x86 and aarch64 for now to avoid global build
lossage. Suggested by mrg.
2019-11-20 06:23:31 +00:00
palle
6bb25d03bf sun4v: added support for handling of opcode SCSI_MAINTENANCE_IN when using ldom based virtual disk 2019-11-19 20:07:30 +00:00
msaitoh
657326f9a0 Fixes a bug that "ifmedia vge0 media 1000baseT-FDX" causes device timeout.
If the interface's media is NOT in the "best" mode (i.e. other than IFM_AUTO),
control VGE_DIAGCTL_GMII bit.
2019-11-19 09:54:07 +00:00
martin
08bd83ed4c Looks like this requires pthread. 2019-11-19 08:59:18 +00:00
christos
ee0c356bd6 Sync with FreeBSD which capitalizes the control character names, and adds
a binary set.
Add a table with the full names for the control character set.
2019-11-19 05:11:33 +00:00
sevan
f692f6d8b0 Rename the block table to something else to make it easier to differentiate
between action and name. Use this table as the example for populating by npfctl.

Drop the int-block table, it's quite cumbersome to have a firewall which
needs the internal network lists added if reboot. Use the localnet variable to
indicated which network we should pass in traffic from instead.
2019-11-18 22:27:27 +00:00
joerg
404ee5b933 Build some more LLVM components for Gallium. Switch it to -Wl,-z,defs 2019-11-18 22:26:14 +00:00
christos
532dffde68 don't build stub if legacy drm is present too. 2019-11-18 20:02:09 +00:00
joerg
5ad18e3550 Use a big hammer and disabling strict aliasing for the tools build or
when using GCC.
2019-11-18 19:54:23 +00:00
christos
249752ac15 Compare libraries that the bsd.prog.mk "knows about" vs the ones we actually
install... Yes, pretty bad right now.
2019-11-18 16:23:28 +00:00
christos
4d3961b8b8 Improve the script to check for installed libraries, and fix the wrong
names and obsolete libraries it found.
2019-11-18 16:09:21 +00:00
martin
db4a9cc4e5 Fix previous: not a good idea to try to copy files from the not yet
extracted sets.
2019-11-18 16:05:55 +00:00
christos
fa876f5dc5 catch-up with more ports switched to gcc-8
fix typos, consistent whitespace
2019-11-18 15:42:26 +00:00
christos
e2cf0109bf switch arm to gcc-8 2019-11-18 15:38:07 +00:00
msaitoh
48e005d3b5 Remove extra 10ms delay in ihphy_reset(). The delay are in if_wm.c side.
It's required for hardware full reset and it't not requred on soft reset.
 When ihphy.c was added in 9 years ago, some workaround code were not in
if_wm.c yet and the initialization code was not good.
2019-11-18 15:09:58 +00:00
tkusumi
7575c8cff5 fstyp: Add exFAT support
Taken-from: FreeBSD and DragonFlyBSD
2019-11-18 14:53:34 +00:00
rin
32c63f4c98 8-byte objects on i386 or arm-oabi are aligned in 4-byte boundary.
Therefore, we must use __attribute__((__aligned__(4))) for them.
netbsd32_{,u}int64 are provided for this purpose. However, we
cannot use it in <compat/sys/siginfo.h> due to circular dependency
b/w <machine/netbsd32_machdep.h>.

In order to distangle it, we choose here to have a duplicate type,
netbsd32_siginfo_uint64, in <compat/sys/siginfo.h>. The equivalence
with netbsd32_uint64 is asserted in <compat/netbsd32/netbsd32.h>.

Now, gdb for i386 works again on amd64 kernel.

Based on patch provided by kamil. Thanks!

XXX
pullup to netbsd-9
2019-11-18 12:06:26 +00:00
rin
76105d4897 TRAP_EXEC does not have extra fields to be filled in at the moment.
Explicitly ignore fields for now.

Pointed out by kamil. Thanks!

XXX
pullup to netbsd-9
2019-11-18 11:01:41 +00:00