* [PATCH] mips: fix cacheinfo
@ 2019-07-16 7:36 Vladimir Kondratiev
2019-07-17 15:58 ` Paul Burton
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Kondratiev @ 2019-07-16 7:36 UTC (permalink / raw)
To: Ralf Baechle, Paul Burton, James Hogan
Cc: linux-mips, linux-kernel, Vladimir Kondratiev
Because CONFIG_OF defined for MIPS, cacheinfo attempts to fill information
from DT, ignoring data filled by architecture routine. This leads to error
reported
cacheinfo: Unable to detect cache hierarchy for CPU 0
Way to fix this provided in
commit fac51482577d ("drivers: base: cacheinfo: fix x86 with
CONFIG_OF enabled")
Utilize same mechanism to report that cacheinfo set by architecture
specific function
Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev@linux.intel.com>
---
arch/mips/kernel/cacheinfo.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/kernel/cacheinfo.c b/arch/mips/kernel/cacheinfo.c
index e0dd66881da6..f777e44653d5 100644
--- a/arch/mips/kernel/cacheinfo.c
+++ b/arch/mips/kernel/cacheinfo.c
@@ -69,6 +69,8 @@ static int __populate_cache_leaves(unsigned int cpu)
if (c->tcache.waysize)
populate_cache(tcache, this_leaf, 3, CACHE_TYPE_UNIFIED);
+ this_cpu_ci->cpu_map_populated = true;
+
return 0;
}
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mips: fix cacheinfo
2019-07-16 7:36 [PATCH] mips: fix cacheinfo Vladimir Kondratiev
@ 2019-07-17 15:58 ` Paul Burton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Burton @ 2019-07-17 15:58 UTC (permalink / raw)
To: Vladimir Kondratiev
Cc: Ralf Baechle, Paul Burton, James Hogan, linux-mips, linux-kernel,
Vladimir Kondratiev, linux-mips
Hello,
Vladimir Kondratiev wrote:
> Because CONFIG_OF defined for MIPS, cacheinfo attempts to fill information
> from DT, ignoring data filled by architecture routine. This leads to error
> reported
>
> cacheinfo: Unable to detect cache hierarchy for CPU 0
>
> Way to fix this provided in
> commit fac51482577d ("drivers: base: cacheinfo: fix x86 with
> CONFIG_OF enabled")
>
> Utilize same mechanism to report that cacheinfo set by architecture
> specific function
>
> Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev@linux.intel.com>
Applied to mips-fixes.
Thanks,
Paul
[ This message was auto-generated; if you believe anything is incorrect
then please email paul.burton@mips.com to report it. ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-17 15:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-16 7:36 [PATCH] mips: fix cacheinfo Vladimir Kondratiev
2019-07-17 15:58 ` Paul Burton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®