ODROID-M1: drm: Forced to apply DMA32 flag to alloc obj.

Signed-off-by: Luke go <sangch.go@gmail.com>
Change-Id: If213417269d7d6713ce2b3b1285256c7950e0d90
This commit is contained in:
Luke go
2023-10-04 12:01:05 +09:00
committed by Dongjin Kim
parent ff5c5075f8
commit f7473a5371

View File

@@ -624,8 +624,12 @@ rockchip_gem_alloc_object(struct drm_device *drm, unsigned int size,
gfp_t gfp_mask = GFP_HIGHUSER | __GFP_RECLAIMABLE;
#endif
#ifdef CONFIG_ARCH_ROCKCHIP_ODROID_COMMON
gfp_mask |= __GFP_DMA32;
#else
if (flags & ROCKCHIP_BO_DMA32)
gfp_mask |= __GFP_DMA32;
#endif
size = round_up(size, PAGE_SIZE);