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,