gpu: nvgpu: add test case target functions

Add the target function names for posix unit tests.

Jira NVGPU-4478

Change-Id: I393c3d6ba99c96e54812e29dedc8abfe7afcebab
Signed-off-by: ajesh <akv@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2276656
Reviewed-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
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:
ajesh
2020-01-09 20:10:15 +05:30
committed by Alex Waterman
parent 796781313e
commit 6afd472abe
9 changed files with 158 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -39,6 +39,8 @@ struct unit_module;
*
* Test Type: Other - informational
*
* Targets: None
*
* Input: None
*
* Steps:
@@ -56,6 +58,8 @@ int test_bitmap_info(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature, Boundary values
*
* Targets: nvgpu_ffs
*
* Input: None
*
* Steps:
@@ -79,6 +83,8 @@ int test_ffs(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature, Boundary values
*
* Targets: nvgpu_fls
*
* Input: None
*
* Steps:
@@ -101,6 +107,8 @@ int test_fls(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature, Boundary values
*
* Targets: ffz
*
* Input: None
*
* Steps:
@@ -121,6 +129,8 @@ int test_ffz(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature, Boundary values
*
* Targets: find_first_zero_bit, find_first_bit
*
* Input: Pointer to struct test_find_bit_args as function parameter.
* - The parameter test_find_bit_args is used to select between testing of:
* - find_first_zero_bit()
@@ -149,6 +159,8 @@ int test_find_first_bit(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature, Boundary values
*
* Targets: find_next_bit
*
* Input: None.
*
* Steps:
@@ -177,6 +189,8 @@ int test_find_next_bit(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature, Boundary values
*
* Targets: bitmap_find_next_zero_area_off
*
* Input: None.
*
* Steps:
@@ -252,6 +266,8 @@ int test_find_zero_area(struct unit_module *m, struct gk20a *g, void *unused);
*
* Test Type: Feature
*
* Targets: nvgpu_set_bit, nvgpu_clear_bit, nvgpu_test_bit
*
* Input: None.
*
* Steps:
@@ -278,6 +294,8 @@ int test_single_bitops(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature
*
* Targets: nvgpu_set_bit, nvgpu_clear_bit
*
* Input: Pointer to struct test_find_bit_args as function parameter.
* - The parameter test_find_bit_args is used to select between testing of:
* - nvgpu_clear_bit()
@@ -303,6 +321,8 @@ int test_bit_setclear(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature
*
* Targets: nvgpu_test_and_clear_bit, nvgpu_test_and_set_bit
*
* Input: Pointer to struct test_find_bit_args as function parameter.
* - The parameter test_find_bit_args is used to select between testing of:
* - nvgpu_test_and_clear_bit()
@@ -338,6 +358,8 @@ int test_test_and_setclear_bit(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: nvgpu_bitmap_clear, nvgpu_bitmap_set
*
* Input: Pointer to struct test_find_bit_args as function parameter.
* - The parameter test_find_bit_args is used to select between testing of:
* - nvgpu_bitmap_clear()