Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp383902rdb; Thu, 30 Nov 2023 07:20:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzsFiEcemxP3QgmrrkuuLHJ+5diYSHJQJwuarj083DpjZ1VULMaKTR/Hg9mIGZGtvlE3WC X-Received: by 2002:a17:90a:b946:b0:285:a734:f0e with SMTP id f6-20020a17090ab94600b00285a7340f0emr15237193pjw.39.1701357627378; Thu, 30 Nov 2023 07:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701357627; cv=none; d=google.com; s=arc-20160816; b=vqn74x6scnjzOsiQ59JYJLqMHQ4C8SaJlJdGW2/ars79z8/KC8Sl+Cs4z3ayij+Hy1 OADHGotvdvq0EIxHUSdAFlLtGDKKVmgFhkY4GqXsPGI7a9Jb47eRvcylBrq/N+t49ZI+ f5jr5/zl+J4jdn4ehxpqkuJfbHQgodIRUs4+uOIyuMRhY7zEsINIzFgR1yAp6WgZQpqi BtKJxy4lhXTouBaD2bnjbts+ZBwotlVNRzTSA2nT7orUqe5d6RCtAUvN6skWCuYoqi+M MS1MHNzRvZvz8NLk70Ej4idYv7bpWSBt2HVv7Opbw/ZHYWSU0dpp8alZ/fQfGh8VbiWd 6n3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kJozCoiP+8SSmbIdgX+XEOLC3TmZqjTi2KwgKhtjA04=; fh=y2QfaQGyAVj/0HRFWq93pg9KBmlnzHv2whdObk4ruVQ=; b=DYmYQ8JSR8SK/lFBV7OgSNzQA7Hp7UWCh+dJ5tkjE67VQ3eFfSIhy3F4ldpwALqmpa UkkK+yGBdl1pumjH57FV/s4FAIgPR8ZCsN9FHdIU3FNmx5UMnnmm7X++m3ZBTdJCOijc z1mbkuXJRbI1tW+Me++ZOLnRkokjITMupiWsKZaADaefcyMe56Aw17FcJ+mZTzn6Va7b +oURGwulpcBRItWh0vGwf0TS9ZznZ9Prhlssx4Iro6pjHT9+uybw0JHoTm7tUM8LUpbe g5+TZFmAAK18MEZA40F5uHN8UgY0Sw8W3LdgxlF+kGLLNOt77IW4i4X2mmKiN7BbkAU8 RofA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=tg2AgNrs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id w7-20020a17090abc0700b00280cd49099asi3573010pjr.46.2023.11.30.07.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 07:20:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=tg2AgNrs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 21373802F22F; Thu, 30 Nov 2023 07:20:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346190AbjK3PTx (ORCPT + 99 others); Thu, 30 Nov 2023 10:19:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346234AbjK3PTu (ORCPT ); Thu, 30 Nov 2023 10:19:50 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12CDE10F1 for ; Thu, 30 Nov 2023 07:19:56 -0800 (PST) Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 3DC563F65A for ; Thu, 30 Nov 2023 15:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701357594; bh=kJozCoiP+8SSmbIdgX+XEOLC3TmZqjTi2KwgKhtjA04=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tg2AgNrsOtlLHpxEc7uRzLLKEozhkNr+M545R6prrCUcJx8c3vpsNNeOFrZU2MM7e Em362apU0Ijd9yi8c4MAIzoI2EcmkrdXOI8xqVWzPoLAzayBS/vVYn/xfw87cC7wGi UHufiBSfp8/SsPkQD7yNR3gGkDLM4hXGqU7BBFkxiOoIWfBs0EU/N2yNzjBFD8fDWM ihZVyI6zJ3V8MTAfivnGc5Pk8aRp/zUvIDoCRyJJedyFmJuE43rdO7HFQZ15uODTQU 0vuTNuU0RH1AflB0z76e59oZKoWJSvfe1sEBWJ1Wl6o2EaBIIsRH0Md7YmOUxPGV3Q 2Ix3jSw/pLOCA== Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3b895096897so1259452b6e.2 for ; Thu, 30 Nov 2023 07:19:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701357592; x=1701962392; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kJozCoiP+8SSmbIdgX+XEOLC3TmZqjTi2KwgKhtjA04=; b=u5YbZcWRx/2lwFoY+GOnvLfKKN02ewMYAdf3+2XH/S+nKLTAmEXVXMTswZcFC4Y+M4 i22kCv6qew/5L+kHUSLqXGEdpjUs40EOEVw8Qh1SmQYD2p9gRYa/ddpecgw2ShgK2A9u Hj9Yv5MWdrJjKuyUZAYVLWhpQEVGFoiaB/vgtSdZokbzNCJ/8Oh9ipkKTRBLyUCaTU7z FamzVRyQTrIpJAMY6tSd6qv1Vtdgzub9+xEfLuIkcAdcH2JCZmtb1PeYjw5PJkBMHoeZ T9/XbSN+A42PhurzE8JbdTeP6JNrClRoI79y9alM2PJaZJEe4y2aQtmgWpJNYD75aHL0 1Geg== X-Gm-Message-State: AOJu0YyrResGMotA/iRpvSZxvvdHOCpUXbpWzbqk26ZO8cOo5HBADSOv Rl1yfkNnb263XxNMpleoo0xqGUQDmkOIC0YGqmKZ9APLeh/BUY5ezKBLkJWS20FNxm9VOh83mFw sfMnh2Azv4gFcGwyifyoBRIfB905IFVBiHbZPxDvVlw== X-Received: by 2002:a05:6808:114c:b0:3b8:616b:24e with SMTP id u12-20020a056808114c00b003b8616b024emr22271201oiu.49.1701357592731; Thu, 30 Nov 2023 07:19:52 -0800 (PST) X-Received: by 2002:a05:6808:114c:b0:3b8:616b:24e with SMTP id u12-20020a056808114c00b003b8616b024emr22271182oiu.49.1701357592537; Thu, 30 Nov 2023 07:19:52 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id y125-20020a636483000000b005bd3d6e270dsm1356002pgb.68.2023.11.30.07.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 07:19:52 -0800 (PST) From: Emil Renner Berthing To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Paul Walmsley , Palmer Dabbelt , Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Cristian Ciocaltea , Geert Uytterhoeven , Conor Dooley Subject: [PATCH v2 1/8] riscv: errata: Add StarFive JH7100 errata Date: Thu, 30 Nov 2023 16:19:25 +0100 Message-Id: <20231130151932.729708-2-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231130151932.729708-1-emil.renner.berthing@canonical.com> References: <20231130151932.729708-1-emil.renner.berthing@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 07:20:24 -0800 (PST) This not really an errata, but since the JH7100 was made before the standard Zicbom extension it needs the DMA_GLOBAL_POOL and RISCV_NONSTANDARD_CACHE_OPS enabled to work correctly. Acked-by: Conor Dooley Signed-off-by: Emil Renner Berthing --- arch/riscv/Kconfig.errata | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/riscv/Kconfig.errata b/arch/riscv/Kconfig.errata index e2c731cfed8c..692de149141f 100644 --- a/arch/riscv/Kconfig.errata +++ b/arch/riscv/Kconfig.errata @@ -53,6 +53,23 @@ config ERRATA_SIFIVE_CIP_1200 If you don't know what to do here, say "Y". +config ERRATA_STARFIVE_JH7100 + bool "StarFive JH7100 support" + depends on ARCH_STARFIVE && NONPORTABLE + select DMA_GLOBAL_POOL + select RISCV_DMA_NONCOHERENT + select RISCV_NONSTANDARD_CACHE_OPS + select SIFIVE_CCACHE + default n + help + The StarFive JH7100 was a test chip for the JH7110 and has + caches that are non-coherent with respect to peripheral DMAs. + It was designed before the Zicbom extension so needs non-standard + cache operations through the SiFive cache controller. + + Say "Y" if you want to support the BeagleV Starlight and/or + StarFive VisionFive V1 boards. + config ERRATA_THEAD bool "T-HEAD errata" depends on RISCV_ALTERNATIVE -- 2.40.1