Commit e19718f6 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp: add debug message to help debugging hmm code

The hmm code is partially based on a fork from 3.10 code,
and has bugs.

Add debug there to help tracking what happens there.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 576680cd
...@@ -1015,6 +1015,11 @@ static int alloc_user_pages(struct hmm_buffer_object *bo, ...@@ -1015,6 +1015,11 @@ static int alloc_user_pages(struct hmm_buffer_object *bo,
bo->mem_type = HMM_BO_MEM_TYPE_USER; bo->mem_type = HMM_BO_MEM_TYPE_USER;
} }
dev_dbg(atomisp_dev, "%s: %d %s pages were allocated as 0x%08x\n",
__func__,
bo->pgnr,
bo->mem_type == HMM_BO_MEM_TYPE_USER ? "user" : "pfn", page_nr);
/* can be written by caller, not forced */ /* can be written by caller, not forced */
if (page_nr != bo->pgnr) { if (page_nr != bo->pgnr) {
dev_err(atomisp_dev, dev_err(atomisp_dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment