mirror of
https://github.com/Evolution-X-Devices/kernel_google_b1c1
synced 2026-01-27 17:26:47 +00:00
ion: cma: Silence logspam
* no matter what we do, i also did make cma size bigger. there will be always a time that Cmafree will go Zero and its not even harmful, so just shut it up Signed-off-by: Jprimero15 <jprimero155@gmail.com> Change-Id: I922feebb1939f21d31af2631fb207d1fff064792 Signed-off-by: TogoFire <togofire@mailfence.com> Signed-off-by: Dmitrii <bankersenator@gmail.com>
This commit is contained in:
@@ -103,7 +103,7 @@ static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer,
|
||||
DMA_ATTR_FORCE_COHERENT);
|
||||
|
||||
if (!info->cpu_addr) {
|
||||
dev_err(dev, "Fail to allocate buffer\n");
|
||||
dev_dbg(dev, "Fail to allocate buffer\n");
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
||||
@@ -484,7 +484,7 @@ retry:
|
||||
ret = ion_secure_cma_add_to_pool(sheap, len, false);
|
||||
if (ret) {
|
||||
mutex_unlock(&sheap->alloc_lock);
|
||||
dev_err(sheap->dev, "Fail to allocate buffer\n");
|
||||
dev_dbg(sheap->dev, "Fail to allocate buffer\n");
|
||||
goto err;
|
||||
}
|
||||
ret = ion_secure_cma_alloc_from_pool(sheap, &info->phys, len);
|
||||
|
||||
2
mm/cma.c
2
mm/cma.c
@@ -543,7 +543,7 @@ struct page *cma_alloc(struct cma *cma, size_t count, unsigned int align)
|
||||
trace_cma_alloc(pfn, page, count, align);
|
||||
|
||||
if (ret) {
|
||||
pr_info("%s: alloc failed, req-size: %zu pages, ret: %d\n",
|
||||
pr_debug("%s: alloc failed, req-size: %zu pages, ret: %d\n",
|
||||
__func__, count, ret);
|
||||
cma_debug_show_areas(cma);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user