mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
Add unit tests for: - gv11b_tsg_init_eng_method_buffers - gv11b_tsg_deinit_eng_method_buffers - gv11b_tsg_bind_channel_eng_method_buffers - gv11b_tsg_unbind_channel_check_eng_faulted Note: gv11b_tsg_enable was already tested as part of TSG common. Added SWUTS documentation for above tests. Modified gv11b_tsg_init_eng_method_buffers to inline computation of method buffer size, as existing static function could never return 0, making one branch not testable. Added dummy IO register spaces for PFB, CE, PBUS and HSUB_COMMON, so that g->ops.mm.init_mm_support can be called as part of test_fifo_init_support. MM support is needed to test allocation and mapping of DMA buffers. Jira NVGPU-3788 Change-Id: I5356531b23c0456662187d16b35955bf0e528782 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2207384 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
30 KiB
30 KiB