Philip Elcan
a8dec2fdc3
gpu: nvgpu: unit: common tmake for posix-bitmap
...
This updates the tmake Makefiles for posix-bitmap to use the new common
makefiles.
Change-Id: I83f3c750e286c0211976b8d9143cdc05e78a9acb
Signed-off-by: Philip Elcan <pelcan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1916819
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 >
2018-10-12 17:35:09 +05:30
Philip Elcan
b3127c45fb
gpu: nvgpu: unit: build posix-bitops in tmake
...
This builds the posix-bitops unit test shared library in the tmake build
system for target. The systemimage output is in
nvgpu_unit/build/units/libunit-posix-bitops.so
JIRA NVGPU-1042
Change-Id: Id73a1f3e7d8de4e21e3a7f5c5bd036e0ce62ad3e
Signed-off-by: Philip Elcan <pelcan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1822288
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com >
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 >
2018-09-24 15:54:18 -07:00
Philip Elcan
fa7394037c
gpu: nvgpu: unit: posix_bitops: fix fls() tests
...
The fls() test assumed fls(1)=0, but really fls(1)=1, etc.
Bug found as result of JIRA NVGPU-1042.
Change-Id: I8d0ffe53277f4923a970b46788165ef03b385703
Signed-off-by: Philip Elcan <pelcan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1828362
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com >
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 >
2018-09-20 12:58:54 -07:00
Konsta Holtta
cf394f82d4
gpu: nvgpu: include correct header in bitops test
...
The right one is nvgpu/bitops.h, not nvgpu/posix/bitops.h even though
this is a test for the posix layer. The latter is not meant to be
included directly and does not contain everything necessary.
Change-Id: I86a580abc6202064a3fbaa445bb1618b91e5ac4c
Signed-off-by: Konsta Holtta <kholtta@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1812230
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Long <scottl@nvidia.com >
Reviewed-by: Alex Waterman <alexw@nvidia.com >
Tested-by: Alex Waterman <alexw@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2018-09-04 09:44:27 -07:00
Alex Waterman
542e6a0ab4
gpu: nvgpu: unit: Add a posix-bitmap impl unit test
...
Add a unit test to test the nvgpu-posix bitmap implementation. This
unit test aims to both verify the functionality of this low level
set of APIs and provide a reference for how to use the basic unit
test functionality.
JIRA NVGPU-525
Change-Id: Ide5263e5ce49f18f5f2a3d4a6f9e494395299386
Signed-off-by: Alex Waterman <alexw@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1695007
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com >
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2018-08-09 23:11:17 -07:00