From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 164E2C43334 for ; Mon, 4 Jul 2022 09:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LURPv8fuMujpMxDW4In1fxy/0ybB/hQV4u7zG7sNSuo=; b=zxVEplO0jtaoX9 TjbVI/vHx7WCFZscmhL67jaUi2GI0fozWUneCi5+fuv/0rEkn6yMPtMV490H9RrwRvTXcqT+wTp4B aHSvxSxj40wKhZxRWBbnzNRiX9Jl+/eXX1D9rJ278g+KXhoCwD2v4jA8DBcImXyX7OM75l5eegaYD SjDa9yT5R7IXR6FaY8kwSQWJaiz0uVCXopGLCOOJp4f9a49WKQ2zDvSfmolfrRTohXD2fvDRuv07G AoqPEY1kGI+QV91ELzwqSSiqAheYeQQdgqf1yO5/3BpG+XfRXiwa8oJXwXaJHHtsLdThG2Wg7aim4 tU6pI7rpaChrchQ/GiPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8ILG-006RYc-1m; Mon, 04 Jul 2022 09:26:06 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8ILB-006RVq-HM; Mon, 04 Jul 2022 09:26:04 +0000 Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2FFE26601604; Mon, 4 Jul 2022 10:25:59 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656926759; bh=8zvFYnOz1U946jUFE3WZkMYumMLtWeLYdXvCp8c/6z0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=chx49ZsnQDfd3zIx2uLPIhsslgwIKDzl3zWFNA51ciV4gsF183X2vUUSUnSzl2KXx 92TDvvf+ASzxjWYcH/E+it48Evlop6RdanCAe/W+7V9XeRK2HNnkZGv3KoKIwcfKXP KIPLzbXgBWR7O6xFDdMJnmSnR7yE6MhKXZj9U2o1A/E1VWnN+D2P+A0OeU4u6jUkvR ouZwqRVIXq+Ju0nA610/aYEDB1hkdZe9bl2mNoUEcjOpWZPqFIiTX/xRhuEI5hYYLE c0fBPtGzUEUTjOd1ni25IQrIv7VdE2z7eIeTUHjeeNVi1BLtvHSH2U3W3uJ0Sls777 kSr1BR2eotMdQ== Message-ID: <73c6b04f-f98a-1dee-ff82-ec43a4fce155@collabora.com> Date: Mon, 4 Jul 2022 11:25:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2 1/1] remoteproc: mediatek: enable cache for mt8186 SCP Content-Language: en-US To: Allen-KH Cheng , Bjorn Andersson , Mathieu Poirier , Rob Herring , Matthias Brugger Cc: Project_Global_Chrome_Upstream_Group@mediatek.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-remoteproc@vger.kernel.org, Hsin-Yi Wang References: <20220701121229.22756-1-allen-kh.cheng@mediatek.com> <20220701121229.22756-2-allen-kh.cheng@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220701121229.22756-2-allen-kh.cheng@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220704_022601_746592_B7629E72 X-CRM114-Status: GOOD ( 12.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Il 01/07/22 14:12, Allen-KH Cheng ha scritto: > This patch is for enableing cache in SCP. There is not enough space > on the SRAM of SCP. We need to run programs in DRAM. The DRAM power > and latency is much larger than SRAM, so cache is used to mitigate > the negative effects for performance. we set SCP registers for cache > size before loading SCP FW. (8KB+8KB) and also adjust ipi_buf_offset > in SRAM from 0x7bdb0 to 0x3BDB0 for enableing cache. > > This patch was tested on MediaTek mt8186. > > Signed-off-by: Allen-KH Cheng Reviewed-by: AngeloGioacchino Del Regno _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel