From 5f2a64baa72882b705a20e107b0d00972b2dcc7e Mon Sep 17 00:00:00 2001 From: Sagar Kamble Date: Mon, 30 Sep 2019 22:50:36 +0530 Subject: [PATCH] gpu: nvgpu: unit: fix test_falcon_mem_rw_zero Memory type parameter was set to MEM_IMEM always in the falcon test test_falcon_mem_rw_zero. Fix it. JIRA NVGPU-4126 Change-Id: I49711a8167942c87f965bb135132c224bf55d117 Signed-off-by: Sagar Kamble Reviewed-on: https://git-master.nvidia.com/r/2208835 Reviewed-by: svc-mobile-coverity Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vaibhav Kachore Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/units/falcon/falcon_tests/falcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/units/falcon/falcon_tests/falcon.c b/userspace/units/falcon/falcon_tests/falcon.c index 04410252b..b0ae61a35 100644 --- a/userspace/units/falcon/falcon_tests/falcon.c +++ b/userspace/units/falcon/falcon_tests/falcon.c @@ -793,7 +793,7 @@ int test_falcon_mem_rw_zero(struct unit_module *m, struct gk20a *g, for (i = 0; i < MAX_MEM_TYPE; i++) { /* write/read zero bytes should fail*/ - err = falcon_check_read_write(g, m, pmu_flcn, MEM_IMEM, dst, + err = falcon_check_read_write(g, m, pmu_flcn, i, dst, byte_cnt, -EINVAL); if (err) { return UNIT_FAIL;