From 16ee09bb590d2c413d40a186743ecf003ac3c3d4 Mon Sep 17 00:00:00 2001 From: Aparna Das Date: Thu, 5 Jan 2017 10:45:02 -0800 Subject: 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 Reviewed-on: http://git-master/r/1280903 Reviewed-by: svccoveritychecker Reviewed-by: Sachit Kadle GVS: Gerrit_Virtual_Submit Reviewed-by: Vladislav Buzov --- include/linux/tegra_vgpu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux/tegra_vgpu.h') 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 { */ u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT]; u32 hwpm_ctx_size; + u8 force_preempt_mode; }; struct tegra_vgpu_channel_cyclestats_snapshot_params { -- cgit v1.2.2