From patchwork Wed Apr 1 16:08:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Tucker X-Patchwork-Id: 11469273 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B3AB9912 for ; Wed, 1 Apr 2020 16:08:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 91B782071A for ; Wed, 1 Apr 2020 16:08:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VWdOSFp0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 91B782071A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XxOyILZZNSU4rdXcpZTcWZpVGVKD4olDZ2equFKLzB0=; b=VWdOSFp0NLQKG6 n/e3sCMw1G3dSmjgxwriAEmIVizM7JC3kCerzAqxHLeVl8T90xk9NHqEGvd5OXE+RHB+YyUo7MKlp +g6WHff2Lq1qoUWxZe6YN+Y3Pv+Rb5N+y4RfJ3APYwpDAIPB4KiTm97NHjBMOG+B2cpfITsNNMQp8 bxF3oUE+evHBSDzxHEVyD7/c/yCUDo/XJUXUv1JSvsEwKoKAqYDh6LVSG+LiM5oIKumQV4Vy7H4ek DH7R5NVG4Oah/777iQ0TK5fDp6wq0Px0VmFDg/U0n36zS1/hb3FXjJOad4ZSepyXCb5j9E3Ug922L LXRuVCkVa1LIkho3HFlw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jJfvB-0007AW-56; Wed, 01 Apr 2020 16:08:53 +0000 Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jJfv8-0006zE-Fz for linux-arm-kernel@lists.infradead.org; Wed, 01 Apr 2020 16:08:51 +0000 Received: from submarine.cbg.collabora.co.uk (unknown [IPv6:2a00:5f00:102:0:b4e9:caff:feac:d8b9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: gtucker) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 8BF942974E8; Wed, 1 Apr 2020 17:08:46 +0100 (BST) From: Guillaume Tucker To: Russell King , Kukjin Kim , Krzysztof Kozlowski Subject: [PATCH] ARM: exynos: update l2c_aux_mask to fix alert message Date: Wed, 1 Apr 2020 17:08:03 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200401_090850_674570_839BD983 X-CRM114-Status: GOOD ( 15.54 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, kernel@collabora.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Allow setting the number of cycles for RAM reads in the pl310 cache controller L2 auxiliary control register mask (bits 0-2) since it needs to be changed in software. This only affects exynos4210 and exynos4412 as they use the pl310 cache controller. With the mask used until now, the following warnings were generated, the 2nd one being a pr_alert(): L2C: platform modifies aux control register: 0x02070000 -> 0x3e470001 L2C: platform provided aux values permit register corruption. This latency cycles value has always been set in software in spite of the warnings. Keep it this way but clear the alert message about register corruption to acknowledge it is a valid thing to do. Tested on exynos4412-odroid-x2. Signed-off-by: Guillaume Tucker Reported-by: "kernelci.org bot" --- arch/arm/mach-exynos/exynos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 7a8d1555db40..ed1bba49210d 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -194,7 +194,7 @@ static void __init exynos_dt_fixup(void) DT_MACHINE_START(EXYNOS_DT, "Samsung Exynos (Flattened Device Tree)") .l2c_aux_val = 0x3c400001, - .l2c_aux_mask = 0xc20fffff, + .l2c_aux_mask = 0xc20ffff8, .smp = smp_ops(exynos_smp_ops), .map_io = exynos_init_io, .init_early = exynos_firmware_init,