Commit Graph

271587 Commits

Author SHA1 Message Date
christos
356e78ed45 add missing files for 32 bit debugging on 64 bit host. 2019-11-22 01:49:20 +00:00
christos
e1c84f8601 Support for compat-32 type shared library paths. 2019-11-22 01:48:50 +00:00
alnsn
819cf7d8ba If gpt label "cgd.conf" contains a valid /etc/cgd file system,
try mounting gpt label "cgdroot" as a root filesystem first and
only mount /dev/cgd0a if that gpt label doesn't exist or fails
to mount.

XXX pullup to 8 and 9.
2019-11-22 00:27:30 +00:00
nakayama
b7b6f4ad9a Fix PR/54074 and PR/54093 completely.
More similar to the ld.elf_so logic, it is necessary to align with
p_align first.  Also, invert the #ifdef condition for consistency.

Should fix regression for static linking binaries:
http://releng.netbsd.org/b5reports/sparc/commits-2019.11.html#2019.11.10.23.39.03
http://releng.netbsd.org/b5reports/sparc64/commits-2019.11.html#2019.11.16.04.10.33
2019-11-21 23:06:15 +00:00
joerg
8e4a7b2e22 Merge amd64's UEFI logic back into the generic bootimage handling. 2019-11-21 22:29:03 +00:00
macallan
ac797d2386 ga_iot = 0 -> normal_memt
now a Challenge S should work again
from George Harvey
2019-11-21 22:05:09 +00:00
ad
e92da7bc17 x86 TLB shootdown IPI changes:
- Shave some time off processing.
- Reduce cacheline/bus traffic on systems with many CPUs.
- Reduce time spent at IPL_VM.
2019-11-21 21:48:33 +00:00
mrg
2a440dd580 apply the strncmp hack only to !clang. requested by tnn. 2019-11-21 21:45:34 +00:00
ad
b5034f0391 Minor improvements to select/poll:
- Increase the maximum number of clusters from 32 to 64 for large systems.
  kcpuset_t could potentially be used here but that's an excursion I don't
  want to go on right now.  uint32_t -> uint64_t is very simple.

- In the case of a non-blocking select/poll, or where we won't block
  because there are events ready to report, stop registering interest in
  the back-end objects early.

- Change the wmesg for poll back to "poll".
2019-11-21 21:42:30 +00:00
ad
c825105bdc - Don't give up kpriority boost in preempt(). That's unfair and bad for
interactive response.  It should only be dropped on final return to user.
- Clear l_dopreempt with atomics and add some comments around concurrency.
- Hold proc_lock over the lightning bolt and loadavg calc, no reason not to.
- cpu_did_preempt() is useless - don't call it.  Will remove soon.
2019-11-21 20:51:05 +00:00
ad
67c4c227e5 mi_userret(): take care of calling preempt(), set spc_curpriority directly,
and remove MD code that does the same.
2019-11-21 19:57:23 +00:00
ad
0e70dcbe0f lwp_setlock(): return pointer to the kmutex_t that we replaced 2019-11-21 19:47:21 +00:00
ad
e79eee7958 x86: abort pageidlezero unconditionally if there is something to run. 2019-11-21 19:27:54 +00:00
ad
8d31b01840 mi_userret(): take care of calling preempt(), set spc_curpriority directly,
and remove MD code that does the same.
2019-11-21 19:23:58 +00:00
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