drm: verisilicon: fix fbcon
Always map the GEM object, because it may expect different page attributes than the fixed map by kernel. Signed-off-by: Icenowy Zheng <uwu@icenowy.me> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
This commit is contained in:
@@ -101,8 +101,7 @@ static int vs_gem_alloc_buf(struct vs_gem_object *vs_obj)
|
||||
return 0;
|
||||
}
|
||||
|
||||
vs_obj->dma_attrs = DMA_ATTR_WRITE_COMBINE
|
||||
| DMA_ATTR_NO_KERNEL_MAPPING;
|
||||
vs_obj->dma_attrs = DMA_ATTR_WRITE_COMBINE;
|
||||
|
||||
if (!is_iommu_enabled(dev))
|
||||
vs_obj->dma_attrs |= DMA_ATTR_FORCE_CONTIGUOUS;
|
||||
|
||||
Reference in New Issue
Block a user