Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3630000ybg; Fri, 25 Oct 2019 06:50:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlR1/Bf0ud45Ze9XjuRI2S5GZyPDVgVoQ6JBMUHpNv3BcYaHwD9M/ziK3to8pLTU31EW+K X-Received: by 2002:aa7:d0c9:: with SMTP id u9mr3908152edo.217.1572011444861; Fri, 25 Oct 2019 06:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572011444; cv=none; d=google.com; s=arc-20160816; b=uai5sp76Z9hfYkN5F25iFexyF9xdpBN23e1ZBYBPFk/Od+U49Ncrx9o8aVVWnpi8UW gBndAjrKFtT+IYYI/6ATtu1ZLRg6Jh9TxO1t3y3HyU0OYz7YKcuot5LSrO9iRE+TeN2h MyOsjdhbH6vls79GoaF/MZM9yIt9xle4Ny9YmD+dEqZ+xRj+fXunp94AqJWOx3A0vzmw yQyBEOTMgxsfsKms9FPsk2aQ7eYLsVb0DE4uQJ7JJjVHpDI5zhuqjHS64wGaYAQ6GnMF kbfeJdLwiLpHE6QDk+OPC2UdwexxxVKMVlWPN7SYLmWxYjVnUMEnnoBgFehQ6DLj/3b8 fD9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=/b8upsYxAHV50/pkYFWToTEqmLmbge4Vw0LfKFTH7Xc=; b=FMd3VwhzFdL1beHxy8ljb1ee7Af3rdw31PbLOLZfS0jd6cB3yAZq3HxZqmJw1ZTS9+ i6KT2I5RXP/Pwt9AgDMJQRZ8k0RgKUP1tNPx8wFkCSbPCZtca8N5TLEZkMYSqFME7/fA 3NgxfICgMXPrBqQNVraSaPdaI6mX9UqYcxvm9+7uOEElcaPlvu+VMXWczNKkHaInMjFI xiacuVffFMaaFRg3BGUhwAwCxIoeONu4jXsYM8QS9PfhzruJ8uy2hMvZ7xMLlN7tfnOe AfgyAMGGnrTIA5iRKLk22yIV5RKTMMG5Xh6Jm3sAU3aUW1T5U0z5ovTW4dOXjzWK9r/d Yt9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=gh+uQ97D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si1220477edz.114.2019.10.25.06.50.20; Fri, 25 Oct 2019 06:50:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=gh+uQ97D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732142AbfJXNCn (ORCPT + 99 others); Thu, 24 Oct 2019 09:02:43 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33325 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730267AbfJXNCn (ORCPT ); Thu, 24 Oct 2019 09:02:43 -0400 Received: by mail-pg1-f195.google.com with SMTP id u23so3532359pgo.0 for ; Thu, 24 Oct 2019 06:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id; bh=/b8upsYxAHV50/pkYFWToTEqmLmbge4Vw0LfKFTH7Xc=; b=gh+uQ97D7GUTUYtFAtlwK+hH5zRunx9fI4Ek+HyI0OlT8NFkPuO1fgvlRsmfy8w/wt RxCgPw6PfrEShBToO7EkCCka343tZcykL31Hh9dzBidAgrEyz/hOhWSgCWzSuzKRPKab oFdqDliGvQbfLzX7nSn7Beem/4PFjw9KTMFUG+2xbPf2mmWJzRVAubf+YseM0uzUyipP 9gcGdMAQNAwH9/2ZpDOzPwJ4vrHfkB2PPYeV2db/DF9yXmXxrqq6R9eteN3CXMwEuoVc 6pul558jRX4p3IvblZzFZXzG2b9/fQ6q7fuTSoa+/7QUZFS+1BLGFNKNhmqavTVQyzna 8FIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/b8upsYxAHV50/pkYFWToTEqmLmbge4Vw0LfKFTH7Xc=; b=pPbLLE841BIKwbPd7OuDbBsz4eSjXG5fXbvk3Su6ZsFmhhGLDqZX1ZfX/CmlS/hPwJ OpzFSyFuE71BGVard3lqY5dxF818Hz6JGie32IUFh3QuO6/Ou3yN7gHC5Qd06owgv7Kl 6oLxExcO+xOiCuypmCK9qKuHGd4WINX1Gnh7mgNHuZUdBu6BZLutLy0nDxd5JStzg+Qt pIy7G/klwjZa08PKoV/3BLw/NctBTlDV2zxnjGGKwjV4UHsVddrbzPm1ifx0jKyx400G XLqnlZ+zGcHDhMsQQQtkeM0dHT70FVzPrhNMKmQ6/XvuHd7WzsP3wiu2dN2Sx07RJRVx FFOA== X-Gm-Message-State: APjAAAWUkVmZPgF8ENqa2vQDrpxwklSd3cAd7Q7O8dKglSZ9r9z1jYNr rOikNWNzI2Cac/86SPfEz1zNnqhYjAuofQ== X-Received: by 2002:a63:4553:: with SMTP id u19mr16191277pgk.436.1571922162455; Thu, 24 Oct 2019 06:02:42 -0700 (PDT) Received: from gamma07.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id z4sm2308775pjt.17.2019.10.24.06.02.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Oct 2019 06:02:41 -0700 (PDT) From: Zong Li To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@sifive.com, steven.price@arm.com Cc: Zong Li Subject: [RFC PATCH 0/1] RISC-V page table dumper Date: Thu, 24 Oct 2019 06:02:17 -0700 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch contains the support for dumping the page tables, and it's implemented on top of the generic page table dumper patch set. The generic page table dumper patch set is submmited to version 12, it looks good and only a little bit different from previous version. I'll post the formal patch after it be merged. The patch set of gerneric page table dumper. https://lore.kernel.org/lkml/20191018101248.33727-1-steven.price@arm.com/ Zong Li (1): riscv: Add support to dump the kernel page tables arch/riscv/Kconfig | 1 + arch/riscv/include/asm/pgtable.h | 10 ++ arch/riscv/include/asm/ptdump.h | 19 +++ arch/riscv/mm/Makefile | 1 + arch/riscv/mm/ptdump.c | 309 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 340 insertions(+) create mode 100644 arch/riscv/include/asm/ptdump.h create mode 100644 arch/riscv/mm/ptdump.c -- 2.7.4