From patchwork Tue Jun 4 08:45:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjie Ruan X-Patchwork-Id: 13684893 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C1E3C25B7E for ; Tue, 4 Jun 2024 08:44:02 +0000 (UTC) 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=bDmoQe5aHZeK5K8ytcofHq5cr+pSCq8s0S+V98EkOiQ=; b=TVbLx68YFKPD6k A2WWRX4q057yLa8IbTT/SYcRnOLEsillozG12E+YGUp9sGoYtXItKlfeY4OWkpEoRICoZla9THBpN q7F9j6UvspNlGEsQ9aKGzEe8tXlpXJ4cuiLvEp2l05yQdhMWlFM+sOvXw/nv+hnDyVIsfMhkVceKD 7U9tbXzkMkPpwxs6TuPRe1IXXk4N2/jtoEvUtpl0l/OyGXhvIirMA1amUM/YqHEyCcKeltfDip9+O zFrxjG/q2kdNYDflym5TJSH+wCs0HdysUu8Oo2B82d01VDT4Cs8Lk9+Ujfm3wmkbj5e4ETu+ky6fx DrN1nHaorfHgrUU+bAkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPlq-00000001hyG-1q2z; Tue, 04 Jun 2024 08:43:54 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPlm-00000001hxK-2gYX for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 08:43:52 +0000 Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Vtkbm5zdhz1HD2J; Tue, 4 Jun 2024 16:41:56 +0800 (CST) Received: from kwepemi500008.china.huawei.com (unknown [7.221.188.139]) by mail.maildlp.com (Postfix) with ESMTPS id 05F9414037D; Tue, 4 Jun 2024 16:43:43 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 4 Jun 2024 16:43:42 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , CC: Subject: [PATCH] arm: Enable ARCH_HAS_DEBUG_VM_PGTABLE Date: Tue, 4 Jun 2024 16:45:12 +0800 Message-ID: <20240604084512.727269-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.90.53.73] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500008.china.huawei.com (7.221.188.139) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_014350_877330_83BD263C X-CRM114-Status: GOOD ( 10.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org arm32 kernel successfully build and run with CONFIG_DEBUG_VM_PGTABLE=y, enable arch support for it. This allows the pgtable tests to be built and allow to enable page table boot-up checks. Signed-off-by: Jinjie Ruan --- Documentation/features/debug/debug-vm-pgtable/arch-support.txt | 2 +- arch/arm/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/features/debug/debug-vm-pgtable/arch-support.txt b/Documentation/features/debug/debug-vm-pgtable/arch-support.txt index bbf029f095cb..afb7371fb518 100644 --- a/Documentation/features/debug/debug-vm-pgtable/arch-support.txt +++ b/Documentation/features/debug/debug-vm-pgtable/arch-support.txt @@ -8,7 +8,7 @@ ----------------------- | alpha: | TODO | | arc: | ok | - | arm: | TODO | + | arm: | ok | | arm64: | ok | | csky: | TODO | | hexagon: | TODO | diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ee5115252aac..955d7d182cec 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -9,6 +9,7 @@ config ARM select ARCH_HAS_CPU_FINALIZE_INIT if MMU select ARCH_HAS_CURRENT_STACK_POINTER select ARCH_HAS_DEBUG_VIRTUAL if MMU + select ARCH_HAS_DEBUG_VM_PGTABLE select ARCH_HAS_DMA_ALLOC if MMU select ARCH_HAS_DMA_WRITE_COMBINE if !ARM_DMA_MEM_BUFFERABLE select ARCH_HAS_ELF_RANDOMIZE