Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4266821pxa; Mon, 10 Aug 2020 05:25:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR/9qwgt3zQSLAEep/u8ran4hh4H0fSSXC9sMnZ7J/IIV2Kfbr9pxrrXKo5+cKDKipxOyd X-Received: by 2002:a50:d791:: with SMTP id w17mr5755476edi.373.1597062314329; Mon, 10 Aug 2020 05:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597062314; cv=none; d=google.com; s=arc-20160816; b=F/TgHJ0hETF+EGH7sUkB8XVxM9cMjF57iAgBW9hzewQymuc8GNEpDiRyMJ/RRvXFyH /GRGcsHkdZ8hG9K0hVpfpr6QMvadBadSikGCxcVVeHj9sq8vtNVngAMvpXvCdvKO1i+m tSWlaG8JT9XvrrY+ZGfa1dX3VfZ4O22Cw1eqlw3g1FJBb3i8g8zVqk048gArWuNAbBo0 Y5pu/Q7xGlIUozDm7TJoeIaTOBbXhVA81ZvumVIAhZyPYPqmnvC64RW/QGhY5Zyc3jXm jZnmCnT9vuzXYaHV3WUHBJqsS+DPZAS7hRDn+zQ6ZO3oK7KRSK+qyK1dQSgDj4ASleJ9 MaPA== 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=Ox++40X1KagjURFOApequJaISkSCj8Pje9in4wVLzaOxUSJASedlPPQvx1C4lANAba uPjYxHfJXwPfk0dmIlLUc+/5dckEyZkd+r6kzowdotaonUaabi5a/yc3a0owzKvOfyMR A86m3iQtClIKa7/3327FOs8TcZQypiym3FxFPVfB+h/lvb0yBzUji8mbWhjEZmp/Z/m8 ExU3SSRsq4pVROgwKOboMkfJKnk9hquCheCfl4iuBHXTdxMq2sZHFoi79s5pba0DEMaO BGywRD+gjCa2cJnMzKdoFxI5SUTbEpqE+SzokP3yhXj3+NF6y71HWr255qAP5dB8HVj0 LClw== 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 b2si6422571ejk.222.2020.08.10.05.24.51; Mon, 10 Aug 2020 05:25:14 -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 S1726723AbgHJMWa (ORCPT + 99 others); Mon, 10 Aug 2020 08:22:30 -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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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, -- 2.20.1