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>
This commit is contained in:
Icenowy Zheng
2023-05-08 11:36:43 +08:00
committed by Han Gao
parent a396c98059
commit f158bc369f

View File

@@ -100,8 +100,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;