Commit Graph

272380 Commits

Author SHA1 Message Date
ad 8faaa814a5 Use MPSAFE callouts. 2019-12-14 15:36:08 +00:00
ad bed9f20585 Update uvmexp.nswget with atomics. 2019-12-14 15:34:18 +00:00
ad 0c2afd2995 Include radixtree in the kernel. 2019-12-14 15:30:37 +00:00
riastradh 18438dc6d3 Skip npf_config_sync if nothing to do.
Saves an unnecessary pserialize_perform every second.
2019-12-14 15:21:51 +00:00
ad be0cdb0537 Don't call uvm_pagedequeue() while holding pg->interlock. 2019-12-14 15:08:45 +00:00
ad 6c10122b55 Adjust pdpending in uvm_pageout_start() and uvm_pageout_done() to avoid
the value going temporarily negative.
2019-12-14 15:04:47 +00:00
ad b41bcd98f2 Use pageq.list instead of listq.list. 2019-12-14 14:46:11 +00:00
tkusumi aa6dca195e dm: Make dm_dbg_print_flags() take uint32_t flag
which comes from prop_dictionary_get_uint32() result.
taken-from: DragonFlyBSD
2019-12-14 14:43:38 +00:00
skrll 747a7a036d Fix build... wire_count probably doesn't need atomics 2019-12-14 13:48:09 +00:00
sevan 40db275b26 PCBC 2019-12-14 13:36:14 +00:00
tkusumi d3d26a328b autofs: Make /dev/autofs cdevsw functions static
Also less confusing since autofs vnops also has autofs_{open,close} in NetBSD.
2019-12-14 12:01:13 +00:00
martin 015df285a2 Adapt MD parts to changes in get_fs_part_type (pass partition type). 2019-12-14 12:00:40 +00:00
tkusumi 5449798710 dm: Move extern declaration of global variables to dm.h 2019-12-14 11:20:51 +00:00
mrg 74b9b609f1 switch powerpc to GCC 8. 2019-12-14 10:59:25 +00:00
tkusumi d9c59a056c dm: Remove void casts of function calls
Use of void casts in dm is not consistent, just get rid of them.
2019-12-14 10:49:30 +00:00
tkusumi 0d0a6d2316 dm: Remove unconditional debug prints in targets' ->strategy()
Having debug prints in ->strategy() by default just to tell ->strategy()
is called is overkill.
taken-from: DragonFlyBSD
2019-12-14 10:02:35 +00:00
mlelstv 656eb63c5c Handle NULL params, fix error paths. 2019-12-14 09:05:30 +00:00
maxv 3546e3f8ab Disable multiboot for now, too much breakage. 2019-12-14 07:45:20 +00:00
nisimura a995f7a579 use FC enable bit for 8842 host port 2019-12-14 04:12:49 +00:00
tsutsui fad88a189b Remove clause 3 and 4 from TNF licenses.
Ok'ed by martin@ in PR/54760.
2019-12-14 02:58:19 +00:00
macallan e4a15eebdd call cpu_topology_set() with adjustments for 970MP CPUs 2019-12-13 23:01:41 +00:00
martin 194b0d85bc When finding (paritioning scheme native) partition types for file systems
from our install description, pass the partition type (not only the file
system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem
type (MSDOS) is not a unique selector.
2019-12-13 22:12:41 +00:00
martin 2eadf7ff31 Remove bogus assert. 2019-12-13 22:10:21 +00:00
martin cd0c3adf11 When trying to tell a fictious but empty label from a real one, skip
partition a if it has the same start and size as the raw partition.
2019-12-13 21:46:59 +00:00
ad 628e14429e NetBSD 9.99.24 - UVM changes 2019-12-13 20:50:08 +00:00
mrg cefdfaf445 move P_tmpdir from "/var/tmp/" to "/tmp/".
the main effect of this is to make GCC and other libiberty using
tools use /tmp instead of /var/tmp for compiler temp files,
which can be a bottleneck on larger systems.

a survey of other platforms shows only OSX also uses /var/tmp,
everyone else has switched to /tmp long ago.


cons:  some smaller systems may have a smaller /tmp than /var/tmp,
and this may cause builds to fail with out of space earlier.
point the build to /var/tmp using TMPDIR in this case.

one can argue that setting TMPDIR would work around this, but we
want to have the effect for all users without having special setup.
2019-12-13 20:25:16 +00:00
ad 5978ddc663 Break the global uvm_pageqlock into a per-page identity lock and a private
lock for use of the pagedaemon policy code.  Discussed on tech-kern.

PR kern/54209: NetBSD 8 large memory performance extremely low
PR kern/54210: NetBSD-8 processes presumably not exiting
PR kern/54727: writing a large file causes unreasonable system behaviour
2019-12-13 20:10:21 +00:00
tkusumi 9a83c98b6e dm: Don't KASSERT() target handlers
Having assertions here causes panic if target is missing anything
as shown in "dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)".
Instead just return EINVAL if a handler(s) isn't implemented.

taken-from: DragonFlyBSD
2019-12-13 16:15:54 +00:00
tkusumi e5fc44006e dm: Fix memory leak in dm_pdev_rem()
Need to free dmp regardless of dm_pdev_rem() return value.
taken-from: DragonFlyBSD
2019-12-13 15:49:22 +00:00
maxv 7d2e98b172 Read the len before pushing the packet, otherwise possible use-after-free.
Found by a custom query on LGTM.
2019-12-13 14:13:55 +00:00
maxv 954f6141d7 Fix gross use-after-free. Found by a custom query on LGTM. 2019-12-13 14:10:32 +00:00
martin 79b003e2fe Do not try to change the keyboard layout if we are not running on the
console.
2019-12-13 12:05:11 +00:00
msaitoh 333d7cf6d4 KNF. No functional change. 2019-12-13 08:30:26 +00:00
skrll 4ce8167144 Fix KASAN support by calling kasan_shadow_map in pmap_growkernel 2019-12-13 08:11:12 +00:00
skrll cfb956d18d Trailing whitespace 2019-12-13 08:02:53 +00:00
skrll 865d073836 KNF 2019-12-13 08:01:26 +00:00
skrll 0545d1e993 Inclide sys/atomic for atomic_store_relaxed 2019-12-13 07:59:36 +00:00
msaitoh ed7b077185 KNF. No functional change. 2019-12-13 02:03:46 +00:00
pgoyette f01c2b4e29 Eliminate per-hook duplication of common code as suggested by
(and with major contributions from) riastradh@

Welcome to 9.99.23
2019-12-12 22:55:20 +00:00
martin e65ec1bd4e Fix inverted comparison 2019-12-12 20:14:21 +00:00
martin 8fff818899 Fix DISKLABEL_NO_ONDISK_VERIFY (accidently disabled in previous) 2019-12-12 19:29:05 +00:00
maxv 616f977fff Check CPUID.IBRS in addition to ARCH_CAP.IBRS_ALL. For clarity, and also
because VirtualBox clears the former but forgets to clear the latter (which
makes us hit a #GP on RDMSR).
2019-12-12 16:49:20 +00:00
pgoyette 5d4e5c04cd Make sure to #include to get required definitions.
Should fix the build break reported by martin@
2019-12-12 16:36:25 +00:00
tkusumi d14bb027b6 dm: Make target's ->init() take parsed argc and argv
This gets rid of the same parser code in each target using strsep(3).
taken-from: DragonFlyBSD
2019-12-12 16:28:24 +00:00
mbalmer f21ee73934 Apply a fix for the bug "Joining an upvalue with itself can cause a use-after
free", documented on http://www.lua.org/bugs.html
2019-12-12 12:35:43 +00:00
martin 1994e1beef Fix detection of existing disklabels in the case when we only have
the disklabel partitioning scheme available.
2019-12-12 12:19:39 +00:00
nisimura fbeba0a57f use additional MAC addresses to accept mcast 2019-12-12 12:00:06 +00:00
knakahara c9aaf53854 fix build failure. ok by msaitoh@n.o. 2019-12-12 11:47:30 +00:00
msaitoh 2faf80547b Add SFP support part 2.
- Add code for 1000BASE-T SFP. It uses SGMII.
 - Add extra delay in wm_serdes_power_up_link_82575(). Same as other OSes.

TODO:
 - Module insertion/removal support. Currently, SFP detection is only done
  in the driver's attach phase.
2019-12-12 09:32:54 +00:00
msaitoh 3143811e7e - Remove ESSR_FIBER_LINK bit check in makphyattach(). This bit is valid only
when the link is up, so it's not good to check in the attach function.
- There is an environment that both copper and fiber bits are set in EXTSR
  but it support copper only. To resolve this problem, check the ESSR
  register's HWCFG_MODE bit and drop unsupported bits.
- If the chip is in Fiber/Copper auto select mode, check which media is
  selected. Currently, the code supports 88E1011, 88E1111 and 88E1112 only.
  To support other chips documents are required.
2019-12-12 09:25:37 +00:00