Alex Waterman
efdcce03d3
gpu: nvgpu: unit: Cleanup comment formatting in pd_cache unit test
...
Remove the redundant 'Cx: ' prefix for the verification criteria.
This follows the format used in prior comments.
JIRA NVGPU-1737
Change-Id: I4211ae84b532a0e38d3d0aab0c759acc66524578
Signed-off-by: Alex Waterman <alexw@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2002172
Reviewed-by: Nicolas Benech <nbenech@nvidia.com >
Reviewed-by: Konsta Holtta <kholtta@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2019-01-24 11:03:30 -08:00
Alex Waterman
a31980359f
gpu: nvgpu: unit: Add nvgpu_pd_free() VC test
...
Add the verification criteria test for pd_cache's nvgpu_pd_free()
function.
JIRA NVGPU-1323
Change-Id: Ida7b4c1d071d79487c1e0cbdd2a8dd5f36f6e938
Signed-off-by: Alex Waterman <alexw@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2001292
Reviewed-by: Nicolas Benech <nbenech@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2019-01-23 11:55:35 -08:00
Nicolas Benech
9953b17ae1
gpu: nvgpu: unit: init dma field to 0
...
In the C1 test, the "dma" field of the supplied SGLs was
not properly initialized to 0 which could cause crashes.
JIRA NVGPU-907
Change-Id: I7cf2a4a455251817c64d255813c7495f24d5c6af
Signed-off-by: Nicolas Benech <nbenech@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1997936
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2019-01-17 13:13:58 -08:00
Alex Waterman
489236d181
gpu: nvgpu: MISRA 21.2 fixes: __nvgpu_set_enabled()
...
Rename __nvgpu_set_enabled() to nvgpu_set_enabled(). The original
double underscore was present to indicate that this function is a
function with potentially unintended side effects (enabling a feature
has wide ranging impact).
To not lose this documentation a comment was added to convey that this
function must be used with care.
JIRA NVGPU-1029
Change-Id: I8bfc6fa4c17743f9f8056cb6a7a0f66229ca2583
Signed-off-by: Alex Waterman <alexw@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1989434
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2019-01-15 12:54:19 -08:00
Nicolas Benech
7e503d619d
gpu: nvgpu: unit: add req testing for page_table
...
Add requirement-based testing for the page_table unit.
JIRA NVGPU-907
Change-Id: Ia81a2c92025e6a3c05536f26690338a3873ba5de
Signed-off-by: Nicolas Benech <nbenech@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1990503
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2019-01-14 15:56:00 -08:00
Nicolas Benech
4e3e60dc48
gpu: nvgpu: unit: fix test names in page_table
...
Fix duplicate names in the test list.
JIRA NVGPU-907
Change-Id: Ifd3d3137bab36e6806b910f1e1ee303e29be376e
Signed-off-by: Nicolas Benech <nbenech@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1983630
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2019-01-04 15:23:55 -08:00
Nicolas Benech
0893309027
gpu: nvgpu: unit: Increase page_table coverage
...
Add extra test cases focusing on:
- error management (to check various branches)
- IPA-PA conversion
JIRA NVGPU-907
Change-Id: Ifd0e1a00f9c4ac0db68fefb82fc407c4cfd8cc5d
Signed-off-by: Nicolas Benech <nbenech@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1972451
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2019-01-03 07:17:58 -08:00
Alex Waterman
8e8e40e66d
gpu: nvgpu: Adjust MM unit test paths
...
Adjust the MM unit tests pd_cache and page_table to reflect
their new paths in the common nvgpu code.
JIRA NVGPU-1246
Change-Id: I01454f758bbf54864210c01f8bfe3750b26891ce
Signed-off-by: Alex Waterman <alexw@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1986121
Reviewed-by: Nicolas Benech <nbenech@nvidia.com >
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2019-01-02 21:34:34 -08:00