diff options
author | Sami Kiminki <skiminki@nvidia.com> | 2015-08-10 05:06:18 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:11 -0500 |
commit | 58adb7385de5dd3dee6d1493edbf5ee33d142dbc (patch) | |
tree | 79440034da83e642b7fe472a83aa5104af9de1ea /drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |
parent | 960704ca2579ba78cd7996f3b5d29c0f8461596b (diff) |
gpu: nvgpu: Determine ECC-enabled units for GP10B
Determine ECC-enabled units for GP10B by reading fuses/registers.
Bug 1637486
Change-Id: I6431709e3c405d6156dd96438df14d4054b48644
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/780992
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1120463
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hal_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hal_gp10b.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c index 4f67cb09..427936c7 100644 --- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |||
@@ -41,6 +41,8 @@ | |||
41 | #include "gm20b/clk_gm20b.h" | 41 | #include "gm20b/clk_gm20b.h" |
42 | #include <linux/tegra-fuse.h> | 42 | #include <linux/tegra-fuse.h> |
43 | 43 | ||
44 | #include "gp10b.h" | ||
45 | |||
44 | #define FUSE_OPT_PRIV_SEC_EN_0 0x264 | 46 | #define FUSE_OPT_PRIV_SEC_EN_0 0x264 |
45 | #define PRIV_SECURITY_ENABLED 0x01 | 47 | #define PRIV_SECURITY_ENABLED 0x01 |
46 | 48 | ||
@@ -153,6 +155,7 @@ int gp10b_init_hal(struct gk20a *g) | |||
153 | gp10b_init_cde_ops(gops); | 155 | gp10b_init_cde_ops(gops); |
154 | gp10b_init_therm_ops(gops); | 156 | gp10b_init_therm_ops(gops); |
155 | gops->name = "gp10b"; | 157 | gops->name = "gp10b"; |
158 | gops->chip_init_gpu_characteristics = gp10b_init_gpu_characteristics; | ||
156 | 159 | ||
157 | c->twod_class = FERMI_TWOD_A; | 160 | c->twod_class = FERMI_TWOD_A; |
158 | c->threed_class = PASCAL_A; | 161 | c->threed_class = PASCAL_A; |