From 1b9e66a284694fad1f1a95fa85b832884a449aed Mon Sep 17 00:00:00 2001 From: Petlozu Pravareshwar Date: Tue, 19 Nov 2019 04:51:55 -0800 Subject: [PATCH] nvgpu: gpu: Add mssnvlink0 reset control config On safety build, MSSNVLINK HV is supporting dynamic update of Protection table. Hence Guest OS Nvlink driver can't control mssnvlink0 reset on safety build. For this purpose, CONFIG_MSSNVLINK0_RST_CONTROL flag is defined and enabled for the standard build, while it will be disabled for the safety builds. Bug 200545652 Change-Id: I4c03250475cc63e5f9ded1bf3ef3c462db46cd44 Signed-off-by: Petlozu Pravareshwar Reviewed-on: https://git-master.nvidia.com/r/2242454 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu 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 778ca21dd..1a82c79ea 100644 --- a/drivers/gpu/nvgpu/Makefile.shared.configs +++ b/drivers/gpu/nvgpu/Makefile.shared.configs @@ -122,6 +122,10 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_GRAPHICS CONFIG_NVGPU_NVLINK := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_NVLINK +# Enable mssnvlink0 reset control for normal build +CONFIG_MSSNVLINK0_RST_CONTROL := 1 +NVGPU_COMMON_CFLAGS += -DCONFIG_MSSNVLINK0_RST_CONTROL + # Enable dgpu support for normal build. CONFIG_NVGPU_DGPU := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_DGPU