From ad178917259b30330e8432e2cd33d50c03e9602b Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Wed, 10 Sep 2014 17:23:31 +0300 Subject: gpu: nvgpu: implement poll() for semaphores Add poll interface and control ioctls for waiting for GPU job completion via semaphores. Poll on a gk20a channel file waits for events from pending semaphore interrupts (stalling) of that channel. New ioctls enable and disable the events, and clear a single interrupt event so that next poll doesn't wake up for it again. Bug 1528781 Change-Id: I5c6238966b5d0900c8ab263c6a7f8f2611901f33 Signed-off-by: Konsta Holtta Reviewed-on: http://git-master/r/497750 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gk20a.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 7d744f42..acae38aa 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -100,6 +100,7 @@ static const struct file_operations gk20a_channel_ops = { .compat_ioctl = gk20a_channel_ioctl, #endif .unlocked_ioctl = gk20a_channel_ioctl, + .poll = gk20a_channel_poll, }; static const struct file_operations gk20a_ctrl_ops = { -- cgit v1.2.2