linux-s390.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] s390/mm: Fixup hugepage sw-emulated code removal
@ 2015-07-03 12:46 Dominik Dingel
  2015-07-03 12:46 ` [PATCH 1/4] Revert "s390/mm: change HPAGE_SHIFT type to int" Dominik Dingel
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Dominik Dingel @ 2015-07-03 12:46 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel
  Cc: Martin Schwidefsky, Heiko Carstens, linux390, Dominik Dingel,
	Christian Borntraeger, Michael Holzheu, linux-s390, linux-mm,
	Gerald Schaefer

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(-)

-- 
2.3.8

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-06  8:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-03 12:46 [PATCH 0/4] s390/mm: Fixup hugepage sw-emulated code removal Dominik Dingel
2015-07-03 12:46 ` [PATCH 1/4] Revert "s390/mm: change HPAGE_SHIFT type to int" Dominik Dingel
2015-07-03 12:46 ` [PATCH 2/4] Revert "s390/mm: make hugepages_supported a boot time decision" Dominik Dingel
2015-07-03 12:46 ` [PATCH 3/4] mm: hugetlb: allow hugepages_supported to be architecture specific Dominik Dingel
2015-07-03 12:46 ` [PATCH 4/4] s390/hugetlb: add hugepages_supported define Dominik Dingel
2015-07-06  8:05 ` [PATCH 0/4] s390/mm: Fixup hugepage sw-emulated code removal Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).