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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 334EEEB64DD for ; Thu, 3 Aug 2023 05:43:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E66BC868EE; Thu, 3 Aug 2023 07:43:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 3979E8686A; Thu, 3 Aug 2023 07:43:52 +0200 (CEST) Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by phobos.denx.de (Postfix) with ESMTP id E2FEF867EA for ; Thu, 3 Aug 2023 07:43:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=minda.chen@starfivetech.com Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id EF39624E264; Thu, 3 Aug 2023 13:43:45 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 3 Aug 2023 13:43:45 +0800 Received: from [192.168.50.8] (172.16.6.8) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 3 Aug 2023 13:43:37 +0800 Message-ID: Date: Thu, 3 Aug 2023 13:43:22 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v1 3/4] riscv: starfive: Add SYS_CACHE_SHIFT_6 to enable SYS_CACHE_LINE_SIZE Content-Language: en-US To: Bin Meng CC: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Rick Chen , Leo , Torsten Duwe , , Mason Huo References: <20230803032210.77371-1-minda.chen@starfivetech.com> <20230803032210.77371-4-minda.chen@starfivetech.com> From: Minda Chen In-Reply-To: Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [172.16.6.8] X-ClientProxiedBy: EXCAS081.cuchost.com (172.16.6.41) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 2023/8/3 12:49, Bin Meng wrote: > On Thu, Aug 3, 2023 at 11:22=E2=80=AFAM Minda Chen wrote: >> >> Some devices need SYS_CACHE_LINE_SIZE macro. Add StarFive >> SYS_CACHE_SHIFT_6 to enable it. >> >> Signed-off-by: Minda Chen >> --- >> arch/riscv/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig >> index 867cbcbe74..15da2a8559 100644 >> --- a/arch/riscv/Kconfig >> +++ b/arch/riscv/Kconfig >> @@ -26,6 +26,7 @@ config TARGET_SIFIVE_UNMATCHED >> >> config TARGET_STARFIVE_VISIONFIVE2 >> bool "Support StarFive VisionFive2 Board" >> + select SYS_CACHE_SHIFT_6 >> >> config TARGET_TH1520_LPI4A >> bool "Support Sipeed's TH1520 Lichee PI 4A Board" >=20 > This needs to go into arch/riscv/cpu/jh7110/Kconfig::STARFIVE_JH7110 >=20 > Regards, > Bin ok, thanks