mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: units: swuts: Update SWUTS details
Update Posix SWUTS with following additions - Add os_sched unit - Add rwsem unit - Modify the details for bitops unit Jira NVGPU-4478 Change-Id: I196ce05f01a51d8a773f87f3e5446eda19e6a861 Signed-off-by: ajesh <akv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2282304 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
# Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
|
|
||||||
bitmap_find_next_zero_area_off
|
bitmap_find_next_zero_area_off
|
||||||
|
bitmap_find_next_zero_area
|
||||||
fb_gv11b_write_mmu_fault_buffer_get
|
fb_gv11b_write_mmu_fault_buffer_get
|
||||||
find_first_bit
|
find_first_bit
|
||||||
find_first_zero_bit
|
find_first_zero_bit
|
||||||
|
|||||||
@@ -111,6 +111,8 @@
|
|||||||
* - @ref SWUTS-posix-timers
|
* - @ref SWUTS-posix-timers
|
||||||
* - @ref SWUTS-posix-queue
|
* - @ref SWUTS-posix-queue
|
||||||
* - @ref SWUTS-posix-bug
|
* - @ref SWUTS-posix-bug
|
||||||
|
* - @ref SWUTS-posix-ossched
|
||||||
|
* - @ref SWUTS-posix-rwsem
|
||||||
* - @ref SWUTS-priv_ring
|
* - @ref SWUTS-priv_ring
|
||||||
* - @ref SWUTS-ptimer
|
* - @ref SWUTS-ptimer
|
||||||
* - @ref SWUTS-sdl
|
* - @ref SWUTS-sdl
|
||||||
|
|||||||
@@ -91,6 +91,8 @@ INPUT += ../../../userspace/units/posix/fault-injection/posix-fault-injection-dm
|
|||||||
INPUT += ../../../userspace/units/posix/sizes/posix-sizes.h
|
INPUT += ../../../userspace/units/posix/sizes/posix-sizes.h
|
||||||
INPUT += ../../../userspace/units/posix/thread/posix-thread.h
|
INPUT += ../../../userspace/units/posix/thread/posix-thread.h
|
||||||
INPUT += ../../../userspace/units/posix/timers/posix-timers.h
|
INPUT += ../../../userspace/units/posix/timers/posix-timers.h
|
||||||
|
INPUT += ../../../userspace/units/posix/os_sched/posix-ossched.h
|
||||||
|
INPUT += ../../../userspace/units/posix/rwsem/posix-rwsem.h
|
||||||
INPUT += ../../../userspace/units/priv_ring/nvgpu-priv_ring.h
|
INPUT += ../../../userspace/units/priv_ring/nvgpu-priv_ring.h
|
||||||
INPUT += ../../../userspace/units/ptimer/nvgpu-ptimer.h
|
INPUT += ../../../userspace/units/ptimer/nvgpu-ptimer.h
|
||||||
INPUT += ../../../userspace/units/therm/nvgpu-therm.h
|
INPUT += ../../../userspace/units/therm/nvgpu-therm.h
|
||||||
|
|||||||
@@ -324,6 +324,29 @@ int test_find_zero_area(struct unit_module *m, struct gk20a *g, void *unused)
|
|||||||
unsigned long i, j, result;
|
unsigned long i, j, result;
|
||||||
unsigned long words[NUM_WORDS];
|
unsigned long words[NUM_WORDS];
|
||||||
|
|
||||||
|
for (i = 0; i < TEST_BITMAP_SIZE; i++) {
|
||||||
|
result = bitmap_find_next_zero_area(bmap_all_zeros,
|
||||||
|
TEST_BITMAP_SIZE, i,
|
||||||
|
TEST_BITMAP_SIZE - i, 0);
|
||||||
|
if (result != i)
|
||||||
|
unit_return_fail(m, FAIL_MSG,
|
||||||
|
"bmap_zeros: alloc-to-end", i);
|
||||||
|
|
||||||
|
result = bitmap_find_next_zero_area(bmap_all_zeros,
|
||||||
|
TEST_BITMAP_SIZE,
|
||||||
|
i, 1, 0);
|
||||||
|
if (result != i)
|
||||||
|
unit_return_fail(m, FAIL_MSG,
|
||||||
|
"bmap_zeros: alloc-one-bit", i);
|
||||||
|
|
||||||
|
result = bitmap_find_next_zero_area(bmap_all_zeros,
|
||||||
|
TEST_BITMAP_SIZE, 0,
|
||||||
|
TEST_BITMAP_SIZE - i, 0);
|
||||||
|
if (result != 0)
|
||||||
|
unit_return_fail(m, FAIL_MSG,
|
||||||
|
"bmap_zeros: alloc-i-bits-at-0", i);
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < TEST_BITMAP_SIZE; i++) {
|
for (i = 0; i < TEST_BITMAP_SIZE; i++) {
|
||||||
result = bitmap_find_next_zero_area_off(bmap_all_zeros,
|
result = bitmap_find_next_zero_area_off(bmap_all_zeros,
|
||||||
TEST_BITMAP_SIZE,
|
TEST_BITMAP_SIZE,
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ int test_bitmap_info(struct unit_module *m, struct gk20a *g, void *args);
|
|||||||
*
|
*
|
||||||
* Test Type: Feature, Boundary values
|
* Test Type: Feature, Boundary values
|
||||||
*
|
*
|
||||||
* Targets: nvgpu_ffs
|
* Targets: nvgpu_ffs, nvgpu_posix_ffs
|
||||||
*
|
*
|
||||||
* Input: None
|
* Input: None
|
||||||
*
|
*
|
||||||
@@ -83,7 +83,7 @@ int test_ffs(struct unit_module *m, struct gk20a *g, void *args);
|
|||||||
*
|
*
|
||||||
* Test Type: Feature, Boundary values
|
* Test Type: Feature, Boundary values
|
||||||
*
|
*
|
||||||
* Targets: nvgpu_fls
|
* Targets: nvgpu_fls, nvgpu_posix_fls
|
||||||
*
|
*
|
||||||
* Input: None
|
* Input: None
|
||||||
*
|
*
|
||||||
@@ -189,12 +189,34 @@ int test_find_next_bit(struct unit_module *m, struct gk20a *g, void *__args);
|
|||||||
*
|
*
|
||||||
* Test Type: Feature, Boundary values
|
* Test Type: Feature, Boundary values
|
||||||
*
|
*
|
||||||
* Targets: bitmap_find_next_zero_area_off
|
* Targets: bitmap_find_next_zero_area, bitmap_find_next_zero_area_off
|
||||||
*
|
*
|
||||||
* Input: None.
|
* Input: None.
|
||||||
*
|
*
|
||||||
* Steps:
|
* Steps:
|
||||||
* - Loop through array of all zeros:
|
* - Loop through array of all zeros:
|
||||||
|
* - Call bitmap_find_next_zero_area() with:
|
||||||
|
* - array of zeros
|
||||||
|
* - size of array (in bits)
|
||||||
|
* - start value of loop index
|
||||||
|
* - size of bitmap as size of array - 1 (bit)
|
||||||
|
* - 0 for alignment parameters
|
||||||
|
* - Verify returns loop index.
|
||||||
|
* - Call bitmap_find_next_zero_area() with:
|
||||||
|
* - array of zeros
|
||||||
|
* - size of array (in bits)
|
||||||
|
* - start value of loop index
|
||||||
|
* - size of bitmap as 1 (bit)
|
||||||
|
* - 0 for alignment parameters
|
||||||
|
* - Verify returns loop index.
|
||||||
|
* - Call bitmap_find_next_zero_area() with:
|
||||||
|
* - array of zeros
|
||||||
|
* - size of array (in bits)
|
||||||
|
* - start value of 0
|
||||||
|
* - size of bitmap as size of array - loop index
|
||||||
|
* - 0 for alignment parameters
|
||||||
|
* - Verify returns 0.
|
||||||
|
* - Loop through array of all zeros:
|
||||||
* - Call bitmap_find_next_zero_area_off() with:
|
* - Call bitmap_find_next_zero_area_off() with:
|
||||||
* - array of zeros
|
* - array of zeros
|
||||||
* - size of array (in bits)
|
* - size of array (in bits)
|
||||||
|
|||||||
Reference in New Issue
Block a user