summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 948d8e60..4934958c 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -307,6 +307,7 @@ struct gpu_ops {
307 u32 class, u32 padding); 307 u32 class, u32 padding);
308 void (*free_gr_ctx)(struct gk20a *g, 308 void (*free_gr_ctx)(struct gk20a *g,
309 struct vm_gk20a *vm, struct nvgpu_gr_ctx *gr_ctx); 309 struct vm_gk20a *vm, struct nvgpu_gr_ctx *gr_ctx);
310 void (*powergate_tpc)(struct gk20a *g);
310 void (*update_ctxsw_preemption_mode)(struct gk20a *g, 311 void (*update_ctxsw_preemption_mode)(struct gk20a *g,
311 struct channel_gk20a *c, 312 struct channel_gk20a *c,
312 struct nvgpu_mem *mem); 313 struct nvgpu_mem *mem);
@@ -1361,6 +1362,8 @@ struct gk20a {
1361 u64 log_mask; 1362 u64 log_mask;
1362 u32 log_trace; 1363 u32 log_trace;
1363 1364
1365 struct nvgpu_mutex tpc_pg_lock;
1366
1364 struct nvgpu_gpu_params params; 1367 struct nvgpu_gpu_params params;
1365 1368
1366 /* 1369 /*
@@ -1532,6 +1535,11 @@ struct gk20a {
1532 1535
1533 u32 tpc_fs_mask_user; 1536 u32 tpc_fs_mask_user;
1534 1537
1538 u32 tpc_pg_mask;
1539 bool can_tpc_powergate;
1540
1541 u32 valid_tpc_mask;
1542
1535 struct nvgpu_bios bios; 1543 struct nvgpu_bios bios;
1536 bool bios_is_init; 1544 bool bios_is_init;
1537 1545