[PATCH v1 0/5] mm, hwpoison: enable 1GB hugepage support
From: Naoya Horiguchi
Date: Thu Jun 02 2022 - 01:07:23 EST
Hi,
This patchset enables memory error handling on 1GB hugepage.
"Save raw error page" patch (1/4 of patchset [1]) is necessary, so it's
included in this series (the remaining part of hotplug related things are
still in progress). Patch 2/5 solves issues in a corner case of hugepage
handling, which might not be the main target of this patchset, but slightly
related. It was posted separately [2] but depends on 1/5, so I group them
together.
Patch 3/5 to 5/5 are main part of this series and fix a small issue about
handling 1GB hugepage, which I hope will be workable.
[1]: https://lore.kernel.org/linux-mm/20220427042841.678351-1-naoya.horiguchi@xxxxxxxxx/T/#u
[2]: https://lore.kernel.org/linux-mm/20220511151955.3951352-1-naoya.horiguchi@xxxxxxxxx/T/
Please let me know if you have any suggestions and comments.
Thanks,
Naoya Horiguchi
---
Summary:
Naoya Horiguchi (5):
mm, hwpoison, hugetlb: introduce SUBPAGE_INDEX_HWPOISON to save raw error page
mm,hwpoison: set PG_hwpoison for busy hugetlb pages
mm, hwpoison: make __page_handle_poison returns int
mm, hwpoison: skip raw hwpoison page in freeing 1GB hugepage
mm, hwpoison: enable memory error handling on 1GB hugepage
include/linux/hugetlb.h | 24 ++++++++++++++++++++++++
include/linux/mm.h | 2 +-
include/ras/ras_event.h | 1 -
mm/hugetlb.c | 9 +++++++++
mm/memory-failure.c | 48 +++++++++++++++++++++---------------------------
5 files changed, 55 insertions(+), 29 deletions(-)