Files
linux-nvgpu/drivers/gpu/nvgpu/common/linux
Debarshi Dutta 4dfd6e43cf gpu: nvgpu: create a wrapper over sync_fences
This patch constructs an abstraction to hide the sync_fence
functionality from the common code. struct nvgpu_os_fence acts as an
abstraction for struct sync_fence.

struct nvgpu_os_fence consists of an ops structure named nvgpu_os_fence_ops
which contains an API to do pushbuffer programming to generate wait
commands for the fence.

The current implementation of nvgpu only allows for wait method on a
sync_fence which was generated using a similar backend(i.e. either
Nvhost Syncpoints or Semaphores). In this patch, a
generic API is introduced which will decide the type of the underlying
implementation of the struct nvgpu_os_fence at runtime and run the
corresponding wait implementation on it.

This patch changes the channel_sync_gk20a's semaphore specific
implementation to use the abstract API. A subsequent patch will make
the changes for the nvhost_syncpoint based implementations as well.

JIRA NVGPU-66

Change-Id: If6675bfde5885c3d15d2ca380bb6c7c0e240e734
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1667218
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2018-05-10 08:40:02 -07:00
..
2018-05-09 18:26:04 -07:00
2018-04-11 10:16:13 -07:00
2018-04-11 10:16:20 -07:00
2018-04-22 21:04:48 -07:00
2018-04-23 12:12:52 -07:00
2017-05-12 16:09:05 -07:00
2018-05-09 18:26:04 -07:00
2018-05-09 18:26:04 -07:00
2018-05-09 18:26:04 -07:00
2018-05-09 18:26:16 -07:00
2018-03-16 07:34:36 -07:00
2018-05-09 18:26:04 -07:00