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:
2023-05-08 11:36:43 +08:00
committed by Hangfan Li
parent 8b46a2314b
commit cb381faa1e

View File

@@ -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;