diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-09 17:10:00 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-16 12:17:22 -0400 |
commit | 95ef0315b99e32adbffc23bc8804a0127d3af10a (patch) | |
tree | d6e1dcfe05ceba5fc23bbb9d2aa6e5367c96a8f4 /drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |
parent | 16ee09bb590d2c413d40a186743ecf003ac3c3d4 (diff) |
gpu: nvgpu: Use GPU's own fuse registers
Read fuse values from GPU's own fuse registers instead of Tegra fuse
registers whenever possible. This reduces the number of dependencies
to Linux fuse code.
Some fuses do not have a corresponding register in GPU, so they're
left as is.
Change-Id: Id9f2f4da897f3e20b20c300a67f705e3fa5ba35a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1318278
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index d084d5dc..96919d2e 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <nvgpu/hw/gp10b/hw_fifo_gp10b.h> | 36 | #include <nvgpu/hw/gp10b/hw_fifo_gp10b.h> |
37 | #include <nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h> | 37 | #include <nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h> |
38 | #include <nvgpu/hw/gp10b/hw_mc_gp10b.h> | 38 | #include <nvgpu/hw/gp10b/hw_mc_gp10b.h> |
39 | #include <nvgpu/hw/gp10b/hw_fuse_gp10b.h> | ||
39 | 40 | ||
40 | #define NVGPU_GFXP_WFI_TIMEOUT_US 100LL | 41 | #define NVGPU_GFXP_WFI_TIMEOUT_US 100LL |
41 | 42 | ||
@@ -1948,7 +1949,7 @@ static u32 get_ecc_override_val(struct gk20a *g) | |||
1948 | { | 1949 | { |
1949 | u32 val; | 1950 | u32 val; |
1950 | 1951 | ||
1951 | tegra_fuse_readl(FUSE_OPT_ECC_EN, &val); | 1952 | val = gk20a_readl(g, fuse_opt_ecc_en_r()); |
1952 | if (val) | 1953 | if (val) |
1953 | return gk20a_readl(g, gr_fecs_feature_override_ecc_r()); | 1954 | return gk20a_readl(g, gr_fecs_feature_override_ecc_r()); |
1954 | 1955 | ||