From 31024f85ebda64b0fed0e487f4730cfdccf9ee8e Mon Sep 17 00:00:00 2001 From: Aparna Das Date: Thu, 5 Apr 2018 19:20:40 -0700 Subject: nvgpu: vgpu: add support to query rop_l2 en masks Fetch ROP_L2 enable masks in addition to other parameters when guest sends command to query constants. Bug 200401223 Change-Id: Ie386f24caaf7acd1155fc3f2a5e8c1f27016970a Signed-off-by: Aparna Das (cherry picked from commit a08bb08fb9fff40138d26e5e9bfa21267ca6b6af) Reviewed-on: https://git-master.nvidia.com/r/1694911 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/include') diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h index ba7d2ba2..f34fc5e7 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h @@ -455,6 +455,7 @@ struct tegra_vgpu_engines_info { #define TEGRA_VGPU_MAX_GPC_COUNT 16 #define TEGRA_VGPU_MAX_TPC_COUNT_PER_GPC 16 +#define TEGRA_VGPU_L2_EN_MASK 32 struct tegra_vgpu_constants_params { u32 arch; @@ -494,6 +495,7 @@ struct tegra_vgpu_constants_params { u32 num_pce; u32 sm_per_tpc; u32 max_subctx_count; + u32 l2_en_mask[TEGRA_VGPU_L2_EN_MASK]; }; struct tegra_vgpu_channel_cyclestats_snapshot_params { -- cgit v1.2.2