From patchwork Mon Aug 17 15:10:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 247791 Delivered-To: patch@linaro.org Received: by 2002:a54:3b12:0:0:0:0:0 with SMTP id j18csp2435635ect; Mon, 17 Aug 2020 08:22:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe6EgqT2QLDO0MZh5UkgDXgKUkfsi11b5Za2n7DQB7azJpCebNbahBOK6LqcIjPLHQKJ2i X-Received: by 2002:a17:906:8149:: with SMTP id z9mr15572838ejw.356.1597677725623; Mon, 17 Aug 2020 08:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597677725; cv=none; d=google.com; s=arc-20160816; b=Yw24Rp72M9Fvjc4xP19BgTTAxK4BDlSeuacoliuJb/jB+FBsSeUV+2dO6kFaHetb4Y LEqzuhWQg7VDBFBRTHBckAr/RAUHRTNvak/J4t3jdx04XiB9cx4GWOTO4CxdQZgllMkG GgizEOm5Z837fZ4IhU+Q9GcuOYAPWU40X5KB2TEt4MxsS3UzX5eP3Ugv0OtjDn1P2kbm N+xwijPynYAZIxgy0bHvc/Qcg+oorFeoHewqXQicpLrYJKgE1wc+pEuK+cjq1ALoLXa+ //mdzk1q0JcA7iNmMFSbkcSEd5PDmle+ND0RfRVKB2KxeJGDTTF4PIaKpS74bgBa0clQ +iAQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YHfxuUMis9eElGWDQdsnspq8YiR0wZV9i8ttJ420p9A=; b=K+HrSwl/Fi5vKpNPhMjBsO7CkVNWyiULJKtrzaV/gHkJBjG8Q2+dw9UwNoJa4LToWT wLTKo6Q3y0Vn9KoslvX72K4PotsSTLVkCVkxu+VG3GrdC3maX/yDUv2NKePL0kbswgOp Oce3FDan0RC57YEsjPfr95h4N/ZNJW0UU7PpowKM/aeBP2CCCSn+LohY2q+tLIx/NhqV GGWPCHHZw1tgAqJZTZB0CfvDMVJcLESrEw/sMsqXnH4qvXft0pJdOVrA+q/Q78Hz1f7C 5ltvqRxl5tFKwzJ0C6m2K8BaajIz1Fvmouu75O28wIUeILT5bIY6bB3zB+d7O0g9rAZa xC7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hK8BlBQ2; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm22si11234497ejb.735.2020.08.17.08.22.05; Mon, 17 Aug 2020 08:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hK8BlBQ2; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729404AbgHQPV7 (ORCPT + 15 others); Mon, 17 Aug 2020 11:21:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:44668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729397AbgHQPVv (ORCPT ); Mon, 17 Aug 2020 11:21:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F1B920885; Mon, 17 Aug 2020 15:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597677710; bh=AILpoJFYFqqiQwh8J5OFU9tSJgZo+/G+qh3xcX/ibdE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hK8BlBQ22jgqlNMMAnjDu7x0hyjFm47nXE7xpdjTYIfvt/l4XxamYlZ5znBV1j0o4 c22HlctllyJSRFv4YybWMHx3ySaBgv9uxR6pq7gdksxM3tv4jgu3geJU8Q/gelezhl 168JdU/RTucMCXwcr6tb2iKYyETkihm08MCMIZEQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "kernelci.org bot" , Guillaume Tucker , Krzysztof Kozlowski , Sasha Levin Subject: [PATCH 5.8 080/464] ARM: exynos: clear L310_AUX_CTRL_FULL_LINE_ZERO in default l2c_aux_val Date: Mon, 17 Aug 2020 17:10:33 +0200 Message-Id: <20200817143837.613372049@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Guillaume Tucker [ Upstream commit 5b17a04addc29201dc142c8d2c077eb7745d2e35 ] This "alert" error message can be seen on exynos4412-odroidx2: L2C: platform modifies aux control register: 0x02070000 -> 0x3e470001 L2C: platform provided aux values permit register corruption. Followed by this plain error message: L2C-310: enabling full line of zeros but not enabled in Cortex-A9 To fix it, don't set the L310_AUX_CTRL_FULL_LINE_ZERO flag (bit 0) in the default value of l2c_aux_val. It may instead be enabled when applicable by the logic in l2c310_enable() if the attribute "arm,full-line-zero-disable" was set in the device tree. The initial commit that introduced this default value was in v2.6.38 commit 1cf0eb799759 ("ARM: S5PV310: Add L2 cache init function in cpu.c"). However, the code to set the L310_AUX_CTRL_FULL_LINE_ZERO flag and manage that feature was added much later and the default value was not updated then. So this seems to have been a subtle oversight especially since enabling it only in the cache and not in the A9 core doesn't actually prevent the platform from running. According to the TRM, the opposite would be a real issue, if the feature was enabled in the A9 core but not in the cache controller. Reported-by: "kernelci.org bot" Signed-off-by: Guillaume Tucker Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sasha Levin --- arch/arm/mach-exynos/exynos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 7a8d1555db404..36c37444485a8 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -193,7 +193,7 @@ static void __init exynos_dt_fixup(void) } DT_MACHINE_START(EXYNOS_DT, "Samsung Exynos (Flattened Device Tree)") - .l2c_aux_val = 0x3c400001, + .l2c_aux_val = 0x3c400000, .l2c_aux_mask = 0xc20fffff, .smp = smp_ops(exynos_smp_ops), .map_io = exynos_init_io,