lkml.org 
[lkml]   [2019]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Bug] v5.3-rc3: arm: omap5: omapdss: omap_fbdev_init fails with lpae config and reports dma_mask error
From
Date
Hi Christoph,

> Am 08.08.2019 um 09:24 schrieb Christoph Hellwig <hch@lst.de>:
>
> Hi Nikolaus,
>
> please try the patch below:
>
> diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c
> index 561c4812545b..2c8abf07e617 100644
> --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c
> +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c
> @@ -232,6 +232,8 @@ void omap_fbdev_init(struct drm_device *dev)
> if (!priv->num_pipes)
> return;
>
> + dma_coerce_mask_and_coherent(dev->dev, DMA_BIT_MASK(32));
> +
> fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL);
> if (!fbdev)
> goto fail;

Yes, it fixes the issue!

BR and thanks,
Nikolaus
\
 
 \ /
  Last update: 2019-08-08 11:58    [W:0.170 / U:1.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site