mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Return GPU classes in get_litter_value
Return GPU classes in HAL get_litter_value() instead of assigning them to GPU characteristics at HAL initialization time. JIRA NVGPU-259 Change-Id: Ife7a5cb38df3d33ce98a1caa43d3873fb1431234 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1593683 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
1dad4adbd2
commit
dc5f6bcee0
@@ -54,10 +54,10 @@ int gk20a_ce_execute_ops(struct gk20a *g,
|
||||
u32 methodSize;
|
||||
u32 cmd_buf_read_offset;
|
||||
u32 fence_index;
|
||||
u32 dma_copy_class;
|
||||
struct nvgpu_gpfifo gpfifo;
|
||||
struct nvgpu_fence fence = {0,0};
|
||||
struct gk20a_fence *ce_cmd_buf_fence_out = NULL;
|
||||
struct nvgpu_gpu_characteristics *gpu_capability = &g->gpu_characteristics;
|
||||
|
||||
if (!ce_app->initialised ||ce_app->app_state != NVGPU_CE_ACTIVE)
|
||||
goto end;
|
||||
@@ -124,6 +124,7 @@ int gk20a_ce_execute_ops(struct gk20a *g,
|
||||
|
||||
cmd_buf_gpu_va = (ce_ctx->cmd_buf_mem.gpu_va + (u64)(cmd_buf_read_offset *sizeof(u32)));
|
||||
|
||||
dma_copy_class = g->ops.get_litter_value(g, GPU_LIT_DMA_COPY_CLASS);
|
||||
methodSize = gk20a_ce_prepare_submit(src_buf,
|
||||
dst_buf,
|
||||
size,
|
||||
@@ -132,7 +133,7 @@ int gk20a_ce_execute_ops(struct gk20a *g,
|
||||
payload,
|
||||
gk20a_get_valid_launch_flags(g, launch_flags),
|
||||
request_operation,
|
||||
gpu_capability->dma_copy_class,
|
||||
dma_copy_class,
|
||||
gk20a_fence_in);
|
||||
|
||||
if (methodSize) {
|
||||
|
||||
Reference in New Issue
Block a user