lkml.org 
[lkml]   [2019]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 5/5] ARC: boot log: print unaligned memory access details
Date
This now prints both HW feature status (exists, enabled / disabled)
and SW status (used / not used).

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
---
arch/arc/kernel/setup.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c
index feb90093e6b1..e465cae3f661 100644
--- a/arch/arc/kernel/setup.c
+++ b/arch/arc/kernel/setup.c
@@ -270,10 +270,17 @@ static char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len)
#ifdef __ARC_UNALIGNED__
ua = 1;
#endif
- n += i = scnprintf(buf + n, len - n, "%s%s%s%s%s%s",
+ n += i = scnprintf(buf + n, len - n, "%s%s%s%s",
IS_AVAIL2(cpu->isa.atomic, "atomic ", CONFIG_ARC_HAS_LLSC),
- IS_AVAIL2(cpu->isa.ldd, "ll64 ", CONFIG_ARC_HAS_LL64),
- IS_AVAIL1(cpu->isa.unalign, "unalign "), IS_USED_RUN(ua));
+ IS_AVAIL2(cpu->isa.ldd, "ll64 ", CONFIG_ARC_HAS_LL64));
+
+ if (cpu->isa.unalign) {
+ i += scnprintf(buf + n, len - n, "unalign (%s, %s)",
+ IS_ENABLED(CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS) ?
+ "enabled" : "disabled",
+ ua ? "used" : "not used");
+ n += i;
+ }

if (i)
n += scnprintf(buf + n, len - n, "\n\t\t: ");
--
2.14.5
\
 
 \ /
  Last update: 2019-01-30 17:33    [W:0.074 / U:93.648 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site