Skip to content

Commit

Permalink
drm: rcar-rvgc: set the lacking DMA mask
Browse files Browse the repository at this point in the history
The rcar-rvgc drm device lacks of coherent_dma_mask definition,
so this patch adds it.

Signed-off-by: Phong Hoang <[email protected]>
  • Loading branch information
h2phong committed Apr 16, 2021
1 parent fbed22e commit f495fad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/rcar-rvgc/rcar_rvgc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/slab.h>
#include <linux/wait.h>
#include <linux/kthread.h>
#include <linux/dma-mapping.h>

#include <drm/drm_device.h>
#include <drm/drm_atomic_helper.h>
Expand Down Expand Up @@ -243,6 +244,7 @@ static int rcar_rvgc_probe(struct rpmsg_device* rpdev) {
}

ddev->irq_enabled = 1;
ddev->dev->coherent_dma_mask = DMA_BIT_MASK(32);

/*
* Register the DRM device with the core and the connectors with
Expand Down

0 comments on commit f495fad

Please sign in to comment.