Commit Graph

272360 Commits

Author SHA1 Message Date
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
wiz
460718aa4e Comment out xref to tb(4), it does not exist.
XXX: I don't see it mentioned in amd64/GENERIC nor DEVNAMES
2019-12-12 05:00:33 +00:00
pgoyette
08f76bd663 Point out that spurious wake-ups are possible, and that an LWP should
check for resource availability after being awoken.
2019-12-12 02:34:55 +00:00
pgoyette
8a031a1d1e Rather than keeping a separate mutex, condvar, and pserialize for each
module hook, we can share a common set of synchronization structures.
This cuts the amount of cacheline_aligned data for these structures by
50%.

Note that we still have a per-hook localcount, since we need to count
individual references.

As discussed with riastradh@

Welcome to 9.99.22 !
2019-12-12 02:15:42 +00:00
jmcneill
1b7d31b19d Enable USB3 support on RK3328 2019-12-12 00:46:31 +00:00
jmcneill
c3f116d3b1 Add support for snps,dis-tx-ipgap-linecheck-quirk quirk 2019-12-12 00:45:59 +00:00
scole
bb0577334b Synchronize htdocs, manual, comments, and code so that enabling the platinumfb is done using "platinum" in openfirmware settings. Remove "screen" option which was somewhat disingenuous. 2019-12-11 21:04:47 +00:00
jdc
6c5b34cf0d Chip matching improvements:
only match for currently known addresses
  don't generate messages when matching
Tested on Sun Blade 2500 by martin@.
2019-12-11 21:00:11 +00:00
ad
0a55e6b767 Add a comment. 2019-12-11 20:50:32 +00:00
ad
697d97f8ad Comment on previous explaining why it's needed. 2019-12-11 20:46:06 +00:00
ad
ab436b5053 mutex_vector_exit: if the arch doesn't have assembly stubs, we need to
unconditionally release the lock if(cold), so mutexes can be used before
interrupts are set up.  Removed with panicstr checks in 1.81.
2019-12-11 20:34:06 +00:00
ad
5f087b6f0f Redo previous more conventionally. Requested by kre@. 2019-12-11 20:19:27 +00:00
ad
d1120cd8e9 Report on whether vnodes are MPSAFE. For diagnosing perf problems. 2019-12-11 19:51:36 +00:00
martin
000e67db6f For now rely on the kernel mapping native RDB partitions. 2019-12-11 19:25:50 +00:00
martin
675f7bf669 PR 54065: add optional "old compat" variant of ext2fs in file system
type selection and use that as default for the cobalt boot file system.
2019-12-11 19:23:37 +00:00
tsutsui
7bc4024944 Fix a longstanding "freeze right after enabling interrupt" problem.
With this fix, finally NetBSD/emips on Giano is fully functional.
See PR/45080 for more details.

Should be pulled up to netbsd-9.
2019-12-11 16:16:13 +00:00
martin
b2a9c378fb Get rid of the evbarm preliminary menu: do not bother to ask the user
whether this is a RPi - query the FDT instead.
2019-12-11 15:08:45 +00:00
tkusumi
c8eaa1e89d dm: Revert "Fix error handling in dmioctl()" for now
This change seems to break "deps" in dm ioctl(2) for linear target.
Revert the change, will revisit later.
https://mail-index.netbsd.org/current-users/2019/12/11/msg037179.html
2019-12-11 14:03:37 +00:00
bouyer
79dd41fe30 reading usbdi.c it looks like usbd_get_config_descriptor() can actually
return NULL, so check for this.
I got NULL pointer dereference here with a device showing:
[   303.732632] ugen0: autoconfiguration error: setting configuration index 0 failed
2019-12-11 11:54:23 +00:00
msaitoh
fa0800bb31 Add SFP support part 1. The code for SerDes and SGMII setting is not include
in this commit. SFP module removal interrupt detects but not used yet:
- Detect SFP's 1000BASE-SX, 1000BASE-LX, 100BASE-FX and 1000BASE-T correctly.
- Detect the Media Auto Sense feature. Not supported yet.
- Add comment.
2019-12-11 10:28:19 +00:00
yamaguchi
8aa27d8e35 Fix to detect link state down
Link status event that is used to update link status sometimes
is not notified when link down. So, use Get Link Status response
that has the same information with the event.
The handling of the event is needed to detect link state
up because the response sometimes does not notify link up.
2019-12-11 10:03:08 +00:00