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/gp106/hal_gp106.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/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index 52fcc9d3..f3b5dd87 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -38,6 +38,9 @@ | |||
38 | #include "common/therm/therm_gp106.h" | 38 | #include "common/therm/therm_gp106.h" |
39 | #include "common/ltc/ltc_gm20b.h" | 39 | #include "common/ltc/ltc_gm20b.h" |
40 | #include "common/ltc/ltc_gp10b.h" | 40 | #include "common/ltc/ltc_gp10b.h" |
41 | #include "common/fuse/fuse_gm20b.h" | ||
42 | #include "common/fuse/fuse_gp10b.h" | ||
43 | #include "common/fuse/fuse_gp106.h" | ||
41 | 44 | ||
42 | #include "gk20a/gk20a.h" | 45 | #include "gk20a/gk20a.h" |
43 | #include "gk20a/fifo_gk20a.h" | 46 | #include "gk20a/fifo_gk20a.h" |
@@ -60,7 +63,6 @@ | |||
60 | #include "gp10b/fifo_gp10b.h" | 63 | #include "gp10b/fifo_gp10b.h" |
61 | #include "gp10b/pmu_gp10b.h" | 64 | #include "gp10b/pmu_gp10b.h" |
62 | #include "gp10b/gr_gp10b.h" | 65 | #include "gp10b/gr_gp10b.h" |
63 | #include "gp10b/fuse_gp10b.h" | ||
64 | 66 | ||
65 | #include "gp106/fifo_gp106.h" | 67 | #include "gp106/fifo_gp106.h" |
66 | #include "gp106/regops_gp106.h" | 68 | #include "gp106/regops_gp106.h" |
@@ -85,7 +87,6 @@ | |||
85 | #include "gp106/gr_ctx_gp106.h" | 87 | #include "gp106/gr_ctx_gp106.h" |
86 | #include "gp106/gr_gp106.h" | 88 | #include "gp106/gr_gp106.h" |
87 | #include "gp106/flcn_gp106.h" | 89 | #include "gp106/flcn_gp106.h" |
88 | #include "gp106/fuse_gp106.h" | ||
89 | 90 | ||
90 | #include "hal_gp106.h" | 91 | #include "hal_gp106.h" |
91 | 92 | ||
@@ -788,6 +789,18 @@ static const struct gpu_ops gp106_ops = { | |||
788 | .is_opt_ecc_enable = gp10b_fuse_is_opt_ecc_enable, | 789 | .is_opt_ecc_enable = gp10b_fuse_is_opt_ecc_enable, |
789 | .is_opt_feature_override_disable = | 790 | .is_opt_feature_override_disable = |
790 | gp10b_fuse_is_opt_feature_override_disable, | 791 | gp10b_fuse_is_opt_feature_override_disable, |
792 | .fuse_status_opt_fbio = gm20b_fuse_status_opt_fbio, | ||
793 | .fuse_status_opt_fbp = gm20b_fuse_status_opt_fbp, | ||
794 | .fuse_status_opt_rop_l2_fbp = gm20b_fuse_status_opt_rop_l2_fbp, | ||
795 | .fuse_status_opt_tpc_gpc = gm20b_fuse_status_opt_tpc_gpc, | ||
796 | .fuse_ctrl_opt_tpc_gpc = gm20b_fuse_ctrl_opt_tpc_gpc, | ||
797 | .fuse_opt_sec_debug_en = gm20b_fuse_opt_sec_debug_en, | ||
798 | .fuse_opt_priv_sec_en = gm20b_fuse_opt_priv_sec_en, | ||
799 | .read_vin_cal_fuse_rev = gp106_fuse_read_vin_cal_fuse_rev, | ||
800 | .read_vin_cal_slope_intercept_fuse = | ||
801 | gp106_fuse_read_vin_cal_slope_intercept_fuse, | ||
802 | .read_vin_cal_gain_offset_fuse = | ||
803 | gp106_fuse_read_vin_cal_gain_offset_fuse, | ||
791 | }, | 804 | }, |
792 | .get_litter_value = gp106_get_litter_value, | 805 | .get_litter_value = gp106_get_litter_value, |
793 | .chip_init_gpu_characteristics = gp106_init_gpu_characteristics, | 806 | .chip_init_gpu_characteristics = gp106_init_gpu_characteristics, |