mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu:nvgpu:unit:Rename gp106 to gv100 fuse unit test
Remove gp106 and add gv100 unit test This is as a part of removing gp106 support This adds testing for gv100 to the fuse unit test Removes check_sec/non_sec as they are not used Removes delta SRAM fuse as they are not present in GV100 Bug 200457373 Change-Id: I9bb4b714500eae01d0df00bb9f6842d4d4fbfd12 Signed-off-by: Abdul Salam <absalam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1960034 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> 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
2f03c5a703
commit
66729df1bb
@@ -30,14 +30,6 @@
|
||||
|
||||
#include <nvgpu/hw/gp106/hw_fuse_gp106.h>
|
||||
|
||||
int gp106_fuse_check_priv_security(struct gk20a *g)
|
||||
{
|
||||
__nvgpu_set_enabled(g, NVGPU_SEC_PRIVSECURITY, true);
|
||||
__nvgpu_set_enabled(g, NVGPU_SEC_SECUREGPCCS, true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 gp106_fuse_read_vin_cal_fuse_rev(struct gk20a *g)
|
||||
{
|
||||
return fuse_vin_cal_fuse_rev_data_v(
|
||||
@@ -91,10 +83,6 @@ int gp106_fuse_read_vin_cal_slope_intercept_fuse(struct gk20a *g,
|
||||
data = gk20a_readl(g, fuse_vin_cal_shared_delta_r());
|
||||
break;
|
||||
|
||||
case CTRL_CLK_VIN_ID_SRAM:
|
||||
data = gk20a_readl(g, fuse_vin_cal_sram_delta_r());
|
||||
break;
|
||||
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
@@ -127,14 +115,6 @@ int gp106_fuse_read_vin_cal_slope_intercept_fuse(struct gk20a *g,
|
||||
fuse_vin_cal_gpc1_delta_icpt_frac_data_s();
|
||||
break;
|
||||
|
||||
case CTRL_CLK_VIN_ID_SRAM:
|
||||
interceptdata = (fuse_vin_cal_sram_delta_icpt_int_data_v(data) <<
|
||||
fuse_vin_cal_sram_delta_icpt_frac_data_s()) +
|
||||
fuse_vin_cal_sram_delta_icpt_frac_data_v(data);
|
||||
interceptdata = (interceptdata * 1000U) >>
|
||||
fuse_vin_cal_sram_delta_icpt_frac_data_s();
|
||||
break;
|
||||
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
@@ -163,7 +143,6 @@ int gp106_fuse_read_vin_cal_slope_intercept_fuse(struct gk20a *g,
|
||||
case CTRL_CLK_VIN_ID_SYS:
|
||||
case CTRL_CLK_VIN_ID_XBAR:
|
||||
case CTRL_CLK_VIN_ID_LTC:
|
||||
case CTRL_CLK_VIN_ID_SRAM:
|
||||
slopedata =
|
||||
(fuse_vin_cal_gpc1_delta_slope_int_data_v(data)) * 1000U;
|
||||
break;
|
||||
@@ -218,10 +197,6 @@ int gp106_fuse_read_vin_cal_gain_offset_fuse(struct gk20a *g,
|
||||
reg_val = gk20a_readl(g, fuse_vin_cal_shared_delta_r());
|
||||
break;
|
||||
|
||||
case CTRL_CLK_VIN_ID_SRAM:
|
||||
reg_val = gk20a_readl(g, fuse_vin_cal_sram_delta_r());
|
||||
break;
|
||||
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
|
||||
struct gk20a;
|
||||
|
||||
int gp106_fuse_check_priv_security(struct gk20a *g);
|
||||
u32 gp106_fuse_read_vin_cal_fuse_rev(struct gk20a *g);
|
||||
int gp106_fuse_read_vin_cal_slope_intercept_fuse(struct gk20a *g,
|
||||
u32 vin_id, u32 *slope,
|
||||
|
||||
Reference in New Issue
Block a user