mm/huge_memory: do not clobber swp_entry_t during THP split
Subsystems (3)
From: Mel Gorman <[email protected]>
Quoted 5 lines · Tvrtko Ursulin
Hi Mel, mm experts,
With 6.1-rc2 we started hitting the
WARN_ONadded in71e2d666ef85("mm/huge_memory: do not clobberswp_entry_tduring THP split") in i915 automated CI:
Thanks for the report. As shmem pages pages are allocated via vma_alloc_folio and are compound pages, can you try the following patch please? If it still triggers, please post the new oops as it'll include the tail page information.
--8<--
From: Hugh Dickins <[email protected]>
Subject: [PATCH] mm: prep_compound_tail() clear page->private
Although page allocation always clears page->private in the first page or head page of an allocation, it has never made a point of clearing page->private in the tails (though 0 is often what is already there).
But now commit 71e2d666ef85 ("mm/huge_memory: do not clobber swp_entry_t during THP split") issues a warning when page_tail->private is found to be non-0 (unless it's swapcache).
Change that warning to dump page_tail (which also dumps head), instead of just the head: so far we have seen dead000000000122, dead000000000003, dead000000000001 or 0000000000000002 in the raw output for tail private.
We could just delete the warning, but today's consensus appears to want page->private to be 0, unless there's a good reason for it to be set:
so now clear it in prep_compound_tail() (more general than just for THP; but not for high order allocation, which makes no pass down the tails).
--- mm/huge_memory.c | 2 +- mm/page_alloc.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
mm/huge_memory.c +1 -1
@@ -2462,7 +2462,7 @@ static void __split_huge_page_tail(struct page *head, int tail,* Fix up and warn once if private is unexpectedly set. */ if (!folio_test_swapcache (page_folio (head))) { -VM_WARN_ON_ONCE_PAGE (page_tail->private !=0 , head); +VM_WARN_ON_ONCE_PAGE (page_tail->private !=0 , page_tail); page_tail->private =0 ; }
mm/page_alloc.c +1 -0
@@ -807,6 +807,7 @@ static void prep_compound_tail(struct page *head, int tail_idx) p->mapping =TAIL_MAPPING ;set_compound_head (p, head); +set_page_private (p,0 ); }void prep_compound_page (struct page *page,unsigned int order)
Signature · 1 line
2.34.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for mm/huge_memory: do not clobber swp_entry_t during THP split (rev2)
== Series Details ==
== Series Details ==
Series: mm/huge_memory: do not clobber swp_entry_t during THP split (rev2)
URL : https://patchwork.freedesktop.org/series/110061/
State : warning
== Summary ==
Error: dim checkpatch failedddb160aab750 mm/huge_memory: do not clobber swp_entry_t during THP split
-:10: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #10:
Quoted 1 line
With 6.1-rc2 we started hitting the
WARN_ONadded in71e2d666ef85("mm/huge_memory: do not clobberswp_entry_tduring THP split") in i915 automated CI:
-:10: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 71e2d666ef85 ("mm/huge_memory: do not clobber swp_entry_t during THP split")' #10:
Quoted 1 line
With 6.1-rc2 we started hitting the
WARN_ONadded in71e2d666ef85("mm/huge_memory: do not clobberswp_entry_tduring THP split") in i915 automated CI:
-:13: WARNING:REPEATED_WORD: Possible repeated word: 'pages'
#13:
Thanks for the report. As shmem pages pages are allocated via vma_alloc_folio
total: 1 errors, 2 warnings, 0 checks, 15 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for mm/huge_memory: do not clobber swp_entry_t during THP split (rev2)
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: mm/huge_memory: do not clobber swp_entry_t during THP split (rev2)
URL : https://patchwork.freedesktop.org/series/110061/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12285 -> Patchwork_110061v2
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_110061v2 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_110061v2, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/index.html
Participating hosts (43 -> 39)
------------------------------
Missing (4): fi-ctg-p8600 fi-hsw-4770 fi-bdw-samus bat-dg1-5
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_110061v2:
### IGT changes ###
#### Possible regressions ####
* igt@i915_suspend@basic-s3-without-i915:
- fi-rkl-11600: NOTRUN -> [INCOMPLETE][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-rkl-11600/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_110061v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [PASS][2] -> [FAIL][3] ([i915#7229])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-pnv-d510/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-pnv-d510/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-bsw-nick: NOTRUN -> [SKIP][4] ([fdo#109271]) +32 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-bsw-nick/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- fi-icl-u2: NOTRUN -> [SKIP][5] ([i915#4613]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-icl-u2/igt@[email protected]
* igt@i915_selftest@live@gt_timelines:
- fi-apl-guc: [PASS][6] -> [INCOMPLETE][7] ([i915#7080])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-apl-guc/igt@i915_selftest@live@gt_timelines.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-apl-guc/igt@i915_selftest@live@gt_timelines.html
* igt@i915_suspend@basic-s3-without-i915:
- fi-kbl-x1275: NOTRUN -> [SKIP][8] ([fdo#109271])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-kbl-x1275/igt@[email protected]
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-x1275: NOTRUN -> [SKIP][9] ([fdo#109271] / [fdo#111827])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-kbl-x1275/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][10] ([fdo#111827])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-icl-u2/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-bsw-nick: NOTRUN -> [SKIP][11] ([fdo#109271] / [fdo#111827]) +8 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-bsw-nick/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-icl-u2: NOTRUN -> [SKIP][12] ([fdo#109295] / [i915#3301])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_parallel@engines@contexts:
- fi-bsw-nick: [INCOMPLETE][13] -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-bsw-nick/igt@gem_exec_parallel@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-bsw-nick/igt@gem_exec_parallel@[email protected]
* igt@gem_exec_suspend@basic-s3@smem:
- {bat-adlm-1}: [DMESG-WARN][15] ([i915#2867]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/bat-adlm-1/igt@gem_exec_suspend@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/bat-adlm-1/igt@gem_exec_suspend@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-icl-u2: [DMESG-WARN][17] ([i915#4890]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-icl-u2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-icl-u2/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-cfl-8109u: [DMESG-FAIL][19] ([i915#62]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-cfl-8109u/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-cfl-8109u/igt@[email protected]
* igt@i915_selftest@live@guc_multi_lrc:
- fi-cfl-8109u: [DMESG-WARN][21] ([i915#5904] / [i915#7174]) -> [PASS][22] +2 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-cfl-8109u/igt@i915_selftest@live@guc_multi_lrc.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-cfl-8109u/igt@i915_selftest@live@guc_multi_lrc.html
* igt@i915_selftest@live@hugepages:
- fi-rkl-11600: [DMESG-FAIL][23] -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-rkl-11600/igt@i915_selftest@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-rkl-11600/igt@i915_selftest@[email protected]
- fi-kbl-x1275: [DMESG-FAIL][25] -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-kbl-x1275/igt@i915_selftest@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-kbl-x1275/igt@i915_selftest@[email protected]
- {bat-adln-1}: [DMESG-FAIL][27] -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/bat-adln-1/igt@i915_selftest@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/bat-adln-1/igt@i915_selftest@[email protected]
- {bat-rpls-2}: [DMESG-FAIL][29] -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/bat-rpls-2/igt@i915_selftest@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/bat-rpls-2/igt@i915_selftest@[email protected]
- {bat-jsl-1}: [DMESG-FAIL][31] -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/bat-jsl-1/igt@i915_selftest@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/bat-jsl-1/igt@i915_selftest@[email protected]
- {bat-rpls-1}: [DMESG-FAIL][33] -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/bat-rpls-1/igt@i915_selftest@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/bat-rpls-1/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@late_gt_pm:
- fi-cfl-8109u: [DMESG-WARN][35] ([i915#5904]) -> [PASS][36] +27 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
* igt@i915_suspend@basic-s2idle-without-i915:
- fi-cfl-8109u: [DMESG-WARN][37] ([i915#5904] / [i915#62]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-cfl-8109u/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-cfl-8109u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cfl-8109u: [DMESG-WARN][39] ([i915#62]) -> [PASS][40] +13 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12285/fi-cfl-8109u/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/fi-cfl-8109u/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4890]: https://gitlab.freedesktop.org/drm/intel/issues/4890
[i915#5134]: https://gitlab.freedesktop.org/drm/intel/issues/5134
[i915#5904]: https://gitlab.freedesktop.org/drm/intel/issues/5904
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#6559]: https://gitlab.freedesktop.org/drm/intel/issues/6559
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7080]: https://gitlab.freedesktop.org/drm/intel/issues/7080
[i915#7174]: https://gitlab.freedesktop.org/drm/intel/issues/7174
[i915#7229]: https://gitlab.freedesktop.org/drm/intel/issues/7229
Build changes
-------------
* Linux: CI_DRM_12285 -> Patchwork_110061v2
CI-20190529: 20190529
CI_DRM_12285: 92b40b6e1d54d68a766c1545b9ace3e2eccad94a @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7023: 229bb0accbb7c8cedcc8d9256ad2b6683c9f161a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_110061v2: 92b40b6e1d54d68a766c1545b9ace3e2eccad94a @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
f959b3e6d666 mm/huge_memory: do not clobber swp_entry_t during THP split
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110061v2/index.html