diff options
author | Peng Liu <pengliu@nvidia.com> | 2018-10-30 16:45:43 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-04-01 18:27:17 -0400 |
commit | 3a11883f7f4399ae8dffbea00c1842e3c2095937 (patch) | |
tree | 82d36197046e73c13432250ec4ebce0da21791d5 /drivers/gpu/nvgpu/vgpu | |
parent | f1be222687a853b0218a5700a213f3d34d8ccc4f (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/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c index eae0ba9e..7c800d5f 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | |||
@@ -436,6 +436,8 @@ static const struct gpu_ops vgpu_gp10b_ops = { | |||
436 | .pmu_pg_idle_counter_config = NULL, | 436 | .pmu_pg_idle_counter_config = NULL, |
437 | .pmu_read_idle_counter = NULL, | 437 | .pmu_read_idle_counter = NULL, |
438 | .pmu_reset_idle_counter = NULL, | 438 | .pmu_reset_idle_counter = NULL, |
439 | .pmu_read_idle_intr_status = NULL, | ||
440 | .pmu_clear_idle_intr_status = NULL, | ||
439 | .pmu_dump_elpg_stats = NULL, | 441 | .pmu_dump_elpg_stats = NULL, |
440 | .pmu_dump_falcon_stats = NULL, | 442 | .pmu_dump_falcon_stats = NULL, |
441 | .pmu_enable_irq = NULL, | 443 | .pmu_enable_irq = NULL, |
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c index de006b1e..78ea5643 100644 --- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c +++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | |||
@@ -504,6 +504,8 @@ static const struct gpu_ops vgpu_gv11b_ops = { | |||
504 | .pmu_pg_idle_counter_config = NULL, | 504 | .pmu_pg_idle_counter_config = NULL, |
505 | .pmu_read_idle_counter = NULL, | 505 | .pmu_read_idle_counter = NULL, |
506 | .pmu_reset_idle_counter = NULL, | 506 | .pmu_reset_idle_counter = NULL, |
507 | .pmu_read_idle_intr_status = NULL, | ||
508 | .pmu_clear_idle_intr_status = NULL, | ||
507 | .pmu_dump_elpg_stats = NULL, | 509 | .pmu_dump_elpg_stats = NULL, |
508 | .pmu_dump_falcon_stats = NULL, | 510 | .pmu_dump_falcon_stats = NULL, |
509 | .pmu_enable_irq = NULL, | 511 | .pmu_enable_irq = NULL, |