From patchwork Fri Nov 1 13:42:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 3124801 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 45EBEBEEB2 for ; Fri, 1 Nov 2013 13:43:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 433B62049E for ; Fri, 1 Nov 2013 13:43:35 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7604F204A2 for ; Fri, 1 Nov 2013 13:43:30 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VcF0Y-0001VC-L9; Fri, 01 Nov 2013 13:43:26 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VcF0W-00083f-8e; Fri, 01 Nov 2013 13:43:24 +0000 Received: from mail-ee0-f54.google.com ([74.125.83.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VcF0T-00082H-MG for linux-arm-kernel@lists.infradead.org; Fri, 01 Nov 2013 13:43:22 +0000 Received: by mail-ee0-f54.google.com with SMTP id c50so1355580eek.13 for ; Fri, 01 Nov 2013 06:42:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :content-type; bh=x4OcTdRkvibAn5OPeO/zvvWmvgbN8BEwbIkoV0yWYA4=; b=WyCV/WJ1VVkH2moKs6yPFWOigOaD0ChbM9TUvzyCpQQuiAPBSIjfxBq2TakVAhf+De 6cJ+SNUfAnYLc8krU1dqEcMsBbkuiogyoyjuzfPrv6wILACv0l8smAjLfzaN9kstkWbC +s+wTBL3j7vntjJQ7O5xb3zLSLPy81oTFMpvIBaVWGxa3lUug2qQowGfKfCzoOnveUVR AeLWzyxxFzYP9PoS06qoFvZxAGl8dV7Et7scKyzJp9rYotshiffGqc+oJ3AOpJb0LEhE hk2yAdVpY/L2VCFnVVUeoG2QgwHnPobHA0dUQVOjVV+BmH9iG/Ydor2Um0siqnny1bTt 8Y/A== X-Gm-Message-State: ALoCoQk52DyG0nPKJdRPQcMAOFu09BqgarluMliDT4KjNKh1UWxxy0iisdPTdb5N8oggdyJAznQS X-Received: by 10.14.122.132 with SMTP id t4mr3412000eeh.20.1383313376591; Fri, 01 Nov 2013 06:42:56 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id m54sm7967600eex.2.2013.11.01.06.42.54 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 01 Nov 2013 06:42:55 -0700 (PDT) From: Michal Simek To: Russell King Subject: [PATCH v2] ARM: mm: Fix ECC mem policy printk Date: Fri, 1 Nov 2013 14:42:40 +0100 Message-Id: X-Mailer: git-send-email 1.8.2.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131101_094321_834932_F875468E X-CRM114-Status: GOOD ( 17.22 ) X-Spam-Score: -1.9 (-) Cc: monstr@monstr.eu, Nicolas Pitre , Will Deacon , linux-kernel@vger.kernel.org, Vitaly Andrianov , Cyril Chemparathy , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ECC policy can be applied to the whole system when this bit is implemented by SoC vendor (IMP - bit 9 - in L1 page table entry format). When this bit is not implemented by SoC vendor it doesn't mean that system has no other way how to do ECC. This patch ensures to show this message only when ECC is requested via cmd line ecc=on and runs on appropriate ARM core. Signed-off-by: Michal Simek --- Changes in v2: - Show message all the time but show ECC enabled just for cases where IMP bit is used. --- arch/arm/mm/mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.8.2.3 diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index b1d17ee..324fc85 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -556,8 +556,8 @@ static void __init build_mem_type_table(void) mem_types[MT_CACHECLEAN].prot_sect |= PMD_SECT_WB; break; } - printk("Memory policy: ECC %sabled, Data cache %s\n", - ecc_mask ? "en" : "dis", cp->policy); + pr_info("Memory policy: %sData cache %s\n", + ecc_mask ? "ECC enabled, " : "", cp->policy); for (i = 0; i < ARRAY_SIZE(mem_types); i++) { struct mem_type *t = &mem_types[i];