From patchwork Thu Dec 10 14:14:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58210 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp518811lbb; Thu, 10 Dec 2015 06:16:08 -0800 (PST) X-Received: by 10.98.64.209 with SMTP id f78mr7156226pfd.74.1449756967879; Thu, 10 Dec 2015 06:16:07 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id uv10si20623825pac.62.2015.12.10.06.16.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Dec 2015 06:16:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a71zq-0001D4-NZ; Thu, 10 Dec 2015 14:15:02 +0000 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a71zf-00014B-Qr for linux-arm-kernel@lists.infradead.org; Thu, 10 Dec 2015 14:14:53 +0000 Received: by lfed137 with SMTP id d137so6972842lfe.3 for ; Thu, 10 Dec 2015 06:14:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=SzTL6BhXg6cJNMhGKZzhOOX5D71aCa5Pau5QZuhH+34=; b=XKbBw9tKYKXPzNEJNgXWfc3jFY2YQbc++BnHdRsbkydxQX79pqDSEttgSNb6lTk+PK G6njGa6kTmcZ+GXybao0UWIXQKZO5zUZZPIEHaFltswshjXeeBFUulqEaGO64o0+t0Y+ n9gxZFLcE14fxv0tdlqdVplIEyGM3FspHk/WjfZLvPKAO/Nwy9upAah2lhgBE62rsXvX 9w3FnJio1rVxynhucKkK+u/L+7Cvj/e2pme9buWQhGCcegg1lp06yy5LG8gJiMEyPvF/ 66mNbfnHpIsm0BNw/Hs0zrR75dCprHYwTbSkotYUgGmmjPJSQNKEkH35JSJvWarl+42R fgtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SzTL6BhXg6cJNMhGKZzhOOX5D71aCa5Pau5QZuhH+34=; b=lUtgQ6ZHh2JeuFtfU4g6dM8Uqe412sb+Ecml83NlnXsc3opxwP8q90qt1vN5+pH5p3 9RplEEyLntE+v2jAfD4cPpQqrUVSdibMsXj0FAeR3okfSGWLiaQONfYv10G0Gt5v2Oi+ rfP2nGfhN3xZ5M7hx1AehKsXKYLck/xOJ8Ng19uDGHbJHAOgIF2Co2nDEadXZNFiUuB1 3qBTdasO77ewODtw9gcEuL+1a4RhRfroJvTWzZK3OvDx0kzuF57Di7lx2RtjiUtWPH9p RELJoiT6k1XkVDeAEUfBcpIqwmYVKWoGzb5BEe8XXjRn4n7FOR2uQ6WXUeD65T7r3fJH sDDg== X-Gm-Message-State: ALoCoQmnMgCyNq5ixJUNGCKj2Wy5m7cPyEBef03pHQzzFp2A9x3NkuxT0FU6c1EpTr6om51qc7wkyRrwwEqchar16XM5d7ONVA== X-Received: by 10.25.4.208 with SMTP id 199mr5276108lfe.96.1449756869798; Thu, 10 Dec 2015 06:14:29 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id pd9sm2327191lbc.48.2015.12.10.06.14.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Dec 2015 06:14:29 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: realview: set up cache correctly on the PB11MPCore Date: Thu, 10 Dec 2015 15:14:26 +0100 Message-Id: <1449756866-19520-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151210_061452_261440_FDF04C4B X-CRM114-Status: GOOD ( 13.08 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:233 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , Russell King , Arnd Bergmann MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The L2 cache comes up in a "safe mode" on the PB11MPCore, as it has several issues. This sets it up properly with the right size and associativity, also requiring the outer sync to be disabled for the machine to boot properly. Cc: Russell King Cc: Arnd Bergmann Signed-off-by: Linus Walleij --- arch/arm/boot/dts/arm-realview-pb11mp.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.4.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/boot/dts/arm-realview-pb11mp.dts b/arch/arm/boot/dts/arm-realview-pb11mp.dts index 28bd5aea285f..3d9b1b0f4ffc 100644 --- a/arch/arm/boot/dts/arm-realview-pb11mp.dts +++ b/arch/arm/boot/dts/arm-realview-pb11mp.dts @@ -99,6 +99,19 @@ <0 31 IRQ_TYPE_LEVEL_HIGH>; cache-unified; cache-level = <2>; + /* + * Override default cache size, sets and + * associativity as these may be erroneously set + * up by boot loader(s), probably for safety + * since th outer sync operation can cause the + * cache to hang unless disabled. + */ + cache-size = <1048576>; // 1MB + cache-sets = <4096>; + cache-line-size = <32>; + arm,shared-override; + arm,parity-enable; + arm,outer-sync-disable; }; scu@1f000000 {