From 89eec3588721b58a0ae84f279f802d121d33c362 Mon Sep 17 00:00:00 2001 From: rmylavarapu Date: Mon, 15 Jul 2019 10:16:45 +0530 Subject: [PATCH] gpu: nvgpu: Disable VFE secondary entry in clk_prog obj As support of VFE secondary entry is not POR for tu10a profile need to disable this in our NVGPU. If not the clkDomainsIsSecVFCurvesEnabled() check in PMU firmware will hit an halt. JIRA NVGPU-3810 Change-Id: Id72550393a0255e7c663c3fde0bbbdcef2d5885e Signed-off-by: rmylavarapu Signed-off-by: Mahantesh Kumbar Reviewed-on: https://git-master.nvidia.com/r/2153124 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/pmu/clk/clk_prog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/common/pmu/clk/clk_prog.c b/drivers/gpu/nvgpu/common/pmu/clk/clk_prog.c index 5a65711c8..216982e2c 100644 --- a/drivers/gpu/nvgpu/common/pmu/clk/clk_prog.c +++ b/drivers/gpu/nvgpu/common/pmu/clk/clk_prog.c @@ -266,7 +266,8 @@ static int devinit_get_clk_prog_table_35(struct gk20a *g, pclkprogobjs->slave_entry_count = header.slave_entry_count; pclkprogobjs->vf_entry_count = header.vf_entry_count; - pclkprogobjs->vf_sec_entry_count = header.vf_sec_entry_count; + /* VFE Secondary entry is not supported for auto profile */ + pclkprogobjs->vf_sec_entry_count = 0U; for (i = 0; i < header.entry_count; i++) { (void) memset(&prog_data, 0x0, (u32)sizeof(prog_data));