Commit Graph

297296 Commits

Author SHA1 Message Date
knakahara 7bd2716d02 Remove obsoleted comments.
These comments are added with IFNET_LOCK by in_pcb.c:r1.180 and
in6_pcb.c:r1.162.  And then, IFNET_LOCK codes are removed in
in_pcb.c:r1.183 and in6_pcb.c:r1.166, however the comments have
remained.
2022-07-29 07:35:16 +00:00
riastradh 709f669d54 drm: Hook up the drmkms modules to the build. 2022-07-28 22:00:23 +00:00
riastradh 35a8c1175a drm: New option DRM_LEGACY.
This brings in the `drmums' components, which are the parts of the
current drm code base (sys/external/bsd/drm2) needed by legacy
user-mode-setting drivers (currently just viadrmums), in contrast to
the old drm code base (sys/external/bsd/drm).

This way, viadrmums.kmod can be loaded into GENERIC i386 kernels, but
platforms without any relevant legacy UMS drivers don't get the
legacy goo statically baked in.
2022-07-28 21:52:36 +00:00
martin 116a16e639 Revert editor mishap in r1.10 2022-07-28 16:45:31 +00:00
skrll 6d8cdd34be Trailing whitespace 2022-07-28 15:15:29 +00:00
riastradh 4f59366140 drmkms_sched: Fix typo in module definition. 2022-07-28 10:44:46 +00:00
riastradh 70b674691d drmkms_sched: Remove duplicate module definition. 2022-07-28 10:42:45 +00:00
riastradh abf396b457 drmkms_sched: Revert previous MKLDSCRIPT, red herring. 2022-07-28 10:41:07 +00:00
riastradh cbf29467ca arm/pic: Mark definitions static to match declarations. 2022-07-28 10:26:26 +00:00
riastradh 5bd128c2d1 arm/pic: Assert ci_cpl doesn't lower across interrupt handler. 2022-07-28 10:26:15 +00:00
riastradh d223d7a6fc drmkms_sched: Fix link sets in module. 2022-07-28 10:24:46 +00:00
skrll cfb1e03abc KNF the KNF 2022-07-28 09:22:25 +00:00
riastradh e4692dde59 arm32: Refactor splhigh and restore in dosoftints.
No functional change intended.  splhigh always returns ci->ci_cpl,
which should not be changing at this point.  Makes the bracketing by
splhigh/splx clearer.
2022-07-28 09:14:23 +00:00
riastradh f93cca4fbe aarch64: Refactor splhigh and restore in dosoftints.
No functional change intended.  splhigh always returns ci->ci_cpl,
which should not be changing at this point.  Makes the bracketing by
splhigh/splx clearer.
2022-07-28 09:14:12 +00:00
skrll b267e71c36 Catch up with the per lwp astpending (rather than per cpu) flag in the
preemption code.  NFC as preemption (still) isn't enabled.
2022-07-28 07:15:27 +00:00
pgoyette 9781142f34 And, we're not ready for 10.0 yet, so remove a couple premature lines!
Thanks, Rin!
2022-07-28 00:33:57 +00:00
pgoyette a5b39220d5 remove duplicate entry and blank line that crept in from somewhere. 2022-07-28 00:14:40 +00:00
pgoyette 277dad01a2 Oopppss, /usr has no `e' :) 2022-07-27 20:34:30 +00:00
pgoyette b61ea6bcac Include debug files for new amdgpu modules 2022-07-27 20:28:41 +00:00
maya 895e74fe94 Enable amdgpu module & firmware on x86
Make it easier to test this one out, add `load amdgpu` before boot netbsd.

XXX there should probably be a drm block in sys/modules/Makefile which
includes aarch64.
2022-07-27 18:29:35 +00:00
rin 89f91290c5 Correct stale comment. Thanks rillig@ for pointed out. NFC. 2022-07-27 04:17:02 +00:00
andvar ae3a1b96f2 s/functin/function/ in copy pasted comment. 2022-07-26 20:08:54 +00:00
andvar 4fe346050d s/fucntion/function/ in comments. 2022-07-26 19:49:32 +00:00
sjg 94688273fe Pass MAKEOBJDIR to opt-m-include-dir
Prevent makeing opt-m-include-dir.tmp in src tree.

Reviewed by: rillig
2022-07-26 19:32:25 +00:00
chs 7821e340ff curlwp is only available for ifdef _KERNEL. 2022-07-26 16:51:42 +00:00
rin bf24477d48 Fix copy-paste in comment. No binary changes. 2022-07-26 16:08:33 +00:00
rin 11704a4468 Fix inverted logic; cr was completely broken by FPU insn with Rc == 1.
Why haven't we noticed this so far...
2022-07-26 16:07:55 +00:00
skrll 9653f04c34 Whitespace 2022-07-26 14:53:12 +00:00
uwe 56cc39f2d1 mincore(2) - use .Rv -std 2022-07-26 00:25:45 +00:00
riastradh 134b15b0f4 mincore(2): Clarify units of len argument: bytes, not pages.
Minor tidying while here:

- Use .Fa, not .Ar, for function arguments.
- Reduce verbiage of opening sentence.
2022-07-25 22:50:42 +00:00
riastradh 9f0a763c4a t_sig_backtrace: Pacify vfork clobber warning with volatile. 2022-07-25 22:43:01 +00:00
riastradh 2edbbc6f32 execinfo(3): Mark sig_backtrace_jump test as xfail.
PR lib/56940
2022-07-25 22:37:37 +00:00
pgoyette 2e9e18c305 kern.maxvnodes _can_ be lowered, but not below the number of currently
active vnodes.
2022-07-25 14:46:53 +00:00
riastradh d14f9f0135 execinfo: Fix mistake in previous: match `the_loop*' as prefix.
Now that there are two functions we need to catch either one.
2022-07-25 11:02:41 +00:00
riastradh 03353bf482 execinfo: Test stack traces through null pointer jump too. 2022-07-25 10:38:17 +00:00
skrll 48a9aebdec Some more BITS(3) 2022-07-25 08:29:14 +00:00
skrll c7f24d9b0a G/C the unused bge_rx_mini_chain member from bge_chain_data. It was removed
from the FreeBSD driver in 2003.
2022-07-25 08:19:50 +00:00
dholland 3ad018779f Fix misleading fsck_ffs messages about wapbl journal replay.
Apparently fsck doesn't have a way to replay it to its internal memory
only. (Someone(TM) should implement this...)

This means that if you use -n, it can't replay the journal. But the
sequence of prints is such that it looks like it did. This is quite
misleading. Add an additional specific warning.
2022-07-25 05:15:08 +00:00
chs 6c65d94f25 use the pcb of the thread we are tracing rather than always curlwp. 2022-07-25 01:59:26 +00:00
riastradh 51335a1181 sys/lock.h: Need <sys/systm.h> for nullop.
But only do that we're not using SPINLOCK_BACKOFF_HOOK from
<machine/lock.h>.
2022-07-24 20:28:39 +00:00
riastradh 2827986044 aarch64/lock.h: Need <sys/param.h> for _HARDKERNEL.
Add include guard while here.

XXX Why does this aarch64-specific file have #ifdef __aarch64__?
2022-07-24 20:28:32 +00:00
rillig 6e619e7e36 make: fix out-of-bounds read when parsing an invalid line
Reported by Robert Morris in https://bugs.freebsd.org/265119.

Since 2021-12-14.
2022-07-24 20:25:23 +00:00
riastradh 8d4dbfa04b amdgpu: Define DC_FPU_START/END on Arm. 2022-07-24 20:05:08 +00:00
riastradh 2c5cf2455f amdgpu: Sprinkle missing COPTS.amdgpu_float options.
For some reason x86 didn't need these but aarch64 does.
2022-07-24 20:05:00 +00:00
riastradh 93b7400139 drm: Fix CPPFLAGS for drm scheduler code. 2022-07-24 19:23:59 +00:00
riastradh 09761141cb kern_event.c: Mark KASSERT-only static function as __diagused.
Otherwise clang objects with -Wunneeded-internal-declaration.
2022-07-24 19:23:44 +00:00
mrg 13fa9a5218 use defparam; noted by tnn@. 2022-07-24 18:04:48 +00:00
rin 0d696ff8f8 Revert our local fix for GCC 10.3 introduced in rev. 1.25:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c#rev1.25

The problem has been fixed differently by upstream:
- master: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=77eccbf39ed55297802bb66dff5f62507a7239e3
- gcc-10: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=6142d65f4f528067f31e86bb97c07a661f2d66e7

No regression observed for ATF on oea (sandpoint), booke (evbppc), and
405 (evbppc). The system boots successfully on 403 (evbppc).
2022-07-24 10:53:17 +00:00
nia 469d372e5b ctwm_app_menu: Various shell script optimization suggestions by kre@. 2022-07-24 07:38:15 +00:00
mrg 02502a24d6 make MAXLWP a real option that triggers rebuilds properly. 2022-07-23 19:15:28 +00:00