summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2024-09-16 15:33:20 +0200
committerThierry Reding <treding@nvidia.com>2024-09-25 21:21:23 +0200
commitb4ad4ef374d66cc8df3188bb1ddb65bce5fc9e50 (patch)
tree6e026682e98ea304b0daa44f13dd1408bc34ef5c /drivers/gpu/host1x
parentf70000ef23527f6d928d1175c66c5fafa968814b (diff)
downloadlinux-b4ad4ef374d66cc8df3188bb1ddb65bce5fc9e50.tar.gz
linux-b4ad4ef374d66cc8df3188bb1ddb65bce5fc9e50.tar.bz2
linux-b4ad4ef374d66cc8df3188bb1ddb65bce5fc9e50.zip
gpu: host1x: Set up device DMA parameters
In order to store device DMA parameters, the DMA framework depends on the device's dma_parms field to point at a valid memory location. Add backing storage for this in struct host1x_memory_context and point to it. Reported-by: Jonathan Hunter <jonathanh@nvidia.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Tested-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240916133320.368620-1-thierry.reding@gmail.com
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/context.c b/drivers/gpu/host1x/context.c
index 955c971c528d..a6f6779662a3 100644
--- a/drivers/gpu/host1x/context.c
+++ b/drivers/gpu/host1x/context.c
@@ -58,6 +58,7 @@ int host1x_memory_context_list_init(struct host1x *host1x)
ctx->dev.parent = host1x->dev;
ctx->dev.release = host1x_memory_context_release;
+ ctx->dev.dma_parms = &ctx->dma_parms;
dma_set_max_seg_size(&ctx->dev, UINT_MAX);
err = device_add(&ctx->dev);