2022-09-30 02:21:56

by Kefeng Wang

[permalink] [raw]
Subject: [PATCH] efi/arm: dump UEFI runtime page tables for ARM

UEFI runtime page tables dump only for ARM64 at present,
but ARM support EFI and ARM_PTDUMP_DEBUGFS now, so enable
it for ARM too.

Signed-off-by: Kefeng Wang <[email protected]>
---
note: build test only.
drivers/firmware/efi/arm-runtime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/efi/arm-runtime.c b/drivers/firmware/efi/arm-runtime.c
index 3359ae2adf24..e04956ed1b0a 100644
--- a/drivers/firmware/efi/arm-runtime.c
+++ b/drivers/firmware/efi/arm-runtime.c
@@ -25,7 +25,7 @@
#include <asm/mmu.h>
#include <asm/pgalloc.h>

-#if defined(CONFIG_PTDUMP_DEBUGFS) && defined(CONFIG_ARM64)
+#if defined(CONFIG_PTDUMP_DEBUGFS) || defined(CONFIG_ARM_PTDUMP_DEBUGFS)
#include <asm/ptdump.h>

static struct ptdump_info efi_ptdump_info = {
--
2.35.3


2022-09-30 02:24:54

by Kefeng Wang

[permalink] [raw]
Subject: Re: [PATCH] efi/arm: dump UEFI runtime page tables for ARM

sorry,please ignore it, need to udpate.

On 2022/9/30 10:24, Kefeng Wang wrote:
> UEFI runtime page tables dump only for ARM64 at present,
> but ARM support EFI and ARM_PTDUMP_DEBUGFS now, so enable
> it for ARM too.
>
> Signed-off-by: Kefeng Wang <[email protected]>
> ---
> note: build test only.
> drivers/firmware/efi/arm-runtime.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/firmware/efi/arm-runtime.c b/drivers/firmware/efi/arm-runtime.c
> index 3359ae2adf24..e04956ed1b0a 100644
> --- a/drivers/firmware/efi/arm-runtime.c
> +++ b/drivers/firmware/efi/arm-runtime.c
> @@ -25,7 +25,7 @@
> #include <asm/mmu.h>
> #include <asm/pgalloc.h>
>
> -#if defined(CONFIG_PTDUMP_DEBUGFS) && defined(CONFIG_ARM64)
> +#if defined(CONFIG_PTDUMP_DEBUGFS) || defined(CONFIG_ARM_PTDUMP_DEBUGFS)
> #include <asm/ptdump.h>
>
> static struct ptdump_info efi_ptdump_info = {