diff options
| author | Sourabh Jain <[email protected]> | 2024-12-17 07:46:40 +0000 |
|---|---|---|
| committer | Madhavan Srinivasan <[email protected]> | 2024-12-18 08:21:03 +0000 |
| commit | d629d7a8efc33d05d62f4805c0ffb44727e3d99f (patch) | |
| tree | e4ba5dd0e1b8d71dc71d52f4c87ad971e1240e38 /lib/net_utils.c | |
| parent | powerpc/vdso: Mark the vDSO code read-only after init (diff) | |
| download | kernel-d629d7a8efc33d05d62f4805c0ffb44727e3d99f.tar.gz kernel-d629d7a8efc33d05d62f4805c0ffb44727e3d99f.zip | |
powerpc/book3s64/hugetlb: Fix disabling hugetlb when fadump is active
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.
Fix this by implementing hugepages_supported() on powerpc. This ensures
that disabling hugetlb for the fadump kernel is independent of
hpage_shift/HPAGE_SHIFT.
Fixes: 2354ad252b66 ("powerpc/mm: Update default hugetlb size early")
Reviewed-by: Ritesh Harjani (IBM) <[email protected]>
Signed-off-by: Sourabh Jain <[email protected]>
Signed-off-by: Madhavan Srinivasan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions
