Tegra 動態關閉未使用區塊的電源 (powergate) 以節省耗電.

<< 以 root 權限確認目前 powergate 的狀態 >>

root@tegra-ubuntu:/sys/kernel/debug# cat powergate
 powergate powered
------------------
     crail      no
       gpu     yes   <-- GPU 電源狀態為"啟動".
        ve      no
      pcie     yes   <-- PCIE
       vde     yes
       mpe      no
      cpu1      no
      cpu2      no
      cpu3      no
      celp     yes   <--- CPU LP 叢集
      cpu0      no  <--- CPU G 叢集
      c0nc     yes
      c1nc     yes
       sor     yes
      disa      no
      disb     yes  <-- Display B (HDMI)
     xusba      no
     xusbb      no
     xusbc      no
       vic      no

測試關閉 GPU powergate 是否有助於避免 R21.2 Release Note 已知問題 200055546.

<< 啟動 GPU 電源除錯訊息, powergate 運作中 >>

root@tegra-ubuntu:/# echo 0x40 > /sys/kernel/debug/gk20a.0/dbg_mask
root@tegra-ubuntu:/# dmesg | grep powergating
[  610.912671] gk20a pmu_init_powergating: cmd post PMU_PG_ELPG_CMD_INIT
[  610.912686] gk20a pmu_init_powergating: cmd post PMU_PG_STAT_CMD_ALLOC_DMEM
[  610.912700] gk20a pmu_init_powergating: cmd post PMU_PG_ELPG_CMD_DISALLOW
[  611.509900] gk20a pmu_init_powergating: cmd post PMU_PG_ELPG_CMD_INIT
[  611.509909] gk20a pmu_init_powergating: cmd post PMU_PG_STAT_CMD_ALLOC_DMEM
[  611.509917] gk20a pmu_init_powergating: cmd post PMU_PG_ELPG_CMD_DISALLOW
[  612.112297] gk20a pmu_init_powergating: cmd post PMU_PG_ELPG_CMD_INIT
[  612.112309] gk20a pmu_init_powergating: cmd post PMU_PG_STAT_CMD_ALLOC_DMEM

<< 關閉 GPU powergate 控制 >>

diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
index edeacda..49d27de 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
@@ -543,7 +543,7 @@ struct gk20a_platform gk20a_tegra_platform = {
        /* power management configuration */
        .railgate_delay         = 500,
        .clockgate_delay        = 50,
-       .can_railgate           = true,
+       .can_railgate           = false,
 
        .probe = gk20a_tegra_probe,
        .late_probe = gk20a_tegra_late_probe,

 

   

文章標籤
創作者介紹
創作者 版大 的頭像
版大

嵌入式系統

版大 發表在 痞客邦 留言(0) 人氣()