From 39c48cb8bfa686692ce2fea3f4fefc3ddfaae5ab Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Mon, 18 Jul 2016 14:47:20 +0530 Subject: 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 Reviewed-on: http://git-master/r/1202602 (cherry picked from commit fb7c7356f131a198bd655a25fc6ff17067477e1b) Reviewed-on: http://git-master/r/1217299 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') 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; #include "cde_gk20a.h" #include "debug_gk20a.h" #include "sched_gk20a.h" +#include "gm206/bios_gm206.h" /* PTIMER_REF_FREQ_HZ corresponds to a period of 32 nanoseconds. 32 ns is the resolution of ptimer. */ @@ -656,6 +657,8 @@ struct gpu_ops { struct { int (*init)(struct gk20a *g); + void *(*get_perf_table_ptrs)(struct gk20a *g, + struct bit_token *ptoken, u8 table_id); } bios; #if defined(CONFIG_GK20A_CYCLE_STATS) struct { @@ -704,6 +707,8 @@ struct nvgpu_bios { u32 devinit_tables_phys_base; u32 devinit_script_phys_base; + struct bit_token *perf_token; + struct bit_token *clock_token; u32 expansion_rom_offset; }; -- cgit v1.2.2