mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
The ccsr_channel_eng_faulted field exists from Volta onwards. Implement the read_state HAL op for those chips, and store that bit as a boolean in the channel state info. Jira NVGPU-1307 Change-Id: Ie997892f2d3db0725496661a4d3083e7396894cc Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2017267 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
49 lines
1.7 KiB
C
49 lines
1.7 KiB
C
/*
|
|
* fifo common definitions (gr host)
|
|
*
|
|
* Copyright (c) 2011-2018, 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.
|
|
*/
|
|
|
|
#ifndef NVGPU_FIFO_COMMON_H
|
|
#define NVGPU_FIFO_COMMON_H
|
|
|
|
#define RC_TYPE_NO_RC 0U
|
|
#define RC_TYPE_MMU_FAULT 1U
|
|
#define RC_TYPE_PBDMA_FAULT 2U
|
|
#define RC_TYPE_GR_FAULT 3U
|
|
#define RC_TYPE_PREEMPT_TIMEOUT 4U
|
|
#define RC_TYPE_CTXSW_TIMEOUT 5U
|
|
#define RC_TYPE_RUNLIST_UPDATE_TIMEOUT 6U
|
|
#define RC_TYPE_FORCE_RESET 7U
|
|
#define RC_TYPE_SCHED_ERR 8U
|
|
|
|
struct nvgpu_channel_hw_state {
|
|
bool enabled;
|
|
bool next;
|
|
bool ctx_reload;
|
|
bool busy;
|
|
bool pending_acquire;
|
|
bool eng_faulted;
|
|
const char *status_string;
|
|
};
|
|
|
|
#endif /* NVGPU_FIFO_COMMON_H */
|