From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 571854A21; Wed, 10 Sep 2025 09:46:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757497598; cv=none; b=Lc2ocACOrY3pTH6TgjsEVoPwyzwhchGaKH6bTVpbSk3CYcnlr6tP/WEPkIwpgfEaWY4Q1MKz4Z8rD5kefH3uL39BhmAmIJ9APg1p01kuTaveLq5PEF+PXXCYE1hW9iIkYwNgM3LHu3GddkV9xWRytdc2y7CdWy7RVNB56mgjYxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757497598; c=relaxed/simple; bh=TSFLMel7oCuezsYmG5MWz4klu2efMEfmF/XM9BvIWIc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=hEUSu4DWYnnQR7wPtS9z6DzphGoaYguVNo7zLuFP9Oqpwoflu6jkT4ZIvOs9/F35P/JHCFP0jLpWV6p+X6vA2+L+wTXpsgiKhd3hISxStL19NbOmIQLHUrJFuERkL+qU8x4uD9QjS8Y/zV9BMgJHMOPNXjfUqab/COVRee+wU6M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5B1D116F8; Wed, 10 Sep 2025 02:46:27 -0700 (PDT) Received: from a076716.blr.arm.com (a076716.blr.arm.com [10.164.21.47]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 384DA3F63F; Wed, 10 Sep 2025 02:46:30 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Catalin Marinas , Will Deacon , Mark Brown , Ryan Roberts , Mark Rutland , Ard Biesheuvel , Ritesh Harjani , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Subject: [PATCH 0/3] arm64/ptdump: Add cmdline 'early_ptdump' Date: Wed, 10 Sep 2025 15:16:20 +0530 Message-Id: <20250910094623.2356282-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-efi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Enable early kernel page table dump for debug purpose when required through a new kernel command line option 'early_ptdump'. But first this reorganizes ptdump_init() separating out the debugfs creation, so that it can be called early on in setup_arch(). This also adds kernel dmesg console print support for existing pt_dump_seq_[printf|puts]() helpers. This series applies on v6.17-rc5 Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Brown Cc: Ryan Roberts Cc: Mark Rutland Cc: Ard Biesheuvel Cc: Ritesh Harjani (IBM) Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-efi@vger.kernel.org Changes in V1: - Dropped ARM64_PTDUMP_CONSOLE and instead enabled cmdline 'early_ptdump' Changes in RFC: https://lore.kernel.org/all/20250818091436.938517-1-anshuman.khandual@arm.com/ Anshuman Khandual (3): arm64/ptdump: Re-organize ptdump_init() arm64/ptdump: Enable console output in pt_dump_seq_[printf|puts]() arm64/ptdump: Add 'early_ptdump' kernel command line option .../admin-guide/kernel-parameters.txt | 4 ++ arch/arm64/include/asm/ptdump.h | 4 ++ arch/arm64/kernel/setup.c | 3 ++ arch/arm64/mm/ptdump.c | 51 +++++++++++++++---- drivers/firmware/efi/arm-runtime.c | 4 +- 5 files changed, 53 insertions(+), 13 deletions(-) -- 2.25.1