mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: add test type for boundary values checks in SWUTs
-Allow only usermode submit, check for gpfifo max size. -Map buffer offset must be page aligned and in multiple of page size. -Check for unmapped address whether it's alloced or not. -Offset in alloc space must be multiple of page size. -Free space offset must be in the range of alloced space. Jira NVGPU-4470 Change-Id: I9d5e4eb121d6d462f8b8d17b31c839b34d7d6c1d Signed-off-by: shashank singh <shashsingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2298188 Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
0b4ccc7247
commit
a987a244c2
@@ -38,7 +38,7 @@ struct unit_module;
|
||||
* Description: The VM unit shall be able to map a buffer of memory such that
|
||||
* the GPU may access that memory.
|
||||
*
|
||||
* Test Type: Feature
|
||||
* Test Type: Feature, Boundary values
|
||||
*
|
||||
* Targets: nvgpu_vm_init, nvgpu_vm_get_buffers, nvgpu_big_pages_possible,
|
||||
* nvgpu_vm_area_alloc, nvgpu_vm_map, nvgpu_vm_find_mapped_buf_range,
|
||||
@@ -87,7 +87,7 @@ int test_map_buf(struct unit_module *m, struct gk20a *g, void *__args);
|
||||
* function the resulting GPU virtual address of the map does/does not match
|
||||
* the requested GPU virtual address.
|
||||
*
|
||||
* Test Type: Feature
|
||||
* Test Type: Feature, Boundary values
|
||||
*
|
||||
* Targets: nvgpu_vm_init, nvgpu_vm_get_buffers, nvgpu_big_pages_possible,
|
||||
* nvgpu_vm_area_alloc, nvgpu_vm_map, nvgpu_vm_find_mapped_buf_range,
|
||||
@@ -346,7 +346,7 @@ int test_vm_aspace_id(struct unit_module *m, struct gk20a *g, void *__args);
|
||||
* Description: This test targets the nvgpu_vm_area_validate_buffer and
|
||||
* nvgpu_vm_area_alloc APIs.
|
||||
*
|
||||
* Test Type: Feature, Error injection
|
||||
* Test Type: Feature, Error injection, Boundary values
|
||||
*
|
||||
* Targets: nvgpu_vm_area_validate_buffer, nvgpu_vm_area_alloc,
|
||||
* nvgpu_vm_area_free
|
||||
|
||||
Reference in New Issue
Block a user