Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1925948rdb; Tue, 5 Sep 2023 09:02:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjnNIsSeroPLYy1LVaol9sKf1Lf74uw7PnA5eXlp9mZMN0q4yDF+/Gul3ql5IKkklJWXqd X-Received: by 2002:a17:90a:bc49:b0:26b:726:118 with SMTP id t9-20020a17090abc4900b0026b07260118mr10032089pjv.19.1693929722221; Tue, 05 Sep 2023 09:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693929722; cv=none; d=google.com; s=arc-20160816; b=JpAFWqkxY82ZnVzUk5x+nizh0SsnJDUYVbx84SyoAlkOHmY2d/0WVXES/SQso0ru6h QF3MMsuXuPshRqmGEe2EolngLPXlpbvmuKYosPmMqAhc39ej1hSuRqx8MaKpjJkpPs0Q RZF+wEBfCh3Q5T7KyWF2rEunuif3VEb+jXAurJ5XiXeKpzAOzeQOZpswb627x2TY0Gd7 JYufCAHXDSPV8HNVAE7x/zjbtuhfBQg/uQ+ImXLtzRfJTUeBXD4RmdU4+jF3xqKg30Ol FQoIXwRSJ/6V72upp+HhMxaZwzZR6DMzwfFqJ7O3fujWRAQ2BRaVj/3JaN22+/At/tS+ v3ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qvj27jubNfEFUAutWehbPPceOdeSB4a2D8GLhZppEsE=; fh=fNehehoxGLX+NdXnmfkIePyuLM9IJJ2yJ7sU6oNJqLE=; b=gQi4zsMpVOR3PIOM1ut7hUp2x36pJ4XkFN0oXXwYXKkU8gxV3aEo/E7JGU61d/VpGi Qu70EGPnwjxwadpTjg6RIR+WZnPYa84NqDtjErP8OwBN/gObwEJDVhSaQ4hCAgAyV/qa aTszdYRd8l/8zTKk2u3AdrrWjaLQJXmax1Vw1E8SiimU86dHCdA8v0znldZ047U8vb1N VukrFOzcDznejuoT7xCRxhKbBMA+c8UraYBXxl4awgvIHWu7klO7ptP+zbPwMFPETfcx tHp88wwVUNq5+qkzViggv0t6YTw0pqMSjVR2QwzXM0/lhrFqPERg9cvV8TNupOOnfPQ+ GMpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zi3r8Yne; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a17090aee8d00b0026b502223cbsi9499122pjz.10.2023.09.05.09.01.58; Tue, 05 Sep 2023 09:02:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zi3r8Yne; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351388AbjIDO5p (ORCPT + 21 others); Mon, 4 Sep 2023 10:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbjIDO5o (ORCPT ); Mon, 4 Sep 2023 10:57:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4345BA9; Mon, 4 Sep 2023 07:57:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CBB266181E; Mon, 4 Sep 2023 14:57:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9100C433C8; Mon, 4 Sep 2023 14:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693839460; bh=LzT88cWedePN3nB5J2c47sYH8nUB4YIGJS2wdUEWZYA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zi3r8Ynel24Dp6pgSwbOvVKbbbfUNxLqMGQnpLVnWhRhiLD6b3brJ29S7rUAMQ1Qp InPp54qna5ff2I0nE1PfF17hPSM3DMbgejqKjXwMaZGWKMB+kwByXoxom3q2+0isK1 XpF0tKQPVNsJWB4PXy8if25eUwjMOoE7uHKv0HJycIzVstvFBxCGDAgndwgZFcGDqf Tf/SgdafCTBRlEHBumfF0n4POTiwKtdV6NtOG4kupikBE3YLqYNIolPlZ/oa3FeBI2 cW+goPDSSgH8ExT0G9pA8h8uY3TsNRf3l1b+NU8qRVw40SDahJIB35PAjEElpK4fLS 0by1eZ7i9OyvA== Date: Mon, 4 Sep 2023 22:45:43 +0800 From: Jisheng Zhang To: Drew Fustini Cc: Guo Ren , Fu Wei , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , inux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: dts: thead: set dma-noncoherent to soc bus Message-ID: References: <20230820115353.1962-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 03, 2023 at 04:32:21PM -0700, Drew Fustini wrote: > On Sun, Aug 20, 2023 at 07:53:53PM +0800, Jisheng Zhang wrote: > > riscv select ARCH_DMA_DEFAULT_COHERENT by default, and th1520 isn't > > dma coherent, so set dma-noncoherent to reflect this fact. > > > > Signed-off-by: Jisheng Zhang > > --- > > arch/riscv/boot/dts/thead/th1520.dtsi | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi > > index 56a73134b49e..58108f0eb3fd 100644 > > --- a/arch/riscv/boot/dts/thead/th1520.dtsi > > +++ b/arch/riscv/boot/dts/thead/th1520.dtsi > > @@ -139,6 +139,7 @@ soc { > > interrupt-parent = <&plic>; > > #address-cells = <2>; > > #size-cells = <2>; > > + dma-noncoherent; > > ranges; > > > > plic: interrupt-controller@ffd8000000 { > > -- > > 2.40.1 > > > > Tested-by: Drew Fustini > > I tried this on the BeagleV Ahead. They system booted as expected and I > did not notice any problems in the boot log. > > Are there other patches such as the dwmac series that I should test this > with? Hmm, this patch is necessary to test dwmac, emmc ;) > > Also, I think this might have missed patchwork since the original email > had a typo for the list, so it might be good to resend it? This patch was sent after sending PR to soc people, so it was late for linux-6.6-rc1, but this patch is a fix, I may send it as a fix once linux-6.6-rc1 is out.