From nobody Fri Dec 15 16:50:55 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SsFbN164Hz53nSp; Fri, 15 Dec 2023 16:50:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SsFbN0Zjcz4b6x; Fri, 15 Dec 2023 16:50:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702659056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p5FcbcPU2JKkaHtRkEVkV5Bacj1fff/1Uqc0b2TI80o=; b=fQ+j/o8hkjQNFeJYYgLMuVFXDiCJyPSFAmAeYV1NqF5ksT8FBr4iadMlmkGbTsuBS/a7Jd UzinRRLg3UTxlc/i+hVCWtIdBwU6RMPO/n+WJW2gc/5Cmjitr1qsdYkMMPhWE87AIe3Ny5 +Dsov9YqN1vc6oithv97IcIvYCMerzIf/6obDHlsqvP+SyZ47jO/s7Jhc6UwUsg/lSlO8A 81ku7Xd/HUqRUpBqo+tbqlOrR00WcdP0jJVSz2TpEmCJh6fxj0Ta2I6q3pLNxqxZyr8rKt 8HNnucZ5DawZf6lJ74vgbXUNOGR83ftqTrxuXy56lzt+j9e2Q9reSNHUvTibfw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702659056; a=rsa-sha256; cv=none; b=Vxm++alXqU1HdPyKqpikmxMtvgYsQDUHjRiViK9WV05eHfl1yYDneSvrAkObOoGmvHjQU+ y3DSfhpQTFgRg3VDiCabkmIlJ4PLdNtK2z2IZlDnZ2Q69kR+zSxUfiU+5ynIqh8IXwMCdv m1YcW/P9qvMKR+c4frxap7P4I/Qzp5k8HxaXr5a2e4B/y3oT2NyaD5jhU66wXtZ/XLjN4F e3g63aclRGEZM1IwpHOEw8jHwpGFV2kwUnS1ppiEp1MRbvvCzTvpmb89vrfecHQNhzi4xI 8atTHa+skbUqR8iBsWOwUuBrrVu2/V1Uky3et73oROOnPVZnICWSKQUsxR5k/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702659056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p5FcbcPU2JKkaHtRkEVkV5Bacj1fff/1Uqc0b2TI80o=; b=a5yBRVrvpKi1Ylf2IX/44g4rJiNC2df1YuzXvC5bP5acso9Dh17mFQcAZuCNwcM+S21sxm 6nNyX/QWw/MGhPMPDPhiIDTOjdEktK+gkoW2NFNQBncSz0O8edhowYV9NJ4idbDAjjQ+RN WUK0y0OV0b75+wVmYum5H4QeLtPMc5hoMTjhCtAgn3duS4+3FTmw1zAB+ou4CZ3VGbwdvH utFBhohvs6KWc6igexCLgOOTc+mjn+4nUXwWyyTbVqpKSV43bhBqviDFRsOKqhMiK0oevF Lz1FSb/5GCdii51e4DMZwWAZWV9t8s8cNRmTAqfH5+ejrUhjRlXIiT67NT+Hzw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SsFbM6hwwz3wm; Fri, 15 Dec 2023 16:50:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BFGotgW010820; Fri, 15 Dec 2023 16:50:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BFGotuu010817; Fri, 15 Dec 2023 16:50:55 GMT (envelope-from git) Date: Fri, 15 Dec 2023 16:50:55 GMT Message-Id: <202312151650.3BFGotuu010817@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 9c2aaaa997d0 - stable/14 - arm64: lop off another 24MB of KVA for early device mappings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9c2aaaa997d0ad19cee733a7ee78630d3e94dfb3 Auto-Submitted: auto-generated The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=9c2aaaa997d0ad19cee733a7ee78630d3e94dfb3 commit 9c2aaaa997d0ad19cee733a7ee78630d3e94dfb3 Author: Kyle Evans AuthorDate: 2023-11-23 16:21:33 +0000 Commit: Kyle Evans CommitDate: 2023-12-15 00:58:08 +0000 arm64: lop off another 24MB of KVA for early device mappings This grows the block enough to fit a 4K 32-bit depth framebuffer; some firmware would present smaller GOP modes to be able to boot with a smaller framebuffer on these devices, but the Windows Devkit firmware is simply not that nice. Instead, it offers exactly one GOP mode that matches the current resolution of the attached display, so with limited control over resolution on most of my displays it'd be nice if we could Just Work(TM) at 4K. andrew notes that he has some ideas for removing PMAP_MAPDEV_EARLY_SIZE entirely, so this limitation could end up removed altogether in the future. Reviewed by: andrew, emaste (cherry picked from commit a3ceeef26bc880b86f4e181bddd9924a2b5e0691) --- sys/arm64/include/pte.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arm64/include/pte.h b/sys/arm64/include/pte.h index aebe24cb82af..a868931604c9 100644 --- a/sys/arm64/include/pte.h +++ b/sys/arm64/include/pte.h @@ -163,7 +163,11 @@ typedef uint64_t pt_entry_t; /* page table entry */ /* 0x2 also marks an invalid address */ #define L3_PAGE 0x3 -#define PMAP_MAPDEV_EARLY_SIZE (L2_SIZE * 8) +/* + * A substantial portion of this is to make sure that we can cope with 4K + * framebuffers in early boot, assuming a common 4K resolution @ 32-bit depth. + */ +#define PMAP_MAPDEV_EARLY_SIZE (L2_SIZE * 20) #if PAGE_SIZE == PAGE_SIZE_4K #define L0_ENTRIES_SHIFT 9