diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/module.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/module.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index 955481c8..c453bced 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <uapi/linux/nvgpu.h> | 32 | #include <uapi/linux/nvgpu.h> |
33 | #include <dt-bindings/soc/gm20b-fuse.h> | 33 | #include <dt-bindings/soc/gm20b-fuse.h> |
34 | #include <dt-bindings/soc/gp10b-fuse.h> | 34 | #include <dt-bindings/soc/gp10b-fuse.h> |
35 | #include <dt-bindings/soc/gv11b-fuse.h> | ||
35 | 36 | ||
36 | #include <soc/tegra/fuse.h> | 37 | #include <soc/tegra/fuse.h> |
37 | 38 | ||
@@ -1165,6 +1166,7 @@ static inline void set_gk20a(struct platform_device *pdev, struct gk20a *gk20a) | |||
1165 | static int nvgpu_read_fuse_overrides(struct gk20a *g) | 1166 | static int nvgpu_read_fuse_overrides(struct gk20a *g) |
1166 | { | 1167 | { |
1167 | struct device_node *np = nvgpu_get_node(g); | 1168 | struct device_node *np = nvgpu_get_node(g); |
1169 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | ||
1168 | u32 *fuses; | 1170 | u32 *fuses; |
1169 | int count, i; | 1171 | int count, i; |
1170 | 1172 | ||
@@ -1191,6 +1193,10 @@ static int nvgpu_read_fuse_overrides(struct gk20a *g) | |||
1191 | case GP10B_FUSE_OPT_ECC_EN: | 1193 | case GP10B_FUSE_OPT_ECC_EN: |
1192 | g->gr.fecs_feature_override_ecc_val = value; | 1194 | g->gr.fecs_feature_override_ecc_val = value; |
1193 | break; | 1195 | break; |
1196 | case GV11B_FUSE_OPT_TPC_DISABLE: | ||
1197 | if (platform->set_tpc_pg_mask != NULL) | ||
1198 | platform->set_tpc_pg_mask(dev_from_gk20a(g), value); | ||
1199 | break; | ||
1194 | default: | 1200 | default: |
1195 | nvgpu_err(g, "ignore unknown fuse override %08x", fuse); | 1201 | nvgpu_err(g, "ignore unknown fuse override %08x", fuse); |
1196 | break; | 1202 | break; |