From 55bd49a6338e35fd422e8e86af486f978cbd384b Mon Sep 17 00:00:00 2001 From: Ketan Patil Date: Thu, 7 Aug 2025 07:05:44 +0000 Subject: [PATCH] video: tegra: nvmap: Reduce log level to avoid spews OpenRM maps the buffer with remap_pfn_range and then it's user VA is passed to libnvrm_mem to create a handle out of it. NvMap uses get_user_pages to get user pages from the VA. It fails for the buffer mapped with remap_pfn_range. Then it fallbacks to follow_pfn or follow_pfnmap_start functions to obtain pfn from the VA and then obtain page pointer from it. But as get_user_pages fails, the corresponding error prints are getting generated even when not required. Hence reduce the log level to debug to avoid these unnecessary spews. Bug 5383624 Change-Id: Idbd3cfe93ce3fac6e27efc5c3bb7a200fc183d26 Signed-off-by: Ketan Patil Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3425552 GVS: buildbot_gerritrpt Reviewed-by: Pritesh Raithatha --- drivers/video/tegra/nvmap/nvmap_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/tegra/nvmap/nvmap_alloc.c b/drivers/video/tegra/nvmap/nvmap_alloc.c index 8dde0a53..33f41b7c 100644 --- a/drivers/video/tegra/nvmap/nvmap_alloc.c +++ b/drivers/video/tegra/nvmap/nvmap_alloc.c @@ -470,7 +470,7 @@ int nvmap_get_user_pages(ulong vaddr, if (user_pages != nr_page) { ret = user_pages < 0 ? user_pages : -ENOMEM; - pr_err("get_user_pages requested/got: %zu/%ld]\n", nr_page, + pr_debug("get_user_pages requested/got: %zu/%ld]\n", nr_page, user_pages); while (--user_pages >= 0) put_page(pages[user_pages]);