From patchwork Sun Nov 26 23:27:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Renner Berthing X-Patchwork-Id: 169909 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2738885vqx; Sun, 26 Nov 2023 15:28:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpqAdQe6Swqts0h3i69i+6+KoNaAVT7wV5IDnR7rMCYVNkFP7mREznLnwGKYmVLUypeeiL X-Received: by 2002:a05:6a20:918e:b0:18b:57e1:dbfc with SMTP id v14-20020a056a20918e00b0018b57e1dbfcmr11229093pzd.0.1701041314350; Sun, 26 Nov 2023 15:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701041314; cv=none; d=google.com; s=arc-20160816; b=TqdEWZgs3xRRNB0jzk8ydLA1wCvLxqClQcCKT4ynrza/hylfGm6JuowQIsnNZ1OqZk 1IlkZgLmTt+bXVD8DB5vJXahbTEzVIVjWrYBb9Bge1wvPustNWeqga3K3sr6oD5qkAyH MPXsZw0mBSgnXIR49tZhDpuCtNvN/kn1vwBp6gyQMrs4uUT8d8Rxe5zzCfzMrAjRdAM6 at1Ja3awJpG6+gUM4y8d2v0orXX/PIfjK+jscfeYxF3tOF+WrXE827+3Ktu4PdrlNaAA M6AejhC0VOCqJbCj459L8LR9Es0f1K2MtsAUaWZu4XhNGgrexarM59diR3K2OeuxWdC5 KPaA== 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 Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id fa41-20020a056a002d2900b00690fe3ec830si8846164pfb.55.2023.11.26.15.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 15:28:34 -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 BF9A0803D83C; Sun, 26 Nov 2023 15:28:30 -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 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:31 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783671097649324809 X-GMAIL-MSGID: 1783671097649324809 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 {