<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.openanolis.cn/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.openanolis.cn/"
          
          maintainer="service@openanolis.org"
>

    <bug>
          <bug_id>8085</bug_id>
          
          <creation_ts>2024-01-30 15:53:08 +0000</creation_ts>
          <short_desc>[devel-6.6] Intel RDT non-contiguous CBM support</short_desc>
          <delta_ts>2024-03-11 03:11:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>ANCK</classification>
          <product>ANCK 6.6 Dev</product>
          <component>X86</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3-Medium</priority>
          <bug_severity>S3-normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="xiaochenshen">xiaochen.shen</reporter>
          <assigned_to name="maqiao">mqaio</assigned_to>
          <cc>artie.ding</cc>
    
    
    <cc>mqaio</cc>
    
    
    <cc>renyu.zj</cc>
          
          <qa_contact name="shuming">qingming.su</qa_contact>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25494</commentid>
    <comment_count>0</comment_count>
    <who name="xiaochenshen">xiaochen.shen</who>
    <bug_when>2024-01-30 15:53:08 +0000</bug_when>
    <thetext>About Intel RDT non-contiguous CBM support:

GNR and SRF support L3/L2 non-contiguous way masks. Linux kernel changes is needed to support this.

Legacy RDT only support contiguous bits in L3/L2 CAT Cache Bit Mask (CBM) when allocating L3/L2 cache. For example, 0x111 is a valid bit mask but 0x101 is an invalid bit mask. This is limitation of legacy RDT hardware. It limits user&apos;s capability to allocate L3/L2 cache efficiently and cause poor performance.

With non-contiguous bits in L3/L2 CAT, we can allocate L3/L2 cache in various ways and utilize the cache efficiently and improve user application performance.


About the patches:
There are 4 backported upstream patches:
aaa5fa35743ab9f0726568611a85e3e15349b9bf Documentation/x86: Document resctrl&apos;s new sparse_masks
4dba8f10b8fef9c5b0f9ed83dd1af91a1795ead1 x86/resctrl: Add sparse_masks file in info
0e3cd31f6e9074886dea5a999bfcc563d144e7de x86/resctrl: Enable non-contiguous CBMs in Intel CAT
39c6eed1f61594f737160e498d29673edbd9eefd x86/resctrl: Rename arch_has_sparse_bitmaps</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25648</commentid>
    <comment_count>1</comment_count>
    <who name="小龙">yongchao</who>
    <bug_when>2024-02-02 00:02:51 +0000</bug_when>
    <thetext>The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2740</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26367</commentid>
    <comment_count>2</comment_count>
    <who name="xiaochenshen">xiaochen.shen</who>
    <bug_when>2024-03-11 03:04:42 +0000</bug_when>
    <thetext>Mark as FIXED for PR https://gitee.com/anolis/cloud-kernel/pulls/2740 has been merged.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>