From nobody Thu Nov 23 16:23:28 2023 X-Original-To: dev-commits-src-all@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 4Sbk1r3SzVz51rXl; Thu, 23 Nov 2023 16:23:28 +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 4Sbk1r30DGz4XJR; Thu, 23 Nov 2023 16:23:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700756608; 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=1hcWmvhBDFCgnUUTovVA1pqLgul/XUuX7fJkHuRssvE=; b=rZN5bc34xfHjOH/CO4GI3R9fkquGJ0Ml1guHS8xdkdbo0EM0mwmaCtsc3JWUYDthc6zPJA Yn/NOYAcH2ysrPhPi04Td+r0hGRjWQFocVah/bSNPKDke0mizr3kaMWlb2bWFe2+WMdtSg Ss04V2IbaZAzjUtUnSbO7zt7J27ynT7NsyCt8CIV5TEPr2YjPCSm9j2F/E1m/gC1B8/CF0 uaE0S2rNZEAofLgC/0g5OV2xrWsdypuUbBMzxUtMrcs2qIRt/QSBd7mUFF2LxOK2nIiv6b 9uzMXzqgH3E83an6/6GKAOSr2NgPucjC3kNtqyv0mD4HnzlVJlBGk4sV6IpJvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700756608; 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=1hcWmvhBDFCgnUUTovVA1pqLgul/XUuX7fJkHuRssvE=; b=CFFd/m3igYDy9yLJdfynXOPBmOkEU1x7sgY4C/MANO7DVpuXzG3kmXlfvN2/iwGtcyNo/z jUvLL/2UzlqIwDcveojMtjzmRbOcZ9qyKvOvPbUg9JW/PfMfXkMomMBW+ahOZBjxCRq1bq f0EywW6tyPZOl2nTOAOZRz84WMmuDqVh6pbMXerHX27p+5KT/F2zFgNCa/mYmOKi5lG2Km kaa8cXX7B5mXuU/wecosMCiF+Ie3hrSUJW0VclYvgbqZhw9Xnk0Yz2KRHm1UYfza1NaUR4 4Fro18QlhXINtkPFH1uCX9djC7WcWSHLKBxKuxIKBHd0g6bGapYpZuu8/vSVfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700756608; a=rsa-sha256; cv=none; b=ZXH2h75HdielghR8v2nke2Vx+hwTXAz8K7Rrh+S+UFJVVs5PlafVmi1hOV2/NLq2x3pOdj JHXqKvMdrsA/zejmxX9vtZxgrxsLJcibfqYDvvYElk1sXa4aEBsifFzdrc31C76JPhLLcy E/CHX+/ITP5xEjeeIopI9HQIcImrrFK6eA1qpd8UPNEy7av0pzXVn29CF4Yqk/nzsZunIa HeObGUL0WwjJa83a0k6kLlFq8Qlz5dr7Ha6ZuoQxFdMbUK68qb3tvABY4GaAWUXAwZZb2S Yme0YDEE6qEyZbX0UyGR8mDvtWYSsZDA9YlHB5pTSa9o6M2fDzr3y0DQ9KoXUg== 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 4Sbk1r23Byz17yx; Thu, 23 Nov 2023 16:23:28 +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 3ANGNSgu041026; Thu, 23 Nov 2023 16:23:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ANGNSAt041023; Thu, 23 Nov 2023 16:23:28 GMT (envelope-from git) Date: Thu, 23 Nov 2023 16:23:28 GMT Message-Id: <202311231623.3ANGNSAt041023@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: a3ceeef26bc8 - main - arm64: lop off another 24MB of KVA for early device mappings List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: a3ceeef26bc880b86f4e181bddd9924a2b5e0691 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=a3ceeef26bc880b86f4e181bddd9924a2b5e0691 commit a3ceeef26bc880b86f4e181bddd9924a2b5e0691 Author: Kyle Evans AuthorDate: 2023-11-23 16:21:33 +0000 Commit: Kyle Evans CommitDate: 2023-11-23 16:23:14 +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 Differential Revision: https://reviews.freebsd.org/D42726 --- 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 f067feabe365..c3d0394e6e9f 100644 --- a/sys/arm64/include/pte.h +++ b/sys/arm64/include/pte.h @@ -164,7 +164,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