mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drm/rockchip: assign drm device dma_mask to mask(64) from mask(32)
dma framework use dma_mask to check device if dma_capable, so set dma_mask to mask(64) to compatible with platform that ddr capacity larger than 4GB or physical address space beyond 32 bit. Change-Id: I04cbe038402db6b48ef2b36a9494fc8eb8c98d6c Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
@@ -1327,7 +1327,10 @@ static int rockchip_drm_platform_probe(struct platform_device *pdev)
|
||||
rockchip_drm_match_remove(dev);
|
||||
return ret;
|
||||
}
|
||||
dev->coherent_dma_mask = DMA_BIT_MASK(64);
|
||||
|
||||
ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(64));
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user