summaryrefslogtreecommitdiffstats
path: root/include/linux/tegra_vgpu.h
diff options
context:
space:
mode:
authorAparna Das <aparnad@nvidia.com>2017-01-05 13:45:02 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-14 22:58:19 -0400
commit16ee09bb590d2c413d40a186743ecf003ac3c3d4 (patch)
tree2ebfefbf5c48ceb3355f5502d626c923125b72b8 /include/linux/tegra_vgpu.h
parenta4deb1079e6617d48dc1668daeb46fa2f1c84803 (diff)
gpu: nvgpu: vgpu: force gpu preepmtion policy
Query the RM server to retrieve gpu preemption policy of guest based on pct configuration. If guest is not allowed to request wfi preemption mode then set context with either gfxp or cta preemption mode only. Jira VFND-3079 Jira VFND-3081 Change-Id: I60cbf121d6f0e2373568cf40b3dfdb4df76fe02d Signed-off-by: Aparna Das <aparnad@nvidia.com> Reviewed-on: http://git-master/r/1280903 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Sachit Kadle <skadle@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
Diffstat (limited to 'include/linux/tegra_vgpu.h')
-rw-r--r--include/linux/tegra_vgpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h
index 3e3bbf58..c0964083 100644
--- a/include/linux/tegra_vgpu.h
+++ b/include/linux/tegra_vgpu.h
@@ -442,6 +442,7 @@ struct tegra_vgpu_constants_params {
442 */ 442 */
443 u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT]; 443 u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT];
444 u32 hwpm_ctx_size; 444 u32 hwpm_ctx_size;
445 u8 force_preempt_mode;
445}; 446};
446 447
447struct tegra_vgpu_channel_cyclestats_snapshot_params { 448struct tegra_vgpu_channel_cyclestats_snapshot_params {