freebsd-dev/sys
Mitchell Horne 818390ce0c arm64: fix early devmap assertion
The purpose of this KASSERT is to ensure that we do not run out of space
in the early devmap. However, the devmap grew beyond its initial size of
2MB in r336519, and this assertion did not grow with it.

A devmap mapping of a 1080p framebuffer requires 1920x1080 bytes, or
1.977 MB, so it is just barely able to fit without triggering the
assertion, provided no other devices are mapped before it. With the
addition of `options GDB` in GENERIC by bbfa199cbc, the uart is now
mapped for the purposes of a debug port, before mapping the framebuffer.
The presence of both these conditions pushes the selected virtual
address just below the threshold, triggering the assertion.

To fix this, use the correct size of the devmap, defined by
PMAP_MAPDEV_EARLY_SIZE. Since this code is shared with RISC-V, define
it for that platform as well (although it is a different size).

PR:		25241
Reported by:	gbe
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2021-01-13 17:27:44 -04:00
..
amd64 Enable accelerated AES-XTS software crypto in GENERIC. 2021-01-13 13:13:01 -08:00
arm cgem: add 64-bit support 2021-01-10 16:51:52 -04:00
arm64 Enable accelerated AES-XTS software crypto in GENERIC. 2021-01-13 13:13:01 -08:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam cam: Remove Giant handling from cam_sim_alloc() 2021-01-03 11:50:31 -05:00
cddl Handle using a sub instruction in the arm64 fbt 2021-01-12 12:42:23 +00:00
compat linux: mute the "unsupported prctl option 23" warnings 2021-01-13 10:31:56 +00:00
conf Create a stack frame when needed in the arm64 kernel 2021-01-13 16:36:52 +00:00
contrib [skip ci] Delete an accidentally-committed comment 2021-01-11 17:01:22 -07:00
crypto armv8crypto: add AES-XTS support 2021-01-07 15:35:20 -04:00
ddb ddb: add ability to print user registers 2021-01-08 14:53:06 -04:00
dev dwwdt: Add PNP info for the driver 2021-01-13 18:43:51 +01:00
dts cgem: add 64-bit support 2021-01-10 16:51:52 -04:00
fs Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
gdb gdb(4): allow bulk write of registers 2020-12-23 14:37:05 -04:00
geom geom(4): make g_newprovider_event() return if G_P_WITHER is set 2020-12-29 14:29:59 +00:00
gnu ARM64: Port FreeBSD to Nvidia Jetson TX1 and Nano. 2020-12-28 14:12:41 +01:00
i386 Enable accelerated AES-XTS software crypto in GENERIC. 2021-01-13 13:13:01 -08:00
isa
kern arm64: fix early devmap assertion 2021-01-13 17:27:44 -04:00
kgssapi State kgssapi dependency on xdr. 2020-09-17 22:29:38 +00:00
libkern libkern/strcasestr.c: Drop xlocale support and connect to build. 2021-01-08 02:18:42 +03:00
mips hid: Import functions and constants required by new subsystem 2021-01-08 02:18:42 +03:00
modules Add driver for Synopsys Designware Watchdog timer. 2021-01-13 18:43:47 +01:00
net Remove redundant rtinit() calls from tuntap. 2021-01-13 10:03:15 +00:00
net80211 net80211: fix a typo 2020-11-04 12:07:33 +00:00
netgraph pccard: Remove bt3c(4) driver 2021-01-07 20:40:41 -07:00
netinet Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
netinet6 Map IPv6 link-local prefix to the link-local ifa. 2021-01-13 10:03:15 +00:00
netipsec Trigger soft lifetime expiration on sequence number 2020-10-16 11:27:01 +00:00
netpfil pf: Don't hold PF_RULES_WLOCK during copyin() on DIOCRCLRTSTATS 2021-01-13 19:49:42 +01:00
netsmb net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
nfs nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfsclient nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfsserver nfs: Mark unused statistics variable as reserved 2020-11-18 04:35:49 +00:00
nlm nlm: clean up empty lines in .c and .h files 2020-09-01 22:14:52 +00:00
ofed Update user access region, UAR, APIs in the core in mlx5core. 2021-01-08 13:33:46 +01:00
opencrypto Remove the cloned file descriptors for /dev/crypto. 2020-11-25 00:10:54 +00:00
powerpc hid: Import functions and constants required by new subsystem 2021-01-08 02:18:42 +03:00
riscv arm64: fix early devmap assertion 2021-01-13 17:27:44 -04:00
rpc nfs-over-tls: handle res.gid.gid_val correctly for memory allocation 2021-01-12 13:59:52 -08:00
security Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
sys fd: add refcount argument to falloc_noinstall 2021-01-13 15:29:34 +00:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests Add fib lookup testing module. 2021-01-09 13:20:30 +00:00
tools sys/tools: Add a tool for generating arm and arm64 kernel images. 2020-12-30 13:22:04 +01:00
ufs Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
vm vm_map_protect: allow to set prot and max_prot in one go. 2021-01-13 01:35:22 +02:00
x86 Revert "x86 busdma_bounce: do not make assumptions about alignment of malloc(9) results." 2021-01-13 17:44:00 +02:00
xdr xdr: clean up empty lines in .c and .h files 2020-09-01 22:13:28 +00:00
xen xen: remove .swp file from public headers 2021-01-11 18:14:11 +01:00
Makefile