summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b
diff options
context:
space:
mode:
authorPeng Liu <pengliu@nvidia.com>2018-10-30 16:45:43 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2019-04-01 18:27:17 -0400
commit3a11883f7f4399ae8dffbea00c1842e3c2095937 (patch)
tree82d36197046e73c13432250ec4ebce0da21791d5 /drivers/gpu/nvgpu/gm20b
parentf1be222687a853b0218a5700a213f3d34d8ccc4f (diff)
gpu: nvgpu: using pmu counters for load estimate
PMU counters #0 and #4 are used to count total cycles and busy cycles. These counts are used by podgov to estimate GPU load. PMU idle intr status register is used to monitor overflow. Overflow rarely occurs because frequency governor reads and resets the counters at a high cadence. When overflow occurs, 100% work load is reported to frequency governor. Bug 1963732 Change-Id: I046480ebde162e6eda24577932b96cfd91b77c69 Signed-off-by: Peng Liu <pengliu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1939547 (cherry picked from commit 34df0035194e0203f68f679acdd84e5533a48149) Reviewed-on: https://git-master.nvidia.com/r/1979495 Reviewed-by: Aaron Tian <atian@nvidia.com> Tested-by: Aaron Tian <atian@nvidia.com> Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index 7eaf6bff..dbfbc3d7 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -530,6 +530,8 @@ static const struct gpu_ops gm20b_ops = {
530 .pmu_pg_idle_counter_config = gk20a_pmu_pg_idle_counter_config, 530 .pmu_pg_idle_counter_config = gk20a_pmu_pg_idle_counter_config,
531 .pmu_read_idle_counter = gk20a_pmu_read_idle_counter, 531 .pmu_read_idle_counter = gk20a_pmu_read_idle_counter,
532 .pmu_reset_idle_counter = gk20a_pmu_reset_idle_counter, 532 .pmu_reset_idle_counter = gk20a_pmu_reset_idle_counter,
533 .pmu_read_idle_intr_status = gk20a_pmu_read_idle_intr_status,
534 .pmu_clear_idle_intr_status = gk20a_pmu_clear_idle_intr_status,
533 .pmu_dump_elpg_stats = gk20a_pmu_dump_elpg_stats, 535 .pmu_dump_elpg_stats = gk20a_pmu_dump_elpg_stats,
534 .pmu_dump_falcon_stats = gk20a_pmu_dump_falcon_stats, 536 .pmu_dump_falcon_stats = gk20a_pmu_dump_falcon_stats,
535 .pmu_enable_irq = gk20a_pmu_enable_irq, 537 .pmu_enable_irq = gk20a_pmu_enable_irq,