Advertisement
arter97

Untitled

Feb 2nd, 2025
582
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 16.00 KB | None | 0 0
  1. diff -Naur nos/commonresourceconfigs.xml pa/commonresourceconfigs.xml
  2. --- nos/commonresourceconfigs.xml   2025-02-03 02:35:20.478472836 +0900
  3. +++ pa/commonresourceconfigs.xml    2025-02-03 02:35:34.201999920 +0900
  4. @@ -45,8 +45,9 @@
  5.      <Major OpcodeValue="0x2" />
  6.          <Minor OpcodeValue="0x0" Node="/sys/module/msm_performance/parameters/cpu_min_freq" />
  7.          <Minor OpcodeValue="0x1" Node="/sys/module/msm_performance/parameters/cpu_max_freq" />
  8. -        <Minor OpcodeValue="0x2" Node="/sys/devices/system/cpu/cpufreq/policy4/walt/adaptive_low_freq" />
  9. -        <Minor OpcodeValue="0x3" Node="/sys/devices/system/cpu/cpufreq/policy4/walt/adaptive_high_freq" />
  10. +        <Minor OpcodeValue="0x2" Node="/sys/devices/system/cpu/cpufreq/policy0/walt/adaptive_low_freq" />
  11. +        <Minor OpcodeValue="0x3" Node="/sys/devices/system/cpu/cpufreq/policy0/walt/adaptive_high_freq" />
  12. +        <Minor OpcodeValue="0x4" Node="/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq" Supported="no" />
  13.      <!-- cpufreq major end -->
  14.  
  15.      <!-- sched major start -->
  16. @@ -88,7 +89,7 @@
  17.          <Minor OpcodeValue="0x1D" Node="/proc/sys/kernel/sched_busy_hysteresis_enable_cpus" />
  18.          <Minor OpcodeValue="0x1E" Node="/proc/sys/kernel/sched_min_task_util_for_colocation" />
  19.          <Minor OpcodeValue="0x1F" Node="/proc/sys/kernel/sched_min_task_util_for_boost" />
  20. -        <Minor OpcodeValue="0x20" Node="/proc/%d/sched_boost" Supported="yes"/> <!-- sched_task_boost -->
  21. +        <Minor OpcodeValue="0x20" Node="SPECIAL_NODE - apply_value" />
  22.          <Minor OpcodeValue="0x21" Node="/proc/sys/kernel/sched_user_hint" /> <!--sched_user_hint -->
  23.          <Minor OpcodeValue="0x22" Node="/proc/sys/kernel/sched_task_unfilter_nr_windows" /> <!--sched_task_unfilter_nr_windows -->
  24.          <Minor OpcodeValue="0x23" Node="/proc/sys/kernel/sched_coloc_downmigrate_ns" /> <!--sched_coloc_downmigrate_ns  -->
  25. @@ -108,7 +109,7 @@
  26.          <Minor OpcodeValue="0x31" Node="/proc/sys/walt/sched_coloc_busy_hyst_cpu_ns" />
  27.          <Minor OpcodeValue="0x32" Node="/proc/sys/kernel/walt_rtg_cfs_boost_prio" />
  28.          <Minor OpcodeValue="0x33" Node="/proc/sys/kernel/sched_force_lb_enable" Supported="yes" />
  29. -        <Minor OpcodeValue="0x34" Node="/proc/%d/sched_low_latency" Supported="yes" />
  30. +        <Minor OpcodeValue="0x34" Node="SPECIAL_NODE - apply_value" />
  31.          <Minor OpcodeValue="0x35" Node="/proc/sys/kernel/sched_min_granularity_ns" />
  32.          <Minor OpcodeValue="0x36" Node="/proc/sys/kernel/walt_low_latency_task_threshold" />
  33.          <Minor OpcodeValue="0x37" Node="/dev/stune/foreground/schedtune.prefer_idle" />
  34. @@ -127,6 +128,9 @@
  35.          <Minor OpcodeValue="0x0" Node="SPECIAL_NODE - lock_min_cores" />
  36.          <Minor OpcodeValue="0x1" Node="SPECIAL_NODE - lock_max_cores" />
  37.          <Minor OpcodeValue="0x2" Node="/sys/devices/system/cpu/cpu0/core_ctl/enable" />
  38. +        <Minor OpcodeValue="0x3" Node="/sys/devices/system/cpu/cpu0/core_ctl/not_preferred" />
  39. +        <Minor OpcodeValue="0x5" Node="/sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms" />
  40. +        <Minor OpcodeValue="0x4" Node="/sys/devices/system/cpu/cpu0/core_ctl/min_partial_cpus" />
  41.      <!-- core hotplug major end-->
  42.  
  43.      <!-- interactive major start -->
  44. @@ -223,7 +227,7 @@
  45.          <Minor OpcodeValue="0x7" Node="SPECIAL_NODE - gpu_disable_gpu_nap" />
  46.          <Minor OpcodeValue="0x8" Node="/sys/class/kgsl/kgsl/proc/%d/state" />
  47.          <Minor OpcodeValue="0x9" Node="/sys/class/kgsl/kgsl/proc/%d/state" />
  48. -        <Minor OpcodeValue="0xA" Node="/sys/class/kgsl/kgsl-3d0/devfreq/mod_percent" />
  49. +        <Minor OpcodeValue="0xA" Node="SPECIAL_NODE - apply_value" />
  50.          <Minor OpcodeValue="0xB" Node="/sys/class/kgsl/kgsl-3d0/idle_timer" />
  51.          <Minor OpcodeValue="0xC" Node="/sys/class/kgsl/kgsl-3d0/min_clock_mhz" />
  52.          <Minor OpcodeValue="0xD" Node="/sys/class/kgsl/kgsl-3d0/touch_wake" />
  53. @@ -239,7 +243,10 @@
  54.          <Minor OpcodeValue="0x5" Node="SPECIAL_NODE - dummy_or_keep_alive" />
  55.          <Minor OpcodeValue="0x6" Node="/sys/module/process_reclaim/parameters/enable_process_reclaim" />
  56.          <Minor OpcodeValue="0x7" Node="SPECIAL_NODE - disable_pasr" />
  57. +        <Minor OpcodeValue="0xB" Node="SPECIAL_NODE - apply_value" />
  58.          <Minor OpcodeValue="0xC" Node="/proc/sys/walt/sched_pipeline" />
  59. +        <Minor OpcodeValue="0xF" Node="SPECIAL_NODE - content_fps" />
  60. +        <Minor OpcodeValue="0x10" Node="/sys/devices/system/cpu/dynpf/enable_dynpf" />
  61.      <!-- misc major end -->
  62.  
  63.      <!-- llcbw hwmon major start -->
  64. @@ -312,6 +319,10 @@
  65.          <Minor OpcodeValue="0x23" Node="/sys/devices/system/cpu/bus_dcvs/LLCC/soc:qcom,memlat:llcc:gold/min_freq" />
  66.          <Minor OpcodeValue="0x24" Node="/sys/devices/system/cpu/bus_dcvs/DDR/soc:qcom,memlat:ddr:gold/spm_thres" />
  67.          <Minor OpcodeValue="0x25" Node="/sys/devices/system/cpu/bus_dcvs/DDR/soc:qcom,memlat:ddr:prime/spm_thres" />
  68. +        <Minor OpcodeValue="0x26" Node="/sys/devices/system/cpu/bus_dcvs/DDR/boost_freq" />
  69. +        <Minor OpcodeValue="0x27" Node="/sys/devices/system/cpu/bus_dcvs/L3/boost_freq" />
  70. +        <Minor OpcodeValue="0x28" Node="/sys/devices/system/cpu/bus_dcvs/LLCC/boost_freq" />
  71. +        <Minor OpcodeValue="0x29" Node="/sys/devices/system/cpu/bus_dcvs/DDRQOS/boost_freq" />
  72.      <!-- memlat major end -->
  73.  
  74.      <!-- npu major start -->
  75. @@ -329,7 +340,21 @@
  76.      <!-- sched2 major start -->
  77.      <Major OpcodeValue="0xF" />
  78.          <Minor OpcodeValue="0x0" Node="/proc/sys/walt/sched_asymcap_boost" />
  79. +        <Minor OpcodeValue="0x1" Node="/proc/sys/walt/task_load_boost" />
  80. +        <Minor OpcodeValue="0x2" Node="/proc/sys/walt/sched_cluster_util_thres_pct" />
  81. +        <Minor OpcodeValue="0x3" Node="/proc/sys/walt/sched_idle_enough" />
  82. +        <Minor OpcodeValue="0x4" Node="/proc/sys/walt/sched_em_inflate_pct" />
  83. +        <Minor OpcodeValue="0x5" Node="/proc/sys/walt/sched_em_inflate_thres" />
  84. +        <Minor OpcodeValue="0x6" Node="/proc/sys/walt/sched_heavy_nr" />
  85. +        <Minor OpcodeValue="0x7" Node="/proc/sys/walt/sched_fmax_cap" />
  86. +        <Minor OpcodeValue="0x8" Node="/proc/sys/walt/sched_max_freq_partial_halt" />
  87. +        <Minor OpcodeValue="0x9" Node="/proc/sys/walt/sched_idle_enough_clust" />
  88. +        <Minor OpcodeValue="0xA" Node="/proc/sys/walt/sched_cluster_util_thres_pct_clust" />
  89. +
  90.      <!-- sched2 major end -->
  91. +    <!--Add new resource expected value and write value in configs/test/common/perfcommonresourceconfigs.xml
  92. +    for support in regression framework-->
  93. +
  94.  
  95.      </PerfResources>
  96.  </ResourceConfigs>
  97. diff -Naur nos/perfboostsconfig.xml pa/perfboostsconfig.xml
  98. --- nos/perfboostsconfig.xml    2025-02-03 02:35:20.478472836 +0900
  99. +++ pa/perfboostsconfig.xml 2025-02-03 02:35:40.213795631 +0900
  100. @@ -950,7 +950,7 @@
  101.                  Resources="0x40800100, 700, 0x4281C000, 17, 0x41C0C000, 0" />
  102.          <Config
  103.                  Id="0x00001098" Type="0" Enable="true" Target="taro,cape,ukee" Timeout="2000" Fps="120"
  104. -                Resources="0x4281C000, 13, 0x41C0C000, 0" />
  105. +                Resources="0x42C20000, 1, 0x4281C000, 13, 0x41C0C000, 0" />
  106.          <Config
  107.                  Id="0x00001098" Type="0" Enable="true" Target="taro,cape,ukee" Timeout="2000" Fps="144"
  108.                  Resources="0x42C20000, 1, 0x4281C000, 11, 0x41C0C000, 0" />
  109. @@ -982,7 +982,7 @@
  110.                  Resources="0x40800100, 700, 0x4281C000, 17" />
  111.          <Config
  112.                  Id="0x00001099" Type="0" Enable="true" Target="taro,cape,ukee" Timeout="2000" Fps="120"
  113. -                Resources="0x4281C000, 13" />
  114. +                Resources="0x42C20000, 1, 0x4281C000, 13" />
  115.          <Config
  116.                  Id="0x00001099" Type="0" Enable="true" Target="taro,cape,ukee" Timeout="2000" Fps="144"
  117.                  Resources="0x42C20000, 1, 0x4281C000, 11" />
  118. @@ -1013,7 +1013,7 @@
  119.                  Resources="0x40800100, 700, 0x41C0C000, 0" />
  120.          <Config
  121.                  Id="0x0000109A" Type="0" Enable="true" Target="taro,cape,ukee" Timeout="2000" Fps="120"
  122. -                Resources="0x41C0C000, 0" />
  123. +                Resources="0x42C20000, 1, 0x41C0C000, 0" />
  124.          <Config
  125.                  Id="0x0000109A" Type="0" Enable="true" Target="taro,cape,ukee" Timeout="2000" Fps="144"
  126.                  Resources="0x42C20000, 1, 0x41C0C000, 0" />
  127. @@ -1038,7 +1038,7 @@
  128.          <!-- PID Affine opcode,value -->
  129.          <Config
  130.                  Id="0x00001097" Type="0" Enable="true" Timeout="5000" Target="taro,cape,ukee" Fps="120"
  131. -                Resources="0x40800000, 1500, 0x42804000, 0" />
  132. +                Resources="0x40800000, 1500, 0x42804000, 0, 0x42C20000, 1" />
  133.  
  134.          <Config
  135.                  Id="0x00001097" Type="0" Enable="true" Timeout="5000" Target="taro,cape,ukee" Fps="144"
  136. diff -Naur nos/perfconfigstore.xml pa/perfconfigstore.xml
  137. --- nos/perfconfigstore.xml 2025-02-03 02:35:20.478472836 +0900
  138. +++ pa/perfconfigstore.xml  2025-02-03 02:35:40.237794819 +0900
  139. @@ -32,19 +32,24 @@
  140.      <PerfConfigs>
  141.  
  142.                  <!--Vendor Properties -->
  143. -                <Prop Name="vendor.iop.enable_uxe" Value="1" />
  144. +                <!-- AOSPA Edit: Comment out IOP
  145. +                <Prop Name="vendor.iop.enable_uxe" Value="1" /> -->
  146.                  <Prop Name="vendor.debug.enable.lm" Value="true" />
  147. +                <!-- AOSPA Edit: Comment out IOP
  148.                  <Prop Name="vendor.perf.iop_v3.enable" Value="true" Target="taro,cape,ukee" />
  149.                  <Prop Name="vendor.perf.iop_v3.enable.debug" Value="false" />
  150.                  <Prop Name="vendor.enable.prefetch" Value="false" />
  151. -                <Prop Name="vendor.iop.enable_prefetch_ofr" Value="false" />
  152. +                <Prop Name="vendor.iop.enable_prefetch_ofr" Value="false" /> -->
  153. +                <!-- AOSPA Edit: Disable IOPd explicitly -->
  154. +                <Prop Name="vendor.iop.enabled" Value="false" />
  155.                  <Prop Name="vendor.iop.enable_speed" Value="true" />
  156.                  <Prop Name="vendor.perf.test_avc" Value="false" />
  157.                  <Prop Name="vendor.perf.fps_switch_hyst_time_secs" Value="10" />
  158.                  <Prop Name="ro.vendor.perf.enable.prekill"        Value="true"     />
  159. +                <!-- AOSPA Edit: Disable memperfd
  160.                  <Prop Name="vendor.debug.enable.memperfd"         Value="true"     />
  161.                  <Prop Name="vendor.enable.memperfd_MIN_RAM_in_KB" Value="1048576"  />
  162. -                <Prop Name="vendor.enable.memperfd_MAX_RAM_in_KB" Value="12582912" />
  163. +                <Prop Name="vendor.enable.memperfd_MAX_RAM_in_KB" Value="12582912" /> -->
  164.                  <Prop Name="vendor.prekill_MIN_ADJ_to_Kill"       Value="800"  />
  165.                  <Prop Name="vendor.prekill_MAX_ADJ_to_Kill"       Value="1000"  />
  166.                  <Prop Name="ro.vendor.perf.enable.procomp" Value="true" Target="diwali" />
  167. @@ -135,5 +140,13 @@
  168.                  <Prop Name="ro.vendor.qti.am.reschedule_service"     Value="true"       Ram="6" />
  169.                  <Prop Name="ro.vendor.qti.sys.fw.bg_apps_limit"      Value="60"         Ram="6" />
  170.                  <Prop Name="ro.vendor.perf.enable.procomp"           Value="true"       Ram="6" />
  171. +
  172. +                <!-- AOSPA Edit: Enable Preferred Apps -->
  173. +                <Prop Name="ro.vendor.perf.enable.prefapps" Value="true" />
  174. +                <Prop Name="ro.vendor.perf.count.prefapps" Value="12" />
  175. +                <Prop Name="ro.vendor.use_perf_hal_for_preferredapps" Value="true" />
  176. +                <Prop Name="vendor.prefapps.pkg_retention_mins" Value="28800" />
  177. +                <Prop Name="vendor.prefapps.last_launch_threshold" Value="21600" />
  178. +
  179.      </PerfConfigs>
  180.  </PerfConfigsStore>
  181. diff -Naur nos/testcommonresourceconfigs.xml pa/testcommonresourceconfigs.xml
  182. --- nos/testcommonresourceconfigs.xml   2025-02-03 02:35:20.478472836 +0900
  183. +++ pa/testcommonresourceconfigs.xml    2025-02-03 02:35:34.297996645 +0900
  184. @@ -64,6 +64,7 @@
  185.          <Minor OpcodeValue="0x1" Cluster="1" WVal="1478" RVal="1478400" />
  186.          <Minor OpcodeValue="0x2" WVal="0xDF4" RVal="3572" />
  187.          <Minor OpcodeValue="0x3" WVal="0xFFA" RVal="4090" />
  188. +        <Minor OpcodeValue="0x4" WVal="" RVal="" /> <!-- not supported -->
  189.      <!-- cpufreq major end -->
  190.  
  191.      <!-- sched major start -->
  192. @@ -144,6 +145,9 @@
  193.          <Minor OpcodeValue="0x0" />
  194.          <Minor OpcodeValue="0x1" />
  195.          <Minor OpcodeValue="0x2" Cluster="1" WVal="1" RVal="1" />
  196. +        <Minor OpcodeValue="0x3" Cluster="1" Exception="Cant compare. Node written as decimal read as binary with spaces." />
  197. +        <Minor OpcodeValue="0x4" Cluster="0" WVal="1" RVal="1" />
  198. +        <Minor OpcodeValue="0x5" Cluster="0" WVal="50" RVal="50" />
  199.      <!-- core hotplug major end-->
  200.  
  201.      <!-- interactive major start -->
  202. @@ -235,13 +239,13 @@
  203.          <Minor OpcodeValue="0x1" WVal="0x4" RVal="4" />
  204.          <Minor OpcodeValue="0x2" WVal="1" RVal="1" />
  205.          <Minor OpcodeValue="0x3" WVal="0xFF" RVal="285000000" />
  206. -        <Minor OpcodeValue="0x4" WVal="0x30C1B083" RVal="220000000" />
  207. +        <Minor OpcodeValue="0x4" WVal="0x1BB" RVal="443000000" />
  208.          <Minor OpcodeValue="0x5" WVal="" RVal="" />   <!-- not supported -->
  209.          <Minor OpcodeValue="0x6" WVal="" RVal="" />   <!-- not supported -->
  210.          <Minor OpcodeValue="0x7" />
  211.          <Minor OpcodeValue="0x8" />
  212.          <Minor OpcodeValue="0x9" />
  213. -        <Minor OpcodeValue="0xA" WVal="0x3A4" RVal="932" />
  214. +        <Minor OpcodeValue="0xA" Exception="Node is QESDK-SEC Protected, Should be tested by that." />
  215.          <Minor OpcodeValue="0xB" WVal="32" RVal="32" />
  216.          <Minor OpcodeValue="0xC" WVal="440" Rval="450" />
  217.          <Minor OpcodeValue="0xD" WVal="" Rval="" /> <!-- not supported -->
  218. @@ -263,6 +267,9 @@
  219.          <Minor OpcodeValue="0xB" Exception="MISC SET_SCHEDULER Resource" />
  220.          <Minor OpcodeValue="0xC" WVal="0x1" RVal="4" />
  221.          <Minor OpcodeValue="0xD" Exception="DISPLAY_DOZE resource" />
  222. +        <Minor OpcodeValue="0xE" Exception="MISC DISPLAY_HEAVY_RT_AFFINE Resource" />
  223. +        <Minor OpcodeValue="0xF" Exception="MISC content_fps Resource" />
  224. +        <Minor OpcodeValue="0x10" WVal="0x1" RVal="1" />
  225.      <!-- misc major end -->
  226.  
  227.      <!-- llcbw hwmon major start -->
  228. @@ -323,7 +330,7 @@
  229.          <Minor OpcodeValue="0x17" WVal="0x49ABC" RVal="301756" />
  230.          <Minor OpcodeValue="0x18" WVal="768000" RVal="768000" />
  231.          <Minor OpcodeValue="0x19" WVal="0x18C" RVal="396" />
  232. -        <Minor OpcodeValue="0x1A" WVal="0x88" RVal="136" />
  233. +        <Minor OpcodeValue="0x1A" WVal="0x4" RVal="4" />
  234.          <Minor OpcodeValue="0x1B" WVal="0x25F" RVal="547000" />
  235.          <Minor OpcodeValue="0x1C" WVal="0xAF" RVal="300000" />
  236.          <Minor OpcodeValue="0x1D" WVal="0x61A9" RVal="25001" />
  237. @@ -335,6 +342,10 @@
  238.          <Minor OpcodeValue="0x23" WVal="466000" />
  239.          <Minor OpcodeValue="0x24" WVal="30" />
  240.          <Minor OpcodeValue="0x25" WVal="30" />
  241. +        <Minor OpcodeValue="0x26" WVal="60000" RVal="451200" />
  242. +        <Minor OpcodeValue="0x27" WVal="60000" RVal="556800" />
  243. +        <Minor OpcodeValue="0x28" WVal="60000" RVal="150000" />
  244. +        <Minor OpcodeValue="0x29" WVal="1" RVal="1" />
  245.      <!-- memlat major end -->
  246.  
  247.      <!-- npu major start -->
  248. @@ -352,6 +363,16 @@
  249.      <!-- sched2 major start -->
  250.      <Major OpcodeValue="0xF" />
  251.          <Minor OpcodeValue="0x0" WVal="0x1" RVal="1" />
  252. +        <Minor OpcodeValue="0x1" Exception="TASK LOAD BOOST NEED PID" />
  253. +        <Minor OpcodeValue="0x2" WVal="0x20" RVal="32" />
  254. +        <Minor OpcodeValue="0x3" WVal="0x23" RVal="35" />
  255. +        <Minor OpcodeValue="0x4" WVal="0x12C" RVal="300" />
  256. +        <Minor OpcodeValue="0x5" WVal="0xDC" RVal="220" />
  257. +        <Minor OpcodeValue="0x6" WVal="2" RVal="2" />
  258. +        <Minor OpcodeValue="0x7" Cluster="0" WVal="0x208500" RVal="2131200" />
  259. +        <Minor OpcodeValue="0x8" WVal="0x208500" RVal="2131200" />
  260. +        <Minor OpcodeValue="0x9" Cluster="0" WVal="40" RVal="40" />
  261. +        <Minor OpcodeValue="0xA" Cluster="0" WVal="50" RVal="50" />
  262.      <!-- sched2 major end -->
  263.  
  264.      </PerfResources>
  265.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement