On 11.06.2025 04:38, Alistair Popple wrote:
On Tue, Jun 10, 2025 at 06:18:09PM +0200, Marek Szyprowski wrote:
On 04.06.2025 05:21, Alistair Popple wrote:Thanks for the report. I'm really confused by this because this change should
The PFN_MAP flag is no longer used for anything, so remove it.This patch landed in today's linux-next as commit 28be5676b4a3 ("mm:
The PFN_SG_CHAIN and PFN_SG_LAST flags never appear to have been
used so also remove them. The last user of PFN_SPECIAL was removed
by 653d7825c149 ("dcssblk: mark DAX broken, remove FS_DAX_LIMITED
support").
Signed-off-by: Alistair Popple <apopple@xxxxxxxxxx>
Acked-by: David Hildenbrand <david@xxxxxxxxxx>
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
Cc: gerald.schaefer@xxxxxxxxxxxxx
Cc: dan.j.williams@xxxxxxxxx
Cc: jgg@xxxxxxxx
Cc: willy@xxxxxxxxxxxxx
Cc: david@xxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: nvdimm@xxxxxxxxxxxxxxx
Cc: jhubbard@xxxxxxxxxx
Cc: hch@xxxxxx
Cc: zhang.lyra@xxxxxxxxx
Cc: debug@xxxxxxxxxxxx
Cc: bjorn@xxxxxxxxxx
Cc: balbirs@xxxxxxxxxx
Cc: lorenzo.stoakes@xxxxxxxxxx
Cc: John@xxxxxxxxxx
---
Splitting this off from the rest of my series[1] as a separate clean-up
for consideration for the v6.16 merge window as suggested by Christoph.
[1] - https://lore.kernel.org/linux-mm/cover.541c2702181b7461b84f1a6967a3f0e823023fcc.1748500293.git-series.apopple@xxxxxxxxxx/
---
include/linux/pfn_t.h | 31 +++----------------------------
mm/memory.c | 2 --
tools/testing/nvdimm/test/iomap.c | 4 ----
3 files changed, 3 insertions(+), 34 deletions(-)
remove PFN_MAP, PFN_SPECIAL, PFN_SG_CHAIN and PFN_SG_LAST"). In my tests
I've noticed that it breaks operation of all RISC-V 64bit boards on my
test farm (VisionFive2, BananaPiF3 as well as QEMU's Virt machine). I've
isolated the changes responsible for this issue, see the inline comments
in the patch below. Here is an example of the issues observed in the
logs from those machines:
just be removal of dead code - nothing sets any of the removed PFN_* flags
AFAICT.
I don't have access to any RISC-V hardwdare but you say this reproduces under
qemu - what do you run on the system to cause the error? Is it just a simple
boot and load a module or are you running selftests or something else?
It fails a simple boot test. Here is a detailed instruction how to
reproduce this issue with the random Debian rootfs image found on the
internet (tested on Ubuntu 22.04, with next-20250610
kernel source):