]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
media: atomisp: Drop dev_dbg() calls from hmm_[alloc|free]()
authorHans de Goede <hdegoede@redhat.com>
Mon, 2 Sep 2024 09:52:28 +0000 (11:52 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 6 Sep 2024 09:56:54 +0000 (11:56 +0200)
Debug logging every alloc + free just polutes the debug logs without
adding much value, remove the alloc + free dev_dbg() calls.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20240902095229.59059-2-hdegoede@redhat.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/hmm/hmm.c

index 3e2899ad85174f690b1b7b8ac796b2d89eb65f6f..e8c5d728fd55becf126fce63f2e24fde944cf6c6 100644 (file)
@@ -204,9 +204,6 @@ static ia_css_ptr __hmm_alloc(size_t bytes, enum hmm_bo_type type,
                goto bind_err;
        }
 
-       dev_dbg(atomisp_dev, "pages: 0x%08x (%zu bytes), type: %d, vmalloc %p\n",
-               bo->start, bytes, type, vmalloc_noprof);
-
        return bo->start;
 
 bind_err:
@@ -231,8 +228,6 @@ void hmm_free(ia_css_ptr virt)
 {
        struct hmm_buffer_object *bo;
 
-       dev_dbg(atomisp_dev, "%s: free 0x%08x\n", __func__, virt);
-
        if (WARN_ON(virt == mmgr_EXCEPTION))
                return;