gpu: nvgpu: Address Vectorcast gap for posix queue

Update unit test for posix queue unit to cover Vectorcast gap.

Jira NVGPU-4478

Change-Id: I0d79861f173d511d25cf45051c399e3193eabdbe
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2294146
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Petlozu Pravareshwar
2020-02-13 04:46:32 -08:00
committed by Alex Waterman
parent 566b1df08c
commit c2fbc99967
3 changed files with 21 additions and 0 deletions

View File

@@ -137,6 +137,10 @@ int test_nvgpu_queue_in(struct unit_module *m, struct gk20a *g, void *args);
* - Update "in" and "out" indexes and dequeue message of length BUF_LEN such
* that we wrap around the Queue while dequeuing the message using
* nvgpu_queue_out() API. Check that the API returns "BUF_LEN".
* - Do fault injection so that immediate call to nvgpu_queue_out_locked() API
* would return error.
* - Invoke nvgpu_queue_out_locked() API and check that API returns -1 error.
* - Remove the injected fault.
* - Uninitialize the allocated resources.
*
* Output: Returns PASS if the steps above were executed successfully. FAIL