mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: restructure sync cmdbufs specific gpu_ops
sync cmbbuf specific ops pointers are moved into a new struct sync_ops under the parent struct gpu_ops. The HAL assignments to the gk20a and gv11b versions are updated to match the new struct type. Jira NVGPU-1308 Change-Id: I1d9832ed5e938cb65747f0f6d34088552f75e2bc Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1975919 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
6a31f02a2d
commit
8b57b3b938
@@ -529,6 +529,14 @@ static const struct gpu_ops gm20b_ops = {
|
||||
.channel_resume = gk20a_channel_resume,
|
||||
.set_error_notifier = nvgpu_set_error_notifier,
|
||||
.setup_sw = gk20a_init_fifo_setup_sw,
|
||||
.set_sm_exception_type_mask = gk20a_tsg_set_sm_exception_type_mask,
|
||||
.runlist_busy_engines = gk20a_fifo_runlist_busy_engines,
|
||||
.find_pbdma_for_runlist = gk20a_fifo_find_pbdma_for_runlist,
|
||||
.init_ce_engine_info = gm20b_fifo_init_ce_engine_info,
|
||||
.read_pbdma_data = gk20a_fifo_read_pbdma_data,
|
||||
.reset_pbdma_header = gk20a_fifo_reset_pbdma_header,
|
||||
},
|
||||
.sync = {
|
||||
#ifdef CONFIG_TEGRA_GK20A_NVHOST
|
||||
.alloc_syncpt_buf = gk20a_fifo_alloc_syncpt_buf,
|
||||
.free_syncpt_buf = gk20a_fifo_free_syncpt_buf,
|
||||
@@ -543,12 +551,6 @@ static const struct gpu_ops gm20b_ops = {
|
||||
.get_sema_wait_cmd_size = gk20a_fifo_get_sema_wait_cmd_size,
|
||||
.get_sema_incr_cmd_size = gk20a_fifo_get_sema_incr_cmd_size,
|
||||
.add_sema_cmd = gk20a_fifo_add_sema_cmd,
|
||||
.set_sm_exception_type_mask = gk20a_tsg_set_sm_exception_type_mask,
|
||||
.runlist_busy_engines = gk20a_fifo_runlist_busy_engines,
|
||||
.find_pbdma_for_runlist = gk20a_fifo_find_pbdma_for_runlist,
|
||||
.init_ce_engine_info = gm20b_fifo_init_ce_engine_info,
|
||||
.read_pbdma_data = gk20a_fifo_read_pbdma_data,
|
||||
.reset_pbdma_header = gk20a_fifo_reset_pbdma_header,
|
||||
},
|
||||
.runlist = {
|
||||
.update_runlist = gk20a_fifo_update_runlist,
|
||||
@@ -786,6 +788,7 @@ int gm20b_init_hal(struct gk20a *g)
|
||||
gops->clock_gating = gm20b_ops.clock_gating;
|
||||
gops->fifo = gm20b_ops.fifo;
|
||||
gops->runlist = gm20b_ops.runlist;
|
||||
gops->sync = gm20b_ops.sync;
|
||||
gops->netlist = gm20b_ops.netlist;
|
||||
gops->mm = gm20b_ops.mm;
|
||||
gops->therm = gm20b_ops.therm;
|
||||
|
||||
Reference in New Issue
Block a user