From patchwork Tue Oct 31 22:23:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10035457 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 601F6602B9 for ; Tue, 31 Oct 2017 22:24:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49B58283D9 for ; Tue, 31 Oct 2017 22:24:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C47B285B5; Tue, 31 Oct 2017 22:24:32 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, 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 BD725283D9 for ; Tue, 31 Oct 2017 22:24:31 +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:References: In-Reply-To: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:List-Owner; bh=XEGDMo4n69OxZhYxP2+Qh2Ntndj2ri7UgrgHnrJ52+U=; b=E4KhIOucW+OK1wwUZXwXMHyHtK w6aVChgpTvuKa7HHvy/KvrLBILHZ+uB/96T5wNV43blHaWfUUBcjnWpyuvGmKDBycrf989pzThJAS waQju2Ojj0HJW4d15MAnxH8xg6zkP1IzcrqqT7eGQoDLUuTE5JuG6D6iOUb/U75xCM0IWl5W2Kg3I NqSsgo0XsbgN7hT0d9EZK16GPDhjlyhDFmDlCpa4S+oRPuBtGUddewNPPJB/iDzOsDcQyIOh7IX3J kGQ6pUooRmGK6LMcJy3+aXZTnzYuMQi2G7OUD1f0G9gkbVIn29h0nLIVhHhEPwjmL4trab3X+P9Rq Va3nkvXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e9exL-0003Vw-JI; Tue, 31 Oct 2017 22:24:23 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e9ewk-00034w-Fv; Tue, 31 Oct 2017 22:23:48 +0000 Received: by mail-wm0-x244.google.com with SMTP id y83so1682558wmc.4; Tue, 31 Oct 2017 15:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=i4ebnm/SzC7zzJImazJg3aaw64c9pjz0HbxE88L7kng=; b=hYC8e8rYaVjbR3S4e9LrHueFhk0AmnC+lXC8QE7Gl4QUVfgbfRoH6AFRPdZe63iYt0 1NavhgJVG/wDO53Dh/AygUYRg2pAnyaFIJhkyBhugaUwwhYg4hCKqde35RA97gxEmyUc uix6N9R+hIELDv11BsIGE0h/JzuN7BE28MUCubbPo+2NaNyqIjuAsDObJLewtBeZFroN oojNfgpztmay0b0lNr5dEAml1Nz86mk6KRLtla2pd7IDf9dNi1upCxsgOaK363ugNgEp Oskb6lQTcf9r7UNdYr9+3tNAX9hA6JJlChZjjhYsvypabfyGIV2HVmVaBo4d79HydOmb YlzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=i4ebnm/SzC7zzJImazJg3aaw64c9pjz0HbxE88L7kng=; b=PR5Xskw3l/SATBhYkCQhS4hx3KfBCGFAFDdNezxjUy7P+gOR3DW88yqbkZ5e+Dbebd 18oigmkRiLxrrFynbk+a3awFtXX5FOv5mHuQ1jplbiPX8AGFflWECzhPfqvRhLkZ7TbD 8LxUjT9B/g3CrIGxA39u+a0beJdnuMmQ+mpGFaHpyOU0DE0g5ZsK2vJSUJMzO/M8ZtA5 Xvaa1MtSmQRgSrKqK8X6VCcxjH3vbZKltUZV3xeCHDdnTEjVwLi7moZwkimV5fJw10pz Z8+BGWhRtcyoEAHEXm5Ah4EDuIM2vbZAwVXQ3lqzrDbC6vrpFOQWT1iiupuTI5XkCQlx WKjA== X-Gm-Message-State: AMCzsaX+HgosdCb+LmL1Wj8FBT5F6wjtVNcFr5D0D8n1n1gXH/diMvXH Hgnvv66MmMjMJtgUSGqv9fixRsQQ X-Google-Smtp-Source: ABhQp+QBeJwOdal7fi2Enao+dxkMZJ7ZhR5hp6FBXgo6qYoFhzE2QyLib9+DBo4y8u5rowa1BuFu0g== X-Received: by 10.28.92.208 with SMTP id q199mr2806227wmb.96.1509488603831; Tue, 31 Oct 2017 15:23:23 -0700 (PDT) Received: from blackbox.darklights.net (p5DE3887A.dip0.t-ipconnect.de. [93.227.136.122]) by smtp.googlemail.com with ESMTPSA id h5sm930437wrb.89.2017.10.31.15.23.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 15:23:23 -0700 (PDT) From: Martin Blumenstingl To: khilman@baylibre.com, carlo@caione.org, linux-amlogic@lists.infradead.org Subject: [PATCH 2/2] ARM: dts: meson8: add more L2 cache settings Date: Tue, 31 Oct 2017 23:23:16 +0100 Message-Id: <20171031222316.24548-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171031222316.24548-1-martin.blumenstingl@googlemail.com> References: <20171031222316.24548-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171031_152346_790338_CF3ACF0A X-CRM114-Status: UNSURE ( 8.89 ) 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: Martin Blumenstingl , 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 Amlogic's vendor kernel prints these PL310 L2 cache controller settings during boot: 8 ways, 4096 sets, CACHE_ID 0x4100a0c9, Cache size: 1048576 B AUX_CTRL 0x7ec80001, PERFETCH_CTRL 0x71000007, POWER_CTRL 0x00000000 TAG_LATENCY 0x00000111, DATA_LATENCY 0x00000222 Add the "prefetch-data", "prefetch-instr" and "arm,shared-override" properties to get the same L2 cache controller configuration as the vendor kernel. Two differences still remain: - L310_AUX_CTRL_NS_INT_CTRL is currently not supported by the cache-l2x0 driver - bit 23 is set by the vendor kernel, but this is defined in cache-l2x0.h Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index bedcbebc2433..264f2b80e2af 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -313,6 +313,9 @@ arm,data-latency = <3 3 3>; arm,tag-latency = <2 2 2>; arm,filter-ranges = <0x100000 0xc0000000>; + prefetch-data = <1>; + prefetch-instr = <1>; + arm,shared-override; }; &pwm_ab {