From: Florian Fainelli Date: Fri, 5 Aug 2022 23:07:36 +0000 (-0700) Subject: arch_topology: Silence early cacheinfo errors when non-existent X-Git-Tag: v6.6.17~6639^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b03e79300100bcd36e77c8ce94ee7f47cd2f528;p=platform%2Fkernel%2Flinux-rpi.git arch_topology: Silence early cacheinfo errors when non-existent Architectures which do not have cacheinfo such as ARM 32-bit would spit out the following during boot: Early cacheinfo failed, ret = -2 Treat -ENOENT specifically to silence this error since it means that the platform does not support reporting its cache information. Fixes: 3fcbf1c77d08 ("arch_topology: Fix cache attributes detection in the CPU hotplug path") Tested-by: Geert Uytterhoeven Tested-by: Michael Walle Reviewed-by: Sudeep Holla Reviewed-by: Conor Dooley Signed-off-by: Florian Fainelli Link: https://lore.kernel.org/r/20220805230736.1562801-1-f.fainelli@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 0424b59..eaa1b8d 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -735,7 +735,7 @@ void update_siblings_masks(unsigned int cpuid) int cpu, ret; ret = detect_cache_attributes(cpuid); - if (ret) + if (ret && ret != -ENOENT) pr_info("Early cacheinfo failed, ret = %d\n", ret); /* update core and thread sibling masks */