Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp710488rwo; Wed, 2 Aug 2023 03:00:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1twMA12ReKZuP0ICbQ5svWWNnOLFmlL07TUbDDlRXboQOnhQxmBL/NbBHJgdHM93rnC5k X-Received: by 2002:a05:6a00:2386:b0:66f:578c:59fb with SMTP id f6-20020a056a00238600b0066f578c59fbmr15584162pfc.10.1690970451353; Wed, 02 Aug 2023 03:00:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690970451; cv=none; d=google.com; s=arc-20160816; b=vUtUJTCwVap7tE4c5h/PmRbdc3g9xurQ9E0+2uYWBNS8WL7ZNNC6XXjdRFqKbyEfAX UqlEnBI4rqq3LpErlzSzBLmYb4SM49uooyE4QklG5zU44Gf/l6/xYgQWVZTphPyJ6AUI cWozCdRvAng/KB2bkxncUaoYkrILf4fjFDeem+y5pgPfJqwZcoLlZ/R/J8lavll5uS18 ux8qCiiHMEg+XpcfMxLTy+JoaE6EWCsPKGC2KDmK+AZtB4Loo1EBOWPYV5L1T48qbeaa ufWnRZV3ZPWDwKsSZ5adqDAWl53oLCg6V2ggfBtG9TAme753fSNbG8HEubowoVrVP92/ mqZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lV0qAr8ZmrJh1hROR0HYPMLrqSSSJPhc7ZdHRO5RPTs=; fh=eJrbc3d2BSIPTEQatpER450c9PyLP+icnEJzBR0Braw=; b=vzdf8o+d8X2TYnue0QhI+CHfRLVeExFGYAzu7Qy8mk2TAWYfKtC7EY5BUnsVG5uvDm RxnhQOClS8HaLoKEVM33yKKKJ+X37N5AhNCp2ZaVQDqK/i4foYuO2gvjH8VkOT8dD4O5 JvdZotU6oS6NRoif2kF+axyNcJWy80C5B0YCIZAMO/XLCgGdCaLJoQl64xyoLIFCH8IO vlajXQLy8vGwrh11RtCUdIX1oYFN1dPz4Q+FhqDxyIuoHcPVkr0IG7kiKnvaESHzWGA3 ZrrbhExbv6kuuuv/SXvsVRqpYhKAHjzAf25eZF+CRRj42HsjL1gTRmC1g7Q2/m9uTatF 1DzQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t33-20020a056a0013a100b006871c2c7cfasi7379293pfg.175.2023.08.02.03.00.38; Wed, 02 Aug 2023 03:00:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231171AbjHBJrf (ORCPT + 99 others); Wed, 2 Aug 2023 05:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231426AbjHBJrd (ORCPT ); Wed, 2 Aug 2023 05:47:33 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A18211FF3; Wed, 2 Aug 2023 02:47:31 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 2B29368AFE; Wed, 2 Aug 2023 11:47:26 +0200 (CEST) Date: Wed, 2 Aug 2023 11:47:25 +0200 From: Christoph Hellwig To: John Stultz Cc: Christoph Hellwig , Pintu Agarwal , Pintu Kumar , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, m.szyprowski@samsung.com, robin.murphy@arm.com, iommu@lists.linux.dev, Sumit Semwal , Benjamin Gaignard , Liam Mark , Laura Abbott , Brian Starkey , Christian =?iso-8859-1?Q?K=F6nig?= , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH v2] dma-contiguous: define proper name for global cma region Message-ID: <20230802094725.GA28241@lst.de> References: <1690598115-26287-1-git-send-email-quic_pintu@quicinc.com> <20230731112155.GA3662@lst.de> <20230801171838.GA14599@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, Aug 01, 2023 at 10:39:04PM -0700, John Stultz wrote: > So, forgive me, I've not had a chance to look into this, but my > recollection was "reserved" is the name we see on x86, but other names > are possibly provided via the dts node? Indeed, dma_contiguous_default_area can also be set through rmem_cma_setup, which then takes the name from DT. > I believe on the hikey board its "linux,cma" is the name, so forcing > it to reserved would break that. > > Maybe instead add a compat config option to force the cma name (so x86 > can set it to "default" if needed)? I think we'll just need to leave it as-is. I with dma-heaps had never exposed the name to userspace, but we'll have to lіve with it now.