mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +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
@@ -279,13 +279,13 @@ static int nvgpu_as_ioctl_get_sync_ro_map(
|
||||
u32 sync_size;
|
||||
int err = 0;
|
||||
|
||||
if (!g->ops.fifo.get_sync_ro_map)
|
||||
if (g->ops.sync.get_sync_ro_map == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
if (!nvgpu_has_syncpoints(g))
|
||||
return -EINVAL;
|
||||
|
||||
err = g->ops.fifo.get_sync_ro_map(vm, &base_gpuva, &sync_size);
|
||||
err = g->ops.sync.get_sync_ro_map(vm, &base_gpuva, &sync_size);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user