From 1adf23eea596872ef8d431a922e5ce0e5e49fbde Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Thu, 19 Mar 2020 17:31:50 -0400 Subject: [PATCH] gpu: nvgpu: build flags for dGPU safety Add the following flags for dGPU safety build: - CONFIG_NVGPU_GR_FALCON_NON_SECURE_BOOT - CONFIG_NVGPU_SM_DIVERSITY - CONFIG_NVGPU_USE_3LSS_ERR_INJECTION Jira NVGPU-4661 Change-Id: I50df5677f6b53d835852ef29fb378d4817bd4e2b Signed-off-by: Thomas Fleury Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2315694 Reviewed-by: automaticguardword Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Deepak Nibade Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/Makefile.shared.configs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/nvgpu/Makefile.shared.configs b/drivers/gpu/nvgpu/Makefile.shared.configs index 3ba41c3c0..d528ec667 100644 --- a/drivers/gpu/nvgpu/Makefile.shared.configs +++ b/drivers/gpu/nvgpu/Makefile.shared.configs @@ -108,6 +108,15 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_FALCON_NON_FUSA # nvgpu_semaphore_get_value CONFIG_NVGPU_SW_SEMAPHORE :=1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_SW_SEMAPHORE + +CONFIG_NVGPU_GR_FALCON_NON_SECURE_BOOT := 1 +NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_GR_FALCON_NON_SECURE_BOOT + +CONFIG_NVGPU_SM_DIVERSITY := 1 +NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_SM_DIVERSITY + +CONFIG_NVGPU_USE_3LSS_ERR_INJECTION := 1 +NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_USE_3LSS_ERR_INJECTION endif endif