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>
This commit is contained in:
Aparna Das
2017-01-05 10:45:02 -08:00
committed by mobile promotions
parent a4deb1079e
commit 16ee09bb59
2 changed files with 10 additions and 0 deletions

View File

@@ -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 {