From: Mauro Carvalho Chehab Date: Tue, 26 May 2020 08:11:14 +0000 (+0200) Subject: media: atomisp: add debug message to help debugging hmm code X-Git-Tag: v5.15~3350^2~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e19718f6dea0d8123d7fefc8449b519bb05dff47;p=platform%2Fkernel%2Flinux-starfive.git 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: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c index 6fce8c95be1d..b6dcd246d7af 100644 --- a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c +++ b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c @@ -1015,6 +1015,11 @@ static int alloc_user_pages(struct hmm_buffer_object *bo, 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 */ if (page_nr != bo->pgnr) { dev_err(atomisp_dev,