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 B8E7FC61DA3 for ; Tue, 21 Feb 2023 18:19:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230007AbjBUSTR (ORCPT ); Tue, 21 Feb 2023 13:19:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbjBUSTO (ORCPT ); Tue, 21 Feb 2023 13:19:14 -0500 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B866CA5E5; Tue, 21 Feb 2023 10:19:13 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 77D0D32003D3; Tue, 21 Feb 2023 13:19:12 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 21 Feb 2023 13:19:13 -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=1677003552; x= 1677089952; bh=x5JRWBtDBoH7NCFzzeEOrSWuCCjwV4krwVHMAbj0ALc=; b=D 9grbHa3Xg6Oc7mQ8YwWsl24aTiDStUWWFw01wdXHEfV+RKw7HLI2hmmvGh6DRVu4 U77XIwnJF1BxBV1kc7ivh5iGChCttNVktHfrQLN2u0zgFO9jqjK7zkWQSqwCXOEM GuiU0oKieb35AhTiDKhnxC37w8d9hkkiZulQe2OtHoFF0reRTbhTodpuMIGTx9Gs 4ZuRgk9BeJF3k5CFQVWuirJfYJbXpEH6EVS2FUwyoTXoBd0Gjut6oL3uE1Q30ucc UzGN13NCAvnlXqEcCejEwkof6IWbwAMb/CKu3MYlxsEFHc5RUzjB11bagZCARNJQ Yo4US7NFNXVcfLV/+cVSQ== 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=1677003552; x= 1677089952; bh=x5JRWBtDBoH7NCFzzeEOrSWuCCjwV4krwVHMAbj0ALc=; b=T fIxj8ffmZ0ELlz6jY1UepBsdokoajS98Ljg/gm6+YDZie4hHjVobezgG60AI9/UB Evun183gQpI6cQa1XFeK+hE9Nemh/GxRQAjwzY1mS4m85iajtGVOyhjpWtkgHjXm e9aOyCX9jEBE4lIFlEnV+hbWMlb7XpefTAGZfWzwSV6mtnpcfgPr77eOsMR+rLed QcUQ+g5PLI99UZqrC4CVo0WAxO2rNmIDHNG34r3HSBAFWXOTjz4pP+RLKCJSp0h9 YBFE2kcSYUIe8SzSWIyqsudZNWvCRvTqEA4pVN7zpP9E1f0dzKCB56i90bbtaxKD tcUtSdFw1szIMi3ywNNlQ== 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:19:09 -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 5/7] dma-mapping: Provide CONFIG_ARCH_DMA_DEFAULT_COHERENT From: Jiaxun Yang In-Reply-To: <20230221175842.GD15247@lst.de> Date: Tue, 21 Feb 2023 18:18:58 +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 , m.szyprowski@samsung.com, robin.murphy@arm.com Content-Transfer-Encoding: quoted-printable Message-Id: <9AD04590-81B1-4420-979E-ACC1C7C6C8E8@flygoat.com> References: <20230221124613.2859-1-jiaxun.yang@flygoat.com> <20230221124613.2859-6-jiaxun.yang@flygoat.com> <20230221175842.GD15247@lst.de> To: Christoph Hellwig 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 17:58=EF=BC=8CChristoph Hellwig = =E5=86=99=E9=81=93=EF=BC=9A >=20 > On Tue, Feb 21, 2023 at 12:46:11PM +0000, Jiaxun Yang wrote: >> Provide a kconfig option to allow arches to manipulate default >> value of dma_default_coherent in Kconfig. >=20 > I don't see the win over just doing this by setting = dma_default_coherent > in the early boot code. I just don=E2=80=99t want to dig into every archs=E2=80=99 early boot = code to decide a good timing for setting this variable. Also as we do have a OF_DMA_DEFAULT_COHERENT before it makes more sense to me. Thanks - Jiaxun=