Commit Graph

247214 Commits

Author SHA1 Message Date
skrll
8e2dc22e79 Fix uvm_page_physget_freelist so that it actually performs the two passes
it mentions.
2016-12-23 09:36:55 +00:00
maya
5aa4cebe72 Use PRIxPSIZE when printing psize_t.
Fixes i386 kernels build.
2016-12-23 09:24:57 +00:00
skrll
1547d2d3eb PRIxPHYSMEM -> PRIxPHYSSEG to fix the build 2016-12-23 09:18:02 +00:00
skrll
b9250ac781 PHYSMEM -> PHYSSEG to fix build 2016-12-23 09:16:46 +00:00
skrll
cee8cc2148 Whitespace 2016-12-23 08:53:56 +00:00
maya
6e0b406276 remove conflicting declarations of physmem. we want it to be psize_t 2016-12-23 08:09:54 +00:00
cherry
a9cac8fa8f Omitted assigning handle return value for the case:
(VM_PHYSSEG_STRAT == VM_PSTRAT_RANDOM)

Fix this.
2016-12-23 07:42:32 +00:00
maya
f08e73106c Remove conflicting declaration of physmem 2016-12-23 07:40:05 +00:00
cherry
3b1622fa3c "Make NetBSD great again!"
Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.
2016-12-23 07:15:27 +00:00
mrg
20c21f9f52 in getpcblist_sysctl() if sysctlnametomib() fails, return NULL and
set *len = 0, rather than bailing.  now "netstat" doesn't give up
early on kernels without INET6.
2016-12-23 06:22:00 +00:00
abhinav
93864c5433 Complete a sentence
and replace full stop with a comma at one place as the sentence wasn't finished
2016-12-23 06:01:41 +00:00
mrg
65d0ad5f99 add the member name to an error string so we know what object failed
while being requested.
2016-12-22 22:41:02 +00:00
kamil
b837326c3b The cgd(4) module requires des and blowfish symbols
This has been exposed with the MODULAR kernel.

kobj_checksyms, 979: [cgd]: linker error: symbol `BF_set_key' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_key_sched' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_ede3_cbc_encrypt' not found
WARNING: module error: unable to affix module `cgd', error 8

Reviewed by <riastradh>
2016-12-22 20:57:33 +00:00
abhinav
6672db53ac Remove trailing comma at the end of the last .Nm entry in the NAME section 2016-12-22 17:39:28 +00:00
abhinav
d52ecd3afc Grammar fixes at few places
Also, don't use .D1 inside .Bd (mandoc -Tlint was complaining)
Remove whitespace at the end of a sentence
2016-12-22 17:27:02 +00:00
maya
b6407b6ab6 add new header (uvm_physseg.h) to set list. 2016-12-22 16:32:31 +00:00
bouyer
ad7eb753d3 Xen doens't need lapic so don't allocate a lapic VA/PA for Xen.
As a side effect this makes XEN3PAE boot again but I don't know why ...
2016-12-22 16:29:05 +00:00
cherry
3a405f030d physmem should be of type psize_t
Also, use PRIxPSIZE when printf(9)ing physmem.
2016-12-22 16:05:14 +00:00
cherry
d24c42c87d Turn off uvm_hotplug option selection until we actually have it.
Should fix the build.
2016-12-22 15:54:35 +00:00
cherry
e08917ef90 switch all ports to use uvm_init.c:uvm_md_init()
uvm_setpagesize() is now subsumed within this funciton.
2016-12-22 14:47:53 +00:00
mlelstv
46f58a90c6 When balancing threads over multiple CPUs, use fixpoint arithmetic
for averages. Otherwise the decisions can be heavily biased by rounding
errors.

Add sysctl kern.sched_average_weight to change the weight of
historical data, the default is 50%.
2016-12-22 14:11:58 +00:00
mlelstv
8a03ce05bd Fix race condition in dksubr, where a dk_start from another thread
or interrupt was ignored while the queue was processed.

Bump kernel revision for changed dk_softc.
2016-12-22 13:42:14 +00:00
cherry
8af61ebf0c Use uvm_physseg.h:uvm_page_physload() instead of uvm_extern.h
For this, include uvm_physseg.h in the build and include tree, make a
cosmetic modification to the prototype for uvm_page_physload().
2016-12-22 13:26:24 +00:00
maya
0805fb3a53 fix release build after the addition of uvm_hotplug man9 page
by adding it to the set lists.
2016-12-22 12:57:18 +00:00
ozaki-r
95d40beaa9 Fix that rump.ifconfig shmifN destroy hangs up
rump.ifconfig shmifN destroy sometimes hangs up on closing a file
descriptor of kqueue under heavy load. It seems it happens because of
a race condition between closing a fd and kevent to the same fd on
another kthread for packet Rx. Fix it by executing the close operation
after the kthread left.
2016-12-22 12:55:28 +00:00
cherry
d916fc674d Add a new function called uvm_md_init() that can be called at the
appropriate time in the boot path by MD code.
2016-12-22 12:55:21 +00:00
abhinav
c665c84ea5 We don't have any ``name'' program, so remove its reference
and use markup to refer finger(1).

ok wiz@
2016-12-22 12:42:24 +00:00
abhinav
2faad91b8c Instead of saying "The finger displays information..." say "The finger utility"
(not sure if it was intentionally written like that :)

Also, add an xref to fingerd(8)
2016-12-22 12:39:40 +00:00
cherry
8cea678b1d Add the uvm_hotplug.9 manpage to the build tree. 2016-12-22 11:46:48 +00:00
mlelstv
b4b1e3daf4 fix comment. request_sense is called unlocked. 2016-12-22 11:19:21 +00:00
ozaki-r
bf6d49ecb3 Fix handling return value of rumpcomp_shmif_watchwait 2016-12-22 10:13:09 +00:00
abhinav
c8a3a46962 Add xrefs to ipsec_set_policy(3) and signal(7) 2016-12-22 09:44:56 +00:00
cherry
e6ff351e1a convention about function names for predicate checking:
s/uvm_physseg_valid()/uvm_physseg_valid_p()/

per. matt@
2016-12-22 08:15:20 +00:00
mrg
1fee883e7a fix lp64 kvm access for many kernel addresses.
in mm_md_kernacc() allow an address if it matches MIPS_KSEG0_P().

now a static n64 kvm-using binary runs sanely on an n64 kernel.
(dynamic n64 has problems with non-trivial programs.)

ok matt@.
2016-12-22 07:56:38 +00:00
knakahara
50b2b110c2 pserialize_perform() is required *after* PSLIST_WRITER_REMOVE. 2016-12-22 04:54:54 +00:00
ozaki-r
ec260ed075 Remove assertion that the lock isn't held
It's useless in this case, because without it we can know that
the lock is held or not on a next lock acquisition and even more
if LOCKDEBUG is enabled a failure on the acquisition will provide
useful information for debugging while an assertion failure will
provide just the fact that the assertion failed.
2016-12-22 03:46:51 +00:00
wiz
154b520e6c New sentence, new line. 2016-12-21 22:49:14 +00:00
kamil
49e3a2363a Add a walkaround for TLS bug in libstdc++ exposed with std::call_once
Currently std::call_once with libstdc++ works only with static linking.
Disable code path using __thread types and introduce FIXME_PR_51139.
Problem discussed in PR 51139

Functional std::call_once is required in LLVM and LLDB codebase.

Example code to test std::call_once:
#include <iostream>
#include <thread>
#include <mutex>
#include <cstdlib>
std::once_flag flag;
int main(int argc, char **argv)
{
        std::call_once(flag, [](){ std::cout << "Simple example: called once\n"; });
        return EXIT_SUCCESS;
}

Sponsored by <The NetBSD Foundation>
2016-12-21 21:55:46 +00:00
mlelstv
6081459242 really keep request queued after resource shortage 2016-12-21 21:28:30 +00:00
christos
e124df0e11 document -t for update 2016-12-21 21:26:28 +00:00
abhinav
59fbdd4908 Add an xref to wait4(2) in SEE ALSO as it has been referred to for the -l option. 2016-12-21 18:01:21 +00:00
abhinav
fe663009fc Move information about exit status to its own section. 2016-12-21 17:45:07 +00:00
abhinav
2abbc56adb s/results/result
Also remove .Pp before .Bl
2016-12-21 17:29:22 +00:00
abhinav
585f9e85b5 Add xref for ethers(5) and hosts(5).
Remove extra white space in the middle of a sentence.
Use more markup for AUTHORS section.

ok wiz@
2016-12-21 12:03:48 +00:00
maya
8d575a4325 Less magic. 0x00000c00 is equal to PCIE_LCAP_ASPM. 2016-12-21 11:56:55 +00:00
ozaki-r
602dc20a5b Enable DEBUG to see what happened on babylon5 2016-12-21 09:46:39 +00:00
abhinav
cad7fa138e Fix sentences at a couple of places. 2016-12-21 09:33:08 +00:00
abhinav
fa0751d0dd Add missing full stop. 2016-12-21 09:06:24 +00:00
ozaki-r
6261537b3d Fix deadlock between llentry timers and destruction of llentry
llentry timer (of nd6) holds both llentry's lock and softnet_lock.
A caller also holds them and calls callout_halt to wait for the
timer to quit. However we can pass only one lock to callout_halt,
so passing either of them can cause a deadlock. Fix it by avoid
calling callout_halt without holding llentry's lock.

BTW in the first place we cannot pass llentry's lock to callout_halt
because it's a rwlock...
2016-12-21 08:47:02 +00:00
ozaki-r
60ce16b544 Restore multiple_routers_single_prefix_cleanup removed wrongly 2016-12-21 07:02:16 +00:00