Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BC3DC61DA3 for ; Tue, 21 Feb 2023 18:20:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbjBUSUS (ORCPT ); Tue, 21 Feb 2023 13:20:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjBUSUQ (ORCPT ); Tue, 21 Feb 2023 13:20:16 -0500 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04A3DA5EA; Tue, 21 Feb 2023 10:20:16 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B1BAB3200958; Tue, 21 Feb 2023 13:20:14 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 21 Feb 2023 13:20:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1677003614; x= 1677090014; bh=x2IZQ+iphsmwSFnvkuw3nDG85xAlx0RpbPygo2Hs1nI=; b=k fip2uhUowqaQVQpqKlxJ4klntl+O/E0mnKFL0V2lzkkGa2KLDPb3EFGzjfy6HD0Y C/W3ardDqnIQGdp/2nPaXuR+//kX5v+ZA0nojwTl6aa35YM/baaQA17Wfvmd1Eb2 XPFjVkv1ASQIZhrZr9GI/S2DbJs8hc/lWO3gsEDfNo/B4U7KEuR4TcMTg+EHRQxj VE16jQvpxpK+bYEGa7cQGw1PLr85Kv5gBZw/xzzO9HEXmGNaHxsZzuXnUfnYymqL ii+i8OjMxguvYn/hMdyovWzQqbEPeUVnhKuRaRL3Oqqas90hOFddlW9adLnzvNSt GGjTrYJyA64s6f7Xr+DXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1677003614; x= 1677090014; bh=x2IZQ+iphsmwSFnvkuw3nDG85xAlx0RpbPygo2Hs1nI=; b=X ecedj8kC48nTR9PQDLmfBEaBjtTdMKaBtVI5hZ72gnyzsDlM+00kfsXuzKNW7GSg BkmjNo+9bSD41/T/tgtEEg8aqgR9FHYzcgMIIRBu8kLkIwfDuMmYiUGqFjnOw8UB vo0z9r2NEjOU/dY+63PJB3q4oSlOdZvlgNQec9CJQrE4IpmBOoKd4j8/FcimC0zf g853qwjU4/YhuN+kqZBiQqFS73zG1WKlsFxTtwiAwkntoOJiy2M8F4RxT0oMTYed E34kaVeRARaAAmu9uPymDu0UtywMXxw1xldabiEQ85wlNlZY6BTMZm55MLBjQ1If ZZ8htlj43UMZNkV2b34/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejjedguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomheplfhi rgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqe enucggtffrrghtthgvrhhnpedutdejffetteefkeejieehfeeuieeguedtveeijeeviefh ffelvdfgudeihfdvtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Feb 2023 13:20:12 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: [PATCH 6/7] riscv: Select ARCH_DMA_DEFAULT_COHERENT From: Jiaxun Yang In-Reply-To: Date: Tue, 21 Feb 2023 18:20:02 +0000 Cc: "linux-mips@vger.kernel.org" , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Thomas Bogendoerfer , mpe@ellerman.id.au, paul.walmsley@sifive.com, palmer@dabbelt.com, Rob Herring , Christoph Hellwig , m.szyprowski@samsung.com, robin.murphy@arm.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <20230221124613.2859-1-jiaxun.yang@flygoat.com> <20230221124613.2859-7-jiaxun.yang@flygoat.com> To: Conor Dooley X-Mailer: Apple Mail (2.3731.300.101.1.3) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 2023=E5=B9=B42=E6=9C=8821=E6=97=A5 18:14=EF=BC=8CConor Dooley = =E5=86=99=E9=81=93=EF=BC=9A >=20 > On Tue, Feb 21, 2023 at 12:46:12PM +0000, Jiaxun Yang wrote: >> For RISCV we always assume devices are DMA coherent. >=20 > "Always assume", I'm not keen on that wording as it is unclear as to > whether you are suggesting that a) we always take devices to be DMA > coherent, or b) unless a device states it is non-coherent, we take it = to > be DMA coherent. > I think you mean b, but being exact would be appreciated, thanks. Yep I meant option b, thanks for the point. >=20 >> Select ARCH_DMA_DEFAULT_COHERENT to ensure dev->dma_conherent >> is always initialized to true. >>=20 >> Signed-off-by: Jiaxun Yang >=20 > Why was this not sent to the riscv list? > When (or if) you send v2, can you please make sure that you do cc it? Will do. Thanks - Jiaxun >=20 > Thanks, > Conor.