Commit Graph

259700 Commits

Author SHA1 Message Date
jmcneill
ca5cdadb4c When cold, manually update timecounters before calling getnanouptime. Now
kernel printf timestamps are updated properly before interrupts are
enabled.
2018-06-30 17:15:01 +00:00
jmcneill
012aca1c0a Attach simplebus on pass 0 2018-06-30 16:48:49 +00:00
jmcneill
7c5742513d cpus: use fdt_add_bus 2018-06-30 16:30:35 +00:00
jmcneill
61fd5480b9 Only install interrupt handler if dwc_gmac_attach succeeds. 2018-06-30 16:28:14 +00:00
jmcneill
89fbd4980d dwc_gmac_attach: return non-zero on failure 2018-06-30 16:27:48 +00:00
jmcneill
78c7f9844a Allow nodes to attach child devices using the same sorting rules as used
by the simplebus driver.
2018-06-30 16:22:56 +00:00
christos
a17e2f9d4b use a switch. 2018-06-30 16:05:44 +00:00
christos
57f6f93a3e Provide an inline to return the data part of the arp packet instead of
open-coding it in multiple places.
2018-06-30 15:08:04 +00:00
riastradh
1cf40ee15d Rearm the Xen timer on resume.
This just moves the timer-arming logic from xen_initclocks into
xen_resumeclocks so that it runs on resume too.

I hypothesize that this is necessary for Xen to resume.  Otherwise,
how could the one-shot timer possibly by rearmed?  On the other hand,
it is conceivable that something automatically rearms it.

This also reorders the initialization so that we establish a timer
interrupt handler first, and _then_ arm the timer.  If the order
matters, it is hard to imagine that the other way is correct:
conceivably, the interrupt could arrive before we've established the
handler, and then there's nothing to rearm it.

Whether this is _sufficient_ for Xen to resume, I don't know.
Symptoms recently reported in
<https://mail-index.netbsd.org/port-xen/2018/06/15/msg009207.html>
look different from how I would expect this to manifest, which is as
a system wedged because there's no no hardclock activity.

ok cherry
2018-06-30 14:59:38 +00:00
riastradh
ec94896e30 Use xcall to suspend/resume clocks on _all_ CPUs, not just current.
Compile-tested only -- kernel still runs but I haven't exercised this
code path.

By code inspection, this change or something like it is obviously
_necessary_ for Xen MP suspend/resume -- otherwise there's no logic
to suspend/resume the clocks on any CPU except the one that actually
triggers sysctl -w machdep.xen.suspend=1.

Whether this change is _sufficient_ for Xen MP suspend/resume to
work, I don't know.

ok cherry
2018-06-30 14:55:13 +00:00
riastradh
a9aa080355 Just use struct cpu_info members for the Xen clock state.
Silly to use percpu(9) for some things and struct cpu_info for
others.
2018-06-30 14:21:19 +00:00
jmcneill
8d4a1027a6 When attaching child devices, consider the best match for all passes
instead of just the current pass. Fixes an issue where a driver with a
lower match number and early pass number will attach instead of a better
match on a later pass.
2018-06-30 13:44:50 +00:00
jmcneill
fec1439d5f add syscon 2018-06-30 12:42:42 +00:00
jmcneill
87578108fb Use syscon API instead of mapping syscon registers ourselves. 2018-06-30 12:36:13 +00:00
jmcneill
5b0333eb17 Add support for system controller nodes. 2018-06-30 12:35:18 +00:00
jmcneill
a1405d385b No need to define our own emac node as this is in the upstream dts now. 2018-06-30 12:23:24 +00:00
kre
873631e713 Fix module build.
Options SUIDSCRIPTS and FDSCRIPTS will be off for the module.
If one (or both) should be enabled, add it to CPPFLAGSin the module Makefile.
2018-06-30 11:10:54 +00:00
jmcneill
a3f3f06c62 Add driver for DesignWare Watchdog Timer. Untested as I can't seem to find
the parent clock for this in the RK3328 documentation.
2018-06-30 10:50:30 +00:00
sevan
ab8dd17d7b vnconfig name is retained for backwards compatibility. Use vndconfig.
Heads up by <tsutsui>
2018-06-30 09:27:41 +00:00
eadler
ea2987652b bsd-family-tree: Add missing DragonFly and FreeBSD releases
Add DragonFly 5.2.1, 5.2.2, FreeBSD 11.2
2018-06-30 01:08:39 +00:00
christos
f3e9eebed2 defflag {SETUID,FD}SCRIPTS 2018-06-30 00:37:37 +00:00
riastradh
8f8bb0d3fd Rewrite Xen timecounter and hardclock timer.
With this change, the Xen timecounter should now be globally
monotonic, as every timecounter is supposed to be.  Should also fix a
litany of races in the timecounter logic.

Proposed last year; see mailing list for further details:
https://mail-index.netbsd.org/port-xen/2017/10/31/msg009112.html

ok cherry
2018-06-29 21:53:12 +00:00
christos
9f321dce94 Add our syslog format. 2018-06-29 20:18:36 +00:00
christos
8910c94cf4 add missing args for 123 2018-06-29 20:18:05 +00:00
maxv
ea978cc53a Add more KASSERTs.
Should help PR/53399.
2018-06-29 19:34:35 +00:00
maxv
a093a9e5c6 Call fpu_eagerswitch a little later, after we make sure newlwp is not
pinned.

Because if it is, the fpu state of the lwp we are context-switching to
is already installed on the current cpu, so no point re-installing it.
Or, it isn't, and in this case we don't want to install it.

This wrong re-installation can occur when we leave a softint.

It may fix bugs in places that call fpusave_lwp with spl != IPL_HIGH,
and that expect the fpu state to stay in memory. As far as I can tell
only cpu_lwp_free meets these conditions, and as far as I can tell
again, there it's harmless.

Should help PR/53399.
2018-06-29 19:21:43 +00:00
sevan
8ec25d68b5 Note vnconfig(8) may be of interest, especially when looking to mount an iso via
loopback.
2018-06-29 19:13:19 +00:00
msaitoh
cd131a6318 Detect USB 3.1. 2018-06-29 17:48:24 +00:00
roy
b729dec75a Remove dhclient from the base system.
Discussed here:
https://mail-index.netbsd.org/tech-userlevel/2018/06/21/msg011233.html
2018-06-29 12:34:13 +00:00
kamil
cd35dc3d84 Rework the changes to DTRACE/ZFS files that were fixing Clang/LLVM build
Rever changes to upstream files and replace them with additional -Wno-
compiler argument flags.

Tested with base LLVM.

Requested by <chuq>
2018-06-29 11:33:46 +00:00
thorpej
3e554dfa58 - Unify the "rtwn" and "urtwn" register definitions and initialization
tables into common header files shared by both drivers.
- Fix some register and bit definitions, from OpenBSD and verified against
  the vendor driver.
- Add some additional register / descriptor defnitions, from OpenBSD.
2018-06-29 04:02:10 +00:00
wiz
565352da0c New sentence, new line. 2018-06-28 22:00:50 +00:00
macallan
da2ab6d431 fix a tpyo so now we get the correct maximum speed for CPU intake fans
while there, be a bit more responsive to temperature changes
2018-06-28 21:21:03 +00:00
macallan
a25bcae0e7 restrict a magic number 'fix' inherited from xf86-video-radeon to actual
rv100 chips instead of applying it to anything older than r300.
Now DVI output works properly on 1st generation Mac Minis.
tested by christos
2018-06-28 17:22:09 +00:00
thorpej
9351a32e78 Use the "flags" config directive modifier to specify seeprom size
(a pre-existing capability in seeprom driver) now that "size" is no
longer a valid locator for i2c.
2018-06-28 15:21:52 +00:00
kre
cb552d924c Remove (recently) commented out (recently added) liblsan SUBDIR
(it has been added a different way.)
2018-06-28 14:01:12 +00:00
jmcneill
6774ae4a9e Regen 2018-06-28 13:31:57 +00:00
jmcneill
a83f640735 Add vendor REALTEK and product RTL8703BS 2018-06-28 13:31:38 +00:00
rkujawa
0d49c34489 Clarify caveats. 2018-06-28 13:18:19 +00:00
christos
0fd9ea3645 put back lsan 2018-06-28 10:14:01 +00:00
msaitoh
2296fecaaa Add 25G(802.3by), 2.5G and 5G (802.3bz). 2018-06-28 09:12:21 +00:00
maya
97fc8f3ce3 Correctly specify that iasl needs to be case insensitive.
Fixes PR bin/53405. thanks to martin.
2018-06-28 07:56:22 +00:00
ozaki-r
79209cd2af rumphijack: don't modify a cmsg on just validating it
Pointed out by k-goda@IIJ
2018-06-28 06:20:36 +00:00
ozaki-r
3b32ae4558 loop: don't allocate a unnecessary link-state-change thread 2018-06-28 06:02:24 +00:00
sevan
bc5535513e Add LISPs (programming language & network protocol), Vim 2018-06-27 23:26:13 +00:00
jmcneill
e16bcb7a48 dts updated to 4.18-rc2 2018-06-27 19:49:47 +00:00
kamil
76513d74e2 Remove the expr(1) entry from TODO.sanitizer (finished)
While there, fix a typo in text.
2018-06-27 18:43:16 +00:00
kamil
b18b4f6eea Add 3 more expr(1) ATF tests detecting overflow
Verify 0 * INT.
2018-06-27 17:39:30 +00:00
kamil
2597218cc4 Add a missing check to handle correctly 0 * 0 in expr(1) 2018-06-27 17:23:36 +00:00
kamil
c97a37eb9c Add a couple of new ATF expr(1) tests
Some of the newly covered test-cases contained regressions.

All tests pass.
2018-06-27 17:14:47 +00:00