Skip to content

s390/mm: Fixup hugepage sw-emulated code removal

Dominik Dingel linux-mm linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Revert "s390/mm: change HPAGE_SHIFT type to int"arch/s390/include/asm/page.h arch/s390/mm/pgtable.c+2 -20 replies
2/4Revert "s390/mm: make hugepages_supported a boot time decision"arch/s390/include/asm/page.h arch/s390/kernel/setup.c arch/s390/mm/pgtable.c+4 -80 replies
3/4mm: hugetlb: allow hugepages_supported to be architecture specificinclude/linux/hugetlb.h+8 -90 replies
4/4s390/hugetlb: add hugepages_supported definearch/s390/include/asm/hugetlb.h+1 -00 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMartin Schwidefsky
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] s390/mm: Fixup hugepage sw-emulated code removal

Heiko noticed that the current check for hugepage support on s390 is a little bit to harsh as systems which do not support will crash.
The reason is that pageblock_order can now get negative when we set HPAGE_SHIFT to 0. To avoid all this and to avoid opening another can of worms with enabling HUGETLB_PAGE_SIZE_VARIABLE I think it would be best to simply allow architectures to define their own hugepages_supported().

Thanks
Dominik

Dominik Dingel (4):
Revert "s390/mm: change HPAGE_SHIFT type to int"
Revert "s390/mm: make hugepages_supported a boot time decision"
mm: hugetlb: allow hugepages_supported to be architecture specific s390/hugetlb: add hugepages_supported define

 arch/s390/include/asm/hugetlb.h |  1 +
 arch/s390/include/asm/page.h    |  8 ++++----
 arch/s390/kernel/setup.c        |  2 --
 arch/s390/mm/pgtable.c          |  2 --
 include/linux/hugetlb.h         | 17 ++++++++---------
 5 files changed, 13 insertions(+), 17 deletions(-)
Signature · 7 lines
2.3.8

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>