Commit Graph

272380 Commits

Author SHA1 Message Date
jakllsch 18f2cada68 Add another panel@fdt driver, this time for DRM-style panels.
To do: migrate away from other panel driver.
2019-12-19 00:35:01 +00:00
jakllsch 0343439250 add anxdp(4) 2019-12-19 00:28:34 +00:00
jakllsch 41be96bf1f add Rockchip (RK3399) glue for Analogix DisplayPort core 2019-12-19 00:25:58 +00:00
jakllsch ad370c5c20 add Analogix DisplayPort core driver 2019-12-19 00:23:57 +00:00
riastradh fedc917302 Implement rndseed support in efiboot and fdt arm.
The EFI environment variable `rndseed' specifies the path to the
random seed.  It is loaded only for fdt platforms at the moment.

Since the rndseed (an rndsave_t object as defined in <sys/rndio.h>)
is 536 bytes long (for hysterical raisins), and to avoid having to
erase parts of the fdt tree, we load it into a physical page whose
address is passed in the fdt tree, rather than passing the content of
the file as an fdt node directly; the kernel then reserves the page
from uvm, and maps it into kva to call rnd_seed.

For now, the only kernel that does use efiboot with fdt is evbarm,
which knows to handle the rndseed.  Any new kernels that use efiboot
with fdt must do the same; otherwise uvm may hand out the page with
the secret key on it for a normal page allocation in the kernel --
which should be OK if there are no kernel memory disclosure bugs, but
would lead to worse consequences than simply loading the seed late in
userland with /etc/rc.d/random_seed otherwise.

ok jmcneill
2019-12-18 21:46:03 +00:00
riastradh 4fa64b2cc2 New function cpu_startup_hook on arm.
Called at end of cpu_startup.  Can be defined in, e.g., evbarm to do
additional stuff after cpu_startup.  Defined as a weak alias to a
function that does nothing, so optional.

ok jmcneill
2019-12-18 21:45:43 +00:00
ad 7c88a62545 PR kern/54783: t_mmap crahes the kernel
- Fix various locking & sequencing errors with breaking loans.

- Don't call uvm_pageremove_tree() while holding pg->interlock as radixtree
  can take further locks when freeing nodes.
2019-12-18 20:38:14 +00:00
ad f91a5dfd9f Passify rump build. 2019-12-18 19:40:34 +00:00
jakllsch 660ba8e52d rk3399_cru: Reparent dclk_vop[01] to gpll via dclk_vop[01]_frac.
The previous source of dclk_vop[01] was vpll via dclk_vop[01]_div.
vpll is apparently used directly as a pixel clock source for the
HDMI PHY, and we don't want the other VOP's dclk changing out from
under it because we can't handle finding a replacement clock source
with the right rate yet.

gpll happens to run at 594MHz, which works well as a basis for pixel
clocks.

Linux suggests that the source clock of the fractional divider needs
to be more than twenty times greater than the resulting clock (or some
intermediate clock?) for output stability.  This may not be the case
with 594MHz and the common pixel clocks I see used by displays in my
area of the wild, but it works for now.
2019-12-18 18:40:19 +00:00
joerg 7ed25834ce Bump PTHREAD__UNPARK_MAX to 128 as bandaid for locking related hangs. 2019-12-18 15:11:57 +00:00
kamil f17e637789 Fix compiler-rt build after removal of filemon
Cherry-pick [patched locally]:
[compiler-rt] Sync NetBSD ioctl definitions with 9.99.26

Document the minimal version supported to 9.0.

e14ff22694
2019-12-18 14:51:24 +00:00
kamil c0c748b872 Remove obsolete mtree entry of usr/share/examples/supfiles 2019-12-18 14:44:16 +00:00
tkusumi 945ce57bcf dm: Test # of args in target's ->init()
The # of args is part of target's spec.
Both Linux kernel and DragonFlyBSD test argc on ctr/init.
2019-12-18 14:31:35 +00:00
msaitoh 27ed69307d Use unsigned to avoid undefined behavior. Found by kUBSan. 2019-12-18 13:25:58 +00:00
msaitoh 5c4f3aef07 Cast to uint32_t to avoid undefined behavior. Found by kUBSan. 2019-12-18 13:25:00 +00:00
skrll 399141302f KNF 2019-12-18 11:27:56 +00:00
ryo 7595c446ea atomic_add_16() is not used in pmap.c anymore. no need decl here. 2019-12-18 11:10:24 +00:00
ryo ef453f3b82 space to tab 2019-12-18 11:06:42 +00:00
skrll 9986a0453d Remove duplicate #includes 2019-12-18 10:55:50 +00:00
martin 73fa983b0d Fix the build 2019-12-18 10:30:23 +00:00
wiz 28107122fa Remove macros with no effect. 2019-12-18 10:17:48 +00:00
maxv e67f51b8f7 Retire filemon, discussed on tech-kern@. 2019-12-18 07:37:17 +00:00
christos 8282cab4e4 move file/lib after xz 2019-12-18 02:46:21 +00:00
christos 441814a01a bump 2019-12-18 02:35:59 +00:00
riastradh f1d2e7e5f7 Reduce entropy estimate for sun8icrypto TRNG.
NIST's SP800-90B entropy estimation tools put it at no more than .08
bits of entropy per byte of data(!), so estimate 100 bits of data per
bit of entropy.  This is probably not conservative enough -- the NIST
tools were written without knowledge of how this alleged TRNG works!
Knowledge of the physics of how the TRNG is supposed to work could
probably enable a better job at predicting the outputs.

While here, bump the size of data we can sample directly with sysctl
to 4096 bytes.
2019-12-18 02:26:48 +00:00
christos 19a77b177c Also disable ssp and fortify by default. 2019-12-18 02:16:04 +00:00
msaitoh 28a131041a Regen. 2019-12-18 01:15:32 +00:00
msaitoh a4e3409764 Add AMD Family14h PCIe. 2019-12-18 01:13:55 +00:00
roy b42795cb1a inet: Add support for IPv4 /31 prefixes, as described in RFC 3021.
To run a /31 network, participating hosts MUST drop support
for directed broadcasts, and treat the first and last addresses
on subnet as unicast. The broadcast address for the prefix
should be the link local broadcast address, INADDR_BROADCAST.

Taken from FreeBSD, r226402.
Fixes PR kern/51388.
2019-12-18 00:49:15 +00:00
christos b735c4fa8d fix sun2 2019-12-17 19:12:50 +00:00
christos 16fd89ab39 Fix sun2 (static linking) 2019-12-17 18:59:39 +00:00
christos 33c14bf659 Sync with upstream. 2019-12-17 18:35:57 +00:00
jakllsch ed63da0ae0 rkvop: set stride using virtual framebuffer width instead of display mode 2019-12-17 18:30:51 +00:00
jakllsch 8a76c35233 Move drm_encoder from rkvop(4) to the SoC-layer output pipe drivers (rk_dwhdmi). 2019-12-17 18:26:36 +00:00
ad 28431b3e66 ksem_sysinit(): more lossage. 2019-12-17 18:16:05 +00:00
ad 868c6c81ec Set ksem_max before installing the syscall package. 2019-12-17 18:10:36 +00:00
ad dc1bd2c938 Fix LOCKDEBUG panic on mutex_init().
Reported-by: syzbot+5a77339dc0a55e8d8caa@syzkaller.appspotmail.com
2019-12-17 18:08:15 +00:00
jakllsch 1fd88b52af rk3399_cru: implement dclk_vop0_frac and dclk_vop1_frac 2019-12-17 17:51:12 +00:00
christos fae31486a8 Add more libraries 2019-12-17 13:35:43 +00:00
skrll 85ee6e12a8 Fix a UVMHIST_LOG format 2019-12-17 13:25:50 +00:00
msaitoh 798c702773 Improve some chip revisions support:
- Add 8168FP, 8411, 8168G, 8401E, 8105E, 8105E_SPIN1, 8106E and 8402 from
   {Free,Open}BSD.
 - Renumber RTK_HWREV_8103E from 0x24C00000 to 0x34c00000. 0x24C00000 is newly
   used as RTK_HWREV_8102EL_SPIN1. Same as {Free,Open}BSD.
2019-12-17 10:42:06 +00:00
martin e2b0943e17 Cast an off_t to intmax_t and use %jd to printf it. 2019-12-17 08:02:00 +00:00
mlelstv cea9bbee01 Add error and zero targets to build. 2019-12-17 07:57:25 +00:00
msaitoh b9ae5f22eb Use bus_space_barrier() instead of x86 specific *fence instruction.
Written by riastradh@.
2019-12-17 05:49:01 +00:00
christos edc0c34588 Protect network ioctls from non-authorized users. (Ilja Van Sprundel) 2019-12-17 04:54:36 +00:00
christos f50eba77aa new file(1) 2019-12-17 02:32:26 +00:00
christos 78a23c3a8c merge conflicts 2019-12-17 02:31:05 +00:00
christos eff51ed236 Import 5.38:
- Always accept -S (no sandbox) even if we don't support sandboxing
	- More syscalls elided for sandboxiing
	- For ELF dynamic means having an interpreter not just PT_DYNAMIC
	- Check for large ELF session header offset
	- When saving and restoring a locale, keep the locale name in our
	  own storage.
	- Add a flag to disable CSV file detection.
	- Don't pass NULL/0 to memset to appease sanitizers.
	- Avoid spurious prints when looks for extensions or apple strings
	  in fsmagic.
	- Add builtin decompressors for xz and and bzip.
	- Add a limit for the number of CDF elements.
	- More checks for overflow in CDF.
2019-12-17 02:23:53 +00:00
manu a2ffa8f62d Do not use NAME=label syntax when label are empty
When booting sysinst from UEFI, it defaults to a GPT installation
where partition have no labels. Bootstrap used the NAME=label partition
anyway, with the result that both EFI and FFS root partition had
the same name "NAME=" and could not be distinguished. The first matching
partition for the name was used, and bootstrap looked for the kernel
in the EFI partition.

We fix that by not using NAME=label names for partition when label
is empty. In that case we revert to old syntax such as hd0b
2019-12-17 01:37:52 +00:00
ad 1ba3c68c12 More rump-ing. I will split this into two files during the week. 2019-12-17 00:59:14 +00:00