From patchwork Mon Aug 10 12:22:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Tucker X-Patchwork-Id: 247583 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp4812093ilo; Mon, 10 Aug 2020 05:22:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTvQlNEuIjx4U49x1RWk7sk6HbmZBqeP6fC2oO86Mdf50pzzcWYr37qMwTh/B838/PgT27 X-Received: by 2002:a05:6402:d07:: with SMTP id eb7mr21863558edb.160.1597062149847; Mon, 10 Aug 2020 05:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597062149; cv=none; d=google.com; s=arc-20160816; b=yJbV6Mv2DCvgQNg6UMhxQGZo6JPs+28N9EJ6RaJKMZBSCROVpkptW9QvQIfp0RdYx7 x+XQS4jrvuJMDoI0YX8nN/c8Hb/vqrgxR7ISvxC9WNW5rVbVz/4BbLbYsH07o3xw4oPm 2EkQFJoZFRTpIzelzkZyNmAuhAI8Bbz/k8ZtIfYnUKGcl32XHpIz7YDyC5CuJWSuVPAq VpAO45OtZRq8egZ5rrPhC78RbsxFGEac76e03j8PvaxnLSIe65/mVDwc9iJZmGKonEQl u5hTMUxFa2mB/6Rj5qfoqvWmvF9awhBAtMBG+7HP/rj6xWO+PabrQ9v+Y9Car1sHdpx3 24zw== 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=ZyAtGM/AaBsmea5S4HBaq1NlLj8prvp+z2siA969wIk=; b=EgefiWkqZp0bHM8Q8Hs9Oot3E8vwRaqrMU62X0NOZqeHn31I5CpFpttONiSzHY6k5u rRXU0FRcGR2a8NlUBmKiv0qb+QnFPgkMuulRftPG4Ne/47GjCShTJuFxZx4UzmWZw3J/ gBnXB7hYdCtWMurIS9bxAzAJo1hK4aJBbpo9Q2VWC2E2dlsINTmFi0MngdSJ1TljGoc3 ToHLUgtPyYtpLKW3YeAPS+RkYsEY1G+mUkornl67rED1joPo9Of4antWqPhrWb3Dh744 petnUlfceXeic49xNgE/w2pcN5PPDix5jT2QZwy/7mLnr/GUMW6qIDklNUzCcjJIpd2L GfJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 j11si10424690edq.584.2020.08.10.05.22.29; Mon, 10 Aug 2020 05:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S1726691AbgHJMW3 (ORCPT + 4 others); Mon, 10 Aug 2020 08:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbgHJMW1 (ORCPT ); Mon, 10 Aug 2020 08:22:27 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E220C061786; Mon, 10 Aug 2020 05:22:27 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id 215E5293504 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 v2 1/4] ARM: exynos: clear L310_AUX_CTRL_NS_LOCKDOWN in default l2c_aux_val Date: Mon, 10 Aug 2020 13:22:05 +0100 Message-Id: <267a81e550a0b5d479c82b5908e2a2caa4c9c874.1597061474.git.guillaume.tucker@collabora.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The L310_AUX_CTRL_NS_LOCKDOWN flag is set during the L2C enable sequence. There is no need to set it in the default register value, this was done before support for it was implemented in the code. It is not set in the hardware initial value either. Clean this up by removing this flag from the default l2c_aux_val, and add it to the l2c_aux_mask to print an alert message if it was already set before the kernel initialisation. Signed-off-by: Guillaume Tucker --- Notes: v2: fix flag name L310_AUX_CTRL_NS_LOCKDOWN arch/arm/mach-exynos/exynos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 36c37444485a..a96f3353a0c1 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 = 0x3c400000, - .l2c_aux_mask = 0xc20fffff, + .l2c_aux_val = 0x38400000, + .l2c_aux_mask = 0xc60fffff, .smp = smp_ops(exynos_smp_ops), .map_io = exynos_init_io, .init_early = exynos_firmware_init, From patchwork Mon Aug 10 12:22:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Tucker X-Patchwork-Id: 247585 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp4812243ilo; Mon, 10 Aug 2020 05:22:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC03g+cLMc4rRXus47o4c7KM4uZynGFtGQjOC3x440e9Ml6kcNq1Pp7sNrX8wSzO81kSAo X-Received: by 2002:a17:906:aed4:: with SMTP id me20mr22225681ejb.141.1597062159882; Mon, 10 Aug 2020 05:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597062159; cv=none; d=google.com; s=arc-20160816; b=UpTpk5FmO4gIClP+SNyhMaHrxvLjSdcYYATvgKkXf+C2bpqjSxeif8FSjvHuLnT6ds WvWoaPrtgczbt0jLYk1I/j+fdbwQPm59Lsb68SrXCZH9uxBHQ19ElWaeP0t6V2b3Qlh2 Y93EMZs1tZQ3c6knOGG0jSHUkVT4WLRRURuHOxb7lQYyCmRq00cP1WVErz2jdaPFowOw PLFN3K/iEf1u0kLhD4aHasPFvmDGXywfF0VZZHHKImTJCcI0qagmkmqW2HYWsnrEhfyR VScYnEZ5l2gbX9IHNiTQi5zAGyjZ/MzwvpnwwKOONnsK/jUcdOQNZ7C34aVjqzh9uHCA HzyA== 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=fAdSfzG7uN6HaaXIR2r+Lu8Bn00p1frkARkXnJX1jiU=; b=sSDQc/NUn9NyuqBHcEDt7yPOGOLsSM32tfNgZhgCEo+z8y8jE6vLIK77WjiLOsqyU8 sttDvg2m8ArtkJGVaWQFx8txdik22hhmJqr1DoUJTGPF53b0ynXV5l9/TG4UGHUUexfc IHqj23suttGlfvSGEqJq8QcVw/X2eCwsDBxWWDP4jThM8Z4jSZCGO2fmjHNIV7BCmSjq yu+AgEdhHxsrP7nTQ3g+tdAWsXORyc6lJaWdiJ/E0GxLxRwquB7/40aAOuShL7I4XTTk syy7cDq1LKSars5kltY1Ynvr74DGdsVX/W+vtx7jkMdGMeZHw2hvAp3caEZSptSKWsZn SgSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 k24si8956818eds.441.2020.08.10.05.22.39; Mon, 10 Aug 2020 05:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S1726632AbgHJMW0 (ORCPT + 4 others); Mon, 10 Aug 2020 08:22:26 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45656 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbgHJMW0 (ORCPT ); Mon, 10 Aug 2020 08:22:26 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id 72289293506 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 v2 2/4] ARM: l2c: fix prefetch bits init in L2X0_AUX_CTRL using DT values Date: Mon, 10 Aug 2020 13:22:06 +0100 Message-Id: <76f2f3ad5e77e356e0a5b99ceee1e774a2842c25.1597061474.git.guillaume.tucker@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <267a81e550a0b5d479c82b5908e2a2caa4c9c874.1597061474.git.guillaume.tucker@collabora.com> References: <267a81e550a0b5d479c82b5908e2a2caa4c9c874.1597061474.git.guillaume.tucker@collabora.com> MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The L310_PREFETCH_CTRL register bits 28 and 29 to enable data and instruction prefetch respectively can also be accessed via the L2X0_AUX_CTRL register. They appear to be actually wired together in hardware between the registers. Changing them in the prefetch register only will get undone when restoring the aux control register later on. For this reason, set these bits in both registers during initialisation according to the devicetree property values. Fixes: ec3bd0e68a67 ("ARM: 8391/1: l2c: add options to overwrite prefetching behavior") Signed-off-by: Guillaume Tucker --- Notes: v2: tweak commit message to show this is a fix arch/arm/mm/cache-l2x0.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- 2.20.1 diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index 12c26eb88afb..43d91bfd2360 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c @@ -1249,20 +1249,28 @@ static void __init l2c310_of_parse(const struct device_node *np, ret = of_property_read_u32(np, "prefetch-data", &val); if (ret == 0) { - if (val) + if (val) { prefetch |= L310_PREFETCH_CTRL_DATA_PREFETCH; - else + *aux_val |= L310_PREFETCH_CTRL_DATA_PREFETCH; + } else { prefetch &= ~L310_PREFETCH_CTRL_DATA_PREFETCH; + *aux_val &= ~L310_PREFETCH_CTRL_DATA_PREFETCH; + } + *aux_mask &= ~L310_PREFETCH_CTRL_DATA_PREFETCH; } else if (ret != -EINVAL) { pr_err("L2C-310 OF prefetch-data property value is missing\n"); } ret = of_property_read_u32(np, "prefetch-instr", &val); if (ret == 0) { - if (val) + if (val) { prefetch |= L310_PREFETCH_CTRL_INSTR_PREFETCH; - else + *aux_val |= L310_PREFETCH_CTRL_INSTR_PREFETCH; + } else { prefetch &= ~L310_PREFETCH_CTRL_INSTR_PREFETCH; + *aux_val &= ~L310_PREFETCH_CTRL_INSTR_PREFETCH; + } + *aux_mask &= ~L310_PREFETCH_CTRL_INSTR_PREFETCH; } else if (ret != -EINVAL) { pr_err("L2C-310 OF prefetch-instr property value is missing\n"); } From patchwork Mon Aug 10 12:22:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Tucker X-Patchwork-Id: 247584 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp4812183ilo; Mon, 10 Aug 2020 05:22:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwojo1QKDlfa5kBfTYPBulZX94sxUjH9bVG29fgili3rIhG5NUOW/QzJCwjdMg4rPynwS5f X-Received: by 2002:a17:906:f1da:: with SMTP id gx26mr21611723ejb.129.1597062155938; Mon, 10 Aug 2020 05:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597062155; cv=none; d=google.com; s=arc-20160816; b=EcR517b7eKbP22sZ113OxuVgxWEZ/znrbjRiADGiSt0xY1CmF+cbLeO5k0OntW19Ll zqO2OyCFVTBRQAPZ88igH45vc4NDLWkLCvzCVV+5rKl4T9wrJLvgHzZkXNntCJq6rnIf l9z33w2ztYOVP6gqnp9loWVWuZpUypcRlXRLTzr5EjXFbTu70jiGtSLZI0cBNu9AJErr a9JKuyY9mTpu905te0MsXpOyl/E2x3ldqwSl5E2P4f8IKZ6fo7VHMeC/gbpp5qxJJx8S oDWWprAmbQM6Nqfzs335EjvnRFhm5ADaiJeW1rA/0nWKufVNBvakrb9yeN06jJtWHP4W cQAQ== 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=olTCRNAOLL8/DWuA3TvVTks1ebIYVmwubNiFx6UsCqo=; b=pj0ud0fQWY4qzoP6NYHRHRanAkauaWNhYMSIHq4e/e2L7npUBIM8r4BNlx3PyY7X9a JM5DLYGsT4zgMKDXc2p64LkyxFo6aUNxZ5q5VcH6upYy9GwHxEwFz8iN1Ao9TaQKgde6 r+98QWofDdw4+8BL9Jp3oZXSfb1pPNE+BkuHDPkCDusHWsAcnaDctLTmoWhMo/x0Lm5j cHooqrtjEhbJHIaNY4cl90abUixmyMAQRJTSy/jVyVj5S8ObBwzBcxBD0ydBOXp+ektR 8YzJ8eUvzjq2QAUeuqoNF0yus/l/iE+g1OTDTX2LuXLNK3nZS6aYBKOq4D3+CG6C4ol/ K3lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 j11si10424690edq.584.2020.08.10.05.22.35; Mon, 10 Aug 2020 05:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S1726685AbgHJMW2 (ORCPT + 4 others); Mon, 10 Aug 2020 08:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbgHJMW1 (ORCPT ); Mon, 10 Aug 2020 08:22:27 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F06FBC061756; Mon, 10 Aug 2020 05:22:26 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id C26AD293510 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 v2 3/4] ARM: dts: exynos: add prefetch properties for L2C-310 cache Date: Mon, 10 Aug 2020 13:22:07 +0100 Message-Id: <30cb8edca2185241471ee1318b05288900652521.1597061474.git.guillaume.tucker@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <267a81e550a0b5d479c82b5908e2a2caa4c9c874.1597061474.git.guillaume.tucker@collabora.com> References: <267a81e550a0b5d479c82b5908e2a2caa4c9c874.1597061474.git.guillaume.tucker@collabora.com> MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add the devicetree properties to enable instruction and data prefetch on exynos4210 and exynos4412 which use the L2C-310 cache. No other Exynos chip appears to be using this L2 cache hardware. This follows the default bits being set in the l2c_aux_val register for the Exynos platform, which can now be cleared as a result. Signed-off-by: Guillaume Tucker --- Notes: v2: split patch to include devicetree changes only arch/arm/boot/dts/exynos4210.dtsi | 2 ++ arch/arm/boot/dts/exynos4412.dtsi | 2 ++ 2 files changed, 4 insertions(+) -- 2.20.1 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>; From patchwork Mon Aug 10 12:22:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Tucker X-Patchwork-Id: 247582 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp4812042ilo; Mon, 10 Aug 2020 05:22:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRcJH7MvGjFQpRaaPX7yUVm9L0g/ZrtM7JV0zLSTHlMz7/8WNMgKtQGizRzvo0vGa2o7zC X-Received: by 2002:a17:907:94ca:: with SMTP id dn10mr21084831ejc.110.1597062146810; Mon, 10 Aug 2020 05:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597062146; cv=none; d=google.com; s=arc-20160816; b=A5HW6lniJUov+R5lHjkJFpCoyruH/tEz0V9qxiv3nM5bNCcznNXSSEm5L/rZo0ViI9 AlC+54YdKjwJxqR18GYRqM5qXuH2vyEUPN7ImhxzJAYzmoKXdrLKj20+8Ncm+SoJ3BBM 6SlkuAF+Xp+R2SO0SvxPOXgOfIUcDJFzxss5M9+FvNLH1sW2cH8ONszqlsQt5rdRC276 r2fb7Wv/w6AS9KVfWfrpajv7xwAFTfiOSvDLXIeZcXU4o3rcgwj5fl7NbM0awcMV0IX1 Jo/y9z1KwNVqH4i3m5TNj0/j/b/CSkZOrq+Yr+i8Wx/kWv8BFwPwJiaPlT+yplTAgtGY ceRw== 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=mn5aigzq4mvgvWv5HRcsByPh1zfxrVxF0GioxLh/dQE=; b=KK7ooHi311ZPmNpLBC4ZRn5XRXlYlziKMXYGUotlcKWXgu2ICN2b1gBDWmGo/bdceL 0hTWrGkHoMCtWtu+x+yqH4GA3MvR+wVuIX1wNZj6LEaMkzhI2A+hla14P5Tn2pe1JvvB JOrShxKyR2BGYYZm6593fROv8cTGeF7WJH232SJhjelF6bn9dMdYlH7QIsuMTChaCpA+ v0mKJ4xS2wUt0Plp4N12iCi8HUVih5Lf+M9Xrjk5ePfMzTjIChUTXOwDRKepWqxsN1JK OnNrfz5rQJrvI8QOK4zm1CH3TU8Fn36oor6l/bkk0738aXuKsYG8Xj3rHljWVz+w5xgf De7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 a23si10235233edx.271.2020.08.10.05.22.26; Mon, 10 Aug 2020 05:22:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S1726450AbgHJMW0 (ORCPT + 4 others); Mon, 10 Aug 2020 08:22:26 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45672 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbgHJMWZ (ORCPT ); Mon, 10 Aug 2020 08:22:25 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id 19CC2293517 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 v2 4/4] ARM: exynos: clear prefetch bits in default l2c_aux_val Date: Mon, 10 Aug 2020 13:22:08 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: <267a81e550a0b5d479c82b5908e2a2caa4c9c874.1597061474.git.guillaume.tucker@collabora.com> References: <267a81e550a0b5d479c82b5908e2a2caa4c9c874.1597061474.git.guillaume.tucker@collabora.com> MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Clear the L310_AUX_CTRL_DATA_PREFETCH and L310_AUX_CTRL_INSTR_PREFETCH bits in the l2c_aux_val defaults for Exynos since they can now be set using the standard l2c2x0 devicetree bindings. Signed-off-by: Guillaume Tucker --- Notes: v2: split patch to only clear exynos platform register bits arch/arm/mach-exynos/exynos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.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,