From 6a799732d849131c615622292eec7c2be99cc61c Mon Sep 17 00:00:00 2001 From: Vaibhav Kachore Date: Wed, 31 Jul 2019 16:40:39 +0530 Subject: [PATCH] gpu: nvgpu: Remove powergating API from safety build For safety build, powergate APIs are not supposed to be used at run-time. Keeping needed partitions unpowergated by default for safety builds. Bug 200539825 Change-Id: I72148f12fd72e51cfe4d01d010f92f633c564810 Signed-off-by: Vaibhav Kachore Reviewed-on: https://git-master.nvidia.com/r/2165042 Reviewed-by: Shashank Singh Reviewed-by: Ankur Kishore GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/Makefile.shared.configs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/nvgpu/Makefile.shared.configs b/drivers/gpu/nvgpu/Makefile.shared.configs index 3eebc6e6a..2eb2e14ec 100644 --- a/drivers/gpu/nvgpu/Makefile.shared.configs +++ b/drivers/gpu/nvgpu/Makefile.shared.configs @@ -186,6 +186,10 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_GR_FALCON_NON_SECURE_BO CONFIG_NVGPU_SW_SEMAPHORE := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_SW_SEMAPHORE +# Enable powergate lib for normal build +CONFIG_NVGPU_USE_POWERGATE_LIB := 1 +NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_USE_POWERGATE_LIB + endif endif