From patchwork Mon Jan 3 13:54:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Salvaterra X-Patchwork-Id: 1574772 X-Patchwork-Delegate: rsalvaterra@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=xzhJ4yT4; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=k3iSHoHT; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (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) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JSHN02nZYz9t0k for ; Tue, 4 Jan 2022 00:56:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+RwkrFlrDVEm5KhECV7x88G+o4c97LUcaWLnjNQ/8QM=; b=xzhJ4yT4TtShgI AdVuIFsh1j9dEcihTKzYlpkxBhxctCmsrHvMHVVloXMTwDb+S+TuUja1Otgq7+HMykzaGU2GzUnPY I22sM2n+UCdWgmVZC93XaGje5fe4PPg/qRix0HLUydcZdHnLt+mRxuR3Aeb2qIz9eT8AfSE0v+t22 W1cju8OYtQi8Vgl/GRKy806kUqxlaa7C7J+Ca6l+GCIzNA1CE+scFIIbnfbr+Ct9fDNVFf/4rffBX +QDBzksmJ43ANnKoWnxNC/5OP0gEZ16EVzepaFa/tyMKdMqqReMmezik6i0UGklGZgw3KF3D6HOaN 3zE1fMTF0WovI1Wo+baw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4NnA-0098NV-Bj; Mon, 03 Jan 2022 13:54:28 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4Nn6-0098MG-1g for openwrt-devel@lists.openwrt.org; Mon, 03 Jan 2022 13:54:25 +0000 Received: by mail-lf1-x12f.google.com with SMTP id h7so30525499lfu.4 for ; Mon, 03 Jan 2022 05:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=H+UVlZgCIbBZc9ZAIsUXO1dt3Jc+m/TLP/yA7LAaoec=; b=k3iSHoHTi9rHsYheALyZqnhIF96HIju0F5DFqm1+qtl0+RK5bZCsHDpLZ6/iIBEGLW emi0CcCdQLkqkWRLvQ67cXADi5uXyy+AfYjLwNN3bbPZ7E+GFUd9H2tPMilgpWAU1GPJ lun0M09CrvqScRLg4/8qqOHlOLL4D9uWlXcBBVGe+fF2QnWqkEdC6AdsJisANbgBHWkZ 5y88b5MffeQII8g4PvKRzgvWNPLaqjy3V+xIxdsu36sWVc0z6RqrmL+VYBWpzo61jQto 2rFaEUIPTTbvoQQ55Yb5HxHmTK7vRxrTH+wFH9HT8+UrcnarQglLvIJ068blXOYlTkIu arww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=H+UVlZgCIbBZc9ZAIsUXO1dt3Jc+m/TLP/yA7LAaoec=; b=kM0jsKEWewbtMd+6pB0elc2Bi2Qnyb4Ag346rk0kea6+nI14MBCos1qt49oF4fjO1T 5Yr2ITOJxF02tomrWnYqSZFU59jrKW8jR30zgiW9nCvWJpiCKNB7K4OppLsrGsYfOEr5 UmvkfWsPxSidncUOI1UU2SnBWIV/tDl6MPDHvBb3KCC0ItaL+5c3gPUKyghW1YwFtu6h 2NM5aWGY4E3PzLsHNVmP6dVUp3g5YWCpECBcM/9nCFZJJ5XZ5ieLi5HUAbyLJkBQFlTH p+K2IJV+9pIP5fKRflB321arQQ60WqCtm7gnNzH3sOt1X1oKZ2KB7DuiBdlnjxDqR4wr 6NXQ== X-Gm-Message-State: AOAM531P2Zci+NzfgJeCYutVJnMOCXU2Q8UCXaT54OjnMCbAgIqQk9RV G9jCyGWx1o6HJQDBOkSAh3vgqTbtuQ== X-Google-Smtp-Source: ABdhPJw/inrwbo0EdSaBklVPBqEoYbLIy1p+i4lgPd8mqjnLp1xFEHXEXGMFsvV8AgiiSAtBLd+L4A== X-Received: by 2002:a05:6512:261e:: with SMTP id bt30mr41507915lfb.264.1641218061552; Mon, 03 Jan 2022 05:54:21 -0800 (PST) Received: from crystalwell.adg.lan (a109-49-8-180.cpe.netcabo.pt. [109.49.8.180]) by smtp.gmail.com with ESMTPSA id be18sm2288662ljb.114.2022.01.03.05.54.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 05:54:21 -0800 (PST) From: Rui Salvaterra To: openwrt-devel@lists.openwrt.org Cc: hauke@hauke-m.de, daniel@makrotopia.org, Rui Salvaterra Subject: [PATCH] kernel/5.10: allocate last level PTEs in high memory Date: Mon, 3 Jan 2022 13:54:10 +0000 Message-Id: <20220103135410.12476-1-rsalvaterra@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_055424_115030_F294FDD8 X-CRM114-Status: UNSURE ( 8.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Enable support for allocating user space page table entries in high memory [1], for the targets which support this feature. This saves precious low memory (permanently mapped, the only type of memory [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:12f listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rsalvaterra[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Enable support for allocating user space page table entries in high memory [1], for the targets which support this feature. This saves precious low memory (permanently mapped, the only type of memory directly accessible by the kernel). [1] https://www.kernel.org/doc/html/latest/vm/highmem.html Signed-off-by: Rui Salvaterra --- 5.4 deemed unworthy, since it's going the way of the dodo. :) target/linux/bcm53xx/config-5.10 | 2 +- target/linux/ipq40xx/config-5.10 | 2 +- target/linux/ipq806x/config-5.10 | 2 +- target/linux/mediatek/mt7623/config-5.10 | 2 +- target/linux/mvebu/config-5.10 | 2 +- target/linux/x86/config-5.10 | 2 +- target/linux/zynq/config-5.10 | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/target/linux/bcm53xx/config-5.10 b/target/linux/bcm53xx/config-5.10 index 3dd0359113..6049641898 100644 --- a/target/linux/bcm53xx/config-5.10 +++ b/target/linux/bcm53xx/config-5.10 @@ -159,7 +159,7 @@ CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT_MAP=y CONFIG_HAVE_SMP=y CONFIG_HIGHMEM=y -# CONFIG_HIGHPTE is not set +CONFIG_HIGHPTE=y CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_BCM2835=y CONFIG_HZ_FIXED=0 diff --git a/target/linux/ipq40xx/config-5.10 b/target/linux/ipq40xx/config-5.10 index 64f0e54d41..65dd21bf7f 100644 --- a/target/linux/ipq40xx/config-5.10 +++ b/target/linux/ipq40xx/config-5.10 @@ -189,7 +189,7 @@ CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT_MAP=y CONFIG_HAVE_SMP=y CONFIG_HIGHMEM=y -# CONFIG_HIGHPTE is not set +CONFIG_HIGHPTE=y CONFIG_HWSPINLOCK=y CONFIG_HWSPINLOCK_QCOM=y CONFIG_HW_RANDOM=y diff --git a/target/linux/ipq806x/config-5.10 b/target/linux/ipq806x/config-5.10 index 35da3dd3c2..b7b062f3ec 100644 --- a/target/linux/ipq806x/config-5.10 +++ b/target/linux/ipq806x/config-5.10 @@ -177,7 +177,7 @@ CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT_MAP=y CONFIG_HAVE_SMP=y CONFIG_HIGHMEM=y -# CONFIG_HIGHPTE is not set +CONFIG_HIGHPTE=y CONFIG_HWMON=y CONFIG_HWSPINLOCK=y CONFIG_HWSPINLOCK_QCOM=y diff --git a/target/linux/mediatek/mt7623/config-5.10 b/target/linux/mediatek/mt7623/config-5.10 index aabc3b775e..8129584ffc 100644 --- a/target/linux/mediatek/mt7623/config-5.10 +++ b/target/linux/mediatek/mt7623/config-5.10 @@ -264,7 +264,7 @@ CONFIG_HAVE_SMP=y CONFIG_HDMI=y CONFIG_HID=y CONFIG_HIGHMEM=y -# CONFIG_HIGHPTE is not set +CONFIG_HIGHPTE=y CONFIG_HOTPLUG_CPU=y CONFIG_HW_CONSOLE=y CONFIG_HWMON=y diff --git a/target/linux/mvebu/config-5.10 b/target/linux/mvebu/config-5.10 index 1017ee5eed..32978a7d3c 100644 --- a/target/linux/mvebu/config-5.10 +++ b/target/linux/mvebu/config-5.10 @@ -197,7 +197,7 @@ CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT_MAP=y CONFIG_HAVE_SMP=y CONFIG_HIGHMEM=y -# CONFIG_HIGHPTE is not set +CONFIG_HIGHPTE=y CONFIG_HOTPLUG_CPU=y CONFIG_HWBM=y CONFIG_HWMON=y diff --git a/target/linux/x86/config-5.10 b/target/linux/x86/config-5.10 index 2d07f5a905..ec27bb7945 100644 --- a/target/linux/x86/config-5.10 +++ b/target/linux/x86/config-5.10 @@ -146,7 +146,7 @@ CONFIG_HID=y CONFIG_HIGHMEM=y CONFIG_HIGHMEM4G=y # CONFIG_HIGHMEM64G is not set -# CONFIG_HIGHPTE is not set +CONFIG_HIGHPTE=y CONFIG_HPET_EMULATE_RTC=y CONFIG_HPET_TIMER=y # CONFIG_HP_WATCHDOG is not set diff --git a/target/linux/zynq/config-5.10 b/target/linux/zynq/config-5.10 index 35b7f03a9b..7e960d4ad0 100644 --- a/target/linux/zynq/config-5.10 +++ b/target/linux/zynq/config-5.10 @@ -225,7 +225,7 @@ CONFIG_HID=y CONFIG_HID_GENERIC=y CONFIG_HID_MICROSOFT=y CONFIG_HIGHMEM=y -# CONFIG_HIGHPTE is not set +CONFIG_HIGHPTE=y CONFIG_HOTPLUG_CPU=y CONFIG_HWMON=y CONFIG_HW_CONSOLE=y