From: Nam Cao <namcao@linutronix.de>
To: Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alexghiti@rivosinc.com>,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
Zong Li <zong.li@sifive.com>
Subject: Re: [PATCH 0/2] riscv: fix debug_pagealloc
Date: Wed, 15 May 2024 09:39:47 +0200 [thread overview]
Message-ID: <20240515073947.J1Hzlsm5@linutronix.de> (raw)
In-Reply-To: <cover.1715750938.git.namcao@linutronix.de>
Forgot to Cc the original author.
+Cc: Zong Li <zong.li@sifive.com>
On Wed, May 15, 2024 at 07:50:38AM +0200, Nam Cao wrote:
> The debug_pagealloc feature is not functional on RISCV. With this feature
> enabled (CONFIG_DEBUG_PAGEALLOC=y and debug_pagealloc=on), kernel crashes
> early during boot.
>
> QEMU command that can reproduce this problem:
> qemu-system-riscv64 -machine virt \
> -kernel Image \
> -append "console=ttyS0 root=/dev/vda debug_pagealloc=on" \
> -nographic \
> -drive "file=root.img,format=raw,id=hd0" \
> -device virtio-blk-device,drive=hd0 \
> -m 4G \
>
> This series makes debug_pagealloc functional.
>
> Nam Cao (2):
> riscv: force PAGE_SIZE linear mapping if debug_pagealloc is enabled
> riscv: rewrite __kernel_map_pages() to fix sleeping in invalid context
>
> arch/riscv/mm/init.c | 3 +++
> arch/riscv/mm/pageattr.c | 28 ++++++++++++++++++++++------
> 2 files changed, 25 insertions(+), 6 deletions(-)
>
> --
> 2.39.2
>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2024-05-15 7:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-15 5:50 [PATCH 0/2] riscv: fix debug_pagealloc Nam Cao
2024-05-15 5:50 ` [PATCH 1/2] riscv: force PAGE_SIZE linear mapping if debug_pagealloc is enabled Nam Cao
2024-05-22 11:16 ` Alexandre Ghiti
2024-05-15 5:50 ` [PATCH 2/2] riscv: rewrite __kernel_map_pages() to fix sleeping in invalid context Nam Cao
2024-05-22 11:22 ` Alexandre Ghiti
2024-05-15 7:39 ` Nam Cao [this message]
2024-05-22 23:51 ` [PATCH 0/2] riscv: fix debug_pagealloc patchwork-bot+linux-riscv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240515073947.J1Hzlsm5@linutronix.de \
--to=namcao@linutronix.de \
--cc=alexghiti@rivosinc.com \
--cc=aou@eecs.berkeley.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=zong.li@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).