diff options
author | Rob Clark <robdclark@chromium.org> | 2021-07-26 07:43:57 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-07-27 17:53:51 -0700 |
commit | da3d378dec86348d21c02f311da87fa0742e36f6 (patch) | |
tree | eb7898ecefdf670af9c5c020c503dee5104c2b61 /drivers/gpu/drm/msm/msm_ringbuffer.c | |
parent | ff1176468d368232b684f75e82563369208bc371 (diff) | |
download | lwn-da3d378dec86348d21c02f311da87fa0742e36f6.tar.gz lwn-da3d378dec86348d21c02f311da87fa0742e36f6.zip |
drm/msm: Let fences read directly from memptrs
Let dma_fence::signaled, etc, read directly from the address that the hw
is writing with updated completed fence seqno, so we can potentially
notice that the fence is signaled sooner.
Plus add some docs.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20210726144359.2179302-2-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_ringbuffer.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_ringbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_ringbuffer.c b/drivers/gpu/drm/msm/msm_ringbuffer.c index 4d2a2a4abef8..7e92d9532454 100644 --- a/drivers/gpu/drm/msm/msm_ringbuffer.c +++ b/drivers/gpu/drm/msm/msm_ringbuffer.c @@ -51,7 +51,7 @@ struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int id, snprintf(name, sizeof(name), "gpu-ring-%d", ring->id); - ring->fctx = msm_fence_context_alloc(gpu->dev, name); + ring->fctx = msm_fence_context_alloc(gpu->dev, &ring->memptrs->fence, name); return ring; |