Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp311686ybf; Thu, 27 Feb 2020 21:53:25 -0800 (PST) X-Google-Smtp-Source: APXvYqymLDaTMejj17crJX1/D+ZldFl05U7jW0sD/gPxV3p/BGWpDSBoJydMlv4Aml5hds/k/AH7 X-Received: by 2002:a05:6830:2159:: with SMTP id r25mr1971764otd.352.1582869205692; Thu, 27 Feb 2020 21:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582869205; cv=none; d=google.com; s=arc-20160816; b=qzrKZv542T2q2prd3QmOjfFOR4jXW+PpsAkqK41DRHWeMjzvd0O6jZjDCrOCLpZU98 QZ4IE2MlfFpxPaPJYlJm6PXJ8wQYDBK9iOVR4IMwVurHDA/BUIOLTGz3mXjIYs/QWJgA EASA2lvdUzoq5TkSCy5TEj6jZTcMdKPJq3b0JKl12C7Zc2pxO+mDqunsQxn3jSh+8j1M RvayfEkJFv1IC1V5IQlBPQMroQGUCVPq7BdNBwvgMLfit0BWpFH/w7h+FXvsSzzsGsS3 oLgLXJ47q95p0jnp2wze7/GFQ66zP9W7KmL57dkwnVqdYJe1qiCagqwZBh71If0h3tfu yAiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+QIKrXI2EP+e5zlKSKvCRe3psWGMv8gF1+vy21DYYOw=; b=V0JOLNnt3oqQrSgLSQf19iRJ3D0IDKfimq+IQ5FBUsdo0RJrmYeEnr9uSPtiTF+pUr SCvfgdAMkhDdxcMY8WrzfEALFymj720ofP0skOHTEp8AyecVxBSs4iDM1WYOoS+Fxo/Q EEdB9Spcwf1ka5SaIr5GN/ylKpErHlShBlMw4eBrDpL5dEjnmnbVIJDhdczFvG/AfhvP ET8zDhZjUSxPHsKHOEDr53Lr/o8yBtUqY/f4MmrwmoVrdJZ6TTv+nroDdX+ZCKDtgz3C tzOSSjG32XlMt6WU/mebhH/s8kOabHBuIBYT+pdOPVKLDQt3aIA9EuNtEYFbqAF/u3WJ ltqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h128si1171556oif.258.2020.02.27.21.53.14; Thu, 27 Feb 2020 21:53:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726440AbgB1Fwm (ORCPT + 99 others); Fri, 28 Feb 2020 00:52:42 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:46623 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgB1Fwm (ORCPT ); Fri, 28 Feb 2020 00:52:42 -0500 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j7YZk-0000f2-S8; Fri, 28 Feb 2020 06:52:40 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1j7YZj-0002uh-Vf; Fri, 28 Feb 2020 06:52:39 +0100 From: Oleksij Rempel To: Thomas Bogendoerfer , Ralf Baechle , Paul Burton Cc: Oleksij Rempel , Pengutronix Kernel Team , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v1] MIPS: reduce print level for cache information Date: Fri, 28 Feb 2020 06:52:38 +0100 Message-Id: <20200228055238.11140-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Default printk log level is KERN_WARNING. This makes automatic log parsing problematic, since we get false positive alarms on not critical information. Set all not critical cache related information to KERN_INFO, the same level as used on most kernel drivers. Signed-off-by: Oleksij Rempel --- arch/mips/mm/c-octeon.c | 18 +++++++++--------- arch/mips/mm/c-r3k.c | 4 ++-- arch/mips/mm/c-r4k.c | 20 ++++++++++---------- arch/mips/mm/c-tx39.c | 4 ++-- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/arch/mips/mm/c-octeon.c b/arch/mips/mm/c-octeon.c index 8064821e9805..4baf965e6fe8 100644 --- a/arch/mips/mm/c-octeon.c +++ b/arch/mips/mm/c-octeon.c @@ -237,17 +237,17 @@ static void probe_octeon(void) c->dcache.sets = dcache_size / (c->dcache.linesz * c->dcache.ways); if (smp_processor_id() == 0) { - pr_notice("Primary instruction cache %ldkB, %s, %d way, " - "%d sets, linesize %d bytes.\n", - icache_size >> 10, - cpu_has_vtag_icache ? + pr_info("Primary instruction cache %ldkB, %s, %d way, " + "%d sets, linesize %d bytes.\n", + icache_size >> 10, + cpu_has_vtag_icache ? "virtually tagged" : "physically tagged", - c->icache.ways, c->icache.sets, c->icache.linesz); + c->icache.ways, c->icache.sets, c->icache.linesz); - pr_notice("Primary data cache %ldkB, %d-way, %d sets, " - "linesize %d bytes.\n", - dcache_size >> 10, c->dcache.ways, - c->dcache.sets, c->dcache.linesz); + pr_info("Primary data cache %ldkB, %d-way, %d sets, " + "linesize %d bytes.\n", + dcache_size >> 10, c->dcache.ways, + c->dcache.sets, c->dcache.linesz); } } diff --git a/arch/mips/mm/c-r3k.c b/arch/mips/mm/c-r3k.c index 15bb8cf59828..780dd2a567c1 100644 --- a/arch/mips/mm/c-r3k.c +++ b/arch/mips/mm/c-r3k.c @@ -316,9 +316,9 @@ void r3k_cache_init(void) _dma_cache_wback = r3k_dma_cache_wback_inv; _dma_cache_inv = r3k_dma_cache_wback_inv; - printk("Primary instruction cache %ldkB, linesize %ld bytes.\n", + pr_info("Primary instruction cache %ldkB, linesize %ld bytes.\n", icache_size >> 10, icache_lsize); - printk("Primary data cache %ldkB, linesize %ld bytes.\n", + pr_info("Primary data cache %ldkB, linesize %ld bytes.\n", dcache_size >> 10, dcache_lsize); build_clear_page(); diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 5f3d0103b95d..3472f6deaf92 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c @@ -1467,17 +1467,17 @@ static void probe_pcache(void) c->icache.ways = 1; } - printk("Primary instruction cache %ldkB, %s, %s, linesize %d bytes.\n", - icache_size >> 10, - c->icache.flags & MIPS_CACHE_VTAG ? "VIVT" : "VIPT", - way_string[c->icache.ways], c->icache.linesz); - - printk("Primary data cache %ldkB, %s, %s, %s, linesize %d bytes\n", - dcache_size >> 10, way_string[c->dcache.ways], - (c->dcache.flags & MIPS_CACHE_PINDEX) ? "PIPT" : "VIPT", - (c->dcache.flags & MIPS_CACHE_ALIASES) ? + pr_info("Primary instruction cache %ldkB, %s, %s, linesize %d bytes.\n", + icache_size >> 10, + c->icache.flags & MIPS_CACHE_VTAG ? "VIVT" : "VIPT", + way_string[c->icache.ways], c->icache.linesz); + + pr_info("Primary data cache %ldkB, %s, %s, %s, linesize %d bytes\n", + dcache_size >> 10, way_string[c->dcache.ways], + (c->dcache.flags & MIPS_CACHE_PINDEX) ? "PIPT" : "VIPT", + (c->dcache.flags & MIPS_CACHE_ALIASES) ? "cache aliases" : "no aliases", - c->dcache.linesz); + c->dcache.linesz); } static void probe_vcache(void) diff --git a/arch/mips/mm/c-tx39.c b/arch/mips/mm/c-tx39.c index 686867270627..2d479cc7e66b 100644 --- a/arch/mips/mm/c-tx39.c +++ b/arch/mips/mm/c-tx39.c @@ -410,9 +410,9 @@ void tx39_cache_init(void) current_cpu_data.icache.waybit = 0; current_cpu_data.dcache.waybit = 0; - printk("Primary instruction cache %ldkB, linesize %d bytes\n", + pr_info("Primary instruction cache %ldkB, linesize %d bytes\n", icache_size >> 10, current_cpu_data.icache.linesz); - printk("Primary data cache %ldkB, linesize %d bytes\n", + pr_info("Primary data cache %ldkB, linesize %d bytes\n", dcache_size >> 10, current_cpu_data.dcache.linesz); build_clear_page(); -- 2.25.0