From 0cc118c08c30e54073e5b8729c859a08ddbe3785 Mon Sep 17 00:00:00 2001 From: Aingara Paramakuru Date: Wed, 12 Nov 2014 15:00:22 -0500 Subject: gpu: nvgpu: vgpu: fix crash during init gops->gr.detect_sm_arch was not populated for vgpu. Also, populate some members of the PMU VM struct as they are used to report GPU characteristics to userspace. Bug 1576949 Change-Id: I9ddc361d1418b942da97a82b553aac81f5f51182 Signed-off-by: Aingara Paramakuru Reviewed-on: http://git-master/r/601931 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Arto Merilainen Reviewed-by: Terje Bergstrom --- include/linux/tegra_vgpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index 93cb3b11..e0a7ff66 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -81,7 +81,8 @@ enum { TEGRA_VGPU_ATTRIB_MAX_TPC_PER_GPC_COUNT, TEGRA_VGPU_ATTRIB_MAX_TPC_COUNT, TEGRA_VGPU_ATTRIB_PMC_BOOT_0, - TEGRA_VGPU_ATTRIB_L2_SIZE + TEGRA_VGPU_ATTRIB_L2_SIZE, + TEGRA_VGPU_ATTRIB_GPC0_TPC0_SM_ARCH }; struct tegra_vgpu_attrib_params { -- cgit v1.2.2