aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmjad Ouled-Ameur <[email protected]>2024-02-19 15:39:15 +0530
committerLiviu Dudau <[email protected]>2024-05-10 11:26:24 +0100
commita918dcfecc36f87521eaf183812ec3496602f717 (patch)
tree5599c38613c73b8a655b04874ffd214e88a25315
parent71b03802fe3b6e45e7b53db9e9c908fec714297c (diff)
drm/arm/komeda: update DMA mask to 40 bits
Each layer in the DPU has a 40-bit base address register, which indicates start of frame buffer data for that layer. Komeda driver does not set its DMA mask, which makes it 32-bit by default which does not use the entire available possible supported by the DPU. Update the DMA mask to align with DPU Architecture v1.0 spec. Signed-off-by: Amjad Ouled-Ameur <[email protected]> Signed-off-by: Faiz Abbas <[email protected]> Signed-off-by: Liviu Dudau <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Acked-by: Liviu Dudau <[email protected]>
-rw-r--r--drivers/gpu/drm/arm/display/komeda/komeda_drv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
index ffdeec3b3f2e..55c3773befde 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
@@ -59,6 +59,10 @@ static int komeda_platform_probe(struct platform_device *pdev)
struct komeda_drv *mdrv;
int err;
+ err = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(40));
+ if (err)
+ return dev_err_probe(dev, err, "DMA mask error\n");
+
mdrv = devm_kzalloc(dev, sizeof(*mdrv), GFP_KERNEL);
if (!mdrv)
return -ENOMEM;