gpu: nvgpu: unit: update 'Targets' for all common.mm units

This patch adds a number of missing 'Targets' fields in the SWUTS of
various common.mm units, fixes some missing ones and adds gops based
targets.

JIRA NVGPU-4413

Change-Id: I14d4b9ee90091f4417d87bfefb45f027d56d62d8
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2276070
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>
This commit is contained in:
Nicolas Benech
2020-01-08 16:20:49 -05:00
committed by Alex Waterman
parent 5b47cd73fb
commit 4a287f08cd
13 changed files with 93 additions and 21 deletions

View File

@@ -88,6 +88,8 @@ struct test_parameters {
*
* Test Type: Other (Init)
*
* Targets: nvgpu_init_mm_support, gk20a_as_alloc_share, nvgpu_ref_init
*
* Input: None
*
* Steps:
@@ -111,6 +113,8 @@ int test_init_mm(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: gk20a_as_alloc_share, gk20a_as_release_share
*
* Input:
* - The test_init_mm must have been executed
* - The args argument points to an instance of struct test_parameters that

View File

@@ -58,7 +58,7 @@ int test_env_init(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: gk20a_mm_fb_flush
* Targets: gops_mm.gops_mm_cache.fb_flush, gk20a_mm_fb_flush
*
* Input: test_env_init, args (value can be F_GK20A_FB_FLUSH_DEFAULT_INPUT,
* F_GK20A_FB_FLUSH_GET_RETRIES, F_GK20A_FB_FLUSH_PENDING_TRUE,
@@ -84,7 +84,8 @@ int test_gk20a_mm_fb_flush(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: gk20a_mm_l2_flush, gk20a_mm_l2_invalidate_locked
* Targets: gops_mm.gops_mm_cache.l2_flush, gk20a_mm_l2_flush,
* gk20a_mm_l2_invalidate_locked
*
* Input: test_env_init, args (value can be F_GK20A_L2_FLUSH_DEFAULT_INPUT,
* F_GK20A_L2_FLUSH_GET_RETRIES, F_GK20A_L2_FLUSH_PENDING_TRUE,
@@ -109,7 +110,8 @@ int test_gk20a_mm_l2_flush(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: gk20a_mm_l2_invalidate, gk20a_mm_l2_invalidate_locked
* Targets: gops_mm.gops_mm_cache.l2_invalidate, gk20a_mm_l2_invalidate,
* gk20a_mm_l2_invalidate_locked
*
* Input: test_env_init, args (value can be F_GK20A_L2_INVALIDATE_DEFAULT_INPUT,
* F_GK20A_L2_INVALIDATE_PENDING_TRUE,

View File

@@ -58,7 +58,7 @@ int test_env_init(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: gv11b_mm_l2_flush
* Targets: gops_mm.gops_mm_cache.l2_flush, gv11b_mm_l2_flush
*
* Input: test_env_init, args (value can be
* F_GV11B_L2_FLUSH_PASS_BAR1_BIND_NOT_NULL,

View File

@@ -39,7 +39,7 @@ struct unit_module;
*
* Test Type: Feature
*
* Targets: gm20b_mm_get_big_page_sizes
* Targets: gops_mm.gops_mm_gmmu.get_big_page_sizes, gm20b_mm_get_big_page_sizes
*
* Input: test_env_init
*

View File

@@ -39,7 +39,8 @@ struct unit_module;
*
* Test Type: Feature
*
* Targets: gp10b_mm_get_default_big_page_size
* Targets: gops_mm.gops_mm_gmmu.get_default_big_page_size,
* gp10b_mm_get_default_big_page_size
*
* Input: None
*
@@ -59,7 +60,7 @@ int test_gp10b_mm_get_default_big_page_size(struct unit_module *m,
*
* Test Type: Feature
*
* Targets: gp10b_mm_get_iommu_bit
* Targets: gops_mm.gops_mm_gmmu.get_iommu_bit, gp10b_mm_get_iommu_bit
*
* Input: None
*
@@ -79,7 +80,8 @@ int test_gp10b_mm_get_iommu_bit(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: gp10b_get_max_page_table_levels
* Targets: gops_mm.gops_mm_gmmu.get_max_page_table_levels,
* gp10b_get_max_page_table_levels
*
* Input: None
*
@@ -99,7 +101,7 @@ int test_gp10b_get_max_page_table_levels(struct unit_module *m,
*
* Test Type: Feature
*
* Targets: gp10b_mm_get_mmu_levels
* Targets: gops_mm.gops_mm_gmmu.get_mmu_levels, gp10b_mm_get_mmu_levels
*
* Input: None
*

View File

@@ -39,7 +39,7 @@ struct unit_module;
*
* Test Type: Feature
*
* Targets: gk20a_get_pte_pgsz
* Targets: gops_mm.gops_mm_gmmu.gpu_phys_addr, gv11b_gpu_phys_addr
*
* Input: args (value can be F_GV11B_GPU_PHYS_ADDR_GMMU_ATTRS_NULL,
* F_GV11B_GPU_PHYS_ADDR_L3_ALLOC_FALSE or

View File

@@ -58,7 +58,8 @@ int test_env_init(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: gp10b_mm_init_bar2_vm, gp10b_mm_remove_bar2_vm
* Targets: gops_mm.init_bar2_vm, gp10b_mm_init_bar2_vm, gops_mm.remove_bar2_vm,
* gp10b_mm_remove_bar2_vm
*
* Input: test_env_init, args (value can be F_INIT_BAR2_VM_DEFAULT,
* F_INIT_BAR2_VM_INIT_VM_FAIL or F_INIT_BAR2_VM_ALLOC_INST_BLOCK_FAIL)

View File

@@ -58,7 +58,7 @@ int test_env_init(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: gv11b_mm_init_inst_block
* Targets: gops_mm.init_inst_block, gv11b_mm_init_inst_block
*
* Input: test_env_init, args (value can be F_INIT_INST_BLOCK_SET_BIG_PAGE_ZERO,
* F_INIT_INST_BLOCK_SET_BIG_PAGE_SIZE_NULL or
@@ -81,7 +81,7 @@ int test_gv11b_mm_init_inst_block(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: gv11b_mm_is_bar1_supported
* Targets: gops_mm.is_bar1_supported, gv11b_mm_is_bar1_supported
*
* Input: test_env_init
*

View File

@@ -58,7 +58,9 @@ int test_env_init(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: gv11b_mm_mmu_fault_setup_sw, gv11b_mm_mmu_fault_info_mem_destroy
* Targets: gops_mm.gops_mm_mmu_fault.setup_sw, gv11b_mm_mmu_fault_setup_sw,
* gops_mm.gops_mm_mmu_fault.info_mem_destroy,
* gv11b_mm_mmu_fault_info_mem_destroy
*
* Input: test_env_init
*
@@ -79,7 +81,7 @@ int test_gv11b_mm_mmu_fault_setup_sw(struct unit_module *m, struct gk20a *g, voi
*
* Test Type: Feature
*
* Targets: gv11b_mm_mmu_fault_setup_hw
* Targets: gops_mm.gops_mm_mmu_fault.setup_hw, gv11b_mm_mmu_fault_setup_hw
*
* Input: test_env_init
*
@@ -100,7 +102,7 @@ int test_gv11b_mm_mmu_fault_setup_hw(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: gv11b_mm_mmu_fault_disable_hw
* Targets: gops_mm.gops_mm_mmu_fault.disable_hw, gv11b_mm_mmu_fault_disable_hw
*
* Input: test_env_init
*

View File

@@ -40,6 +40,8 @@ struct unit_module;
*
* Test Type: Other (Init)
*
* Targets: gops_mm.init_bar2_vm, gops_mm.is_bar1_supported
*
* Input: None
*
* Steps:
@@ -68,6 +70,8 @@ int test_mm_init_hal(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature, Error guessing
*
* Targets: nvgpu_init_mm_support
*
* Input: test_mm_init_hal must have been executed successfully.
*
* Steps:
@@ -93,6 +97,8 @@ int test_nvgpu_init_mm(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature, Error guessing
*
* Targets: nvgpu_mm_setup_hw
*
* Input: test_mm_init_hal and test_nvgpu_init_mm must have been executed
* successfully.
*
@@ -117,6 +123,8 @@ int test_nvgpu_mm_setup_hw(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: nvgpu_set_power_state, nvgpu_mm_suspend
*
* Input: test_mm_init_hal, test_nvgpu_init_mm and test_nvgpu_mm_setup_hw must
* have been executed successfully.
*
@@ -144,6 +152,8 @@ int test_mm_suspend(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: nvgpu_pd_cache_init, gops_mm.remove_support
*
* Input: test_mm_init_hal, test_nvgpu_init_mm and test_nvgpu_mm_setup_hw must
* have been executed successfully
*
@@ -169,6 +179,9 @@ int test_mm_remove_mm_support(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: nvgpu_mm_get_default_big_page_size,
* nvgpu_mm_get_available_big_page_sizes
*
* Input: test_mm_init_hal, test_nvgpu_init_mm and test_nvgpu_mm_setup_hw must
* have been executed successfully.
*
@@ -197,6 +210,8 @@ int test_mm_page_sizes(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: nvgpu_inst_block_ptr, gops_ramin.base_shift
*
* Input: test_mm_init_hal, test_nvgpu_init_mm and test_nvgpu_mm_setup_hw must
* have been executed successfully.
*
@@ -223,6 +238,8 @@ int test_mm_inst_block(struct unit_module *m, struct gk20a *g, void *args);
*
* Test Type: Feature
*
* Targets: nvgpu_alloc_inst_block
*
* Input: test_mm_init_hal, test_nvgpu_init_mm and test_nvgpu_mm_setup_hw must
* have been executed successfully.
*

View File

@@ -39,6 +39,10 @@ struct unit_module;
*
* Test Type: Feature
*
* Targets: nvgpu_mem_posix_create_from_list, nvgpu_sgt_create_from_mem,
* nvgpu_sgt_get_phys, nvgpu_sgt_get_dma, nvgpu_sgt_iommuable,
* nvgpu_sgt_get_gpu_addr, nvgpu_sgt_get_ipa, nvgpu_sgt_ipa_to_pa
*
* Input: None
*
* Steps:
@@ -81,6 +85,8 @@ int test_nvgpu_sgt_basic_apis(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: nvgpu_mem_sgt_posix_create_from_list, nvgpu_sgt_get_next
*
* Input: None
*
* Steps:
@@ -102,6 +108,9 @@ int test_nvgpu_sgt_get_next(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: nvgpu_mem_sgt_posix_create_from_list, nvgpu_sgt_alignment,
* nvgpu_sgt_free
*
* Input: Static sgt_align_test_array table of alignment combinations.
*
* Steps:
@@ -128,6 +137,8 @@ int test_nvgpu_sgt_alignment_non_iommu(struct unit_module *m,
*
* Test Type: Feature
*
* Targets: nvgpu_sgt_create_from_mem, nvgpu_sgt_alignment, nvgpu_sgt_free
*
* Input: None
*
* Steps:

View File

@@ -68,7 +68,7 @@ int test_page_faults_init(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature
*
* Targets: gv11b_mc_is_mmu_fault_pending
* Targets: gops_mc.is_mmu_fault_pending, gv11b_mc_is_mmu_fault_pending
*
* Input: test_page_faults_init
*
@@ -92,7 +92,8 @@ int test_page_faults_pending(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: gv11b_mm_mmu_fault_disable_hw, gv11b_fb_is_fault_buf_enabled
* Targets: gops_mm.gops_mm_mmu_fault.disable_hw, gv11b_mm_mmu_fault_disable_hw,
* gops_fb.is_fault_buf_enabled, gv11b_fb_is_fault_buf_enabled
*
* Input: test_page_faults_init
*
@@ -119,8 +120,9 @@ int test_page_faults_disable_hw(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: gp10b_mm_get_default_big_page_size, nvgpu_alloc_inst_block,
* gv11b_mm_init_inst_block
* Targets: gops_mm.gops_mm_gmmu.get_default_big_page_size,
* gp10b_mm_get_default_big_page_size, nvgpu_alloc_inst_block,
* gops_mm.init_inst_block, gv11b_mm_init_inst_block
*
* Input: test_page_faults_init
*
@@ -146,7 +148,8 @@ int test_page_faults_inst_block(struct unit_module *m, struct gk20a *g,
*
* Test Type: De-init
*
* Targets: gv11b_mm_mmu_fault_info_mem_destroy, nvgpu_vm_put
* Targets: gops_mm.gops_mm_mmu_fault.info_mem_destroy,
* gv11b_mm_mmu_fault_info_mem_destroy, nvgpu_vm_put
*
* Input: test_page_faults_init
*

View File

@@ -40,6 +40,11 @@ struct unit_module;
*
* Test Type: Feature
*
* 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,
* nvgpu_vm_find_mapped_buf_less_than, nvgpu_get_pte, nvgpu_vm_put_buffers,
* nvgpu_vm_unmap, nvgpu_vm_area_free, nvgpu_vm_put
*
* Input: None
*
* Steps:
@@ -82,6 +87,12 @@ int test_map_buf(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature
*
* 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,
* nvgpu_vm_find_mapped_buf_less_than, nvgpu_get_pte, nvgpu_vm_put_buffers,
* nvgpu_vm_unmap, nvgpu_vm_area_free, nvgpu_vm_put,
* nvgpu_gmmu_va_small_page_limit
*
* Input: None
*
* Steps:
@@ -123,6 +134,12 @@ int test_map_buf_gpu_va(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature
*
* Targets: nvgpu_vm_init, nvgpu_vm_mapping_batch_start, nvgpu_vm_area_alloc,
* nvgpu_vm_map, nvgpu_vm_find_mapped_buf_range,
* nvgpu_vm_find_mapped_buf_less_than, nvgpu_get_pte, nvgpu_vm_put_buffers,
* nvgpu_vm_unmap, nvgpu_vm_area_free, nvgpu_vm_put,
* nvgpu_vm_mapping_batch_finish
*
* Input: None
*
* Steps:
@@ -148,6 +165,8 @@ int test_batch(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature, Error injection
*
* Targets: nvgpu_vm_init, nvgpu_vm_do_init
*
* Input: None
*
* Steps:
@@ -191,6 +210,8 @@ int test_init_error_paths(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Error injection
*
* Targets: nvgpu_vm_init, nvgpu_vm_map, nvgpu_vm_put
*
* Input: None
*
* Steps:
@@ -226,6 +247,8 @@ int test_map_buffer_error_cases(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature, Error injection
*
* Targets: nvgpu_vm_alloc_va
*
* Input: None
*
* Steps:
@@ -260,6 +283,8 @@ int test_nvgpu_vm_alloc_va(struct unit_module *m, struct gk20a *g,
*
* Test Type: Feature
*
* Targets: nvgpu_vm_bind_channel
*
* Input: None
*
* Steps:
@@ -286,6 +311,8 @@ int test_vm_bind(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature
*
* Targets: vm_aspace_id
*
* Input: None
*
* Steps:
@@ -314,6 +341,9 @@ int test_vm_aspace_id(struct unit_module *m, struct gk20a *g, void *__args);
*
* Test Type: Feature, Error injection
*
* Targets: nvgpu_vm_area_validate_buffer, nvgpu_vm_area_alloc,
* nvgpu_vm_area_free
*
* Input: None
*
* Steps: