mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +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>
66 lines
2.2 KiB
C
66 lines
2.2 KiB
C
/*
|
|
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @page NVGPU-SWUTS
|
|
*
|
|
* NVGPU Software Unit Test Specifications
|
|
* =======================================
|
|
*
|
|
* The following pages cover the various unit test specifications needed
|
|
* to test the NVGPU driver.
|
|
*
|
|
* - @ref SWUTS-enabled
|
|
* - @ref SWUTS-interface-bsearch
|
|
* - @ref SWUTS-interface-lock
|
|
* - @ref SWUTS-interface-rbtree
|
|
* - @ref SWUTS-falcon
|
|
* - @ref SWUTS-fifo
|
|
* - @ref SWUTS-fifo-channel
|
|
* - @ref SWUTS-fifo-runlist
|
|
* - @ref SWUTS-fifo-tsg
|
|
* - @ref SWUTS-fifo-tsg-gv11b
|
|
* - @ref SWUTS-init
|
|
* - @ref SWUTS-interface-atomic
|
|
* - @ref SWUTS-mm-allocators-bitmap-allocator
|
|
* - @ref SWUTS-mm-allocators-buddy-allocator
|
|
* - @ref SWUTS-mm-as
|
|
* - @ref SWUTS-mm-nvgpu-mem
|
|
* - @ref SWUTS-mm-nvgpu-sgt
|
|
* - @ref SWUTS-mm-mm
|
|
* - @ref SWUTS-mm-vm
|
|
* - @ref SWUTS-fuse
|
|
* - @ref SWUTS-posix-cond
|
|
* - @ref SWUTS-posix-fault-injection
|
|
* - @ref SWUTS-posix-sizes
|
|
* - @ref SWUTS-posix-thread
|
|
* - @ref SWUTS-posix-timers
|
|
* - @ref SWUTS-sdl
|
|
* - @ref SWUTS-acr
|
|
* - @ref SWUTS-cg
|
|
* - @ref SWUTS-init_test
|
|
* - @ref SWUTS-channel_os
|
|
*
|
|
*/
|
|
|