summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c4
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 229e3782..9a8130ba 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -1242,10 +1242,10 @@ int gk20a_channel_alloc_gpfifo(struct channel_gk20a *c,
1242 gpfifo_size = num_entries; 1242 gpfifo_size = num_entries;
1243 gpfifo_entry_size = nvgpu_get_gpfifo_entry_size(); 1243 gpfifo_entry_size = nvgpu_get_gpfifo_entry_size();
1244 1244
1245 if (flags & NVGPU_ALLOC_GPFIFO_EX_FLAGS_VPR_ENABLED) 1245 if (flags & NVGPU_GPFIFO_FLAGS_SUPPORT_VPR)
1246 c->vpr = true; 1246 c->vpr = true;
1247 1247
1248 if (flags & NVGPU_ALLOC_GPFIFO_EX_FLAGS_DETERMINISTIC) { 1248 if (flags & NVGPU_GPFIFO_FLAGS_SUPPORT_DETERMINISTIC) {
1249 nvgpu_rwsem_down_read(&g->deterministic_busy); 1249 nvgpu_rwsem_down_read(&g->deterministic_busy);
1250 /* 1250 /*
1251 * Railgating isn't deterministic; instead of disallowing 1251 * Railgating isn't deterministic; instead of disallowing
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index 0cb60200..58a8aa97 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -48,6 +48,10 @@ struct fifo_profile_gk20a;
48#include "channel_t19x.h" 48#include "channel_t19x.h"
49#endif 49#endif
50 50
51/* Flags to be passed to gk20a_channel_alloc_gpfifo() */
52#define NVGPU_GPFIFO_FLAGS_SUPPORT_VPR (1 << 0)
53#define NVGPU_GPFIFO_FLAGS_SUPPORT_DETERMINISTIC (1 << 1)
54
51struct notification { 55struct notification {
52 struct { 56 struct {
53 u32 nanoseconds[2]; 57 u32 nanoseconds[2];