mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +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:
@@ -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 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++) {
|
||||
result = bitmap_find_next_zero_area_off(bmap_all_zeros,
|
||||
TEST_BITMAP_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user