Bug 13479 - Hygon: Revert some workaround code about LRU flag and PCP THP, and use upstreamed version
Summary: Hygon: Revert some workaround code about LRU flag and PCP THP, and use upstre...
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: mm (show other bugs) mm
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: wangrongwei
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-11 15:48 UTC by wojiaohanliyang
Modified: 2025-01-12 17:35 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wojiaohanliyang hygon_group 2025-01-11 15:48:59 UTC
Description of problem:

When supporting the Hygon CSV3 on Linux 6.6, we encountered two issues:
  - Misuse of the LRU flag.
  - Issues with PCP THP being movable/unmovable.

To resolve these, we provided the following patches::
  - mm/gup: don't check if a page is in lru before draining it
  - anolis: mm/page_alloc: don't use PCP list for THP-sized allocations when using PF_MEMALLOC_PIN

Yangge has now contributed the bugfix patches for these issues to the Linux mainline:
  - 33dfe9204f29 mm/gup: clear the LRU flag of a page before adding to LRU batch
  - bf14ed81f571 mm/page_alloc: Separate THP PCP into movable and non-movable categories

We have verified that the commit bf14ed81f571 ("mm/page_alloc: Separate THP PCP into movable and non-movable categories") have already been merged into the branch devel-6.6 of Anolis cloud-kernel.

Therefore, we will now revert our previous workaround patches and push the official bugfix patches to the devel-6.6 branch of the Anolis cloud-kernel.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2025-01-12 17:35:12 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4483