powercap/rapl: lower warning level for domain detection
PATCH 1/1 powercap/rapl: lower warning level for domain detection
Many CPUs do not support complete set of RAPL domains, as a result this detection failed message is very misleading and annoying. So lower the warning message to info and reword.
--- drivers/powercap/intel_rapl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/powercap/intel_rapl.c +1 -1
@@ -1169,7 +1169,7 @@ static int rapl_detect_domains(struct rapl_package *rp, int cpu)if (!rapl_check_domain (cpu, i)) rp->domain_map |=1 << i;else -pr_warn ("RAPL domain %s detection failed\n" , +pr_info ("RAPL domain %s not supported\n" , rapl_domain_names[i]); } rp->nr_domains =bitmap_weight (&rp->domain_map,RAPL_DOMAIN_MAX );
Signature · 1 line
2.0.0.5.gbce14aa
Quoted 5 lines · Jacob Pan
Many CPUs do not support complete set of RAPL domains, as a result this detection failed message is very misleading and annoying. So lower the warning message to info and reword.
Signed-off-by Jacob Pan <[email protected]>
What about printing a (info-level) message if the RAPL domain *is* supported? That surely is more interesting?
Quoted 18 lines
--- drivers/powercap/intel_rapl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/powercap/intel_rapl.c +1
-1@@ -1169,7 +1169,7 @@ static int rapl_detect_domains(struct rapl_package *rp, int cpu)if (!rapl_check_domain (cpu, i)) rp->domain_map |=1 << i;else -pr_warn ("RAPL domain %s detection failed\n" , +pr_info ("RAPL domain %s not supported\n" , rapl_domain_names[i]); } rp->nr_domains =bitmap_weight (&rp->domain_map,RAPL_DOMAIN_MAX );
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Quoted 8 lines · On Tue, 02 Sep 2014 01:48:40 +0200 "Rafael J. Wysocki" <[email protected]>…
Quoted 3 lines · Jacob Pan
Many CPUs do not support complete set of RAPL domains, as a result this detection failed message is very misleading and annoying. So loweab Pan <[email protected]>
What about printing a (info-level) message if the RAPL domain *is* supported? That surely is more interesting?
yes, that is better. just sent out an updated patch with a different
Subject: [PATCH] powercap/rapl: change domain detection message
Thanks,
Jacob
Quoted 4 lines
Quoted 4 lines
--- drivers/powercap/intel_rapl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 17 lines
Quoted 13 lines
(quoted diff) +0
-0
b/drivers/powercap/intel_rapl.cindex b1cda6f..0b282e7 100644drivers/powercap/intel_rapl.c +1
-1@@ -1169,7 +1169,7 @@ static int rapl_detect_domains(struct rapl_package *rp, int cpu) if (!rapl_check_domain(cpu, i)) rp->domain_map |= 1 << i; else - pr_warn("RAPL domain %s detection failed\n", + pr_info("RAPL domain %s not supported\n", rapl_domain_names[i]); }Quoted 3 lines
rp->nr_domains= bitmap_weight(&rp->domain_map,RAPL_DOMAIN_MAX);
[Jacob Pan]