diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 2b242978..fe0584f6 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -1688,7 +1688,6 @@ void gr_gv11b_commit_global_attrib_cb(struct gk20a *g, | |||
1688 | 1688 | ||
1689 | void gr_gv11b_set_gpc_tpc_mask(struct gk20a *g, u32 gpc_index) | 1689 | void gr_gv11b_set_gpc_tpc_mask(struct gk20a *g, u32 gpc_index) |
1690 | { | 1690 | { |
1691 | u32 tpc_count_mask; | ||
1692 | u32 fuse_val; | 1691 | u32 fuse_val; |
1693 | 1692 | ||
1694 | if (!g->gr.gpc_tpc_mask[gpc_index]) | 1693 | if (!g->gr.gpc_tpc_mask[gpc_index]) |
@@ -1701,11 +1700,9 @@ void gr_gv11b_set_gpc_tpc_mask(struct gk20a *g, u32 gpc_index) | |||
1701 | * So we need to flip the bits and ensure we don't write to bits greater | 1700 | * So we need to flip the bits and ensure we don't write to bits greater |
1702 | * than TPC count | 1701 | * than TPC count |
1703 | */ | 1702 | */ |
1704 | tpc_count_mask = (1 << gr_gk20a_get_tpc_count(&g->gr, gpc_index)) - 1; | ||
1705 | |||
1706 | fuse_val = g->gr.gpc_tpc_mask[gpc_index]; | 1703 | fuse_val = g->gr.gpc_tpc_mask[gpc_index]; |
1707 | fuse_val = ~fuse_val; | 1704 | fuse_val = ~fuse_val; |
1708 | fuse_val = fuse_val & tpc_count_mask; | 1705 | fuse_val = fuse_val & 0xf; /* tpc0_disable fuse is only 4-bit wide */ |
1709 | 1706 | ||
1710 | nvgpu_tegra_fuse_write_bypass(g, 0x1); | 1707 | nvgpu_tegra_fuse_write_bypass(g, 0x1); |
1711 | nvgpu_tegra_fuse_write_access_sw(g, 0x0); | 1708 | nvgpu_tegra_fuse_write_access_sw(g, 0x0); |