diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-14 18:40:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-26 12:14:26 -0400 |
commit | 71af78d2c22c6519b1ae2cbe3826f05e178d86f6 (patch) | |
tree | d5b1b51c9fe318caebea65b872153d2da977e278 /drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |
parent | 388113aa19c202edd261e49f8c169f0b31ade784 (diff) |
gpu: nvgpu: Move has_syncpts to gk20a
Copy has_syncpts to struct gk20a at probe time, and access it from
gk20a instead of platform_gk20a.
JIRA NVGPU-16
Change-Id: I50329e3a5141a62e6e9828e97ea0747abc1ce1ee
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1463545
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 1115a5fb..8c93249a 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -49,12 +49,6 @@ struct gk20a_platform { | |||
49 | 49 | ||
50 | /* Should be populated at probe. */ | 50 | /* Should be populated at probe. */ |
51 | bool has_syncpoints; | 51 | bool has_syncpoints; |
52 | /* Debugfs knob for forcing syncpt support off in runtime. */ | ||
53 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) | ||
54 | u32 disable_syncpoints; | ||
55 | #else | ||
56 | bool disable_syncpoints; | ||
57 | #endif | ||
58 | 52 | ||
59 | /* channel limit after which to start aggressive sync destroy */ | 53 | /* channel limit after which to start aggressive sync destroy */ |
60 | unsigned int aggressive_sync_destroy_thresh; | 54 | unsigned int aggressive_sync_destroy_thresh; |
@@ -271,16 +265,6 @@ extern struct gk20a_platform vgpu_tegra_platform; | |||
271 | #endif | 265 | #endif |
272 | #endif | 266 | #endif |
273 | 267 | ||
274 | static inline bool gk20a_platform_has_syncpoints(struct device *dev) | ||
275 | { | ||
276 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
277 | struct gk20a_platform *p = dev_get_drvdata(dev); | ||
278 | return p->has_syncpoints && !p->disable_syncpoints; | ||
279 | #else | ||
280 | return false; | ||
281 | #endif | ||
282 | } | ||
283 | |||
284 | int gk20a_tegra_busy(struct device *dev); | 268 | int gk20a_tegra_busy(struct device *dev); |
285 | void gk20a_tegra_idle(struct device *dev); | 269 | void gk20a_tegra_idle(struct device *dev); |
286 | void gk20a_tegra_debug_dump(struct device *pdev); | 270 | void gk20a_tegra_debug_dump(struct device *pdev); |