Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1136856ybg; Wed, 29 Jul 2020 06:48:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydJuZnG4ECAOftw4nbB9RaTCOoTT73C6/xCxagIpQ95IURf/iZgccdYoA33J9M5wfHXX3W X-Received: by 2002:a17:906:26c7:: with SMTP id u7mr29384339ejc.13.1596030535500; Wed, 29 Jul 2020 06:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596030535; cv=none; d=google.com; s=arc-20160816; b=T+r4kK4SQm59Vw9OrbeUsapNYo2GaXruFF6V/ROs5TB6/EEVlwdj5/9r9nXjLqcSX8 vo5dxAcE63qmeyObQwfqiXDi7Kv9rkkZceXkBJ2bhDkB8v+7kBnuIz/DBlqa9SGkDHzm GgMcc4QxQ/Z04ddWZGf+5tpy92m4CscGQQkEXJr4GxklZDmR07zi9r8M+MPlPDT/LssL LcWmjqAbZhbzKGhukiImtvKafGJTy/YrWru6fj4b+FdM8ORAlrsOnS2njHKvXRq4McG1 32GVTV6brutx3IaNWxun+CW5cFX9kPgINTxwvUOWFonoxnJa1/FJO6Kv3N/dkZfgQhEY yNcg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hK7aHHsRVnpreGgd/6D7m6LrXDqm5u/TckoxkMsrFvU=; b=U0fQ9xJZaScSl9YLkUwHv/TILi+wC4MHQg1YFnHzXcbXLWRKxTOxzHOXJUYWxws9r+ ljAd6e04WYE+ZGz/+6prn9xLG8J9PQ6PfuIT/J7a1I17Oi9ld6RCGeVGMBGKOPNZsWyy GfbqZ9V666olSzrXd8bxm2IfjPwR9p3hDC34phxUCH65mInU7OYP2+wwDi8zZixd4GRd i0+KDUF2FVST3SPXqCmKHfKd7dOQw8L/UG4g0o0T6RUgU3oESBcg6wKorDt4ZhKyAiTf aKzFAYfCQBwtRuEiIfFiQvEqBarV6Rz1Vso4l1ib0n1luUN8xZBNtdMMRO38i7ewF67F Jq0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b17si1118840ejd.636.2020.07.29.06.48.33; Wed, 29 Jul 2020 06:48:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726899AbgG2Nr6 (ORCPT + 99 others); Wed, 29 Jul 2020 09:47:58 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39654 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbgG2Nrx (ORCPT ); Wed, 29 Jul 2020 09:47:53 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id 2111029818A From: Guillaume Tucker To: Russell King , Kukjin Kim , Krzysztof Kozlowski , Rob Herring Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: exynos: use DT prefetch attributes rather than l2c_aux_val Date: Wed, 29 Jul 2020 14:47:33 +0100 Message-Id: <5e41140ddb1afe42699715cca59c44fa2fa29e60.1596028601.git.guillaume.tucker@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <860eb8a1eed879e55daf960c96acdac514cbda93.1596028601.git.guillaume.tucker@collabora.com> References: <860eb8a1eed879e55daf960c96acdac514cbda93.1596028601.git.guillaume.tucker@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the standard l2c2x0 device tree bindings to enable data and instruction prefetch on exynos4210 and exynos4412 and clear the respective bits in the default l2c_aux_val. No other Exynos platform relying on this default register value appears to be using the l2x0 cache. Signed-off-by: Guillaume Tucker --- arch/arm/boot/dts/exynos4210.dtsi | 2 ++ arch/arm/boot/dts/exynos4412.dtsi | 2 ++ arch/arm/mach-exynos/exynos.c | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index b4466232f0c1..7e0d253b26ef 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -102,6 +102,8 @@ reg = <0x10502000 0x1000>; cache-unified; cache-level = <2>; + prefetch-data = <1>; + prefetch-instr = <1>; arm,tag-latency = <2 2 1>; arm,data-latency = <2 2 1>; }; diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi index 48868947373e..37efa247bf4d 100644 --- a/arch/arm/boot/dts/exynos4412.dtsi +++ b/arch/arm/boot/dts/exynos4412.dtsi @@ -218,6 +218,8 @@ reg = <0x10502000 0x1000>; cache-unified; cache-level = <2>; + prefetch-data = <1>; + prefetch-instr = <1>; arm,tag-latency = <2 2 1>; arm,data-latency = <3 2 1>; arm,double-linefill = <1>; diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index a96f3353a0c1..0e906cc3a48e 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -193,8 +193,8 @@ static void __init exynos_dt_fixup(void) } DT_MACHINE_START(EXYNOS_DT, "Samsung Exynos (Flattened Device Tree)") - .l2c_aux_val = 0x38400000, - .l2c_aux_mask = 0xc60fffff, + .l2c_aux_val = 0x08400000, + .l2c_aux_mask = 0xf60fffff, .smp = smp_ops(exynos_smp_ops), .map_io = exynos_init_io, .init_early = exynos_firmware_init, -- 2.20.1