mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
rknpu: gem: add error message print for dma map failure
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com> Change-Id: Ia44dd2ee0a55523aeb3a1d2692ee457b0c11049e
This commit is contained in:
@@ -53,6 +53,8 @@ static int rknpu_gem_get_pages(struct rknpu_gem_object *rknpu_obj)
|
||||
DMA_BIDIRECTIONAL);
|
||||
if (ret == 0) {
|
||||
ret = -EFAULT;
|
||||
LOG_DEV_ERROR(drm->dev, "%s: dma map %zu fail\n", __func__,
|
||||
rknpu_obj->base.size);
|
||||
goto free_sgt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user