mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: move engine specific functions to common/fifo
The following changes are done in this patch. 1) gk20a_fifo_get_engine_info() is moved to common/fifo/engine.c and is renamed to gk20a_fifo_get_active_engine_info() to reflect accurately the purpose of the function. 2) move the definition of enum fifo_engine to <nvgpu/engines.h> and add the prefix NVGPU_ 3) move the following functions related to engines in fifo_gk20a.c to common/fifo/engines.c and replace their signature by adding the prefix nvgpu_engine and removing gk20a_fifo. gk20a_fifo_get_active_engine_info gk20a_fifo_engine_enum_from_type gk20a_fifo_get_engine_ids gk20a_fifo_is_valid_engine_id gk20a_fifo_get_gr_engine_id gk20a_fifo_act_eng_interrupt_mask gk20a_fifo_engine_interrupt_mask gk20a_fifo_get_all_ce_engine_reset_mask Jira NVGPU-1315 Change-Id: I63d9dcd905a0bebcc9a4c65776cf6ec7a0837acf Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2011298 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
03145af1eb
commit
061aa66adc
@@ -882,7 +882,7 @@ static int nvgpu_gpu_get_engine_info(
|
||||
struct nvgpu_gpu_get_engine_info_args *args)
|
||||
{
|
||||
int err = 0;
|
||||
u32 engine_enum = ENGINE_INVAL_GK20A;
|
||||
u32 engine_enum = NVGPU_ENGINE_INVAL_GK20A;
|
||||
u32 report_index = 0;
|
||||
u32 engine_id_idx;
|
||||
const u32 max_buffer_engines = args->engine_info_buf_size /
|
||||
@@ -902,15 +902,15 @@ static int nvgpu_gpu_get_engine_info(
|
||||
engine_enum = src_info->engine_enum;
|
||||
|
||||
switch (engine_enum) {
|
||||
case ENGINE_GR_GK20A:
|
||||
case NVGPU_ENGINE_GR_GK20A:
|
||||
dst_info.engine_id = NVGPU_GPU_ENGINE_ID_GR;
|
||||
break;
|
||||
|
||||
case ENGINE_GRCE_GK20A:
|
||||
case NVGPU_ENGINE_GRCE_GK20A:
|
||||
dst_info.engine_id = NVGPU_GPU_ENGINE_ID_GR_COPY;
|
||||
break;
|
||||
|
||||
case ENGINE_ASYNC_CE_GK20A:
|
||||
case NVGPU_ENGINE_ASYNC_CE_GK20A:
|
||||
dst_info.engine_id = NVGPU_GPU_ENGINE_ID_ASYNC_COPY;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user