From f158bc369fc3350e070d3c06a75a0fc56f8e7dfe Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Mon, 8 May 2023 11:36:43 +0800 Subject: [PATCH] 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 --- drivers/gpu/drm/verisilicon/vs_gem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/verisilicon/vs_gem.c b/drivers/gpu/drm/verisilicon/vs_gem.c index 310bd31bc..026622b0b 100644 --- a/drivers/gpu/drm/verisilicon/vs_gem.c +++ b/drivers/gpu/drm/verisilicon/vs_gem.c @@ -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;