mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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 <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3425552 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d756afd6a7
commit
55bd49a633
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user