drm/rockchip: gem: fix reorder page

Fixes: 773a33a1cc ("drm/rockchip: gem: reorder pages if page chunk less than 8")
Change-Id: Ib3540e67d898d579179b86ec19e367d14478ac3d
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
Simon Xue 2021-06-28 16:55:12 +08:00 committed by Tao Huang
parent 93120310c3
commit f7033adf87

View File

@ -199,6 +199,8 @@ static int rockchip_gem_get_pages(struct rockchip_gem_object *rk_obj)
goto err_put_list;
}
rk_obj->pages = dst_pages;
/*
* Fake up the SG table so that dma_sync_sg_for_device() can be used
* to flush the pages associated with it.