From patchwork Tue Jan 9 17:25:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thor Thayer X-Patchwork-Id: 10152935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 270E6602CA for ; Tue, 9 Jan 2018 17:23:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0BB5C205A8 for ; Tue, 9 Jan 2018 17:23:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0073F274D0; Tue, 9 Jan 2018 17:23:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 88FCA205A8 for ; Tue, 9 Jan 2018 17:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=yeP6kTYJY6bdcLYhKmgLhHcgYf1c8OScRc4Md7Mfgzo=; b=m7s cVr2hZXrxW6B7XRA1JSbjgX+t4Z8MOpB1yrYIM/V1bWWspWPpZMZni1N6eA8b86UmbBxSSBpIJucw KbLQqv/yWcrtrgCL6t22C+HBmHhYR5YQuMVr/StViXOE71NWm7VWFBQrl4ZpRdKZSgDfBt3KvdKrh D8Xcs26K5gUX9kOLR1X25WSl52CvDNWLtliC8Ocr9KLCgJJoJCUZgYRUfrmHH6d+mM4uNZIfobboY pmoQiCzPKFgpB2D6YOvR33DXpn8s9n/MZRsqUcous2fNV0IM2h2Wj+hEQ3U/sTWU+r5dbhDyGZL4F fhWdq80hs517t/wI1vzA3nxkYBzv9Ug==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eYxcU-0006BC-Eq; Tue, 09 Jan 2018 17:23:26 +0000 Received: from mga06.intel.com ([134.134.136.31]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYxcR-0006AR-3Z for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2018 17:23:24 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2018 09:23:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,336,1511856000"; d="scan'208";a="165411388" Received: from tthayer-hp-z620-workstation.an.intel.com ([10.122.105.144]) by orsmga004.jf.intel.com with ESMTP; 09 Jan 2018 09:23:11 -0800 From: thor.thayer@linux.intel.com To: dinguyen@kernel.org, linux@armlinux.org.uk, matthew.gerlach@linux.intel.com Subject: [PATCH] ARM: socfpga: Configure l2c_aux_val Date: Tue, 9 Jan 2018 11:25:35 -0600 Message-Id: <1515518735-10906-1-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180109_092323_189896_8ECD1963 X-CRM114-Status: UNSURE ( 8.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thor.thayer@linux.intel.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thor Thayer Depending on the execution path, the A10 boot ROM/U-Boot may or may not set some bits in the l2c aux ctrl register. Due to this abiguity, linux must explicitly set the register. This patch forces the configuration to match the full boot flow, which also matches the setting used in the 3.10-ltsi version of the kernel. Signed-off-by: Matthew Gerlach Signed-off-by: Thor Thayer --- arch/arm/mach-socfpga/socfpga.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index dde14f7bf2c3..37d28794f7d4 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -121,7 +121,10 @@ static const char *altera_a10_dt_match[] = { }; DT_MACHINE_START(SOCFPGA_A10, "Altera SOCFPGA Arria10") - .l2c_aux_val = 0, + .l2c_aux_val = L2C_AUX_CTRL_EVTMON_ENABLE | + L2C_AUX_CTRL_SHARED_OVERRIDE | + L310_AUX_CTRL_INSTR_PREFETCH | + L310_AUX_CTRL_DATA_PREFETCH, .l2c_aux_mask = ~0, .init_irq = socfpga_arria10_init_irq, .restart = socfpga_arria10_restart,