Bug 9609 - Report real pgsize bitmap to iommu core
Summary: Report real pgsize bitmap to iommu core
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: 5.10.y-13
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: zelin
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-31 11:04 UTC by zelin
Modified: 2024-07-31 15:42 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zelin alibaba_cloud_group 2024-07-31 11:04:50 UTC
The pgsize bitmap is used to advertise the page sizes our hardware supports
    to the IOMMU core, which will then use this information to split physically
    contiguous memory regions it is mapping into page sizes that we support.
    
    Traditionally the IOMMU core just handed us the mappings directly, after
    making sure the size is an order of a 4KiB page and that the mapping has
    natural alignment. To retain this behavior, we currently advertise that we
    support all page sizes that are an order of 4KiB.
    
    We are about to utilize the new IOMMU map/unmap_pages APIs. We could change
    this to advertise the real page sizes we support.
Comment 1 小龙 admin 2024-07-31 11:19:44 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3569
Comment 2 zelin alibaba_cloud_group 2024-07-31 15:42:33 UTC
see pr link