summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorLeonid Moiseichuk <lmoiseichuk@nvidia.com>2015-05-08 08:06:42 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-06-06 10:23:24 -0400
commit837ceffcab417865db8adbdf1a2038ebde8ec1a5 (patch)
tree8890ac07cd6cca9d5cff054dd899a8f6052b0669 /drivers/gpu/nvgpu/gk20a/gk20a.c
parentef8fa4999fcd8c01275ef3790b0abd5e69c55ea5 (diff)
gpu: nvgpu: cyclestats mode E snapshots support
That is a kernel supporting code for cyclestats mode E. Cyclestats mode E implemented following Windows-design in user-space and required the following operations to be implemented: - attach a client for shared hardware buffer of device - detach client from shared hardware buffer - flush means copy of available data from hardware buffer to private client buffers according to perfmon IDs assigned for clients - perfmon IDs management for user-space clients - a NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS_SNAPSHOT capability added Bug 1573150 Change-Id: I9e09f0fbb2be5a95c47e6d80a2e23fa839b46f9a Signed-off-by: Leonid Moiseichuk <lmoiseichuk@nvidia.com> Reviewed-on: http://git-master/r/740653 (cherry picked from commit 79fe89fd4cea39d8ab9dbef0558cd806ddfda87f) Reviewed-on: http://git-master/r/753274 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index cc1b221d..9c201f32 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -2011,8 +2011,10 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
2011 gk20a_platform_has_syncpoints(g->dev)) 2011 gk20a_platform_has_syncpoints(g->dev))
2012 gpu->flags |= NVGPU_GPU_FLAGS_HAS_SYNCPOINTS; 2012 gpu->flags |= NVGPU_GPU_FLAGS_HAS_SYNCPOINTS;
2013 2013
2014 if (IS_ENABLED(CONFIG_GK20A_CYCLE_STATS)) 2014 if (IS_ENABLED(CONFIG_GK20A_CYCLE_STATS)) {
2015 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS; 2015 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS;
2016 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS_SNAPSHOT;
2017 }
2016 2018
2017 gpu->gpc_mask = 1; 2019 gpu->gpc_mask = 1;
2018 2020