mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add HAL for reading gcplex fuse
This adds a HAL interface for reading the gcplex fuse and sets up the HAL for the appropriate devices. JIRA NVGPU-938 Change-Id: I83ed8b78b70f5b24ac3921d174c299abc91e286d Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1945141 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
e156066256
commit
328fcb4c76
@@ -45,7 +45,7 @@ int gm20b_fuse_check_priv_security(struct gk20a *g)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (nvgpu_tegra_fuse_read_gcplex_config_fuse(g, &gcplex_config) != 0) {
|
||||
if (g->ops.fuse.read_gcplex_config_fuse(g, &gcplex_config) != 0) {
|
||||
nvgpu_err(g, "err reading gcplex config fuse, check fuse clk");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ int gp10b_fuse_check_priv_security(struct gk20a *g)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (nvgpu_tegra_fuse_read_gcplex_config_fuse(g, &gcplex_config) != 0) {
|
||||
if (g->ops.fuse.read_gcplex_config_fuse(g, &gcplex_config) != 0) {
|
||||
nvgpu_err(g, "err reading gcplex config fuse, check fuse clk");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -267,8 +267,9 @@ void pmu_dump_security_fuses_gm20b(struct gk20a *g)
|
||||
g->ops.fuse.fuse_opt_sec_debug_en(g));
|
||||
nvgpu_err(g, "FUSE_OPT_PRIV_SEC_EN_0: 0x%x",
|
||||
g->ops.fuse.fuse_opt_priv_sec_en(g));
|
||||
nvgpu_tegra_fuse_read_gcplex_config_fuse(g, &val);
|
||||
nvgpu_err(g, "FUSE_GCPLEX_CONFIG_FUSE_0: 0x%x", val);
|
||||
if (g->ops.fuse.read_gcplex_config_fuse(g, &val) != 0) {
|
||||
nvgpu_err(g, "FUSE_GCPLEX_CONFIG_FUSE_0: 0x%x", val);
|
||||
}
|
||||
}
|
||||
|
||||
bool gm20b_pmu_is_debug_mode_en(struct gk20a *g)
|
||||
|
||||
Reference in New Issue
Block a user