gpu: nvgpu: unit: fuse: remove inter-test dependency

The tests test_fuse_*_check_sec_invalid_gcplex were dependent on a
previous test setting up the HAL override for reading the gcplex fuse.
This updates the test_fuse_*_check_sec_invalid_gcplex tests to set this
override themselves to avoid issues if the tests are ever reordered.

JIRA NVGPU-3943

Change-Id: I3da14badd4cf0e310260cbbed98700660ef99e28
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2195231
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Philip Elcan
2019-09-11 11:51:48 -04:00
committed by Alex Waterman
parent 0f183f06bd
commit acc77b6ff4
2 changed files with 4 additions and 0 deletions

View File

@@ -138,6 +138,8 @@ int test_fuse_gm20b_check_sec_invalid_gcplex(struct unit_module *m,
int gcplex_entries = sizeof(gcplex_values)/sizeof(gcplex_values[0]);
int i;
g->ops.fuse.read_gcplex_config_fuse = read_gcplex_config_fuse_pass;
nvgpu_posix_io_writel_reg_space(g, GM20B_FUSE_STATUS_OPT_PRIV_SEC_EN,
0x1);

View File

@@ -129,6 +129,8 @@ int test_fuse_gp10b_check_sec_invalid_gcplex(struct unit_module *m,
int gcplex_entries = sizeof(gcplex_values)/sizeof(gcplex_values[0]);
int i;
g->ops.fuse.read_gcplex_config_fuse = read_gcplex_config_fuse_pass;
nvgpu_posix_io_writel_reg_space(g, GP10B_FUSE_OPT_PRIV_SEC_EN, 0x1);
for (i = 0; i < gcplex_entries; i++) {