Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755057AbbGCMqp (ORCPT ); Fri, 3 Jul 2015 08:46:45 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:51135 "EHLO e06smtp13.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755058AbbGCMqU (ORCPT ); Fri, 3 Jul 2015 08:46:20 -0400 X-Helo: d06dlp03.portsmouth.uk.ibm.com X-MailFrom: dingel@linux.vnet.ibm.com X-RcptTo: linux-s390@vger.kernel.org From: Dominik Dingel To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Martin Schwidefsky , Heiko Carstens , linux390@de.ibm.com, Dominik Dingel , Christian Borntraeger , Michael Holzheu , linux-s390@vger.kernel.org, linux-mm@kvack.org, Gerald Schaefer Subject: [PATCH 0/4] s390/mm: Fixup hugepage sw-emulated code removal Date: Fri, 3 Jul 2015 14:46:05 +0200 Message-Id: <1435927569-41132-1-git-send-email-dingel@linux.vnet.ibm.com> X-Mailer: git-send-email 2.3.8 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15070312-0013-0000-0000-00000493430D Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1230 Lines: 31 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/