diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 0d1ae9d7..616c25ee 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -999,6 +999,10 @@ struct gk20a { | |||
999 | unsigned int aggressive_sync_destroy_thresh; | 999 | unsigned int aggressive_sync_destroy_thresh; |
1000 | bool aggressive_sync_destroy; | 1000 | bool aggressive_sync_destroy; |
1001 | 1001 | ||
1002 | bool has_syncpoints; | ||
1003 | /* Debugfs knob for forcing syncpt support off in runtime. */ | ||
1004 | u32 disable_syncpoints; | ||
1005 | |||
1002 | u32 emc3d_ratio; | 1006 | u32 emc3d_ratio; |
1003 | 1007 | ||
1004 | #ifdef CONFIG_DEBUG_FS | 1008 | #ifdef CONFIG_DEBUG_FS |
@@ -1497,4 +1501,13 @@ void gk20a_put(struct gk20a *g); | |||
1497 | int gk20a_railgating_debugfs_init(struct device *dev); | 1501 | int gk20a_railgating_debugfs_init(struct device *dev); |
1498 | #endif | 1502 | #endif |
1499 | 1503 | ||
1504 | static inline bool gk20a_platform_has_syncpoints(struct gk20a *g) | ||
1505 | { | ||
1506 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
1507 | return g->has_syncpoints && !g->disable_syncpoints; | ||
1508 | #else | ||
1509 | return false; | ||
1510 | #endif | ||
1511 | } | ||
1512 | |||
1500 | #endif /* GK20A_H */ | 1513 | #endif /* GK20A_H */ |