[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200113153605.52350-1-brian@brkho.com>
Date: Mon, 13 Jan 2020 10:36:03 -0500
From: Brian Ho <brian@...ho.com>
To: freedreno@...ts.freedesktop.org
Cc: hoegsberg@...omium.org, robdclark@...omium.org,
Brian Ho <brian@...ho.com>,
dri-devel@...ts.freedesktop.org (open list:DRM DRIVER FOR MSM ADRENO
GPU),
linux-arm-msm@...r.kernel.org (open list:DRM DRIVER FOR MSM ADRENO GPU),
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH 0/2] drm/msm: Add the MSM_WAIT_IOVA ioctl
This patch set implements the MSM_WAIT_IOVA ioctl which lets
userspace sleep until the value at a given iova reaches a certain
condition. This is needed in turnip to implement the
VK_QUERY_RESULT_WAIT_BIT flag for vkGetQueryPoolResults.
First, we add a GPU-wide wait queue that is signaled on all IRQs.
We can then wait on this wait queue inside MSM_WAIT_IOVA until the
condition is met.
The corresponding merge request in mesa can be found at:
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3279
Brian Ho (2):
drm/msm: Add a GPU-wide wait queue
drm/msm: Add MSM_WAIT_IOVA ioctl
drivers/gpu/drm/msm/msm_drv.c | 63 +++++++++++++++++++++++++++++++++--
drivers/gpu/drm/msm/msm_gpu.c | 4 +++
drivers/gpu/drm/msm/msm_gpu.h | 3 ++
include/uapi/drm/msm_drm.h | 13 ++++++++
4 files changed, 81 insertions(+), 2 deletions(-)
--
2.25.0.rc1.283.g88dfdc4193-goog
Powered by blists - more mailing lists