Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2678390rdh; Sun, 26 Nov 2023 15:28:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWGMMCV3X94rfmABUBmH9jeTIWYu0fH4Csbz+patunMMZxuL3seF5W9vca538X9DJZVbYT X-Received: by 2002:a05:6808:1211:b0:3b8:43fe:96d9 with SMTP id a17-20020a056808121100b003b843fe96d9mr15668357oil.35.1701041318367; Sun, 26 Nov 2023 15:28:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701041318; cv=none; d=google.com; s=arc-20160816; b=u4qc6Q9lhRscUtASYSbeoghuQ8J7h6S+w0tGBs+vAl/Ql4F3H/W8vktl47Ju1Ym2LY HVeUwdP4v6FQzgrETJsPBtp7EjvtDjA2Vvgcmjks68w9eaChBwKr3AYi1JqRDodbzmkC D4qAxhq4sQFXdcrBq0RXlIVkysAGypqxYiqvO3zQdRX/SKlTf+Xk1+wBkPzO8nftoJRU ES3/De/BOrGdqqx9aqyr2snQFYheeNbM5JW1dOoK0ZPApnL8Db4en5aFYr7y0yZOAIgF kN/hh2ussG9+EQnFtAJ7PE7vNT2OmAuWRo/mQGzg5TA0t5qrlYEMBi1DScaucdT4oiBd znWw== 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=O3TPicaObXUf+CQ2/13bF4S5EM9ZMGJpI/eXjOZpsCQ=; fh=+EsQ41aCICY0ODtHmqOQ5JuMwDdHSdvMkMeMfxydtP4=; b=H7TXm2ajxNz/WtSATpLGAKamIv1RCeGZzDJd3UpgdLLHM4w0/odzw3mMzhcu9+9bzj 7+YkE8VnhYMQlZsev6RQUxhRdRk9ZGqM8ReC8dlifT8M5juRMU5w+My0bwAtR72NyieZ Kzh3kokgbjtUnItik0zY0UeLxtESQfniaIplXtVMI5udi9axmLfTlDMkIibupiD4N+9O 5KTzYRotFWMFy3595M1oDKrxNS2LMvlx6wUqUeTvKfykX20+CLcWouMI98ZdgNFz1cDm cWN37x3fI0ehv7vosOZiHPkAPcTin22vccUPSbt/4QoAOtaIzeDPA+T7PeH3W8CrDF3b VfHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=USWA50dv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id by39-20020a056a0205a700b005bd092afd36si9348339pgb.134.2023.11.26.15.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 15:28:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=USWA50dv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id CC98A803D83C; Sun, 26 Nov 2023 15:28:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231229AbjKZX2U (ORCPT + 99 others); Sun, 26 Nov 2023 18:28:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231250AbjKZX2R (ORCPT ); Sun, 26 Nov 2023 18:28:17 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F0F13D for ; Sun, 26 Nov 2023 15:28:21 -0800 (PST) Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) (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-1.canonical.com (Postfix) with ESMTPS id BF4CF3F18D for ; Sun, 26 Nov 2023 23:28:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701041299; bh=O3TPicaObXUf+CQ2/13bF4S5EM9ZMGJpI/eXjOZpsCQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=USWA50dviKu0ODjnStxQ60N4E+f8SjbFwNwDDVLiIrVYhRORgfsiYUX5/sOvV9Ghg NMGNopa+TC+kpym7UssVLMivTbm7UhptxPPap6oDi4uwfgouGTA3bTDQuIy8t1j7ut ZrOCi0Vy6bUFJ24TWfpNJx0voiCHDXFgC7D3nmUzeGUsDj91KKHdyae3ZRU0LDeBhv wIanGTdK47sawznoTpUQi+50wYdYpKplSzyZeE/KM0+XA9X0NL19h2eXzbdrR0PCLy IaqfOF9WT49ahcqsHQq1IZvIz2z5QVKtkPIYCqmwBGsRWJR07ZkoVTD781KZkskIxO HJV4fH3Z1rDsQ== Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-1cfbce9218bso15850075ad.2 for ; Sun, 26 Nov 2023 15:28:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701041298; x=1701646098; 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=O3TPicaObXUf+CQ2/13bF4S5EM9ZMGJpI/eXjOZpsCQ=; b=r8F5+fG2972hQBfqXzlFaqEHAl90r3QrgL8eV8Sq/CLHnDnidh2BBgGoMFgJyqFE2a pTUcI/jJq/Fidusvjy/Gtif4+Cnzts/Kd3g/7PKNLFz4rHzvDM6g+j9NGHWmghZaengB zWSvwA7gnkx0NK4bu3xYpsFDtpp/LkGn9DAZ2r23gzGEWtKxfcvpzHyN2zsid9rxZLB1 NNv0199ohbPV8vU2gs325p9TCyMuVrC38eU0hpVHxv3zrG3YO/y/L5zV1m0EhjOXhpxw QVOtHe3q6qV+N+UXvoNbJ4vVRbtb2C/OuxNp06m9duGiB39yhJD1NK6cKbzHbxPASnVZ v+eg== X-Gm-Message-State: AOJu0Yw6pvHFIceq8vAYDy7pBq36NeLZk3gyeADpOo6iPNb+vz0MBVQ8 cQHfuW+Uo010vDMVZU/TFLAKa5Cl355XCVm8mTgtAcpuCN16T1zW/fX1yWGDrQBYmq0MxJ0wy8n BBUVn96/PwIYICXvQRESVAxq+XG7ekn5051z1VBP1Qw== X-Received: by 2002:a17:902:be08:b0:1cf:747e:89c6 with SMTP id r8-20020a170902be0800b001cf747e89c6mr8786551pls.26.1701041298544; Sun, 26 Nov 2023 15:28:18 -0800 (PST) X-Received: by 2002:a17:902:be08:b0:1cf:747e:89c6 with SMTP id r8-20020a170902be0800b001cf747e89c6mr8786540pls.26.1701041298276; Sun, 26 Nov 2023 15:28:18 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id y10-20020a170902b48a00b001cfb52ebffesm3123853plr.147.2023.11.26.15.28.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 15:28:17 -0800 (PST) From: Emil Renner Berthing To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Cristian Ciocaltea Subject: [PATCH v1 3/8] riscv: dts: starfive: Mark the JH7100 as having non-coherent DMAs Date: Mon, 27 Nov 2023 00:27:41 +0100 Message-Id: <20231126232746.264302-4-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231126232746.264302-1-emil.renner.berthing@canonical.com> References: <20231126232746.264302-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 morse.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 (morse.vger.email [0.0.0.0]); Sun, 26 Nov 2023 15:28:35 -0800 (PST) From: Emil Renner Berthing The StarFive JH7100 SoC has non-coherent device DMAs, so mark the soc bus as such. Link: https://github.com/starfive-tech/JH7100_Docs/blob/main/JH7100%20Cache%20Coherence%20V1.0.pdf Signed-off-by: Emil Renner Berthing --- arch/riscv/boot/dts/starfive/jh7100.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi index a40a8544b860..7c1009428c1f 100644 --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi @@ -144,6 +144,7 @@ soc { interrupt-parent = <&plic>; #address-cells = <2>; #size-cells = <2>; + dma-noncoherent; ranges; clint: clint@2000000 { -- 2.40.1