pva: mirror from gitlab cv/pva-sys-sw

Gitlab commit e56dfe9c0b2c3 ("kmd: increase timeouts in nati...")

Changes since last deployment:

- kmd: increase timeouts in native debug builds
- fw: Add support to report invalid cmd index
- Honor submission timeout while waiting for space in Fence Buffer
- deploy: Make GVS polling more robust
- deploy: Update GPL 2 license
- deploy: Generate change summary in commit message
- Enabling thread safety tests
- tests: enable MultipleContexts.MaxContext_SingleThread_SingleProcessOnlyo

Change-Id: I8e9353205d322c2a6f3e93875d8b8a8025af4195
Signed-off-by: nanwa <nanwa@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3326483
Reviewed-by: Mohnish Jain <mohnishj@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
nanwa
2025-03-25 06:10:58 +00:00
committed by Jon Hunter
parent 970fbbcc73
commit e677624957
4 changed files with 8 additions and 19 deletions

View File

@@ -1,14 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
ifndef CONFIG_TEGRA_SYSTEM_TYPE_ACK ifndef CONFIG_TEGRA_SYSTEM_TYPE_ACK

View File

@@ -345,7 +345,7 @@ struct pva_cmdbuf_status {
uint64_t timestamp; uint64_t timestamp;
/** Additional status information for the engine state */ /** Additional status information for the engine state */
uint32_t info32; uint32_t info32;
/** Additional status information for the engine state */ /** Index of cmd that resulted in error */
uint16_t info16; uint16_t info16;
/** Error code. Type: enum pva_error */ /** Error code. Type: enum pva_error */
uint16_t status; uint16_t status;

View File

@@ -23,6 +23,13 @@
// clang-format off // clang-format off
#if PVA_BUILD_MODE == PVA_BUILD_MODE_SIM #if PVA_BUILD_MODE == PVA_BUILD_MODE_SIM
#define PVA_KMD_TIMEOUT_FACTOR 100 #define PVA_KMD_TIMEOUT_FACTOR 100
#elif (PVA_BUILD_MODE == PVA_BUILD_MODE_NATIVE) && (PVA_IS_DEBUG == 1)
// On native builds, the FW calls the KMD's shared buffer handler in its
// own thread. In debug builds, if there are a large number of messages
// (prints, unregister, etc.), this handler might take a while to execute,
// making the FW and delay the processing of command buffers. This could
// lead to submission timeouts in KMD.
#define PVA_KMD_TIMEOUT_FACTOR 10
#else #else
#define PVA_KMD_TIMEOUT_FACTOR 1 #define PVA_KMD_TIMEOUT_FACTOR 1
#endif #endif

View File

@@ -1,14 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
obj-m := pva_kmd_linux.o obj-m := pva_kmd_linux.o