gpu: nvgpu: unit: fifo: channel unit test

This unit test covers remainder of the nvgpu.common.fifo.channel module
lines and branches.

Jira NVGPU-3696

Change-Id: I590faac1e4340d8fa2e5a7e591249128ec2b8760
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2241973
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2019-11-18 17:39:02 -08:00
committed by Alex Waterman
parent 83d4e3c7a7
commit 917fb2e2df
4 changed files with 1375 additions and 176 deletions

View File

@@ -245,6 +245,7 @@ nvgpu_alloc_common_init
nvgpu_alloc_destroy
nvgpu_alloc_end
nvgpu_alloc_fixed
nvgpu_alloc_gr_ctx_struct
nvgpu_alloc_initialized
nvgpu_alloc_inst_block
nvgpu_alloc_length
@@ -256,10 +257,14 @@ nvgpu_allocator_init
nvgpu_aperture_mask
nvgpu_bar1_readl
nvgpu_bar1_writel
nvgpu_big_alloc_impl
nvgpu_big_free
nvgpu_big_pages_possible
nvgpu_bitmap_clear
nvgpu_bitmap_set
nvgpu_bsearch
nvgpu_can_busy
nvgpu_ce_engine_interrupt_mask
nvgpu_ce_init_support
nvgpu_cg_blcg_fb_ltc_load_enable
nvgpu_cg_blcg_fifo_load_enable
@@ -275,129 +280,29 @@ nvgpu_cg_slcg_ce2_load_enable
nvgpu_cg_init_gr_load_gating_prod
nvgpu_cg_elcg_enable_no_wait
nvgpu_cg_elcg_disable_no_wait
nvgpu_cond_get_fault_injection
nvgpu_current_pid
nvgpu_current_tid
nvgpu_engine_cleanup_sw
nvgpu_engine_get_active_eng_info
nvgpu_engine_get_ids
nvgpu_engine_get_gr_id
nvgpu_engine_init_info
nvgpu_engine_setup_sw
nvgpu_gr_alloc
nvgpu_gr_free
nvgpu_gr_init
nvgpu_gr_init_support
nvgpu_gr_remove_support
nvgpu_gr_intr_init_support
nvgpu_gr_intr_remove_support
nvgpu_gr_intr_handle_fecs_error
nvgpu_gr_prepare_sw
nvgpu_gr_enable_hw
nvgpu_gr_suspend
nvgpu_gr_sw_ready
nvgpu_gr_falcon_get_fecs_ucode_segments
nvgpu_gr_falcon_get_gpccs_ucode_segments
nvgpu_gr_falcon_get_surface_desc_cpu_va
nvgpu_gr_falcon_init_ctxsw
nvgpu_gr_falcon_init_ctx_state
nvgpu_gr_falcon_init_ctxsw_ucode
nvgpu_gr_falcon_init_support
nvgpu_gr_falcon_load_secure_ctxsw_ucode
nvgpu_gr_falcon_remove_support
nvgpu_gr_config_init
nvgpu_gr_config_deinit
nvgpu_gr_config_get_max_gpc_count
nvgpu_gr_config_get_max_tpc_count
nvgpu_gr_config_get_max_tpc_per_gpc_count
nvgpu_gr_config_get_gpc_count
nvgpu_gr_config_get_tpc_count
nvgpu_gr_config_get_ppc_count
nvgpu_gr_config_get_pe_count_per_gpc
nvgpu_gr_config_get_sm_count_per_tpc
nvgpu_gr_config_get_gpc_mask
nvgpu_gr_config_get_gpc_ppc_count
nvgpu_gr_config_get_gpc_skip_mask
nvgpu_gr_config_get_gpc_tpc_count
nvgpu_gr_config_get_pes_tpc_count
nvgpu_gr_config_get_pes_tpc_mask
nvgpu_gr_config_get_gpc_tpc_mask_base
nvgpu_gr_config_get_gpc_tpc_count_base
nvgpu_gr_config_set_no_of_sm
nvgpu_gr_config_get_no_of_sm
nvgpu_gr_config_get_sm_info
nvgpu_gr_config_set_sm_info_gpc_index
nvgpu_gr_config_get_sm_info_gpc_index
nvgpu_gr_config_set_sm_info_tpc_index
nvgpu_gr_config_get_sm_info_tpc_index
nvgpu_gr_config_set_sm_info_global_tpc_index
nvgpu_gr_config_get_sm_info_global_tpc_index
nvgpu_gr_config_set_sm_info_sm_index
nvgpu_gr_config_get_sm_info_sm_index
nvgpu_gr_config_set_gpc_tpc_mask
nvgpu_gr_config_get_gpc_tpc_mask
nvgpu_gr_engine_interrupt_mask
nvgpu_gr_obj_ctx_is_golden_image_ready
nvgpu_gr_ctx_get_tsgid
nvgpu_gr_get_config_ptr
nvgpu_gr_fs_state_init
nvgpu_gr_global_ctx_desc_alloc
nvgpu_gr_global_ctx_desc_free
nvgpu_gr_global_ctx_buffer_alloc
nvgpu_gr_global_ctx_buffer_free
nvgpu_gr_global_ctx_set_size
nvgpu_gr_global_ctx_buffer_map
nvgpu_gr_global_ctx_buffer_unmap
nvgpu_gr_global_ctx_buffer_get_mem
nvgpu_gr_global_ctx_buffer_ready
nvgpu_gr_global_ctx_init_local_golden_image
nvgpu_gr_global_ctx_load_local_golden_image
nvgpu_gr_global_ctx_compare_golden_images
nvgpu_gr_global_ctx_deinit_local_golden_image
nvgpu_gr_ctx_desc_alloc
nvgpu_gr_ctx_desc_free
nvgpu_alloc_gr_ctx_struct
nvgpu_free_gr_ctx_struct
nvgpu_gr_ctx_alloc
nvgpu_gr_ctx_free
nvgpu_gr_ctx_set_size
nvgpu_gr_ctx_alloc_patch_ctx
nvgpu_gr_ctx_free_patch_ctx
nvgpu_gr_ctx_map_global_ctx_buffers
nvgpu_gr_ctx_patch_write_begin
nvgpu_gr_ctx_patch_write
nvgpu_gr_ctx_patch_write_end
nvgpu_golden_ctx_verif_get_fault_injection
nvgpu_local_golden_image_get_fault_injection
nvgpu_gr_obj_ctx_init
nvgpu_gr_obj_ctx_alloc
nvgpu_gr_obj_ctx_deinit
nvgpu_gr_subctx_alloc
nvgpu_gr_subctx_free
nvgpu_gr_obj_ctx_set_ctxsw_preemption_mode
nvgpu_hr_timestamp
nvgpu_init_ltc_support
nvgpu_ltc_ecc_free
nvgpu_ltc_get_cacheline_size
nvgpu_ltc_get_ltc_count
nvgpu_ltc_get_slices_per_ltc
nvgpu_ltc_remove_support
nvgpu_ltc_sync_enabled
nvgpu_can_busy
nvgpu_ce_engine_interrupt_mask
nvgpu_channel_abort
nvgpu_channel_alloc_inst
nvgpu_channel_cleanup_sw
nvgpu_channel_close
nvgpu_channel_debug_dump_all
nvgpu_channel_deterministic_idle
nvgpu_channel_deterministic_unidle
nvgpu_channel_disable_tsg
nvgpu_channel_enable_tsg
nvgpu_channel_free_inst
nvgpu_channel_from_id__func
nvgpu_channel_kill
nvgpu_channel_mark_error
nvgpu_channel_open_new
nvgpu_channel_put__func
nvgpu_channel_setup_bind
nvgpu_channel_refch_from_inst_ptr
nvgpu_channel_resume_all_serviceable_ch
nvgpu_channel_semaphore_wakeup
nvgpu_channel_set_unserviceable
nvgpu_channel_setup_sw
nvgpu_channel_suspend_all_serviceable_ch
nvgpu_channel_sw_quiesce
nvgpu_channel_sync_create
nvgpu_channel_sync_destroy
nvgpu_channel_sync_set_safe_state
@@ -409,6 +314,7 @@ nvgpu_cond_broadcast
nvgpu_cond_broadcast_interruptible
nvgpu_cond_broadcast_locked
nvgpu_cond_destroy
nvgpu_cond_get_fault_injection
nvgpu_cond_init
nvgpu_cond_lock
nvgpu_cond_signal
@@ -416,6 +322,8 @@ nvgpu_cond_signal_interruptible
nvgpu_cond_signal_locked
nvgpu_cond_timedwait
nvgpu_cond_unlock
nvgpu_current_pid
nvgpu_current_tid
nvgpu_current_time_ms
nvgpu_current_time_ns
nvgpu_current_time_us
@@ -432,12 +340,17 @@ nvgpu_ecc_counter_init_per_lts
nvgpu_ecc_init_support
nvgpu_engine_act_interrupt_mask
nvgpu_engine_check_valid_id
nvgpu_engine_cleanup_sw
nvgpu_engine_enum_from_type
nvgpu_engine_get_active_eng_info
nvgpu_engine_get_all_ce_reset_mask
nvgpu_engine_get_fast_ce_runlist_id
nvgpu_engine_get_gr_id
nvgpu_engine_get_gr_runlist_id
nvgpu_engine_get_ids
nvgpu_engine_init_info
nvgpu_engine_is_valid_runlist_id
nvgpu_get
nvgpu_engine_setup_sw
nvgpu_falcon_hs_ucode_load_bootstrap
nvgpu_falcon_copy_to_dmem
nvgpu_falcon_copy_to_imem
@@ -460,6 +373,8 @@ nvgpu_finalize_poweron
nvgpu_free
nvgpu_free_enabled_flags
nvgpu_free_fixed
nvgpu_free_gr_ctx_struct
nvgpu_get
nvgpu_get_pte
nvgpu_gmmu_init_page_table
nvgpu_gmmu_map
@@ -467,18 +382,106 @@ nvgpu_gmmu_map_locked
nvgpu_gmmu_map_fixed
nvgpu_gmmu_unmap
nvgpu_gmmu_unmap_locked
nvgpu_golden_ctx_verif_get_fault_injection
nvgpu_gr_alloc
nvgpu_gr_config_init
nvgpu_gr_config_deinit
nvgpu_gr_config_get_max_gpc_count
nvgpu_gr_config_get_max_tpc_count
nvgpu_gr_config_get_max_tpc_per_gpc_count
nvgpu_gr_config_get_gpc_count
nvgpu_gr_config_get_tpc_count
nvgpu_gr_config_get_ppc_count
nvgpu_gr_config_get_pe_count_per_gpc
nvgpu_gr_config_get_sm_count_per_tpc
nvgpu_gr_config_get_gpc_mask
nvgpu_gr_config_get_gpc_ppc_count
nvgpu_gr_config_get_gpc_skip_mask
nvgpu_gr_config_get_gpc_tpc_count
nvgpu_gr_config_get_pes_tpc_count
nvgpu_gr_config_get_pes_tpc_mask
nvgpu_gr_config_get_gpc_tpc_mask
nvgpu_gr_config_get_gpc_tpc_mask_base
nvgpu_gr_config_get_gpc_tpc_count_base
nvgpu_gr_config_get_sm_info
nvgpu_gr_config_get_sm_info_global_tpc_index
nvgpu_gr_config_get_sm_info_gpc_index
nvgpu_gr_config_get_sm_info_sm_index
nvgpu_gr_config_get_sm_info_tpc_index
nvgpu_gr_config_get_no_of_sm
nvgpu_gr_config_set_gpc_tpc_mask
nvgpu_gr_config_set_no_of_sm
nvgpu_gr_config_set_sm_info_global_tpc_index
nvgpu_gr_config_set_sm_info_gpc_index
nvgpu_gr_config_set_sm_info_sm_index
nvgpu_gr_config_set_sm_info_tpc_index
nvgpu_gr_ctx_alloc
nvgpu_gr_ctx_alloc_patch_ctx
nvgpu_gr_ctx_desc_alloc
nvgpu_gr_ctx_desc_free
nvgpu_gr_ctx_free
nvgpu_gr_ctx_free_patch_ctx
nvgpu_gr_ctx_get_tsgid
nvgpu_gr_ctx_map_global_ctx_buffers
nvgpu_gr_ctx_patch_write
nvgpu_gr_ctx_patch_write_begin
nvgpu_gr_ctx_patch_write_end
nvgpu_gr_ctx_set_size
nvgpu_gr_enable_hw
nvgpu_gr_engine_interrupt_mask
nvgpu_gr_falcon_get_fecs_ucode_segments
nvgpu_gr_falcon_get_gpccs_ucode_segments
nvgpu_gr_falcon_get_surface_desc_cpu_va
nvgpu_gr_falcon_init_ctxsw
nvgpu_gr_falcon_init_ctx_state
nvgpu_gr_falcon_init_ctxsw_ucode
nvgpu_gr_falcon_init_support
nvgpu_gr_falcon_load_secure_ctxsw_ucode
nvgpu_gr_falcon_remove_support
nvgpu_gr_free
nvgpu_gr_fs_state_init
nvgpu_gr_get_config_ptr
nvgpu_gr_global_ctx_buffer_alloc
nvgpu_gr_global_ctx_buffer_free
nvgpu_gr_global_ctx_buffer_get_mem
nvgpu_gr_global_ctx_buffer_map
nvgpu_gr_global_ctx_buffer_ready
nvgpu_gr_global_ctx_buffer_unmap
nvgpu_gr_global_ctx_compare_golden_images
nvgpu_gr_global_ctx_deinit_local_golden_image
nvgpu_gr_global_ctx_desc_alloc
nvgpu_gr_global_ctx_desc_free
nvgpu_gr_global_ctx_init_local_golden_image
nvgpu_gr_global_ctx_load_local_golden_image
nvgpu_gr_global_ctx_set_size
nvgpu_gr_init
nvgpu_gr_init_support
nvgpu_gr_intr_init_support
nvgpu_gr_intr_remove_support
nvgpu_gr_intr_handle_fecs_error
nvgpu_gr_obj_ctx_alloc
nvgpu_gr_obj_ctx_deinit
nvgpu_gr_obj_ctx_init
nvgpu_gr_obj_ctx_is_golden_image_ready
nvgpu_gr_obj_ctx_set_ctxsw_preemption_mode
nvgpu_gr_prepare_sw
nvgpu_gr_remove_support
nvgpu_gr_subctx_alloc
nvgpu_gr_subctx_free
nvgpu_gr_suspend
nvgpu_gr_sw_ready
nvgpu_hr_timestamp
nvgpu_init_enabled_flags
nvgpu_init_hal
nvgpu_init_ltc_support
nvgpu_init_mm_support
nvgpu_init_therm_support
nvgpu_inst_block_addr
nvgpu_free_inst_block
nvgpu_inst_block_ptr
nvgpu_is_enabled
nvgpu_big_alloc_impl
nvgpu_big_free
nvgpu_kfree_impl
nvgpu_kcalloc_impl
nvgpu_kfree_impl
nvgpu_kmalloc_impl
nvgpu_kmem_cache_alloc
nvgpu_kmem_cache_create
@@ -486,7 +489,13 @@ nvgpu_kmem_cache_destroy
nvgpu_kmem_cache_free
nvgpu_kmem_get_fault_injection
nvgpu_kzalloc_impl
nvgpu_vmalloc_impl
nvgpu_ltc_ecc_free
nvgpu_ltc_get_cacheline_size
nvgpu_ltc_get_ltc_count
nvgpu_ltc_get_slices_per_ltc
nvgpu_ltc_remove_support
nvgpu_ltc_sync_enabled
nvgpu_local_golden_image_get_fault_injection
nvgpu_log_msg_impl
nvgpu_mc_intr_mask
nvgpu_mc_intr_nonstall_pause
@@ -688,6 +697,7 @@ nvgpu_vm_mapping_batch_start
nvgpu_vm_put
nvgpu_vm_put_buffers
nvgpu_vm_unmap
nvgpu_vmalloc_impl
nvgpu_vzalloc_impl
nvgpu_wait_for_deferred_interrupts
nvgpu_writel