diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2015-01-14 07:04:08 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:08:02 -0400 |
commit | 3877adcd656e8e4329e2c4250119de2256f30730 (patch) | |
tree | e1228aea1b348e6c2fcd2bcab30e4ea9ef2f5bea /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | f93a8cc36b68500c1d1ae235f929c35c4a039497 (diff) |
gpu: nvgpu: add hw perfmon buffer mapping ioctls
Map/unmap buffers for HWPM and deal with its instance block, the minimum
work required to run the HWPM via regops from userspace.
Bug 1517458
Bug 1573150
Change-Id: If14086a88b54bf434843d7c2fee8a9113023a3b0
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/673689
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 40e9488d..7b355436 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -342,6 +342,12 @@ struct mm_gk20a { | |||
342 | struct inst_desc inst_block; | 342 | struct inst_desc inst_block; |
343 | } pmu; | 343 | } pmu; |
344 | 344 | ||
345 | struct { | ||
346 | /* using pmu vm currently */ | ||
347 | struct inst_desc inst_block; | ||
348 | } hwpm; | ||
349 | |||
350 | |||
345 | struct mutex l2_op_lock; | 351 | struct mutex l2_op_lock; |
346 | 352 | ||
347 | void (*remove_support)(struct mm_gk20a *mm); | 353 | void (*remove_support)(struct mm_gk20a *mm); |