Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1931198rdb; Tue, 5 Sep 2023 09:07:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUdyU0AaQCE3qJD1irNLIxgUs9aIFOu7rMJF4+cmsYsByuWHKs5kz7HXj+nAug4TqRQM2W X-Received: by 2002:a2e:b618:0:b0:2bc:c326:54a2 with SMTP id r24-20020a2eb618000000b002bcc32654a2mr133808ljn.50.1693930035512; Tue, 05 Sep 2023 09:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930035; cv=none; d=google.com; s=arc-20160816; b=K1Rdbhn0hf+bUrFKzokel3QbRCn1EMZ73t/UqGB3jkSxbf8hq4q/3gGQUC3YbcdIia HyckvqeC1BX682wrK0nTIWfI7gxXwSYCBE2vQvKBemh1J8igpVZmsHFcfXC0RQ+7EkST HKyS7KE7PJAgBUMKDzVF5/Rb1XQtvIc55VWKhifg6JOfUobeSug1Uk59NdWGJcCjCjpe ExBT/lQPnqo1hfMcZH3AEpIQl+ne6RULsVNRBq8lzgrt5aLpajptuASQQzREl4efIAhx feZiCVD/tlAVCF7AnsOH1dhd7ZOtSmSn2XFbA/iFtWDOXOmEhPf5bkahX02U9pwzqaFH ucxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=m9pWXbBe49tlMWmx7ceZ+WgmcQHqI9sadLx79JoqoHs=; fh=VWFe+NkeXVc/IEVwuP2YZHUSE7RGaCdF3Uyxu3bp9kk=; b=AZ+bP7LAra05LBhabDwdAXfMUkKnPyOw53L+PKC+vxkpb8nOofYDxAc8AaK2HKt3ol Sx25eXboAx2nAgneKISHwdwwDVKx9nRFUBhECynEPhHmjHkRVOGeFCiujfyJOW8C6jwb 0qV32SeTBLHlRVeYNsGsw4M2KyKN2pMpndkRbE9tHkycSX3jDma+f6myu5tjkr4QQNOf 4jTLxjBjorVk6CusF9Mbr5CCdY0cSiNnc+HG1hB4LyKhzLJ7sFr/s90ONdzJ5AoLt1/8 +CFtgIeswnpc983cKphcX3zciyxzhSuPyKAjdFoBtT7g1girBt7qS0b+hXW/a4Yb8vWy 6+gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=lndarXhJ; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw14-20020a170906fcae00b0099319803901si7899235ejb.844.2023.09.05.09.07.10; Tue, 05 Sep 2023 09:07:15 -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=@xry111.site header.s=default header.b=lndarXhJ; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236198AbjIDQ3C (ORCPT + 21 others); Mon, 4 Sep 2023 12:29:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345661AbjIDQ25 (ORCPT ); Mon, 4 Sep 2023 12:28:57 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C22C310E4; Mon, 4 Sep 2023 09:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1693844925; bh=m9pWXbBe49tlMWmx7ceZ+WgmcQHqI9sadLx79JoqoHs=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=lndarXhJsj5eTZZzytgttIVLAHZ00If/azANijJL7+vxFoZtQgXOk5iiPxdEm1j7A PhkwRFDWlZTeefh9otlfhGIhuEFu7CjKomKHcxrfVG82Vu5/PUEKK3uzYvT5MkG5H/ ewglGZ6p1p6+PcgMVYRKXpoEXrnjpdzVswZIIO0s= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 26728659C0; Mon, 4 Sep 2023 12:28:43 -0400 (EDT) Message-ID: <292198d3915bafbe1c82372da2f2755a1842512f.camel@xry111.site> Subject: Re: [PATCH] riscv: dts: thead: set dma-noncoherent to soc bus From: Xi Ruoyao To: Drew Fustini Cc: Jisheng Zhang , 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 Date: Tue, 05 Sep 2023 00:28:41 +0800 In-Reply-To: References: <20230820115353.1962-1-jszhang@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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 Mon, 2023-09-04 at 22:45 +0800, Jisheng Zhang wrote: > 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. > > >=20 > > > Signed-off-by: Jisheng Zhang > > > --- > > > =C2=A0arch/riscv/boot/dts/thead/th1520.dtsi | 1 + > > > =C2=A01 file changed, 1 insertion(+) > > >=20 > > > 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 { > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0interrupt-parent =3D <&plic>; > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0#address-cells =3D <2>; > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0#size-cells =3D <2>; > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0dma-noncoherent; > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0ranges; > > > =C2=A0 > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0plic: interrupt-controller@ffd8000000 { > > > --=20 > > > 2.40.1 > > >=20 > >=20 > > Tested-by: Drew Fustini > >=20 > > I tried this on the BeagleV Ahead. They system booted as expected and I > > did not notice any problems in the boot log. > >=20 > > Are there other patches such as the dwmac series that I should test thi= s > > with? >=20 > Hmm, this patch is necessary to test dwmac, emmc ;) Drew: does this fix the "broken DMA" issue you've mentioned in the EMMC support patch? --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University