# Re: \[PATCH v2\] powerpc/book3s64/hugetlb: Fix disabling hugetlb when fadump is active

- From: Madhavan Srinivasan \<maddy@linux.ibm.com\>
- Date: 2025-01-01 09:09:17 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2025/01/9534955
- Thread: https://ratatoskr.run/linuxppc-dev/2024/12/9534879/t.md

```text
On Tue, 17 Dec 2024 13:16:40 +0530, Sourabh Jain wrote:
> Commit 8597538712eb ("powerpc/fadump: Do not use hugepages when fadump
> is active") disabled hugetlb support when fadump is active by returning
> early from hugetlbpage_init():arch/powerpc/mm/hugetlbpage.c and not
> populating hpage_shift/HPAGE_SHIFT.
> 
> Later, commit 2354ad252b66 ("powerpc/mm: Update default hugetlb size
> early") moved the allocation of hpage_shift/HPAGE_SHIFT to early boot,
> which inadvertently re-enabled hugetlb support when fadump is active.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/book3s64/hugetlb: Fix disabling hugetlb when fadump is active
      https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=d629d7a8efc33d05d62f4805c0ffb44727e3d99f 

Thanks

```
