From 85949d39e22c08fb767dd56758f8eaed7fbf7d90 Mon Sep 17 00:00:00 2001 From: Nitin Kumbhar Date: Mon, 13 Apr 2020 17:55:04 +0530 Subject: [PATCH] gpu: nvgpu: disable GC-OFF feature for all dGPUs Set the can_pci_gc_off platform flag of all dGPUs to false to disable powering on/off dGPU using GC-OFF feature. Bug 2917054 Change-Id: Iffacd134cf52a137bb9c121d69bd0fd0a096c6ff Signed-off-by: Nitin Kumbhar Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2327968 Reviewed-by: automaticguardword Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/os/linux/pci.c b/drivers/gpu/nvgpu/os/linux/pci.c index 3c394b443..8cbb1b0ff 100644 --- a/drivers/gpu/nvgpu/os/linux/pci.c +++ b/drivers/gpu/nvgpu/os/linux/pci.c @@ -125,7 +125,7 @@ static struct gk20a_platform nvgpu_pci_device[] = { /* power management configuration */ .railgate_delay_init = 500, .can_railgate_init = false, - .can_pci_gc_off = true, + .can_pci_gc_off = false, .can_elpg_init = false, .enable_elpg = false, .enable_elcg = false, @@ -165,7 +165,7 @@ static struct gk20a_platform nvgpu_pci_device[] = { /* power management configuration */ .railgate_delay_init = 500, .can_railgate_init = false, - .can_pci_gc_off = true, + .can_pci_gc_off = false, .can_elpg_init = false, .enable_elpg = false, .enable_elcg = false,