# Re: \[PATCH v4 0/4\] arm64: drop pfn\_valid\_within() and simplify pfn\_valid()

- From: Kefeng Wang \<hidden\>
- Date: 2021-05-12 03:13:34 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2021/05/1372856
- Thread: https://ratatoskr.run/linux-arm-kernel/2021/05/1371843/t.md

```text


On 2021/5/11 18:05, Mike Rapoport wrote:
> From: Mike Rapoport <redacted>
>
> Hi,
>
> These patches aim to remove CONFIG_HOLES_IN_ZONE and essentially hardwire
> pfn_valid_within() to 1.
>
> The idea is to mark NOMAP pages as reserved in the memory map and restore
> the intended semantics of pfn_valid() to designate availability of struct
> page for a pfn.
>
> With this the core mm will be able to cope with the fact that it cannot use
> NOMAP pages and the holes created by NOMAP ranges within MAX_ORDER blocks
> will be treated correctly even without the need for pfn_valid_within.
>
> The patches are boot tested on qemu-system-aarch64.
>
> I beleive it would be best to route these via mmotm tree.

Reviewed-by: Kefeng Wang <redacted>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
