diff options
| author | Qiang Yu <[email protected]> | 2019-10-10 14:01:52 +0000 |
|---|---|---|
| committer | Qiang Yu <[email protected]> | 2019-10-17 15:42:02 +0000 |
| commit | e30b38b71294849c018322d85e90ec056438fe43 (patch) | |
| tree | 10851f0944299ac0d7b439788d0ad75b7803d3be /drivers/gpu/drm/lima/lima_device.c | |
| parent | drm/lima: use drm_gem_(un)lock_reservations (diff) | |
| download | kernel-e30b38b71294849c018322d85e90ec056438fe43.tar.gz kernel-e30b38b71294849c018322d85e90ec056438fe43.zip | |
drm/lima: add __GFP_NOWARN flag to all dma_alloc_wc
This prevent CMA printing dumy "PFNs busy" info which is
caused by alloc fail re-try case.
Reviewed-by: Vasily Khoruzhick <[email protected]>
Signed-off-by: Qiang Yu <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_device.c')
| -rw-r--r-- | drivers/gpu/drm/lima/lima_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/lima/lima_device.c b/drivers/gpu/drm/lima/lima_device.c index e3e0ca11382e..19829b543024 100644 --- a/drivers/gpu/drm/lima/lima_device.c +++ b/drivers/gpu/drm/lima/lima_device.c @@ -314,7 +314,7 @@ int lima_device_init(struct lima_device *ldev) ldev->va_end = LIMA_VA_RESERVE_START; ldev->dlbu_cpu = dma_alloc_wc( ldev->dev, LIMA_PAGE_SIZE, - &ldev->dlbu_dma, GFP_KERNEL); + &ldev->dlbu_dma, GFP_KERNEL | __GFP_NOWARN); if (!ldev->dlbu_cpu) { err = -ENOMEM; goto err_out2; |
