summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-29 18:53:24 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-12-08 18:53:35 -0500
commit5121bd4b6f2a41b3db045cca7246f9b1832c8648 (patch)
tree68183487f09347b6827e1ae4fa3887ff730d9303 /drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
parentee0bc391e047bc11611323fb4d30d0be4389be6b (diff)
gpu: nvpgu: Move GR IDLE timeout definition to header
GR IDLE timeout is defined as Kconfig. Instead of that introduce a new header file defaults.h which encapsulates any generic defaults we use in nvgpu, and move the definition there. Change-Id: I78ff1d2790d7ee3dff6df42bbd11cf683a85bf79 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1612650 GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
index f6c13db1..1ec0bc1c 100644
--- a/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
+++ b/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
@@ -31,6 +31,7 @@
31#include <nvgpu/bus.h> 31#include <nvgpu/bus.h>
32#include <nvgpu/soc.h> 32#include <nvgpu/soc.h>
33#include <nvgpu/ctxsw_trace.h> 33#include <nvgpu/ctxsw_trace.h>
34#include <nvgpu/defaults.h>
34 35
35#include "vgpu.h" 36#include "vgpu.h"
36#include "fecs_trace_vgpu.h" 37#include "fecs_trace_vgpu.h"
@@ -750,8 +751,7 @@ int vgpu_probe(struct platform_device *pdev)
750 dev->dma_parms = &l->dma_parms; 751 dev->dma_parms = &l->dma_parms;
751 dma_set_max_seg_size(dev, UINT_MAX); 752 dma_set_max_seg_size(dev, UINT_MAX);
752 753
753 gk20a->gr_idle_timeout_default = 754 gk20a->gr_idle_timeout_default = NVGPU_DEFAULT_GR_IDLE_TIMEOUT;
754 CONFIG_GK20A_DEFAULT_TIMEOUT;
755 gk20a->timeouts_enabled = true; 755 gk20a->timeouts_enabled = true;
756 756
757 vgpu_create_sysfs(dev); 757 vgpu_create_sysfs(dev);