From 8cb168632bef46e98da7ff5d16b03e03ddfd3d4e Mon Sep 17 00:00:00 2001 From: prsethi Date: Sun, 18 Oct 2020 19:16:00 +0000 Subject: gpu: nvgpu: add support for ACB SLCG on gv11b Register list for ACB SLCG is auto generated with scripts. Add HAL operations to enable/disable ACB clock gating. Cherry-pick/manually port from dev-main Bug 200647909 Change-Id: I4be4c14cc072fcccd91031a5a40321f5ff11f549 Signed-off-by: Prateek sethi Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2420355 (cherry picked from commit c7c04d3a28c2eb0edc8e015dd0130fa50d3496c7) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2434464 Reviewed-by: automaticguardword Reviewed-by: Rajesh Devaraj Reviewed-by: Peter Daifuku Reviewed-by: Phoenix Jung Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gk20a/gk20a.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 347658b2..c3068b76 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -1,7 +1,7 @@ /* * GK20A Graphics * - * Copyright (c) 2011-2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011-2020, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -145,6 +145,10 @@ int gk20a_finalize_poweron(struct gk20a *g) g->gpu_reset_done = true; } + if (g->ops.clock_gating.slcg_acb_load_gating_prod != NULL) { + g->ops.clock_gating.slcg_acb_load_gating_prod(g, true); + } + /* * Do this early so any early VMs that get made are capable of mapping * buffers. -- cgit v1.2.2