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:
Jprimero15
2022-01-10 01:43:13 +00:00
committed by DhineshCool
parent 0ed71324c2
commit 8be5094e18
3 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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);
}