diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2016-07-18 05:17:20 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-08 23:05:58 -0400 |
commit | 39c48cb8bfa686692ce2fea3f4fefc3ddfaae5ab (patch) | |
tree | aa23fe7dc474569fe8265ad702a3d92935f9bb01 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | f56ed459dde2a292b3af0dd4deb96b1090eb53a2 (diff) |
gpu: nvgpu: get bios perf and clk table ptr
Implement support for reading perf and clk tables from VBIOS.
JIRA DNVGPU-83
Change-Id: I095fea08479161362e4c2ffa7500ee6a57d6d447
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1202602
(cherry picked from commit fb7c7356f131a198bd655a25fc6ff17067477e1b)
Reviewed-on: http://git-master/r/1217299
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 1ca8ff77..62269f21 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -53,6 +53,7 @@ struct acr_desc; | |||
53 | #include "cde_gk20a.h" | 53 | #include "cde_gk20a.h" |
54 | #include "debug_gk20a.h" | 54 | #include "debug_gk20a.h" |
55 | #include "sched_gk20a.h" | 55 | #include "sched_gk20a.h" |
56 | #include "gm206/bios_gm206.h" | ||
56 | 57 | ||
57 | /* PTIMER_REF_FREQ_HZ corresponds to a period of 32 nanoseconds. | 58 | /* PTIMER_REF_FREQ_HZ corresponds to a period of 32 nanoseconds. |
58 | 32 ns is the resolution of ptimer. */ | 59 | 32 ns is the resolution of ptimer. */ |
@@ -656,6 +657,8 @@ struct gpu_ops { | |||
656 | 657 | ||
657 | struct { | 658 | struct { |
658 | int (*init)(struct gk20a *g); | 659 | int (*init)(struct gk20a *g); |
660 | void *(*get_perf_table_ptrs)(struct gk20a *g, | ||
661 | struct bit_token *ptoken, u8 table_id); | ||
659 | } bios; | 662 | } bios; |
660 | #if defined(CONFIG_GK20A_CYCLE_STATS) | 663 | #if defined(CONFIG_GK20A_CYCLE_STATS) |
661 | struct { | 664 | struct { |
@@ -704,6 +707,8 @@ struct nvgpu_bios { | |||
704 | u32 devinit_tables_phys_base; | 707 | u32 devinit_tables_phys_base; |
705 | u32 devinit_script_phys_base; | 708 | u32 devinit_script_phys_base; |
706 | 709 | ||
710 | struct bit_token *perf_token; | ||
711 | struct bit_token *clock_token; | ||
707 | u32 expansion_rom_offset; | 712 | u32 expansion_rom_offset; |
708 | }; | 713 | }; |
709 | 714 | ||