diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2014-11-12 15:00:22 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:13 -0400 |
commit | 0cc118c08c30e54073e5b8729c859a08ddbe3785 (patch) | |
tree | 26adeaa2f81290bd6fe1300a5e779309afc07775 /include/linux | |
parent | 3fc88e50b84d13ff1e6ddaa910105d7e2f247c38 (diff) |
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 <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/601931
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/tegra_vgpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 { | |||
81 | TEGRA_VGPU_ATTRIB_MAX_TPC_PER_GPC_COUNT, | 81 | TEGRA_VGPU_ATTRIB_MAX_TPC_PER_GPC_COUNT, |
82 | TEGRA_VGPU_ATTRIB_MAX_TPC_COUNT, | 82 | TEGRA_VGPU_ATTRIB_MAX_TPC_COUNT, |
83 | TEGRA_VGPU_ATTRIB_PMC_BOOT_0, | 83 | TEGRA_VGPU_ATTRIB_PMC_BOOT_0, |
84 | TEGRA_VGPU_ATTRIB_L2_SIZE | 84 | TEGRA_VGPU_ATTRIB_L2_SIZE, |
85 | TEGRA_VGPU_ATTRIB_GPC0_TPC0_SM_ARCH | ||
85 | }; | 86 | }; |
86 | 87 | ||
87 | struct tegra_vgpu_attrib_params { | 88 | struct tegra_vgpu_attrib_params { |