msm: pil: Adding function name and buffer size information in logs
Add function name and buffer size in error messages during modem load and authentication.This will help to debug mba/modem loading issues in faster way. CRs-Fixed: 993625 Change-Id: I2c99df5de44a6fd924ce7f5921db0e1cf3ba5d11 Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
This commit is contained in:
parent
9b82a4c589
commit
2e77f1461a
1 changed files with 6 additions and 4 deletions
|
@ -582,7 +582,8 @@ int pil_mss_reset_load_mba(struct pil_desc *pil)
|
||||||
mba_dp_virt = dma_alloc_attrs(&md->mba_mem_dev, drv->mba_dp_size,
|
mba_dp_virt = dma_alloc_attrs(&md->mba_mem_dev, drv->mba_dp_size,
|
||||||
&mba_dp_phys, GFP_KERNEL, &md->attrs_dma);
|
&mba_dp_phys, GFP_KERNEL, &md->attrs_dma);
|
||||||
if (!mba_dp_virt) {
|
if (!mba_dp_virt) {
|
||||||
dev_err(pil->dev, "MBA metadata buffer allocation failed\n");
|
dev_err(pil->dev, "%s MBA metadata buffer allocation %zx bytes failed\n",
|
||||||
|
__func__, drv->mba_dp_size);
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto err_invalid_fw;
|
goto err_invalid_fw;
|
||||||
}
|
}
|
||||||
|
@ -595,8 +596,8 @@ int pil_mss_reset_load_mba(struct pil_desc *pil)
|
||||||
drv->mba_dp_virt = mba_dp_virt;
|
drv->mba_dp_virt = mba_dp_virt;
|
||||||
mba_dp_phys_end = mba_dp_phys + drv->mba_dp_size;
|
mba_dp_phys_end = mba_dp_phys + drv->mba_dp_size;
|
||||||
|
|
||||||
dev_info(pil->dev, "Loading MBA and DP (if present) from %pa to %pa\n",
|
dev_info(pil->dev, "Loading MBA and DP (if present) from %pa to %pa size %zx\n",
|
||||||
&mba_dp_phys, &mba_dp_phys_end);
|
&mba_dp_phys, &mba_dp_phys_end, drv->mba_dp_size);
|
||||||
|
|
||||||
/* Load the MBA image into memory */
|
/* Load the MBA image into memory */
|
||||||
count = fw->size;
|
count = fw->size;
|
||||||
|
@ -666,7 +667,8 @@ static int pil_msa_auth_modem_mdt(struct pil_desc *pil, const u8 *metadata,
|
||||||
mdata_virt = dma_alloc_attrs(&drv->mba_mem_dev, size, &mdata_phys,
|
mdata_virt = dma_alloc_attrs(&drv->mba_mem_dev, size, &mdata_phys,
|
||||||
GFP_KERNEL, &attrs);
|
GFP_KERNEL, &attrs);
|
||||||
if (!mdata_virt) {
|
if (!mdata_virt) {
|
||||||
dev_err(pil->dev, "MBA metadata buffer allocation failed\n");
|
dev_err(pil->dev, "%s MBA metadata buffer allocation %zx bytes failed\n",
|
||||||
|
__func__, size);
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue