summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorAntony Clince Alex <aalex@nvidia.com>2018-05-29 05:59:06 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-06-15 00:41:31 -0400
commit9751fb0b5405bb283f5bd884115465443f5f8608 (patch)
tree80df0a6e599e33d9b6e3a7e62dd0792e64b30862 /drivers/gpu/nvgpu/include
parentd27d9ff7a89ab1a590a9cc8367af7f3a3ea698a8 (diff)
gpu: nvgpu: vgpu: Unified CSS VGPU HAL
- defined platform agnostic wrapper for mempool mapping and unmapping. - used platform agnositc wrapper for device tree parsing. - modified css_gr_gk20a to include special handling incase of rm-server JIRA: VQRM:3699 Change-Id: I08fd26052edfa1edf45a67be57f7d27c38ad106a Signed-off-by: Antony Clince Alex <aalex@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1733576 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h6
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h
index 3890249d..3e4372eb 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h
@@ -509,6 +509,12 @@ struct tegra_vgpu_constants_params {
509 u32 l2_en_mask[TEGRA_VGPU_L2_EN_MASK]; 509 u32 l2_en_mask[TEGRA_VGPU_L2_EN_MASK];
510}; 510};
511 511
512enum {
513 TEGRA_VGPU_CYCLE_STATS_SNAPSHOT_CMD_FLUSH = 0,
514 TEGRA_VGPU_CYCLE_STATS_SNAPSHOT_CMD_ATTACH = 1,
515 TEGRA_VGPU_CYCLE_STATS_SNAPSHOT_CMD_DETACH = 2,
516};
517
512struct tegra_vgpu_channel_cyclestats_snapshot_params { 518struct tegra_vgpu_channel_cyclestats_snapshot_params {
513 u64 handle; 519 u64 handle;
514 u32 perfmon_start; 520 u32 perfmon_start;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h
index ba2cfc56..cecdd516 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/vgpu_ivm.h
@@ -31,5 +31,7 @@ struct tegra_hv_ivm_cookie *vgpu_ivm_mempool_reserve(unsigned int id);
31int vgpu_ivm_mempool_unreserve(struct tegra_hv_ivm_cookie *cookie); 31int vgpu_ivm_mempool_unreserve(struct tegra_hv_ivm_cookie *cookie);
32u64 vgpu_ivm_get_ipa(struct tegra_hv_ivm_cookie *cookie); 32u64 vgpu_ivm_get_ipa(struct tegra_hv_ivm_cookie *cookie);
33u64 vgpu_ivm_get_size(struct tegra_hv_ivm_cookie *cookie); 33u64 vgpu_ivm_get_size(struct tegra_hv_ivm_cookie *cookie);
34 34void *vgpu_ivm_mempool_map(struct tegra_hv_ivm_cookie *cookie);
35void vgpu_ivm_mempool_unmap(struct tegra_hv_ivm_cookie *cookie,
36 void *addr);
35#endif 37#endif