diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-08-10 17:09:36 -0400 |
---|---|---|
committer | Bo Yan <byan@nvidia.com> | 2018-08-20 14:00:59 -0400 |
commit | 227c6f7b7a499dd58e0db6859736cfe586ef0897 (patch) | |
tree | d354f8422647021693aefefa5124d865c29ecd32 /drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | |
parent | 9e69e0cf978b53706f55ffb873e3966b4bb3a7a8 (diff) |
gpu: nvgpu: Move fuse HAL to common
Move implementation of fuse HAL to common/fuse. Also implements new
fuse query functions for FBIO, FBP, TPC floorsweeping and security
fuses.
JIRA NVGPU-957
Change-Id: I55e256a4f1b59d50a721d4942907f70dc57467c4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1797177
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/pmu_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c index 731078f7..53bec96f 100644 --- a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | |||
@@ -36,7 +36,6 @@ | |||
36 | 36 | ||
37 | #include <nvgpu/hw/gm20b/hw_gr_gm20b.h> | 37 | #include <nvgpu/hw/gm20b/hw_gr_gm20b.h> |
38 | #include <nvgpu/hw/gm20b/hw_pwr_gm20b.h> | 38 | #include <nvgpu/hw/gm20b/hw_pwr_gm20b.h> |
39 | #include <nvgpu/hw/gm20b/hw_fuse_gm20b.h> | ||
40 | 39 | ||
41 | #define gm20b_dbg_pmu(g, fmt, arg...) \ | 40 | #define gm20b_dbg_pmu(g, fmt, arg...) \ |
42 | nvgpu_log(g, gpu_dbg_pmu, fmt, ##arg) | 41 | nvgpu_log(g, gpu_dbg_pmu, fmt, ##arg) |
@@ -267,9 +266,9 @@ void pmu_dump_security_fuses_gm20b(struct gk20a *g) | |||
267 | u32 val; | 266 | u32 val; |
268 | 267 | ||
269 | nvgpu_err(g, "FUSE_OPT_SEC_DEBUG_EN_0: 0x%x", | 268 | nvgpu_err(g, "FUSE_OPT_SEC_DEBUG_EN_0: 0x%x", |
270 | gk20a_readl(g, fuse_opt_sec_debug_en_r())); | 269 | g->ops.fuse.fuse_opt_sec_debug_en(g)); |
271 | nvgpu_err(g, "FUSE_OPT_PRIV_SEC_EN_0: 0x%x", | 270 | nvgpu_err(g, "FUSE_OPT_PRIV_SEC_EN_0: 0x%x", |
272 | gk20a_readl(g, fuse_opt_priv_sec_en_r())); | 271 | g->ops.fuse.fuse_opt_priv_sec_en(g)); |
273 | nvgpu_tegra_fuse_read_gcplex_config_fuse(g, &val); | 272 | nvgpu_tegra_fuse_read_gcplex_config_fuse(g, &val); |
274 | nvgpu_err(g, "FUSE_GCPLEX_CONFIG_FUSE_0: 0x%x", val); | 273 | nvgpu_err(g, "FUSE_GCPLEX_CONFIG_FUSE_0: 0x%x", val); |
275 | } | 274 | } |