mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add format_gpfifo_entry HAL for pbdma
Removed dependency on pbdma hw headers in ce2, cde and submit. Added the following HAL to format gpfifo entries: - pbdma.format_gpfifo_entry Jira NVGPU-1992 Jira NVGPU-1990 Change-Id: I322d6bcd832b0ea5bbe2c2871b8f96b2793d8a65 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2093502 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
97d65cb60d
commit
7fb397b0b3
@@ -53,8 +53,6 @@
|
||||
#include "cde_gm20b.h"
|
||||
#include "cde_gp10b.h"
|
||||
|
||||
#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h>
|
||||
|
||||
static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx);
|
||||
static struct gk20a_cde_ctx *gk20a_cde_allocate_context(struct nvgpu_os_linux *l);
|
||||
|
||||
@@ -617,14 +615,9 @@ static int gk20a_init_cde_command(struct gk20a_cde_ctx *cde_ctx,
|
||||
}
|
||||
|
||||
/* store the element into gpfifo */
|
||||
gpfifo_elem->entry0 =
|
||||
u64_lo32(target_mem->gpu_va +
|
||||
cmd_elem->target_byte_offset);
|
||||
gpfifo_elem->entry1 =
|
||||
u64_hi32(target_mem->gpu_va +
|
||||
cmd_elem->target_byte_offset) |
|
||||
pbdma_gp_entry1_length_f(cmd_elem->num_bytes /
|
||||
sizeof(u32));
|
||||
g->ops.pbdma.format_gpfifo_entry(g, gpfifo_elem,
|
||||
target_mem->gpu_va + cmd_elem->target_byte_offset,
|
||||
cmd_elem->num_bytes / sizeof(u32));
|
||||
}
|
||||
|
||||
*num_entries = num_elems;
|
||||
|
||||
Reference in New Issue
Block a user